Announcement

Collapse
No announcement yet.

Classes and Dialog / Windows

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • jcfuller
    replied
    Originally posted by Steven Pringels 3 View Post
    Hi everyone,

    Can somebody give me a hint (read: show me) how I would go about having a
    class that creates a window (either DDT or SDK) and have the events handled by an event sink (or in powerbasic terms using connection points).

    I have tried to wrap my head around this however the DIALOG SHOW MODAL requires a callback function so a class's method can't just handle those events.

    I hope the question is clear enough.

    Thanks in advance

    Steven
    Not possible directly.
    You need a true callback function that will then call your methods. I believe I posted a couple examples.

    James

    Leave a comment:


  • Steven Pringels 3
    started a topic Classes and Dialog / Windows

    Classes and Dialog / Windows

    Hi everyone,

    Can somebody give me a hint (read: show me) how I would go about having a
    class that creates a window (either DDT or SDK) and have the events handled by an event sink (or in powerbasic terms using connection points).

    I have tried to wrap my head around this however the DIALOG SHOW MODAL requires a callback function so a class's method can't just handle those events.

    I hope the question is clear enough.

    Thanks in advance

    Steven
Working...
X