Page 1 of 1
Chage GET alignment
Posted: Tue Apr 17, 2007 6:20 pm
by Marcelo Via Giglio
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
Posted: Tue Apr 17, 2007 11:57 pm
by Antonio Linares
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 )
Posted: Wed Apr 18, 2007 12:45 pm
by Marcelo Via Giglio
Hello Antonio,
thanks for your reply, I tryed it but not work, the get disappear, another suggestion ?
thanks and regards
Marcelo
Re: Chage GET alignment
Posted: Wed Apr 18, 2007 2:19 pm
by Enrico Maria Giordano
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
Posted: Wed Apr 18, 2007 2:41 pm
by Antonio Linares
Enrico,
Yes, thats a good idea
Posted: Wed Apr 18, 2007 3:02 pm
by Marcelo Via Giglio
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
Posted: Wed Apr 18, 2007 3:05 pm
by Enrico Maria Giordano
There is no other way, I'm afraid.
EMG