Jump to content
Developer Wiki and Function Reference Links ×

Modern Dialog - CreateImageControl2


twk

Recommended Posts

Greetings all,

I'm trying to display a preview of my PIO in a dialog. Somewhat like the Custom Stair tool(attached).

Would using the CreateImageControl function cater to this?

Dev Wiki says

PROCEDURE CreateImageControl(

dialogID :LONGINT;

componentID :LONGINT;

iWidthPixels :INTEGER;

iHeightPixels :INTEGER;

hImage :HANDLE);

Parameters

dialogID LONGINT

componentID LONGINT

iWidthPixels INTEGER

iHeightPixels INTEGER

hImage HANDLE

Whats hImage refering to? The plugin object handle?

THanks in advance

Tui

Link to comment
  • Vectorworks, Inc Employee

You want to use CreateSymbolDisplayControl() to generate a preview image. You can't simply display a preview of the PIO automatically, you will have to generate the geometry to display in the symbol display control. It's simple as long as you have your object designed correctly.

CreateImageControl2() will just allow you to place a predefined image in the dialog.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...