iI wish a buttonbar on botton in a dialog
but I wish show some buttons at left and others at right as this
Any solution please ?
#include "fivewin.ch"
#include "constant.ch"
Function test()
Local nBottom := 33
Local nRight := 115
Local nWidth := Max( nRight * DLG_CHARPIX_W, 180 )
Local nHeight := nBottom * DLG_CHARPIX_H
Local oBar,oDlg
Local oBut[10]
DEFINE DIALOG oDlg ; //OF oParent
TITLE "test" ;
SIZE nWidth, nHeight TRANSPARENT PIXEL
oDlg:nStyle := nOr( WS_OVERLAPPED,WS_THICKFRAME,WS_MAXIMIZEBOX, 0 )
DEFINE BUTTONBAR oBar OF oDlg 2015 SIZE 92,14 BOTTOM
// this buttons are created from left to right
DEFINE BUTTON oBut[1] OF oBar PROMPT "Stampa" LEFT FILENAME ".\BITMAPS\STAMPA.BMP"
DEFINE BUTTON oBut[2] OF oBar PROMPT "Etichette" LEFT FILENAME ".\BITMAPS\ETI.BMP"
DEFINE BUTTON oBut[3] OF oBar PROMPT "Allegati" LEFT FILENAME ".\BITMAPS\ALLEGA.BMP"
DEFINE BUTTON oBut[4] OF oBar PROMPT "Rit.Acconto" LEFT FILENAME ".\BITMAPS\RIT.BMP"
DEFINE BUTTON oBut[5] OF oBar PROMPT "Includi doc. " LEFT FILENAME ".\BITMAPS\GENERA.BMP" GROUP
oBut[5]:DISABLE()
DEFINE BUTTON oBut[6] OF oBar PROMPT "Genera doc " LEFT FILENAME ".\BITMAPS\GENERA.BMP"
// this buttons are created from right to left
DEFINE BUTTON oBut[7] OF oBar LEFT FILENAME ".\BITMAPS\CALC.BMP" action Msgcalc()
DEFINE BUTTON oBut[8] OF oBar LEFT FILENAME ".\BITMAPS\AIUTO.BMP"
DEFINE BUTTON oBut[9] OF oBar PROMPT "Chiudi " LEFT FILENAME ".\BITMAPS\Chiudi.BMP" action oDlg:end()
ACTIVATE DIALOG oDlg CENTERED
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 52 guests