Glade3 - how to set a treestore - treeview

I want to set a TreeStore to populate a Treeview inside Glade 3 - I mean not programmatically - so that I have a Treestore in the glade XML file.
Is it possible to define a TreeStore (not a ListStore) in Glade 3?
When I right-click on the treeview and get in the treeview editor, it's possible to set a new Treeview Model, but it automatically comes as a ListStore. Is it possible to switch to a TreeStore somewhere?
Couldn't find this answer in the Glade tutorials because there's so few of them and don't cover many functions.

This is with glade 3.18.3, installed via canonical repositories on ubuntu 16.04:
On the left pane under "Miscellaneous" the second icon is "Tree Store".
Click that and it will add a new object to your project. In my case called treestore1. This will show up on the right under the widget tree.
Now click on your treeview and see the properties pane (on the right). Under TreeView Model click the little pencil edit button:
and it will popup and let you select your new tree store.

Related

Eclipse Plugin - How to contribute to a menu on the editor?

Currently my plugin.xml has
<extension
point="org.eclipse.ui.popupMenus">
Which contributes to the menu showed when right clicking some file in the project explorer.
In addition, I want to contribute to the menu showed when right clicking anywhere in the editor view (the view with the code itself).
I can't find what's the corresponding extension point for this menu, and how do I contribute to two different menus.
Thanks
The org.eclipse.ui.popupMenus extension point is deprecated and should not be used for new code.
The org.eclipse.ui.menus extension point supports all types of menu.
You define a popup style menu using something like:
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:org.eclipse.pde.ui.tools">
... various menu contributions
The locationURI is saying this contribution to the popup menu with id org.eclipse.pde.ui.tools
You must define the id of your editor's context menu in your editor code. How you do this defines on the type of editor your are creating. For an editor based on TextEditor call
setEditorContextMenuId("menu id");
in your editor's constructor.

MFC form designer

According to my understanding if I need design MFC form with button I have only one possibility - write everything in code editor. There is no designer. Except cases when I need design dialog form. I can use designer and generate resources for dialogs. But in case normal Frame there is possibility to drop buttons in designer window. Is that truth?
If you want to use a form as a main window, create your project with a CFormView as a base class. You can select that inside the new project wizard. Then you get a dialog resource for that view. It works just like a dialog.
Go to Resource view
Create a new dialog template
Double click the dialog template name
Once the dialog opens, the toolbox get enabled
You can drag&drop the controls to the form now

where is the specific button on design mode?

how can i find the specific button on design mode where i have several buttons ie: hundered of buttons so that they all like spaghetti and one button may be under another button or a groupbox (i might be playing with the visibilities ) and i want to see my button number 83 on the design. how can i see him? where is he hiding? :) i use visual studio as an IDE. thanks.
MessageBox.Show(" where is the specific button? i know that he is somewhere on the form but cant distinguish it on the design since its somewhere under something i cant find it");
Use Document Outline (View - Other Windows - Document Outline)
Just pick the button from the tree and voila.
PS: this works for other types of designers (WPF/Silverlight, ASP.NET)
You can access it via the Properties Window. There is a drop-down that will list all of the items in your form in design mode.
Then use the drop-down. The drop-down will list all of the items on your form so you will scroll through the list to find Button number 83.
Images were pulled from MS Visual Studio: The properties Window which contains an explanation of the window.
Have you tried using the properties window?

Where is a Dropdown Menu in Sketchflow

Ok I cannot freaking can't believe this. I cannot find a dropdown menu in Sketchflow - Expression Blend 4. I need to create a mockup quicky and easy and it's amazing how I cannot find a simple dropdown to drag to my project's web page mock-up I am creating here.
In WPF/SL the dropdown is called ComboBox
You can search for the sketch controls and select the ComboBox from the Assets window, or you can select it from right clicking on the Buttons icon on the toolbar:

Can't assign control to custom winforms panel with VS2008 winforms designer

I inherited the prototypical corporate application with a person form (with address, phone, etc).
Now on that mentioned person form one label+textfield is a child of the form itself and not of the panel it visually belongs to.
How can I change a control's parent from form to an existing panel in VS 2008 designer?
Update:
Ah, it seems to be a problem with the super magic custom group box control my beloved cow orker left for my pleasure. Dragging into a normal group box works ...
Update 2:
With the help of the Document Outline I can see that the custom "GroupBoxExt" we have in the application is defective, dragging a control onto the panel (or just changing position of a control on the panel) assigns it to the form.
Update 3:
Now that I new what was wrong (thanks for the document outline tip) I went of to google and found a custom group box on CodeGuru. The author of that artilce found out you'd need to decorate your custom panel with
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))]
to make it behave as a nice container.
If you're looking to do this in the designer, what you're looking for is the Document Outline panel (it's under the View menu under "Other Windows"). From there you can drag controls by their name in the outline and reassign the parent.
Hope this helps!
I'm not sure exactly what your asking. Can you try clarifying the scenario a bit?
But if you want to change a controls parent, all you need to do is make that control a child of the panel using the Controls property.
myPanel.Controls.Add(target)
This should update the parent of target to be myPanel.
If you're attempting to do this via the designer, all you need to do is drag the target control onto the panel and that should take care of it.

Resources