Post Reply 
How to arrange labels within the INPUT command?
03-27-2015, 11:38 AM (This post was last modified: 03-27-2015 11:43 AM by DrD.)
Post: #4
RE: How to arrange labels within the INPUT command?
Arranging labels independently may not be a built in feature of the INPUT command, but in a desparate act of dogged determination you could embellish this skeleton idea to possibly achieve what you are after, (this is just a 'food for thought' notion, not a fully working example):

Code:

EXPORT Test()
BEGIN
LOCAL A:=0;
local black:=rgb(0,0,0),
      cyan:=rgb(245,250,255),
      white:=rgb(255,255,255),
      blue:=rgb(0,0,255);
local title:="title",label:="Label"; 

rect_p(G0,0,0,320,240,cyan);                   //  Clear G0 graphic screen.
rect_p(G0,0,0,320,18,black,blue);              //  Clear G0 "title"
rect_p(G0,132,107,155,125,black,white);     //  Clear a rectangle for use as an input field

textout_p(title,G0,160-3*length(title),2,3,white,40,blue);  //  Display "title" text
textout_p(label,G0,160,109,3,black,50,cyan);                //  Display "Label" on RIGHT side the input field <the main objective!>
textout_p(IP(A),G0,135,109,3,black,9,white);                //  This just forces "0" into the input field, as an example 
textout_p("Enter value for Label",G0,0,204,3,black,320,cyan);  //  Help line shows just above a soft button choices 

drawmenu("Edit","","","","Cancel","OK");    //  This is a dummy soft button field.

wait(-1); // displays the above activity for awhile
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to arrange labels within the INPUT command? - DrD - 03-27-2015 11:38 AM



User(s) browsing this thread: 4 Guest(s)