FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Numeric get from right to left
Posts: 31
Joined: Sun Jan 29, 2006 06:34 PM
Numeric get from right to left
Posted: 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

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Numeric get from right to left
Posted: Wed Nov 21, 2007 09: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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Numbers
Posted: 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
Posts: 31
Joined: Sun Jan 29, 2006 06:34 PM
Numeric get from right to left
Posted: Thu Nov 22, 2007 06:03 PM

Hi

Tanks for your replies.

The solution is specify in workshop "multiple lines".

Best regards

Continue the discussion