Migrando 15.02 a 16.02 -> BtnBar

Migrando 15.02 a 16.02 -> BtnBar

Postby Carles » Thu Feb 25, 2016 3:30 pm

Hola,

Siguiendo con la migración de 15.01 a 16.01 encuentro tambien problemillas de estética en los
btnbar.

- Si no especificamos clausula se dibuja un border muy doble. Con las versiones 15.x se mostraban redoble amarillo (ya estaba bien), y con las 14.x en el standard nada si no te ponias encima

- El disable es horrible :-(, por un lado en las 14.x estaba correcto el tema del colorgray, las 15.x y las 16.x mal

- En la 16.x el bitmap en disable se deforma una barbaridad

Image
Image

Por si quereis probar un ejemplo
Code: Select all  Expand view
#include 'fivewin.ch'

STATIC oWnd

FUNCTION TestWnd()

    LOCAL oHand, oBar, oIcon, oBtn

    DEFINE CURSOR oHand HAND

    DEFINE WINDOW oWnd TITLE 'Test Buttons'
       
        DEFINE BUTTONBAR oBar SIZE 40, 40 _3D OF oWnd
            oBar:bRClicked := {|| NIL }
   
        DEFINE BUTTON       OF oBar NOBORDER  FILE '16Exit.bmp'  ACTION oWnd:End()  
        DEFINE BUTTON  oBtn OF oBar NOBORDER  FILE '16prn1.bmp'     ACTION msginfo( 'Hi')
            oBtn:Disable()     

    ACTIVATE WINDOW oWnd
   
RETU NIL


Alguien mas se ha encontrado con este problema y lo ha solucionado ?

Gracias !
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1136
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: Migrando 15.02 a 16.02 -> BtnBar

Postby Antonio Linares » Thu Feb 25, 2016 5:00 pm

Charly,

gracias por comentárnoslo

Vamos a revisarlo cuanto antes :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Migrando 15.02 a 16.02 -> BtnBar

Postby nageswaragunupudi » Mon Feb 29, 2016 10:36 am

The problems pointed out relate to 16.01.
16.02 is yet to be released.

We regret that backward compatibility in case "noborder" buttons created on standard (non 200? style) buttonbars was broken from version 15.04. This is fixed in 16.02 to be released at anytime soon.

These are the fixes:

Bar.prg
For this code in line 27
Code: Select all  Expand view
  DATA  l3D, l97Look INIT .F.
 

Substitute ( comment out or remove INIT .F. )
Code: Select all  Expand view
  DATA  l3D, l97Look // INIT .F.  
 


btnbmp.prg


At the end of the METHOD PaintBitmap(), add these 3 lines of code:
Code: Select all  Expand view
  if lGray .and. !( ::l2007 .or. ::l2010 .or. ::l2013 .or. ::l2015 )
      BtnDisable( ::hWnd, ::hDC )
   endif
 


In the METHOD PaintBorder(), please locate these lines:
Code: Select all  Expand view
              if ::l2007 .or. ::l2010 .or. ::l2013 .or. ::l2015
                  RoundBox( ::hDC, 2, 2, ::nWidth - 3, ::nHeight - 3, 6, 6,;
                            nRGB( 221, 207, 155 ) )
               endif
 

Please remove or comment out or remove or disable the if condtion:
Code: Select all  Expand view
              //if ::l2007 .or. ::l2010 .or. ::l2013 .or. ::l2015
                  RoundBox( ::hDC, 2, 2, ::nWidth - 3, ::nHeight - 3, 6, 6,;
                            nRGB( 221, 207, 155 ) )
               //endif
 
Regards

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


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 37 guests