Page 1 of 1

btnbmp changes from 1707 to 1906

Posted: Sat Oct 05, 2019 7:18 pm
by Rick Lipkin
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

 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

Re: btnbmp changes from 1707 to 1906

Posted: Sun Oct 06, 2019 8:59 am
by ukoenig
Rick,

maybe the infos You are looking for.

http://forums.fivetechsupport.com/viewt ... on#p223504

regards
Uwe :?:

Re: btnbmp changes from 1707 to 1906

Posted: Sun Oct 06, 2019 3:03 pm
by Rick Lipkin
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