Page 1 of 1
BTNBMP text on 2 lines
Posted: Wed Oct 17, 2007 10:36 am
by Marc Vanzegbroeck
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
Posted: Wed Oct 17, 2007 10:47 am
by Antonio Linares
Marc,
You have to modify the Class TBtnBmp to paint more than one line.
Is it placed on a buttonbar 2007 style ?
Posted: Wed Oct 17, 2007 11:28 am
by Marc Vanzegbroeck
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
Posted: Wed Oct 17, 2007 12:07 pm
by Antonio Linares
Marc,
We email you a modified LIB.
Please test it using CRLF in the text, thanks
Posted: Wed Oct 17, 2007 7:43 pm
by Marc Vanzegbroeck
Thanks Antonio,
It's working very nice!!!
Best regards,
Marc
Posted: Thu Oct 18, 2007 6:17 am
by Maurizio
Hello Antonio
Is this modify present in the new FW ?
Regards MAurizio
Posted: Thu Oct 18, 2007 7:56 am
by Antonio Linares
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
Posted: Thu Oct 18, 2007 8:12 am
by Richard Chidiak
Antonio
Will you provide the same change for buttonbmp ?
Richard
Posted: Thu Oct 18, 2007 9:12 am
by Antonio Linares
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