Filterbar in a ListIcon Header EXAMPLE

Share your advanced PureBasic knowledge/code with the community.
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Re: Filterbar in a ListIcon Header EXAMPLE

Post by nicolaus »

camille wrote:Regarding Flypes code from here: viewtopic.php?p=149777#p149777
The line highlighted in the PB gui is:

Code: Select all

CallFunctionFast(GetProp_(hwnd, "USER_HPROC"), filter\pszText, *lParam\iItem)
I've tried to compile it with PB 5.72 LTS Beta 1 (x64).

Does anybody know how to fix it?
You have to change this line from

Code: Select all

CallFunctionFast(GetProp_(hwnd, "USER_HPROC"), filter\pszText, *lParam\iItem)
to

Code: Select all

CallFunctionFast(GetProp_(hwnd, "USER_HPROC"), @filter\pszText, *lParam\iItem)
and it will work (i haven't tried it but i think this is it)

br,
Nico
camille
User
User
Posts: 71
Joined: Tue Nov 19, 2019 12:52 pm

Re: Filterbar in a ListIcon Header EXAMPLE

Post by camille »

Thank you, nicolaus!

It works fine after the change :D
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: Filterbar in a ListIcon Header EXAMPLE

Post by srod »

Change to :

Code: Select all

CallFunctionFast(GetProp_(hwnd, "USER_HPROC"), @filter\pszText, *lParam\iItem)
**EDIT : too slow! :)
I may look like a mule, but I'm not a complete ass.
Post Reply