Control.DrawInto

  1. 2 years ago

    Anybody can give me a hint how xojo implement Control.DrawInto? Is it a hard code control style into a graphics object or using some API?

  2. Christian S

    19 Jan 2018 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany
    Edited 2 years ago

    You should get a normal paint event call, shouldn't you?

  3. Edited 2 years ago

    Yes. I create a simple rectangle on that event to be displayed on IDE. But, the event is also called when invoke Control.DrawInto. So, I'm thinking to implement simple rectangle on IDE and draw the control style/UI when user invoke DrawInto like Xojo control.

  4. Björn E

    19 Jan 2018 Pre-Release Testers, Xojo Pro Iceland

    DrawInto is implemented through the OffScreenPaint event if I remember correctly.

  5. Yes, drawOffscreenFunction event

or Sign Up to reply!