Lionheart008
09-01-2010, 03:35
please ignore this post, will check my example again, was not quite fit last night, sorry :badday:
new example with "console_simulation" will follow with my next post.
frank
ps: I add here my first example only as bundle.exe. as this example isn't perfect I will send perfect ui example next days, I promise :)
Petr Schreiber
09-01-2010, 11:23
Hi Frank,
you again didn't followed the elemental rules from the post we discussed (http://community.thinbasic.com/index.php?topic=3111.msg23425#msg23425) just a few days ago.
Again random values for control ids, again no test for appropriate message. Uaaa. Especially the second can result in some "mysterious" behavior very hard to track.
And the global hDlg is also not necessary, as you can pick auto allocated CbHndl.
I recommend to not translate line by line, but to think more in detail what the code does, and then recreate it in ThinBASIC.
Regarding the appending the text, have a look at:
CONTROL_AppendText
You have it already at your service, no need for custom function (which you didn't called in your code at all).
Some brief look to help file, from time to time, might save you time later.
For breaking the line, just append $CRLF to the string you print.
Petr