GSM Shop GSM Shop
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > GSM Programming & Reverse Engineering


GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets.

Reply
 
LinkBack Thread Tools Display Modes
Old 02-10-2012, 18:05   #1 (permalink)
Freak Poster
 
Join Date: Jul 2011
Location: Australia/Melbourne
Posts: 122
Member: 1610809
Status: Offline
Sonork: 100.1616347
Thanks Meter: 23
Scroll down a listbox source delphi


Hello !!

I want view always the last line in a listbox, i must do scroll down from code but ... how do it?

Regards.
  Reply With Quote
Old 02-10-2012, 18:38   #2 (permalink)
Freak Poster
 
Join Date: Mar 2009
Posts: 234
Member: 984268
Status: Offline
Thanks Meter: 150
Quote:
Originally Posted by GTunlocker View Post
Hello !!

I want view always the last line in a listbox, i must do scroll down from code but ... how do it?

Regards.
ListBox1.TopIndex := ListBox1.Items.Count -1;

you can add this on Onchange or when adding a new item
  Reply With Quote
The Following User Says Thank You to mustipusti For This Useful Post:
Old 02-10-2012, 22:23   #3 (permalink)
Product Manager
 
orbita's Avatar
 
Join Date: Apr 2002
Location: nckDongle
Posts: 13,325
Member: 11170
Status: Offline
Sonork: 1603694
Thanks Meter: 6,944
ListBox1.Perform(EM_SCROLLCARET, 0, 0);
  Reply With Quote
Old 02-10-2012, 23:05   #4 (permalink)
No Life Poster
 
dzunlocker's Avatar
 
Join Date: Aug 2004
Location: With old & new friends
Age: 49
Posts: 691
Member: 79640
Status: Offline
Sonork: 1577251
Thanks Meter: 238
Quote:
Originally Posted by orbita View Post
ListBox1.Perform(EM_SCROLLCARET, 0, 0);
wrong !!!

EM_XXX msgs are nor for listboxes

ListBox1.Perform(LB_SETTOPINDEX, ListBox1.Items.Count -1,0);

He can also use other messages like

LB_SETCURSEL or LB_SETCARETINDEX with same parms. Depends on what he wants perform.


but Mustipusti's code snippet is easier

Regards;

Last edited by dzunlocker; 02-10-2012 at 23:13.
  Reply With Quote
The Following User Says Thank You to dzunlocker For This Useful Post:
Old 02-11-2012, 09:29   #5 (permalink)
Product Manager
 
orbita's Avatar
 
Join Date: Apr 2002
Location: nckDongle
Posts: 13,325
Member: 11170
Status: Offline
Sonork: 1603694
Thanks Meter: 6,944
Quote:
Originally Posted by dzunlocker View Post
wrong !!!

EM_XXX msgs are nor for listboxes

ListBox1.Perform(LB_SETTOPINDEX, ListBox1.Items.Count -1,0);

He can also use other messages like

LB_SETCURSEL or LB_SETCARETINDEX with same parms. Depends on what he wants perform.


but Mustipusti's code snippet is easier

Regards;

Yes you right. i'am was tired and used richedit code.
Sorry for confuzing.
  Reply With Quote
The Following User Says Thank You to orbita For This Useful Post:
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Signal up and down Moc Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 6 09-29-2001 10:57
5110 flashed down the toilet palladine Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 2 05-22-2001 16:09
Source for all the latest unlock info and products Buffoon GSM Mobile Links 0 03-19-2001 12:18
Nokia link still down?!?! Bads Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 0 03-15-2001 13:08
need advice on 8810 headset/power down problem goof Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 0 02-24-2001 20:56

 



All times are GMT +1. The time now is 05:34.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.20844 seconds with 9 queries

SEO by vBSEO