Restored from previous forum. Originally posted by Pantcho!.
Hello People.
i saw Danilo Example for Listbox Colors
and i tried to use it with Tree and Listicon gadgets
and all my tries went....
if anyone can help...
thank you.
Pantcho.
TreeGadget + ListIconGadget COLORS
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Paul.
Does this help?? ...

Does this help?? ...
Code: Select all
hWnd=OpenWindow(0,10,10,300,200,#PB_Window_SystemMenu,"Color List View")
If hWnd=0 Or CreateGadgetList(hWnd)=0:End:EndIf
LI=ListIconGadget(1,10,10,280,180,"Name",100,#PB_ListIcon_GridLines)
AddGadgetColumn(1,1,"Address",120)
AddGadgetColumn(1,2,"Phone",50)
SendMessage_(LI, #LVM_SETBKCOLOR,0,$ffffaa)
SendMessage_(LI, #LVM_SETTEXTBKCOLOR,0,$ffffaa)
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Paul.
Another example using TreeGadget this time...
Another example using TreeGadget this time...
Code: Select all
#TVM_SETBKCOLOR=$1100+29
#TVM_SETTEXTCOLOR=$1100+30
hWnd=OpenWindow(0,10,10,300,200,#PB_Window_SystemMenu,"Color List View")
If hWnd=0 Or CreateGadgetList(hWnd)=0:End:EndIf
LI=TreeGadget(1,10,10,200,180)
SendMessage_(LI, #TVM_SETBKCOLOR,0,$ffffaa)
SendMessage_(LI, #TVM_SETTEXTCOLOR,0,$0000ff)
AddGadgetItem(1,-1,"Test 1")
AddGadgetItem(1,-1,"Test 2")
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Pantcho!.
Hey ricardo
i am now going to army and i will be back on friday.
so if u want u can email me until then in - [url]mailto:noamidc@012.net.il[/url]
and u can send me everything u want even if its some cool snippets!

cya
Hey ricardo
i am now going to army and i will be back on friday.
so if u want u can email me until then in - [url]mailto:noamidc@012.net.il[/url]
and u can send me everything u want even if its some cool snippets!
cya
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm