btnbmp changes from 1707 to 1906

btnbmp changes from 1707 to 1906

Postby Rick Lipkin » Sat Oct 05, 2019 7:18 pm

To All

Having icon placement problems between FWH 1707 and the new FWH 1906

This is the image with fwh 1707

Image



This is the same code with fwh 1906

Image

This is the code .. nothing has changed
Code: Select all  Expand view  RUN

 REDEFINE BTNBMP oBTN1 ID 113           ;
       RESOURCE "ADD16","DADD16","DADD16" ;
       PROMPT "&Add" LEFT 2007;
       ACTION( _BinView( "A", oRsBin,"", "", "", "",;
                           oBtn1,oBtn2,oBtn3,oBtn4,oBtn5 ),oLbx:ReFresh(),oLbx:SetFocus())

       REDEFINE BTNBMP oBTN2 ID 114           ;
       RESOURCE "EDIT16","DEDIT16","DEDIT16" ;
       PROMPT "&Edit" LEFT 2007;
       ACTION( _BinView( "E", oRsBin,"", "", "", "",;
                           oBtn1,oBtn2,oBtn3,oBtn4,oBtn5 ),oLbx:ReFresh(),oLbx:SetFocus())

   REDEFINE BTNBMP oBTN3 ID 115           ;
       RESOURCE "VIEW16","DVIEW16","DVIEW16" ;
       PROMPT "&View" LEFT 2007;
       ACTION( _BinView( "V", oRsBin,"", "", "", "",;
                           oBtn1,oBtn2,oBtn3,oBtn4,oBtn5 ),oLbx:ReFresh(),oLbx:SetFocus())

   REDEFINE BTNBMP oBTN4 ID 116           ;
       RESOURCE "DELETE16","DDELETE16","DDELETE16" ;
       PROMPT "&Del" LEFT 2007;
       ACTION( BinDel( oRsBin,oLbx ) )

   REDEFINE BTNBMP oBTN5 ID 112           ;
       RESOURCE "CANCEL","DCANCEL","DCANCEL" ;
       PROMPT "&Quit" LEFT 2007;
       ACTION ( lOK1 := .F., oWndChild:END() )
 


I have thousands of lines of code .. I hope there is a simple global fix ..

Thanks
Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: btnbmp changes from 1707 to 1906

Postby ukoenig » Sun Oct 06, 2019 8:59 am

Rick,

maybe the infos You are looking for.

viewtopic.php?f=3&t=37400&p=223504&hilit=btnbmp+prompt+position#p223504

regards
Uwe :?:
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 changes from 1707 to 1906

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

Uwe, Rao

The changes that bother me are the placement of the icon .. not necessarily the text placement .. In the above examples .. it looks like the icon placement calculation with the LEFT clause has been modified .. in most cases the LEFT icon placement has pushed the icon a pixel or two left of the boundary of the button or the auto-resize of the icon forces a center placement ?

I know this is a difficult calculation ..

Thanks
Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2666
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 82 guests