Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to draw a text box?

Status
Not open for further replies.

syskplim

Technical User
Nov 17, 2003
46
0
0
MY
how to draw a text box? let say from (5,20) to (7,59) in ASM, if i want to create a menu with a Title Box? Something like below? sorry! i don't know how to draw or paste a box here.


-----------------
| TEXT HERE | 
-----------------

1. XXXXXXXXXXXXX
2. XXXXXXXXXX

Selection: [X]





---->ASM fresher need help!<----

With kind regards.
syskplim@streamyx.com
 
just give us an idea what platform r u coding for?
 
16 bit os version. i am learning MASM611. :)



---->ASM fresher need help!<----

With kind regards.
syskplim@streamyx.com
 
Platform: Windows, Macintosh, Unix/Linux... ;-)

Example: Windows XP

Have Fun, Be Young... Code BASIC
-Josh
cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
16 bit os version. DOS. :)

---->ASM fresher need help!<----

With kind regards.
syskplim@streamyx.com
 
syskplim,

You can use DOS characters to draw the box. For example:

TopLine db '=',0
LeftLine db '|',0
RightLine db '|',0
BottomLine db '=',0

Now you can use a loop routine to display how many characters for TopLine and BottomLine (X2 - X1), do the same with LeftLine and RightLine (Y2 - Y1).

There are DOS chars that can be used to display a nice Boxes. I just don't remember that. Please check you DOS manual :)

Hope it helps a little

-- AirCon --
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top