Scrolling TextBox with HardwareKeys

Elrick

Member
Licensed User
I'm using a multiline textbox. I want to scroll large text in it by pressing hardware keys and not by moving scrollbar :sign0085:
 

Elrick

Member
Licensed User
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:

Erel

B4X founder
Staff member
Licensed User
Longtime User
Using the new SendMessageToControl method of the updated Hardware library you can send scroll messages to the textbox.
First download it here: http://www.b4x.com/forum/showthread.php?t=2154

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.
 

Attachments

  • TextBoxScroll.sbp
    2.2 KB · Views: 266

Elrick

Member
Licensed User
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:
Top