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

Just starting out? Need help? Post your questions and find answers here.
Randy Walker
Addict
Addict
Posts: 1269
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

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

Post 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
Last edited by Randy Walker on Wed Dec 31, 2025 8:06 am, edited 2 times in total.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Nothing is faster, more stable, or easier to maintain than code that doesn’t exist. :mrgreen:
User avatar
Kiffi
Addict
Addict
Posts: 1522
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: Hide ListIconGadget() Header Row?

Post by Kiffi »

Code: Select all

#PB_ListIcon_NoHeaders
Hygge
Randy Walker
Addict
Addict
Posts: 1269
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

Re: Hide ListIconGadget() Header Row?

Post 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.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Nothing is faster, more stable, or easier to maintain than code that doesn’t exist. :mrgreen:
BarryG
Addict
Addict
Posts: 4340
Joined: Thu Apr 18, 2019 8:17 am

Re: Hide ListIconGadget() Header Row?

Post by BarryG »

Windows: Add the #LVS_NOCOLUMNHEADER flag for no header.
Randy Walker
Addict
Addict
Posts: 1269
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

Re: Hide ListIconGadget() Header Row?

Post 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
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Nothing is faster, more stable, or easier to maintain than code that doesn’t exist. :mrgreen:
BarryG
Addict
Addict
Posts: 4340
Joined: Thu Apr 18, 2019 8:17 am

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

Post 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
Randy Walker
Addict
Addict
Posts: 1269
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

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

Post 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.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Nothing is faster, more stable, or easier to maintain than code that doesn’t exist. :mrgreen:
User avatar
mk-soft
Always Here
Always Here
Posts: 6602
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

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

Post 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.
My Projects EventDesigner V3 / ThreadToGUI / OOP-BaseClass / Windows: Module ActiveScript
PB v3.30 / v5.75 - OS Mac Mini - VM Window Pro / Linux Ubuntu
Downloads on my OneDrive
Randy Walker
Addict
Addict
Posts: 1269
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

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

Post 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.
Last edited by Randy Walker on Sat Feb 14, 2026 1:38 am, edited 1 time in total.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Nothing is faster, more stable, or easier to maintain than code that doesn’t exist. :mrgreen:
BarryG
Addict
Addict
Posts: 4340
Joined: Thu Apr 18, 2019 8:17 am

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

Post 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.
Randy Walker
Addict
Addict
Posts: 1269
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

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

Post 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!!!!
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Nothing is faster, more stable, or easier to maintain than code that doesn’t exist. :mrgreen:
Post Reply