twk Posted November 11, 2015 Share Posted November 11, 2015 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 Quote Link to comment
Vectorworks, Inc Employee klinzey Posted November 11, 2015 Vectorworks, Inc Employee Share Posted November 11, 2015 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. Quote Link to comment
Recommended Posts
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.