Page 1 of 1

[SOLVED] Hide ListIconGadget() Header Row? -- Thanks BarryG

Posted: Wed Dec 31, 2025 12:23 am
by Randy Walker
Is there a way to hide the column header row? I used null string but that didn't do it. Still showing. Would like it to shw like a List view Gadget but I want checkboxes so it can be used ass a checklist. I was woring with a samople straight out of help:

Code: Select all

 If OpenWindow(0, 100, 100, 300, 100, "ListIcon Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
   ListIconGadget(0, 5, 5, 290, 90, "", 100, #PB_ListIcon_CheckBoxes|#PB_ListIcon_FullRowSelect | #PB_ListIcon_AlwaysShowSelection)
   AddGadgetColumn(0, 1, "", 250)
   AddGadgetItem(0, -1, "Harry Rannit"+Chr(10)+"12 Parliament Way, Battle Street, By the Bay")
   AddGadgetItem(0, -1, "Ginger Brokeit"+Chr(10)+"130 PureBasic Road, BigTown, CodeCity")
   Repeat
     Event = WaitWindowEvent()
   Until Event = #PB_Event_CloseWindow
 EndIf

Re: Hide ListIconGadget() Header Row?

Posted: Wed Dec 31, 2025 12:56 am
by Kiffi

Code: Select all

#PB_ListIcon_NoHeaders

Re: Hide ListIconGadget() Header Row?

Posted: Wed Dec 31, 2025 6:03 am
by Randy Walker
Kiffi wrote: Wed Dec 31, 2025 12:56 am

Code: Select all

#PB_ListIcon_NoHeaders
That would be the perfect solution Except, best I can tell, #PB_ListIcon_NoHeaders does not exist.

Re: Hide ListIconGadget() Header Row?

Posted: Wed Dec 31, 2025 7:58 am
by BarryG
Windows: Add the #LVS_NOCOLUMNHEADER flag for no header.

Re: Hide ListIconGadget() Header Row?

Posted: Wed Dec 31, 2025 8:05 am
by Randy Walker
BarryG wrote: Wed Dec 31, 2025 7:58 am Windows: Add the #LVS_NOCOLUMNHEADER flag for no header.
WOW!!! THANKS BarryG !!!!! :!: :!: :!: :!:
Works perfectly :D

Re: [SOLVED] Hide ListIconGadget() Header Row? -- Thanks BarryG

Posted: Wed Dec 31, 2025 8:54 am
by BarryG
Happy to help. :) #PB_ListIcon_NoHeaders is valid in PureBasic 6.30:

Code: Select all

Debug #LVS_NOCOLUMNHEADER    ; 16384
Debug #PB_ListIcon_NoHeaders ; 16384

Re: [SOLVED] Hide ListIconGadget() Header Row? -- Thanks BarryG

Posted: Fri Feb 13, 2026 8:48 pm
by Randy Walker
BarryG wrote: Wed Dec 31, 2025 8:54 am Happy to help. :) #PB_ListIcon_NoHeaders is valid in PureBasic 6.30:
Cool, Thanks for the notification. Afraid my main project is still stuck in older version. I did update from 5.40 to 5.46 and everything still works, so I'm happy about that.
But I should be able to make use of that new constant in my 3-Way Client Session Manager.

Re: [SOLVED] Hide ListIconGadget() Header Row? -- Thanks BarryG

Posted: Sat Feb 14, 2026 12:06 am
by mk-soft
@BarrgY

Leave out the Windows API nonsense, if there are already the functions in PB.
At the latest when you go to other OS, you have to change everything again.

Re: [SOLVED] Hide ListIconGadget() Header Row? -- Thanks BarryG

Posted: Sat Feb 14, 2026 1:14 am
by Randy Walker
mk-soft wrote: Sat Feb 14, 2026 12:06 am @BarrgY

Leave out the Windows API nonsense, if there are already the functions in PB.
At the latest when you go to other OS, you have to change everything again.
Thanks mk-soft but I wont be moving to other OS. I can't even get 6.x up to work with current code.
Surely don't need the added headache of other OS. And gave up my Linux box years ago.

Re: [SOLVED] Hide ListIconGadget() Header Row? -- Thanks BarryG

Posted: Sat Feb 14, 2026 1:24 am
by BarryG
mk-soft wrote: Sat Feb 14, 2026 12:06 amLeave out the Windows API nonsense, if there are already the functions in PB.
I get what you're saying, but older versions of PureBasic don't have the #PB_ListIcon_NoHeaders flag, and there's no law that says we have to use the latest versions of PureBasic that does have it (nor even make our apps cross-platform). Randy clearly stated he has to use an older PureBasic, so I gave him the solution.

Re: [SOLVED] Hide ListIconGadget() Header Row? -- Thanks BarryG

Posted: Sat Feb 14, 2026 1:41 am
by Randy Walker
BarryG wrote: Sat Feb 14, 2026 1:24 am Randy clearly stated he has to use an older PureBasic, so I gave him the solution.
And Randy really appreciates that.. THANKS BarryG!!!!