HP Forums

Full Version: The input function rows....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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]
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
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))
Yes....thank you. That'll help.
-D
Reference URL's