DEFINE BUTTONBAR oBar SIZE 48, 48 OF oWnd
DEFINE BUTTON oBtt1 PROMPT "Salir" OF oBar ACTION oWnd:End() TOOLTIP "Salir"
oBtt1:nWidth := 96
DEFINE BUTTONBAR oBar SIZE 48, 48 OF oWnd
DEFINE BUTTON PROMPT "Salir" OF oBar ACTION oWnd:End() TOOLTIP "Salir"
oBar:aControls[ 1 ]:nWidth := 96
TimStone wrote:Unfortunately those do not work.
The first option does not change the width.
The second option provides a create error ...
Tim
#include "Fivewin.ch"
Function Main()
local oWnd
local oBar
local oBtt1
local oBtt2
DEFINE WINDOW oWnd FROM 0, 0 TO 660, 1100 TITLE "Test" PIXEL
DEFINE BUTTONBAR oBar SIZE 48, 48 OF oWnd
DEFINE BUTTON oBtt1 PROMPT "Salir" OF oBar ACTION oWnd:End() TOOLTIP "Salir"
oBtt1:nWidth := 96
// or, also run OK
//oBar:aControls[ 1 ]:nWidth := 96
DEFINE BUTTON oBtt2 PROMPT "Test" OF oBar ACTION ( MsgInfo( "Test" ) ) TOOLTIP "Test"
ACTIVATE WINDOW oWnd
Return NIL
cnavarro wrote:TimStone wrote:Unfortunately those do not work.
The first option does not change the width.
The second option provides a create error ...
Tim
My sample run OK
- Code: Select all Expand view
#include "Fivewin.ch"
Function Main()
local oWnd
local oBar
local oBtt1
local oBtt2
DEFINE WINDOW oWnd FROM 0, 0 TO 660, 1100 TITLE "Test" PIXEL
DEFINE BUTTONBAR oBar SIZE 48, 48 OF oWnd
DEFINE BUTTON oBtt1 PROMPT "Salir" OF oBar ACTION oWnd:End() TOOLTIP "Salir"
oBtt1:nWidth := 96
// or, also run OK
//oBar:aControls[ 1 ]:nWidth := 96
DEFINE BUTTON oBtt2 PROMPT "Test" OF oBar ACTION ( MsgInfo( "Test" ) ) TOOLTIP "Test"
ACTIVATE WINDOW oWnd
Return NIL
REDEFINE BUTTONBAR oBar2 ID 102 SIZE 60,60 OF oFld:aDialogs[ 1 ] 2015
oBar2:bClrGrad := aPubGrad
DEFINE BUTTON oBtn2b OF oBar2 RESOURCE "HRSAVE" PROMPT "Save" TOOLTIP "Save General Data" ;
ACTION ( ::saveWO( ), oFld:update( ) )
DEFINE BUTTON oBtn2c OF oBar2 RESOURCE "CFXMBR" PROMPT "myCARFAX" TOOLTIP "myCarfax" ACTION MsgInfo( "Working" )
oBtn2c:nWidth := 120
CONTROL "", 102, "TBar", 0|WS_CHILD|WS_VISIBLE, 0,0, 660, 30
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 116 guests