Jump to content

OnCustomizeConfigUIWindowProperties: What can it do?


MJW
 Share

Recommended Posts

There's a method in the PropertyBasedEffects called OnCustomizeConfigUIWindowProperties. It's used to change the window title and initialize the Help menu, but I was wondering when exactly it gets called, and what else, if anything, can be done with it? In other words, is there anything else plugin programmers might want to use it for?

 

The code to change the window title is:

       protected override void OnCustomizeConfigUIWindowProperties(PropertyCollection props)
       {
           // Change the effect's window title
           props[ControlInfoPropertyNames.WindowTitle].Value = "New Window Title";
           base.OnCustomizeConfigUIWindowProperties(props);
       }

 

Link to comment
Share on other sites

If you want to change the width of the dialog, assign a double to the value when using the WindowWidthScale enum.

props[ControlInfoPropertyNames.WindowWidthScale].Value = 1.5d;

 

If you want to make the dialog user-resizable, assign a boolean to the value when using the WindowIsSizable enum.

props[ControlInfoPropertyNames.WindowIsSizable].Value = true;

 

  • Upvote 2
Link to comment
Share on other sites

I take it then that (as the name suggests) OnCustomizeConfigUIWindowProperties is used to modify the UI windows characteristics. Can it be said that OnCustomizeConfigUIWindowProperties is used exclusively to modify the UI windows characteristics, so it has no other uses?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

 Share

×
×
  • Create New...