FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour btnbmp changes from 1707 to 1906
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
btnbmp changes from 1707 to 1906
Posted: Sat Oct 05, 2019 07:18 PM
To All

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

This is the image with fwh 1707





This is the same code with fwh 1906



This is the code .. nothing has changed
Code (fw): Select all Collapse
 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
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: btnbmp changes from 1707 to 1906
Posted: Sun Oct 06, 2019 08:59 AM

Rick,

maybe the infos You are looking for.

viewtopic.php?f=3t=37400p=223504hilit=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.
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: btnbmp changes from 1707 to 1906
Posted: Sun Oct 06, 2019 03: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

Continue the discussion