Re: [Boa Constr] Re: selecting a hidden control
Status: Beta
Brought to you by:
riaan
From: Tim B. <ti...@al...> - 2005-03-21 15:37:50
|
Bryan wrote: > Werner F. Bruhin wrote: > >>> i just went through the boa notebook tutorial can someone tell me >>> how to: >>> >>> 1. select the frame (or other containers or controls hidden behind >>> other controls) in the designer once a control has taken over the >>> entire client area. in the tutorial, i'm unable to select the frame >>> to change properties in the inspector, because the textctrl is >>> covering the entire frame. >> >> >> When calling up the Designer or by clicking on the title bar of the >> designer, then in the Inspector go to the Objects (Objs) pane and >> select the control you want to work on. > > great, i didn't know about the object pane. i brought up the designer > with a frame covered up with a control so i can't see the frame. then > i selected a new button to add, went to the inspector's object window > and clicked on the frame, but the new button didn't get added. so you > can't add controls this way? if not, i still don't see how to add > controls to a hidden container. A normal way to create a frame in Boa is to follow this general pattern: Editor::File::New::wx.App (this creates the app's first frame for you) Editor::File::New::wx.Frame (to create a second frame if you need one) Editor::(click on "Frame Designer" button) Palette::Containers/Layout::(click on wx.Panel button) Designer::(click on center of frame to paste new panel into the frame) (click on "Post the session" button in Inspector, or the "Post" button in the Editor, or just close the Designer window) Editor::(click on "Frame Designer" button) (reopens frame in Designer; now the new panel covers the whole area of the frame) Palette::(click on any control you desire to paste on the panel) Inspector::(make sure the panel is selected in the Inspector) Designer::(click on panel to paste new control onto the panel) In other words, the steps you followed *won't* paste a new control in the frame: > then i selected a new button to add, went to the inspector's object window and clicked on the frame, but the new button didn't get added. But these steps *will* paste a new control in the frame: Select a new button to add (from the Palette), check to ensure the proper parent object is selected in the Inspector, then click on that object **in the Designer**. This adds the new button to the frame. Hope that helps! Tim Black |