Page 1 of 1

Numeric get from right to left

Posted: Wed Nov 21, 2007 12:06 pm
by Pedro Faro
Hi

is possible in :

redefine get oGet var num PICTURE '9999.999'

instead of numbers being writen from left to Right , being writen from right to left like calculators do . The number can have decimals.

Best regards
Pedro Faro

Posted: Wed Nov 21, 2007 9:48 pm
by James Bott
Pedro,

This is from an old forum messge:

------------------------------
> Like many on this NG, I've been using FW for so long that I've forgotten WHY
> I do certain things a certain way.
>
> On the basis of recommendations in the early years, I've ALWAYS been in the
> habit of setting a numeric GET control in BRW as "Text" (not "Number"),
> "Right", "Multiple line" (not "Single line"). Can anyone remind me why we
> were advised to create numerics as "Multiple line" and if the reasoning
> behind it is still relevant. i.e Is there any down side to reverting to
> "Single line"? What do you guys specify for your numeric GETs?
>

This is the only way to make get objects handling numeric vars to align them to the right properly. What I do remember is that the height of the get has to be at lease 13 pixels or it will show nothing under Win 3.x.-----------------------

James

Numbers

Posted: Wed Nov 21, 2007 11:44 pm
by TimStone
The edit control in the resource should be set as shown in this one:

CONTROL "", 403, "Edit", ES_RIGHT|ES_MULTILINE|WS_BORDER|WS_TABSTOP, 104, 52, 56, 10

Of course the ID number would be different, as would the last 4 digits identifying the control position and size.

Posted: Thu Nov 22, 2007 6:03 pm
by Pedro Faro
Hi

Tanks for your replies.

The solution is specify in workshop "multiple lines".

Best regards