Numeric get from right to left

Post Reply
User avatar
Pedro Faro
Posts: 31
Joined: Sun Jan 29, 2006 6:34 pm
Location: Lisboa-Portugal
Contact:

Numeric get from right to left

Post 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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Numbers

Post 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.
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
User avatar
Pedro Faro
Posts: 31
Joined: Sun Jan 29, 2006 6:34 pm
Location: Lisboa-Portugal
Contact:

Post by Pedro Faro »

Hi

Tanks for your replies.

The solution is specify in workshop "multiple lines".

Best regards
Post Reply