View Single Post
05/05/14, 01:00 AM   #8
Sideshow
 
Sideshow's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 36
Originally Posted by Seerah View Post
@Sideshow (et al.):

You can create your controls whenever you need to. In your button's OnClick handler, just create the options when the "Show" button is clicked if they haven't been created yet.

The same is true for when using sub menus.

Or if you want to tie into the OnShow event of your panel's header.......
That's what I did? When clicking the button, I create all the controls.
LAM adds an OnShow handler which will init the control, well, on show....
Problem is, when creating the controls, the OnShow event is not called (but the controls are still visible... makes sense..).
It is only called when opening the control panel, or by manually calling the OnShow for each control (or tiggering via hide/unhide). This is a problem for sliders... which still only work when a panel change occurred.
  Reply With Quote