Author | Topic: SL1 v1.9.355 / XbpSpinButton() / o:increment / o:master | |
---|---|---|
AUGE_OHR | SL1 v1.9.355 / XbpSpinButton() / o:increment / o:master on Wed, 06 Apr 2011 17:46:05 +0200 hi, with SL1 v1.9.355 we got XbpSpinButton():increment now i have 2 x XbpSpinButton() and made one to XbpSpinButton():master *** Code *** ::oStartHH := XbpSpinButton():new( ::oStatTime,, { 54,4 },{20,20},; {{XBP_PP_BGCLR,XBPSYSCLR_ENTRYFIELD}}) ::oStartHH:bufferLength := 2 ::oStartHH:padWithZeros := .T. ::oStartHH:setNumLimits(-1,25) ::oStartHH:increment := 1 here Hour = 1 ::oStartHH:tabStop := .T. ::oStartHH:dataLink := VARBLOCK(@::nStartHH) ::oStartHH:endSpin := {| mp1,mp2,oXbp | ::LimitSpin(::oStartHH,1)} ::oStartHH:keyboard := {| mp1,mp2,oXbp | ::LimitSpin(::oStartHH,1)} ::oStartHH:down := {| mp1,mp2,oXbp | ::LimitSpin(::oStartHH,1)} ::oStartHH:up := {| mp1,mp2,oXbp | ::LimitSpin(::oStartHH,1)} ::oStartHH:killInputFocus := {| mp1,mp2,oXbp | ::oStartHH:getData()} ::oStartMM := XbpSpinButton():new( ::oStatTime,, { 74, 4 },{40,20},; {{XBP_PP_BGCLR,XBPSYSCLR_ENTRYFIELD}}) ::oStartMM:bufferLength := 2 ::oStartMM:padWithZeros := .T. ::oStartMM:setNumLimits(-1,31) ::oStartMM:increment := 30 here 30 Min ::oStartMM:tabStop := .T. ::oStartMM:dataLink := VARBLOCK(@::nStartMM) ::oStartMM:endSpin := {| mp1,mp2,oXbp | ::LimitSpin(::oStartMM,2)} ::oStartMM:keyboard := {| mp1,mp2,oXbp | ::LimitSpin(::oStartMM,2)} ::oStartMM:down := {| mp1,mp2,oXbp | ::LimitSpin(::oStartMM,2)} ::oStartMM:up := {| mp1,mp2,oXbp | ::LimitSpin(::oStartMM,2)} ::oStartMM:killInputFocus := {| mp1,mp2,oXbp | ::oStartMM:getData()} ::oStartMM:create() ::oStartHH:master := ::oStartMM ::oStartHH:create() *** eof *** if i press Spinbutton o:increment, than allways Value from o:master work for both XbpSpinButton() ?! is this a BUG ? greetings by OHR Jimmy |