FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Chage GET alignment
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Chage GET alignment
Posted: Tue Apr 17, 2007 06:20 PM

Hello,

somebody know how can I change the get alignment (rigth, left, center) in run time, the get is defined from resource

some idea

regards

Marcelo

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Chage GET alignment
Posted: Tue Apr 17, 2007 11:57 PM

Marcelo,

You may try this:

nStyle = GetWindowLong( oGet:hWnd, GWL_STYLE )

// Changes nStyle from ES_LEFT to ES_RIGHT
nStyle = nOr( nXor( nStyle, ES_LEFT ), ES_RIGHT )

SetWindowLong( oGet:hWnd, GWL_STYLE, nStyle )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Chage GET alignment
Posted: Wed Apr 18, 2007 12:45 PM

Hello Antonio,

thanks for your reply, I tryed it but not work, the get disappear, another suggestion ?

thanks and regards

Marcelo

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Chage GET alignment
Posted: Wed Apr 18, 2007 02:19 PM
Marcelo Via Giglio wrote:Hello,

somebody know how can I change the get alignment (rigth, left, center) in run time, the get is defined from resource

some idea

regards

Marcelo


You can't, as far as I know. Try to define three GETs, one for each style, and hide all of them but the one with the requested style.

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Chage GET alignment
Posted: Wed Apr 18, 2007 02:41 PM

Enrico,

Yes, thats a good idea :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Chage GET alignment
Posted: Wed Apr 18, 2007 03:02 PM

Enrico.

yes these was an idea, but I wanted to know another way, ok, if you konw other way, please tell me, and if I find other solution I will post here

regards

Marcelo

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Chage GET alignment
Posted: Wed Apr 18, 2007 03:05 PM

There is no other way, I'm afraid.

EMG

Continue the discussion