Page 1 of 1

problem with buttonbar

Posted: Tue Oct 22, 2024 9:32 am
by Silvio.Falconi
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

 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

Re: problem with buttonbar

Posted: Tue Oct 22, 2024 2:44 pm
by karinha
prueba asi y comente, pls.

Code: Select all | Expand

// 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.

Re: problem with buttonbar

Posted: Tue Oct 22, 2024 2:46 pm
by karinha
C:\FWH\SAMPLES\SILVBUTB.RC

Code: Select all | Expand

#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.

Re: problem with buttonbar

Posted: Wed Oct 23, 2024 6:50 am
by Silvio.Falconi
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

Re: problem with buttonbar

Posted: Wed Oct 23, 2024 11:51 am
by karinha
I asked to test to see if it was a defect in your version, probably FWH24.09.

Regards, saludos.