PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: WinFBE - Timer control  (Read 161 times)

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9221
  • Windows 10
    • PlanetSquires Software
WinFBE - Timer control
« on: February 25, 2020, 08:34:23 PM »

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:

Code: [Select]
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.  :-)
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer