continuing the thread I want to show a settings windows. 1) at the start, I hide all settings controls. 2) when I clicked a rect, I show a bitmat overlay with the backgound settings. 3) show all settings controls. The problem is that I'm a dummy guy :-S Code:
----------------------------------------- Gary Gray If you can take it apart you can make it faster!
This is what I do: I enumerate all GUI controls, so I can access them by control index number rather then by parameter index number or pointer. The tricky part is I have to attach my controls in the right order. I then have a method that hides/shows all settings controls, background included. Code:
Thanks Tale! I have omitted an important part in the previous message, sorry. I thought I could use IBitmapOverlayControl, but it hasn't a callback (to place the unhide rutine when the rect is clicked) I think I'll have to insert into iPlug and create a control but I did not want to come to this.
You don't need to insert anything into IPlug, just make a control that derives from ISwitchControl in your project. Here's one I just did, a splash screen that can display some text. The .h file: Code:
Thanks cc_! So and now can override OnMouseDown and access to the plug controls via mPlug. like: mPlug->GetGUI()->HideControl(xcontrol,false) :)
----------------------------------------- (On going to war over religion) "You're basically killing each other to see who's got the better imaginary friend." - Rich Jeni