I'm looking for a way to make a tree with glade.
I've already found how to manage lists with all kind of stuff in it, but I can't figure how to properly let an element have childs. I tried by going into the hierarchy tab, and then drag columns and cellrenderers into some others. They move for one second, and then get replaced where they was.
I also tried that kind of drag'n'drop thing on the other "Columns" and "Data" widgets on glade, but it doesn't work either :(.
Does someone have a solution for that? Is it even possible only with Glade?
I hope i'm clear with my problem.
PS : I'm using Glade 3.12.1.
Which version of glade do you use? Did you try to right-click on the treeview and then edit?
Right-click on the label then you can choose the type of child you want to add.
Related
The "File >New >Other..." command of the IDE environment, shows the following image:
In the image, two areas (A) and (B) are observed. I am interested in using area control (B).
I assumed it was a TListView control, but I haven't been able to achieve similar view options as above. Other people have suggested that each of the displayed items (icon, title, and descriptive text) can be inserted inside a common container (TPanel, TFrame) and "stacked" inside a TScrollBox, a possible solution, but I think the Delphi folks may have used something more optimized.
Does anyone know which component has been used to generate that view? Or, does anyone know how to generate such a view?
It is a component called TControlList: https://docwiki.embarcadero.com/Libraries/Alexandria/en/Vcl.ControlList.TControlList
From what I understand this isn't possible out of the box with mmenu or any plugin for it. What I need is an easy way to format the submenus so that they are clickable and collapse/expand, as is clear in the screenshot below. If I'm wrong on this and there are any examples of a plugin/css that will easily do this I'd love to know.
I've discovered that this is indeed possible, simply by adding the class "Vertical" to any child elements.
So, my CoreData graphical editor style "Graph", was working ok before,
now if I check something on the graphical editor, go to another file, and come back again,
I find all my entities on top of each other... I organise them, go to other file, come back and again on top of each other!
So whats going on, how to fix this annoying thing? thx!
Drag the entities away from each other and save the file.
I'm relatively new to Cocoa and I would like to implement the ability to add or delete items from a pop-up menu in the same way that the OS X System Preferences/Network Location pop-up works. Selecting the 'Edit Locations...' option rolls down a window that provides the ability to add to, or delete from the existing Location list. My interest in doing things this way is as much about conforming to the relevant Human Interface Guidelines as having a way to dynamically change the menu content. (I have no real problem with the 'background' coding side of things, it's the user interface that's my primary issue at this stage.)
Is this a standard IB View?
On the surface, I can't see anything appropriate, but maybe that's just my inexperience. I'm assuming that, because this is not an uncommon sort of requirement, the task should be pretty straightforward and that Apple, or someone, would even have a relevant code sample to show how to define such a window.
Can anyone point me in the right direction?
Sorry for the late answer. I found this tutorial: http://cocoadevcentral.com/articles/000014.php
I'm trying to create a very simple selection list widget based on NSOutlineView. However, I'm having a hard time figuring out how to display an icon and a label right next to it, which is really the expected behavior in all the mainstream implementations of that kind of widget out there (iTunes, mail, Finder,...).
So far I am just binding two separate cells, but then when I'm expanding the tree, the icon cell grows larger and a gap appears between the icon and its accompanying label. I know I can probably overcome this problem by extending NSCell and provide a custom class, but as what I'm trying to achieve is really the standard thing, I can't be resigned to accept that there isn't a simpler solution.
Candide
Sadly, there isn't a 'text and icon' cell that you can just use, fresh out of the box as you would like. However, when I was working on a project, I found that Apple released some sample code that implements this, since it is such a common idiom.
This can be found here, specifically ImageAndTextCell.h/m
It can help teach you about UI customization by reading through this example, but scratching that, just dropping the ImageAndTextCell straight into your project should do just fine.
You need to create ImageAndTextcell to combine text and icon..
you can create ImageAndTextcell like this Sample Project