Chage GET alignment

Post Reply
Marcelo Via Giglio
Posts: 1033
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Chage GET alignment

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Marcelo Via Giglio
Posts: 1033
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Post 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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Chage GET alignment

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

Yes, thats a good idea :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Marcelo Via Giglio
Posts: 1033
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Post 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
Post Reply