Chage GET alignment

Chage GET alignment

Postby Marcelo Via Giglio » Tue Apr 17, 2007 6: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
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

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

Postby Marcelo Via Giglio » 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
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: Chage GET alignment

Postby Enrico Maria Giordano » Wed Apr 18, 2007 2: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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Wed Apr 18, 2007 2:41 pm

Enrico,

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

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

Postby Marcelo Via Giglio » Wed Apr 18, 2007 3: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
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Postby Enrico Maria Giordano » Wed Apr 18, 2007 3:05 pm

There is no other way, I'm afraid.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Natter and 43 guests