Btnbmp: Different look after link in FWH19.05

Post Reply
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Btnbmp: Different look after link in FWH19.05

Post by hua »

Hi guys,
This command,

Code: Select all

@ nTop+= 25, nLeft BTNBMP  PROMPT "E&xit"                SIZE 150, 30 OF oDlg 2007 LEFT ;
   filename ud_bmpDir()+"\quit.bmp" ;
   ACTION ( oDlg:End(), oWnd:End() )
produces different result when I link in FWH19.05. Did I do something wrong?

Before:
Image

After (with FWH19.05)
Image
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: Btnbmp: Different look after link in FWH19.05

Post by ukoenig »

Using spaces You can adjust the prompt-position.
( missing space on left prompt-adjustment ) :!:

Image

prompt adjustment : :!:

Image

METHOD PaintBitmap() CLASS TBtnBmp
if ::nLayOut == LAYOUT_LEFT
...
...
::nBmpMargin := nMargin + nBmpWidth + 5

regards
Uwe :D
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Btnbmp: Different look after link in FWH19.05

Post by nageswaragunupudi »

Uwe
Still, it is not exactly like in FWH1108.
We need to provide some easy way to achieve that
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Btnbmp: Different look after link in FWH19.05

Post by nageswaragunupudi »

Mr. Hua

It is true that in these 8 years, there have been some changes in the appearance.
Presently, these are the possible arrangements:

Image

None of them exactly match the look in FWH1108. We are now providing a switch by way of CLASSDATA lLegacyLookLeftRight.
You may set this at the beginning of your application.

Code: Select all

TBtnBmp():lLegacyLookLeftRight := .t.
 
Then all your buttons with LEFT/RIGHT clauses will have the same look as in FWH1108.

Image

Will this be ok for you?
Regards

G. N. Rao.
Hyderabad, India
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: Btnbmp: Different look after link in FWH19.05

Post by hua »

Yes! Thank you Rao
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Btnbmp: Different look after link in FWH19.05

Post by Rick Lipkin »

Rao

All my buttons look like examples 1 or 2 .. and you can pad a few spaces in the front or the back of the prompt to place the text where you want .. With 1906 .. using the TBtnBmp():lLegacyLookLeftRight := .t. .. totally ignores any space padding and the text is snugged up close to the icon .. no spaces in between..

I actually like example 2 with the icon on the left a few pixels from the boundary of the edge of the button and the prompt in the center and if you want .. you can pad spaces to push the prompt manually to the right.

Thanks
Rick Lipkin
Post Reply