Page 1 of 1

tGet Question

Posted: Fri Feb 23, 2007 6:36 am
by AlexSchaft
Hi,

Why are comma's removed from a picture string?

METHOD GotFocus( hCtlLost ) CLASS TGet

::lFocused = .t.

#ifdef __XHARBOUR__
::oGet:VarGet()
#endif

if ! Empty( ::cPicture ) .and. ::oGet:type == "N"
::oGet:Picture := StrTran( ::cPicture, ",", "" )
endif

Never mind

Posted: Fri Feb 23, 2007 6:41 am
by AlexSchaft
I see now that it becomes confusing when capturing.

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

Alex

Posted: Fri Feb 23, 2007 9:25 am
by Antonio Linares
Alex,

Its removed for a better capturing

Posted: Fri Feb 23, 2007 5:15 pm
by James Bott
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