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
.
Thanks,
Marc
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
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
.
Thanks,
Marc
Marc,
You have to modify the Class TBtnBmp to paint more than one line.
Is it placed on a buttonbar 2007 style ?
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,
We email you a modified LIB.
Please test it using CRLF in the text, thanks
Thanks Antonio,
It's working very nice!!!
Best regards,
Marc
Hello Antonio
Is this modify present in the new FW ?
Regards MAurizio
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
Antonio
Will you provide the same change for buttonbmp ?
Richard
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