Can the column headers for the listboxes be used as buttons? If I click on one can that be detected (so that I could sort by that column or something)?
Thanks
ListIconGadget() column headers detection
-
- Enthusiast
- Posts: 212
- Joined: Fri Apr 22, 2005 2:07 pm
- Location: U.S.A.
- Contact:
ListIconGadget() column headers detection
-- DB
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
Have you tried these...
Column starts with "0".
Code: Select all
GetGadgetItemText(#Gadget, Item, Column)
SetGadgetItemText(#Gadget, Item, Text$, Column)
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
-
- Enthusiast
- Posts: 212
- Joined: Fri Apr 22, 2005 2:07 pm
- Location: U.S.A.
- Contact:
Column Header buttons
Yes, I use them in my program. I am talking about the column headers (which appear to be buttons). Can a click on them be detected (they are not in the event loop).
I am not talking about the data in the list itself, this is a different part of the gadget.
Thanks
I am not talking about the data in the list itself, this is a different part of the gadget.
Thanks
-- DB
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
Not that I'm aware of because in the manual, it doesn't give them any kind of value. I could be wrong though. Sorry I could't be more help.
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
-
- Enthusiast
- Posts: 781
- Joined: Fri Apr 25, 2003 6:51 pm
- Location: NC, USA
- Contact:
Re: ListIconGadget() column headers detection
Do a search for listicon and you will find several examples.dbwisc wrote:Can the column headers for the listboxes be used as buttons? If I click on one can that be detected (so that I could sort by that column or something)?
Here is one that might help you
viewtopic.php?t=13224&highlight=listicon
although there are ways to do it without the library.
I use a procedure that I include (based on code found on these forums) in
my programs. However, it requres a slightly different definition of the
listicon gadgets to make it work. You can see it at work in the source code
available at
http://elfecc.no-ip.info/purebasic#FTP_Library
Good luck
Terry
I asked a similar question on the Coding Questions board earlier today.
http://www.purebasic.fr/english/viewtopic.php?t=21864
Lee
http://www.purebasic.fr/english/viewtopic.php?t=21864
Lee
-
- Enthusiast
- Posts: 781
- Joined: Fri Apr 25, 2003 6:51 pm
- Location: NC, USA
- Contact:
Wow TerryHough, (hope that doesn't rhyme)
Just browsing your site...what a lot of work!
Thanks for sharing, just wish I had more time to go through all this code.
Dare2's spot on, this is a resource worth knowing about.
Just browsing your site...what a lot of work!
Thanks for sharing, just wish I had more time to go through all this code.
Dare2's spot on, this is a resource worth knowing about.
Win10, PB6.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes
"When the facts change, I change my mind" - John Maynard Keynes