TreeGadgetItem Hidden Value

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by nigelwale.

The more I use PB, the more I like it - great work thanks ...

I cannot seem to be able to change the FontSize in the PB editor, though which is a pain. It would also be really nice if File/Open opened in the same directory as the previous file, not the Windows Desktop.

It would be really useful to be able to apply a hidden value to listing-type Gadgets such as the TreeGadget & ComboBoxGadget - I'm trying to write an application that generates *huge* TreeGadgets and the only way to manage the User Viewable List and the Hidden Data is with a *behind the scenes* Array which I cant extend (I'm trying to work out Linked Lists) - it would just be so much easier if everything could be held in the TreeGadget itself...
eg:

ComboBoxGadget(GID, 5,10, 50, 200)
AddGadgetItem(GID,-1, Description1$, HiddenValue1$)
AddGadgetItem(GID,-1, Description2$, HiddenValue2$)

TreeGadget(GID,0,0,100,300)
AddTreeGadgetItem(GID,Description1$,HiddenValue1$,0)
AddTreeGadgetItem(GID,Description2$,HiddenValue2$,0)

In Much the same way as HTML allows

VGA
SVGA
SVGA+