Thread: [Boa Constr] Newbie Question: How to add controls to a toolbar
Status: Beta
Brought to you by:
riaan
From: Colin C. <cd...@cc...> - 2007-02-20 21:23:17
|
Hi. I've just started working with boa and I really like it. I'm currently running the cvs (0.5.2) on Suse 10.1 linux. I'm trying to add a Combobox control to a toolbar on my main frame. I've plowed through the docs and this group, but I can't seem to find the correct way of doing this. I have added the Toolbar. I then select it, make sure it's selected in the Inspector window, and then select the Combobox from the Pallet. I then click on the toolbar in the designer window, but nothing happens. I also tried adding it from the Inspector->Prop->Tools, bringing up a collections windows and then selecting New - more -> Add Control. This adds a control, but sets it to None. I get no options but None. I can correctly add Buttons and Separators in this fashion, but not controls. Can anyone enlighten a boa-newbie as to the correct manner of adding controls to a toolbar? Thanks in advance! CDC |
From: Olivier T. <oli...@gm...> - 2007-02-21 08:47:58
|
Hi, You were close to the solution. Selecting "New - more -> Add Control" in the tools collection window just adds a kind of slot for the control to your toolbar. First add the toolbar to your frame. Then you have to add the combobox to the toolbar by selecting the combobox icon in the palette and clicking on the toolbar. Make sure the added combobox is a child of the toolbar. You can check this in the 'objs' tab of the inspector window: the combobox node must be a child of the toolbar node. Then open the toolbar tools collection window and select "New - more -> Add Control" to add an empty comtrol slot. Select the empty control item you've added (the 'None' item) and go to the 'constr' tab of the inspector window. You can then choose your combobox in 'Control' the dropdown list. It may not refresh the toolbar in the designer window. Just validate the designer and reopen it to see your combobox added to the toolbar. Olivier 2007/2/20, Colin Campbell <cd...@cc...>: > > Hi. > > I've just started working with boa and I really like it. I'm currently > running > the cvs (0.5.2) on Suse 10.1 linux. I'm trying to add a Combobox control > to a > toolbar on my main frame. I've plowed through the docs and this group, > but I > can't seem to find the correct way of doing this. > > I have added the Toolbar. I then select it, make sure it's selected in > the > Inspector window, and then select the Combobox from the Pallet. I then > click on > the toolbar in the designer window, but nothing happens. > > I also tried adding it from the Inspector->Prop->Tools, bringing up a > collections windows and then selecting New - more -> Add Control. This > adds a > control, but sets it to None. I get no options but None. I can correctly > add > Buttons and Separators in this fashion, but not controls. > > Can anyone enlighten a boa-newbie as to the correct manner of adding > controls to > a toolbar? > > Thanks in advance! > > CDC > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > https://lists.sourceforge.net/lists/listinfo/boa-constructor-users > |
From: Oleg D. <thi...@td...> - 2007-02-21 09:50:29
|
Hello, Colin Campbell said the following on 20.02.2007 22:30: > I also tried adding it from the Inspector->Prop->Tools, bringing up a > collections windows and then selecting New - more -> Add Control. This adds a > control, but sets it to None. I get no options but None. I can correctly add > Buttons and Separators in this fashion, but not controls. You should have spare combobox control already placed on form when you use "Add Control". -- Oleg |
From: Colin C. <cd...@cc...> - 2007-02-25 14:48:22
|
Hi Olivier Thanks for the tips. In trying what you suggested, I am still unable to drop a combobox on the toolbar. So, I installed the latest python, wxpython and boa CVS on my Window XP laptop, just to be sure it wasn't something in my linux python config. Your instructions work flawlessly under the XP install. So, it appears I have some issues with my Linux python environment. Could this be another one of the GTK related issues I have been reading about? I'll try a 'from source' install of all the components at the same version as my windows install and see if that fixes things. Thanks again for you help. CDC |