ExplorerListGadget without Columntitlebar

Windows specific forum
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

ExplorerListGadget without Columntitlebar

Post 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....")
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post 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
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post 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 ?

Code: Select all

#WM_MYSTERIOUS_NOHEADER
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

Ok, I'll see what I can dig up for you. :)
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post 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
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

Hey thx.....

You are really a wizzard :wink:
Fred
Administrator
Administrator
Posts: 18357
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

i second that, he's a wizzard.
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

Awww shucks guys, thanks. :oops:

Keep in mind that I also have my DOH! Homer moments as well :shock:
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
Post Reply