Search found 4 matches

by Kai
Sat May 26, 2007 4:57 pm
Forum: Coding Questions
Topic: Selection removed by SetGadgetItemText?
Replies: 1
Views: 1089

Selection removed by SetGadgetItemText?

Hello, small question, if I change an entry in the ComboBoxGadget with SetGadgetItemText the selectierte entry again removed. is that a Bug?


If OpenWindow(0, 0, 0, 200, 200, "Test", #PB_Window_SystemMenu|#PB_Window_ScreenCentered) <> 0
If CreateGadgetList(WindowID(0)) <> 0
ComboBoxGadget(0, 5 ...
by Kai
Wed May 16, 2007 11:55 pm
Forum: Coding Questions
Topic: Toolbar Event
Replies: 31
Views: 4141


EnableExplicit

If OpenWindow(0, 0, 0, 250, 120, "ToolBar mit Hilfe in StatusBar", #PB_Window_Invisible|#PB_Window_SystemMenu|#PB_Window_ScreenCentered) <> 0
If CreateToolBar(0, WindowID(0)) <> 0
ToolBarStandardButton(0, #PB_ToolBarIcon_New)
ToolBarStandardButton(1, #PB_ToolBarIcon_Open ...
by Kai
Tue May 08, 2007 10:50 pm
Forum: Coding Questions
Topic: Change the TreeGadgetIcon
Replies: 3
Views: 792

My Code :D


EnableExplicit

Procedure.s SystemPath()
Protected Path.s = Space(#MAX_PATH)
GetSystemDirectory_(@Path, #MAX_PATH)
PathAddBackslash_(@Path)
ProcedureReturn Path
EndProcedure

Procedure.l TreeView_ChangeIcon(Gadget, Index, hIcn)
Protected hImgList.l, IcnIndex.l, II.TV_ITEM, x.l ...
by Kai
Tue May 08, 2007 10:51 am
Forum: Coding Questions
Topic: Change the TreeGadgetIcon
Replies: 3
Views: 792

Change the TreeGadgetIcon

I've made a treegadget with entries which also have icons.
Now I'll want to change onthefly the icon of one entry.
Is there any simply possibility?
I've following idea: ChangeTreeGadgetIcon(Gadget, Index, hIcon)

sorry for bad english but i'm german :D