BTNBMP text on 2 lines

BTNBMP text on 2 lines

Postby Marc Vanzegbroeck » Wed Oct 17, 2007 10:36 am

Hi,

Is there a possiblity to set the text of a BTNBMP on 2 lines?
I already tested 'LINE1'+CRLF+'LINE2', but it doesn't work :cry: .


Thanks,
Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby Antonio Linares » Wed Oct 17, 2007 10:47 am

Marc,

You have to modify the Class TBtnBmp to paint more than one line.

Is it placed on a buttonbar 2007 style ?
regards, saludos

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

Postby Marc Vanzegbroeck » Wed Oct 17, 2007 11:28 am

Antonio,

It's not placed on a buttonbar 2007 style.

The text should change depending of data from a database. Sometimes the text is longer then the width of th button. I can't enlarge the size of the button because there is no room anymore. The height of the button is large enough to have two lines.

Regards,
Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby Antonio Linares » Wed Oct 17, 2007 12:07 pm

Marc,

We email you a modified LIB.

Please test it using CRLF in the text, thanks
regards, saludos

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

Postby Marc Vanzegbroeck » Wed Oct 17, 2007 7:43 pm

Thanks Antonio,

It's working very nice!!!

Best regards,
Marc
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby Maurizio » Thu Oct 18, 2007 6:17 am

Hello Antonio

Is this modify present in the new FW ?

Regards MAurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Postby Antonio Linares » Thu Oct 18, 2007 7:56 am

Maurizio,

It will be included in FWH 7.11.

Anyhow, if you need it now, please email me and we will provide you the modified OBJs
regards, saludos

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

Postby Richard Chidiak » Thu Oct 18, 2007 8:12 am

Antonio

Will you provide the same change for buttonbmp ?

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Antonio Linares » Thu Oct 18, 2007 9:12 am

Richard,

Its not that simple as we are calling the standard Windows Button paint procedure and if we override it, then we will not get the standard button painting :-(

CallWindowProc( ::nOldProc, ::hWnd, WM_PAINT, ::hDC, 0 )

Maybe we find a way
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 82 guests