Dear support,
I have all developed the GUI form with two buttons, a scrollbar and Timer.
My question is how can I translate this piece of code into PBWin?
Function FORM1_BTNSTART_BN_CLICKED ( _
ControlIndex As Long, _ ' index in Control Array
hWndForm As Dword, _ ' handle of Form
hWndControl As Dword, _ ' handle of Control
idButtonControl As Long _ ' identifier of button
) As Long
'Timer1.Interval = HScroll.Value
'Timer1.Enabled = Enabled
SetTimer(FRMLEDBLINKER, IDTIMER1, 1000 + value, %Null)
End Function
This is the problem how I can translate it into PBWin.
'Timer1.Interval = HScroll.Value
'Timer1.Enabled = Enabled
Second this function
=============
'Private Sub Timer1_Timer()
' ..... code
'
'End Sub
I try to translate in this:
Function FRMLEDBLINKER_IDTIMER1_WM_TIMER ( _
hWndForm As Dword, _ ' handle of Form
wTimerID As Dword _ ' the timer identifier
) As Long
'FRMLEDBLINKER : Hoofdformulier (Dialog)
'IDTIMER1 : Naam van de control in ons geval TIMER (idTimer)
'WM_TIMER : de eventhandler Timer
End Function
Thanks if anyone here can help me on track because if all those projects on the forum then convert freeware
Stephane,
The FF3 Timer Control does not have an "Enable/Disable" property that I am aware of. The would be a good suggestion for the wish list. I would like to see such a property added for the Timer Control. It would make it easier to turn the timer off and on. If you want to turn the Timer control off (out side of the WM_TIMER function) then you can use the KILLTIMER function and turn it back on by using the SETTIMER fuction.
Try the example program I posted on another thread about the Timer Control.