wishlist : textbox autoscroll

Moderator: Moderator Group

wishlist : textbox autoscroll

Postby Thomas_BlackOut » Sun Mar 30, 2014 11:24 pm

Hi,

It would be nice if the textbox have an autoscroll feature. I sometimes use them as an internal log display to see if everything is running as intended. And it would be nice to have the textbox scroll as I append text in it to always see the latest information.

Or if we can prepend text with something like 'WDTextboxPrepend,ID,value' it would work too.

Thanks!

Thomas
Thomas Lamoureux
Thomas_BlackOut
 
Posts: 11
Joined: Mon Jan 30, 2012 7:56 pm

Re: wishlist : textbox autoscroll

Postby Dennis Kuypers » Tue Apr 15, 2014 6:11 pm

Hi,

here is a WDTextBoxPrepend alternative with a function

Create a new function with the signature: log{message}

Code: Select all
' Make sure that temporary variables exist
VString,__tmp_log,

' Store current log
VValue,__tmp_log,textbox1.Text

' Clean up
WDTextboxClear,1

' Write new message
WDTextboxAppend,1,message

' Newline
WDTextboxNewline,1

' Restore previous log contents
WDTextboxAppend,1,__tmp_log


Now you can write to your loggin textbox (I assumed TextBox 1) from all scripts with
Code: Select all
log{My Message here!}


Best regards
Dennis
Dennis Kuypers
(former Product Developer, Software)
Dennis Kuypers
coolux Germany
 
Posts: 771
Joined: Thu Jul 05, 2012 12:18 pm


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 33 guests

cron