Announcement

Collapse
No announcement yet.

Classes and Dialog / Windows

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

  • 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
    So here we are, this is the end.
    But all that dies, is born again.
    - From The Ashes (In This Moment)

  • #2
    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

    Comment

    Working...
    X