Numeric get from right to left

Numeric get from right to left

Postby Pedro Faro » Wed Nov 21, 2007 12:06 pm

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
Pedro Faro
 
Posts: 31
Joined: Sun Jan 29, 2006 6:34 pm
Location: Lisboa-Portugal

Postby James Bott » Wed Nov 21, 2007 9:48 pm

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

Numbers

Postby TimStone » Wed Nov 21, 2007 11:44 pm

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
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby Pedro Faro » Thu Nov 22, 2007 6:03 pm

Hi

Tanks for your replies.

The solution is specify in workshop "multiple lines".

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 85 guests