The input function rows....
09-09-2017, 11:10 PM
Post: #1
 webmasterpdx Senior Member Posts: 541 Joined: Sep 2015
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
09-10-2017, 12:58 AM
Post: #2
 Carlos295pz Member Posts: 294 Joined: Sep 2015
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

Viga C | TD | FB
09-10-2017, 03:34 AM
Post: #3
 webmasterpdx Senior Member Posts: 541 Joined: Sep 2015
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
09-11-2017, 03:20 PM
Post: #4
 Tim Wessman Senior Member Posts: 2,096 Joined: Dec 2013
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.

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.
09-11-2017, 08:29 PM
Post: #5
 webmasterpdx Senior Member Posts: 541 Joined: Sep 2015
RE: The input function rows....
Yes....thank you. That'll help.
-D
 « Next Oldest | Next Newest »

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