FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour BTNBMP text on 2 lines
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
BTNBMP text on 2 lines
Posted: 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

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
BTNBMP text on 2 lines
Posted: 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
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
BTNBMP text on 2 lines
Posted: 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

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
BTNBMP text on 2 lines
Posted: 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
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
BTNBMP text on 2 lines
Posted: Wed Oct 17, 2007 07:43 PM

Thanks Antonio,

It's working very nice!!!

Best regards,
Marc

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
BTNBMP text on 2 lines
Posted: Thu Oct 18, 2007 06:17 AM

Hello Antonio

Is this modify present in the new FW ?

Regards MAurizio

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
BTNBMP text on 2 lines
Posted: Thu Oct 18, 2007 07: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
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
BTNBMP text on 2 lines
Posted: Thu Oct 18, 2007 08: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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
BTNBMP text on 2 lines
Posted: Thu Oct 18, 2007 09: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

Continue the discussion