• Welcome to PlanetSquires Forums.
 

WinFBE - Timer control

Started by Paul Squires, February 25, 2020, 08:34:23 PM

Previous topic - Next topic

Paul Squires

Just an update that I have added a Timer control to the visual designer (it is obviously a non-visual control).

Here are the prototype declares for it:


Type wfxTimer Extends wfxControl
   private:
      _TimerID   as Long
      _Interval  as Long = 1000
      _Enabled   as Boolean = false
      _AutoReset as Boolean = true
     
   Public:
      Declare Constructor( ByRef wszName As WString = "" )
      Declare Property TimerID() As Long
      Declare Property TimerID( ByVal nValue As Long )
      declare property Interval() as Long   
      declare property Interval( byval nValue as long )  ' milliseconds
      Declare Property Enabled() As boolean
      Declare Property Enabled( ByVal nValue As Boolean)
      Declare Property AutoReset() As boolean
      Declare Property AutoReset( ByVal nValue As Boolean)
     
      declare function StartTimer() as Long
      declare function StopTimer() as Long
      declare function Show(byval hWndParent as hwnd = 0) as long override
       
      OnAllEvents        as function( byref sender as wfxTimer, byref e as EventArgs ) as LRESULT
      OnDestroy          as function( byref sender as wfxTimer, byref e as EventArgs ) as LRESULT
      OnElapsed          as function( byref sender as wfxTimer, byref e as EventArgs ) as LRESULT
End Type


Next on the list is the TreeView control that I have been procrastinating on implementing.  :-)
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer