Results 1 to 3 of 3

Thread: No Callbacks for timers?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174

    No Callbacks for timers?

    I just wonder if the statement in help is still up to date.
    timers are not created alike
     Control Add Timer
    
    but by
    Dialog Set Timer
    
    now i wanted to use a timer on each dialog to let the dialog redraw after resizing it. And i thought, the timer knows its Daddy so i can send all the timers to the same playground errr callback to have daddy shake the sand of his head.
    But help says- see picture - timers do not support their callback-function-parameter.

    Anyway it were nice to know how to declare a function to be a callback function because the WinAPI has a few Functions to enumerate members of something that works only using a callback.
    for example

    EnumWindows Lib "Coredll.dll" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long

    EnumSystemCodePages Lib "Coredll.dll" Alias "EnumSystemCodePagesA" (ByVal lpCodePageEnumProc As Long, ByVal dwFlags As Long) As Long

    or

    EnumFontFamilies Lib "Coredll.dll" Alias "EnumFontFamiliesA" (ByVal hdc As Long, ByVal lpszFamily As String, ByVal lpEnumFontFamProc As Long, ByVal lParam As Long) As Long

    to mention some. The one i had in mind is just... hiding somewhere. It's about how to. i don't want the finished stuff but to understand how i get there myself...
    Attached Images Attached Images
    I think there are missing some Forum-sections as beta-testing and support

Similar Threads

  1. New UI ... CallBacks options
    By ErosOlmi in forum thinBasic vaporware
    Replies: 15
    Last Post: 14-06-2021, 07:19
  2. Replies: 2
    Last Post: 16-04-2013, 01:09
  3. Oxygen Basic and Timers
    By Michael Clease in forum O2 JIT Compiler / Assembler / Oxygen project
    Replies: 2
    Last Post: 30-09-2010, 10:44
  4. Callbacks
    By Pipes in forum UI (User Interface)
    Replies: 2
    Last Post: 29-05-2009, 16:18

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •