Setting Inspector Properties in control plugins

  1. 2 years ago

    I'm just starting to venture into the world of creating my own plugins. I've gone through the examples, I understand what is happening, and I can even make some adjustments to change behavior. The documentation is very minimal and rather vague.

    My question is: Is there a way to set default Inspector Behaviors for a control plugin?

    Example: Building off of the Eye Control example, I can set the default width of the control to be 200 and that's great. However, once Xojo is loaded up and the control is dropped onto a window, I can play with the width in the layout inspector to my hearts content. What if I wanted to lock this at 200px wide? Subclassing in Xojo allows the me to change superclass inspector behavior and make sure children are 200px. Can the same be accomplished in the plugin c++?

    Thanks in advance.

  2. Grant S

    25 May 2017 Pre-Release Testers, Xojo Pro Sydney, Australia

    Hey David,

    I too have recently delved into the realms of plugin writing and am happy to share with you what I've learnt, although I haven't needed to create a control yet.

    Currently in hospital awaiting a heart bypass operation.

    Cheers
    Grant

or Sign Up to reply!