Page 1 of 1

VBDOS: Enter in text box?

Posted: Thu May 21, 2009 11:38 am
by Harry Potter
In VBDOS, how do I divert tabs and Enters to a text box rather than to a control-switch or default button? For that matter, how do I create my own text control with colors and tabs?

Posted: Mon Jun 15, 2009 8:25 pm
by MystikShadows
this is old a bit, but just in case you're still interested :)..

I wrote a tutorial on how to create custom controls in VB-DOS a while back...maybe that will help

you can read it here: http://www.adaworld.com/old_asciiworld/ ... trols.html

Posted: Tue Jun 16, 2009 11:37 am
by Harry Potter
Thank you, but how do I write the code to handle the events, i.e. PAINT and modify? I want to write and scroll colored text and trap TABs and Enters.

Posted: Tue Jun 16, 2009 3:12 pm
by MystikShadows
If you mean how you can change the behavior of the default control. as in before users can add their code to it. you can do that by opening the .bas file and adding the behavior there, under the events you would use. like the paint event or method.

And then you compile it as shown in the tutorial, and things should work out good. :)

Posted: Tue Jun 23, 2009 11:41 am
by Harry Potter
Now, how do I write the code to draw the control? Or handle the control's behavior?