VBDOS: Enter in text box?

Discuss whatever you want here--both QB and non-QB related. Anything from the DEF INT command to the meaning of life!

Moderators: Pete, Mods

Post Reply
Harry Potter
Veteran
Posts: 111
Joined: Sat Feb 21, 2009 8:19 am
Location: New York, U.S.

VBDOS: Enter in text box?

Post 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?
Joseph Rose, a.k.a. Harry Potter
Creating magic in the computer community...or at least striving to! :(
MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post 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
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
Harry Potter
Veteran
Posts: 111
Joined: Sat Feb 21, 2009 8:19 am
Location: New York, U.S.

Post 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.
Joseph Rose, a.k.a. Harry Potter
Creating magic in the computer community...or at least striving to! :(
MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post 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. :)
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
Harry Potter
Veteran
Posts: 111
Joined: Sat Feb 21, 2009 8:19 am
Location: New York, U.S.

Post by Harry Potter »

Now, how do I write the code to draw the control? Or handle the control's behavior?
Joseph Rose, a.k.a. Harry Potter
Creating magic in the computer community...or at least striving to! :(
Post Reply