Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Scrolling TextBox with HardwareKeys


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-16-2008, 04:11 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 55
Default Scrolling TextBox with HardwareKeys

Hello! Is there a way to scroll text in TextBox with Up and Down keys?
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 04:28 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Are you referring to a single line textbox or multiline textbox?
Reply With Quote
  #3 (permalink)  
Old 04-16-2008, 05:04 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 55
Default

I'm using a multiline textbox. I want to scroll large text in it by pressing hardware keys and not by moving scrollbar
Reply With Quote
  #4 (permalink)  
Old 04-16-2008, 06:39 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

If the textbox is focued then pressing the up/down keys should scroll the text.
Reply With Quote
  #5 (permalink)  
Old 04-16-2008, 06:53 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 55
Default

Not absolutely so. It scroll the caret, not the text. And yes, when the caret is in bottom of the TextBox, text will scroll. But if i need to scroll text up, i'll have to move caret from the bottom to the top. And the caret's blinking is so annoying But i want to make something like...err...text reader, where the text will scroll line-by-line by pressing HardwareKey. I use TextBox instead of something different because i need to copy\paste text.

Last edited by Elrick : 04-16-2008 at 06:56 PM.
Reply With Quote
  #6 (permalink)  
Old 04-16-2008, 08:20 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

A better solution will be available in a day or two.
Reply With Quote
  #7 (permalink)  
Old 04-17-2008, 04:54 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Using the new SendMessageToControl method of the updated Hardware library you can send scroll messages to the textbox.
First download it here: Hardware library - V3.4

I've used 4 buttons: PageUp, PageDown, LineUp, LineDown
You could use a HardKey object to catch the hardware buttons and then send the scroll message.
Attached Files
File Type: sbp TextBoxScroll.sbp (2.2 KB, 41 views)
Reply With Quote
  #8 (permalink)  
Old 04-17-2008, 05:30 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 55
Default

Erel, this is exactly what i need! Thank you! And it's a nice joke with text to scroll in demo
And another question - where can i find the description of all system messages ?

Last edited by Elrick : 04-17-2008 at 05:40 PM.
Reply With Quote
  #9 (permalink)  
Old 04-17-2008, 05:46 PM
Knows the basics
 
Join Date: Jan 2008
Posts: 55
Default

Found it here: http://www.autohotkey.com/docs/misc/SendMessageList.htm
...And in the Help file too I must read the Help files before asking... Nice lesson, yes...

Last edited by Elrick : 04-17-2008 at 05:55 PM.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB 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
scrolling image with limit europe Questions & Help Needed 1 11-07-2008 05:54 PM
Scrolling Tape Calculator erzee Share Your Creations 0 07-22-2008 12:10 PM
Game Graphics w/ Scrolling Background willisgt Questions & Help Needed 3 03-28-2008 02:14 PM
textbox - SelectionStart - scrolling m.zielinski Questions & Help Needed 2 07-02-2007 01:28 PM


All times are GMT. The time now is 03:07 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0