tGet Question

tGet Question

Postby AlexSchaft » Fri Feb 23, 2007 6:36 am

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
User avatar
AlexSchaft
 
Posts: 172
Joined: Fri Oct 07, 2005 1:29 pm
Location: Edenvale, Gauteng, South Africa

Never mind

Postby AlexSchaft » Fri Feb 23, 2007 6:41 am

I see now that it becomes confusing when capturing.

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

Alex
User avatar
AlexSchaft
 
Posts: 172
Joined: Fri Oct 07, 2005 1:29 pm
Location: Edenvale, Gauteng, South Africa

Postby Antonio Linares » Fri Feb 23, 2007 9:25 am

Alex,

Its removed for a better capturing
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41940
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby James Bott » Fri Feb 23, 2007 5: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 45 guests

cron