FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour tGet Question
Posts: 172
Joined: Fri Oct 07, 2005 01:29 PM
tGet Question
Posted: Fri Feb 23, 2007 06:36 AM
Hi,

Why are comma's removed from a picture string?

METHOD GotFocus( hCtlLost ) CLASS TGet

::lFocused = .t.

#ifdef __XHARBOUR__
::VarGet()
#endif

if ! Empty( ::cPicture ) .and. ::type == "N"
::Picture := StrTran( ::cPicture, ",", "" )
endif
Posts: 172
Joined: Fri Oct 07, 2005 01:29 PM
Never mind
Posted: Fri Feb 23, 2007 06:41 AM

I see now that it becomes confusing when capturing.

Has anybody done alterations to fill the get from the right?

Alex

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
tGet Question
Posted: Fri Feb 23, 2007 09:25 AM

Alex,

Its removed for a better capturing

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
tGet Question
Posted: Fri Feb 23, 2007 05:15 PM
Alex,

I don't know if this is what you are looking for, but here is an old message on numeric GETs. I haven't tried it.

James

From: "Luis Krause Mantilla" <lkrausem@home.com>
Subject: Re: Multiple line numeric gets
Date: Thursday, November 08, 2001 7:16 AM

Colin Wisbey wrote:

> 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.


>
> I've just got rid of CTL3D but my main dialog has a lot of numeric GETs,
> each set up as "Multiple line", and their values no longer display. Their
> height has always been 10 and has always been fine when using CTL3D.
> Without CTL3D, they display OK if I either increase the height of each GET
> control from 10 to 11, or if I change them to "Single line", but not if I
> leave them as "Multiple line" and 10 height.

As said above, I always create my gets with a size of 13, regardless if they are numerics or not so I don't have to wory on which OS the app may run.

--
Luis Krause Mantilla
lkrausem at home dot com
luis_krause at hotmail dot com
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion