problem with buttonbar

problem with buttonbar

Postby Silvio.Falconi » Tue Oct 22, 2024 9:32 am

Image


when i select the second option it goes over the third option i.e. it "eats" part of the image of the third option

Code: Select all  Expand view
DEFINE BUTTONBAR oBar OF oDlg  SIZE 60,25  TOP   2013 BORDER

       DEFINE BUTTON aBtnBar[1] OF oBar PROMPT "Salva"  RESOURCE "SALVA" LEFT  ACTION  NIL
       DEFINE BUTTON aBtnBar[2] OF oBar PROMPT "Guida"  RESOURCE "AIUTO" LEFT ACTION  NIL GROUP
       DEFINE BUTTON aBtnBar[3] OF oBar PROMPT "Chiudi" RESOURCE "CHIUDI" LEFT   ACTION  NIL
 


It probably does this when we use bmps, but when we use pngs it works ok

Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: problem with buttonbar

Postby karinha » Tue Oct 22, 2024 2:44 pm

prueba asi y comente, pls.

Code: Select all  Expand view

// C:\FWH\SAMPLES\SILVBUTB.PRG

#include "FiveWin.ch"
#include "constant.ch"

FUNCTION Main()

   LOCAL oDlg, oBar, oFont
   LOCAL nBottom := 24
   LOCAL nRight  := 80
   LOCAL nWidth  :=  Max( nRight * DLG_CHARPIX_W, 180 )
   LOCAL nHeight := nBottom * DLG_CHARPIX_H
   LOCAL aBtnBar := ARRAY(10)

   SkinButtons()

   DEFINE FONT oFont NAME "Ms Sans Serif" SIZE 0, -14 BOLD

   DEFINE DIALOG oDlg TITLE "Test ButtonBar" SIZE nWidth, nHeight PIXEL ;
      COLOR CLR_BLACK, CLR_WHITE RESIZABLE FONT oFont TRANSPARENT

   oDlg:lHelpIcon := .F.

   DEFINE BUTTONBAR oBar OF oDlg BUTTONSIZE 65, 40 _3DLOOK TOP 2013 BORDER

   WITH OBJECT oBar

      oBar:SetFont( oFont )
      oBar:nClrText := METRO_VIOLET
      oBar:Adjust()

   END

   DEFINE BUTTON aBtnBar[1] OF oBar PROMPT "Salva"  RESOURCE "SAVE" TOP ;
      ACTION( NIL ) NOBORDER GROUP GDIP

   DEFINE BUTTON aBtnBar[2] OF oBar PROMPT "Guida"  RESOURCE "OPEN" TOP ;
      ACTION( NIL ) NOBORDER GROUP GDIP

   DEFINE BUTTON aBtnBar[3] OF oBar PROMPT "Chiudi" RESOURCE "STAR" TOP ;
      ACTION( NIL ) NOBORDER GROUP GDIP

   DEFINE BUTTON aBtnBar[4] OF oBar PROMPT "Exit"   RESOURCE "EXIT" TOP ;
      ACTION( oDlg:End() ) CANCEL NOBORDER GROUP GDIP

   ACTIVATE DIALOG oDlg CENTERED

   oFont:End()

RETURN NIL

// FIN / END - kapiabafwh@gmail.com
 


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: problem with buttonbar

Postby karinha » Tue Oct 22, 2024 2:46 pm

C:\FWH\SAMPLES\SILVBUTB.RC

Code: Select all  Expand view

#ifndef __64__
  1 24 ".\WinXP\WindowsXP.Manifest"
#endif

#ifdef __64__
   1 24 "WinXP/WindowsXP.Manifest64"
#endif

OPEN   BITMAP "..\\bitmaps\\16x16\\open.bmp"
STAR   BITMAP "..\bitmaps\16x16\favorite.bmp"
SAVE   BITMAP "..\bitmaps\save.bmp"
EXIT   BITMAP .\..\bitmaps\16x16\exit.bmp
 


Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: problem with buttonbar

Postby Silvio.Falconi » Wed Oct 23, 2024 6:50 am

karinha wrote:prueba asi y comente, pls.


Regards, saludos.


first of all this is english language forum, you should write in english
then how dare you order me to comment on your useless games?

I'm tired of your continued behavior

you're not answering to a rookie who just started programming with fwh,I've been programming with fwh since 1991, since when have you been using fwh?

if I showed you an image of buttons overload it means that I was getting that error with bmp files, I'm not interested in trying your tests
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: problem with buttonbar

Postby karinha » Wed Oct 23, 2024 11:51 am

I asked to test to see if it was a defect in your version, probably FWH24.09.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 71 guests