Btnbmp: Different look after link in FWH19.05

Btnbmp: Different look after link in FWH19.05

Postby hua » Wed Jul 03, 2019 4:03 am

Hi guys,
This command,
Code: Select all  Expand view
@ 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.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

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

Postby ukoenig » Wed Jul 03, 2019 5:29 am

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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

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

Postby nageswaragunupudi » Wed Jul 03, 2019 7:04 am

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: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

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

Postby nageswaragunupudi » Fri Jul 05, 2019 3:04 pm

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  Expand view

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
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

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

Postby hua » Fri Jul 05, 2019 3:35 pm

Yes! Thank you Rao
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

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

Postby Rick Lipkin » Sun Oct 06, 2019 3:30 pm

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
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 60 guests