Jump in a ListIconGadget

Just starting out? Need help? Post your questions and find answers here.
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 Umrof.

Hallo!

I have a listIconGadget with 1000 entrys. I see entry 1-10. Now I will see entry 600. How can i show the entry automatic. Is there a command for this "Auto-Scrolling" ?

Thanks for your help,

Umrof
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 tranquil.

what happens if you use SetGadgetState(#ListviewGadgetID,600) ??

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
System 2: Mobile Pentium 4 2.4GHz 512 MB DDR GeForce4 420-32, Windows XP Home
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 Umrof.

When I used SetGadgetState, number 600 is marked, but I can't see it. I see number 1 to 10. I must use the Scrollbar to see it.
But I want to see it automaticaly, when number 600 is marked with SetGadgetState....I will set the state to 600 and the Gadget scrolls to this entry....
Any idea?

Umrof
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 horst.

SendMessage_(GadgetID(#ListView),#LVM_ENSUREVISIBLE,index,1)

where #ListView is your gadget number, index = 600


Horst
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 Umrof.

Works perfect! Thank you very much!
Post Reply