As a workaround, use SIZE clause.
EMG
As a workaround, use SIZE clause.
EMG
DEFAULT nWidth := SAY_CHARPIX_W * Len( ::cCaption ) - 4DEFAULT nWidth := GetTextWidth( 0, ::cCaption, IIF (oFont != nil, oFont:hFont, oWnd:oFont:hFont ) )::nWidth := GetTextWidth( 0, ::cCaption, ::oFont:hFont)Stefan,
We have modified it as per your advise, many thanks ![]()
A little modifications in your code:
DEFAULT nWidth := GetTextWidth( 0, ::cCaption, If( oFont != nil, oFont:hFont,;
If( oWnd:oFont != nil, oWnd:oFont:hFont,) ) )
::nWidth := GetTextWidth( 0, ::cCaption, If( ::oFont != nil, ::oFont:hFont,) )
Hello Mr.Antonio
Where to add the changes in SAY.PRG
Thanks
Antonio Linares wrote:Stefan,
We have modified it as per your advise, many thanks