Page 1 of 1
ExplorerListGadget without Columntitlebar
Posted: Sun Mar 20, 2005 4:14 pm
by Hroudtwolf
Dear PB-World,
Is there a way to create a ExplorerListGadget without a columnbar in the top?
(Columnbar: There is "Name, Size, Date....")
Posted: Sun Mar 20, 2005 4:38 pm
by Sparkie
Can you use the list mode code below, or do you need report mode without header
Code: Select all
If OpenWindow(0,0,0,400,200,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"ExplorerListGadget") And CreateGadgetList(WindowID(0))
ExplorerListGadget(0, 10, 10, 380, 180, "*.*", #PB_Explorer_MultiSelect)
ChangeListIconGadgetDisplay(0, 2)
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
Posted: Sun Mar 20, 2005 4:42 pm
by Hroudtwolf
Thx...
Yes I need the reportmode of the Explorerlistbox. But without header.
Is there any mysterious API-Constant,like with the other Gadgets ?
Posted: Sun Mar 20, 2005 4:46 pm
by Sparkie
Ok, I'll see what I can dig up for you.

Posted: Sun Mar 20, 2005 4:52 pm
by Sparkie
This does the trick for me.
Code: Select all
#LVM_GETHEADER = #LVM_FIRST + 31
If OpenWindow(0,0,0,600,200,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"ExplorerListGadget") And CreateGadgetList(WindowID(0))
ExplorerListGadget(0, 10, 10, 580, 180, "*.*", #PB_Explorer_MultiSelect)
lvHeader = SendMessage_(GadgetID(0), #LVM_GETHEADER, 0, 0)
SetWindowLong_(lvHeader, #GWL_STYLE, GetWindowLong_(lvHeader, #GWL_STYLE) | #HDS_HIDDEN)
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
Posted: Sun Mar 20, 2005 8:51 pm
by Hroudtwolf
Hey thx.....
You are really a wizzard

Posted: Sun Mar 20, 2005 8:54 pm
by Fred
i second that, he's a wizzard.
Posted: Tue Mar 22, 2005 3:53 am
by Sparkie
Awww shucks guys, thanks.
Keep in mind that I also have my
DOH! Homer moments as well
