Post Reply 
The input function rows....
09-09-2017, 11:10 PM
Post: #1
The input function rows....
Does anyone know the pixel numbers (y coord) for each row for the boxes that the input command draws? Also would like to get the space between each row, etc, etc...
I was trying to draw on an input form to figure it out myself, but you can't do that as the input command doesn't return until you exit it.....
Thanks
-Donald
Find all posts by this user
Quote this message in a reply
09-10-2017, 12:58 AM
Post: #2
RE: The input function rows....
It is somewhat complicated to explain the manipulation of the insertion ranges in cartesian coordinates, but this is related to apps programming. The insertion field is edited with the variation of Xmin, Xmax, Ymin, Ymax.
Solo dispongo de informaciĆ³n en espaƱol al respecto: http://carlos-icg.blogspot.com/2017/08/h...artesianas

[Image: PPL5-018.png]

[Image: PPL5-019.png]

Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
09-10-2017, 03:34 AM
Post: #3
RE: The input function rows....
I understand cartesian vs pixel coordinates, I was curious what the specific values used for the boxes for the input fields were....it could save me time while designing my own. I can always just play around with it to find suitable values by estimating them and changing them and running a test program over and over until I get them right. I was hoping to avoid having to do that (I'm going to write my own widgets).
Thx
-D
Find all posts by this user
Quote this message in a reply
09-11-2017, 03:20 PM
Post: #4
RE: The input function rows....
There are two spacings in use currently. The common one is the "high space" version. Only a few places don't use it. This should simplify things for you. Smile


Code:
static Int const TitleHeight=20; ///< standard height of a title

#define DLG_H_L 22  // line leading (y step) for low spacing (_L) dialogs
#define DLG_H_H 26  // line leading (y step) for high spacing (_H) dialogs

#define DLG_Y_H(DLG_LINE) ((CTitle::TitleHeight+4)+DLG_H_H*(DLG_LINE))
#define DLG_Y_L(DLG_LINE) ((CTitle::TitleHeight+4)+DLG_H_L*(DLG_LINE))

TW

Although I work for the HP calculator group, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
09-11-2017, 08:29 PM
Post: #5
RE: The input function rows....
Yes....thank you. That'll help.
-D
Find all posts by this user
Quote this message in a reply
Post Reply 




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