Printing text prompt on the same line as a control

new BookmarkLockedFalling
telbourn7
New Member
*

telbourn7 Avatar

Posts: 20Male

Psycho
Full Member
***

Psycho Avatar

Posts: 196

Jerry Muelver
Administrator
*****

Jerry Muelver Avatar

Posts: 521

meerkat
Senior Member
****

meerkat Avatar

Posts: 250

Post by meerkat on Dec 31, 2008 12:23:36 GMT -5

Try something like this:

html "<TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0 bgcolor=wheat>"
html "<TR><TD ALIGN=RIGHT>Left prompt</TD><TD>"
textbox #left,"Left",10
html "</TD></TR><TR><TD ALIGN=RIGHT>"
textbox #right,"Right",10
html "</TD><TD>Right prompt</TD></TR><TR>"
html "<TD ALIGN=CENTER>Top Prompt<BR>"
textbox #top,"Top",10
html "</TD><TD ALIGN=CENTER>"
textbox #bottom,"Bottom",10
html "<BR>Bottom Prompt"
html "</TD></TR>"
html "<TR><TD COLSPAN=2 BGCOLOR=tan ALIGN=CENTER>"
button #gp,"Go", [getData]

html "</TD></TR></TABLE>"
wait
[getData]
print "-------------------"
print #left contents$()
print #right contents$()
print #top contents$()
print #bottom contents$()
wait
Last Edit: Dec 31, 2008 12:48:47 GMT -5 by meerkat
telbourn7
New Member
*

telbourn7 Avatar

Posts: 20Male

Last Edit: Jan 2, 2009 6:49:26 GMT -5 by telbourn7