MJW Posted February 20, 2017 Share Posted February 20, 2017 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); } Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted February 20, 2017 Share Posted February 20, 2017 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; 2 Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
MJW Posted February 20, 2017 Author Share Posted February 20, 2017 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? Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted February 20, 2017 Share Posted February 20, 2017 I'm not sure you'd be able to use OnCustomizeConfigUIWindowProperties() for anything else, as it's called before the Dialog is even created. That is to say, it just gets some more properties to use in the Dialog's constructor. Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
MJW Posted February 20, 2017 Author Share Posted February 20, 2017 Thanks, toe_head2001. I was, of course, hoping it had incredible secret powers. Nevertheless the window adjustments might prove useful for some plugins. Quote Link to comment Share on other sites More sharing options...
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.