Jump to content
Developer Wiki and Function Reference Links ×

OIP headings


Recommended Posts

In the OIP for doors and windows, there are heading rows with a disclosure triangle and a line after the heading.  

 

> General ––––––––––––––––––––

> Visualization –––––––––––––––

> ID Tag –––––––––––––––––––––

etc.

 

Is it possible, and if so, how - is this this done in an event aware plug in?

Link to comment

Here's a list of all the widget types from the Developer Wiki.  I have separators in all of my plug-ins that are event enabled, and have successfully been able to make them collapse.  One post that might help you an awful lot is this one from _c_ (though it's in Python):

They go pretty in depth about Widget Groups, which is what you are looking for.  Based on the code _c_ supplies, the magic code is kWidgetGroupMode = 81 and kWidgetGroupAutomatic = 2 as constants, and the call <boolean>:=SetObjPropCharVS(kObjXPropSepcialEdit,Chr(kWidgetGroupAutomatic));, then using vsoWidgetSetIndLvl to indent one level in under the headings.  I've attached an updated version of the event example I wrote for you back in January that has widget grouping written into it.

 

Quick Edit: The attached plug-in was edited in VW2023 and is now only able to be used in VW2023 or newer.

 

Event Enabled Example.vso

Edited by Jesse Cogswell
  • Like 1
  • Love 1
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...