Thanks in advance.
I am creating one GUI on new wizard, that is available in eclipse by default, in wizard page i m creating GUI in createControl method , now for that i am creating one composite that is child of parent in that i have to create two composite from left to right in which left one should only expand horizantally and right one should expand in both directions horizantally and vertically
Now in left composite i have to display images located in c drive location and when user clicks on images displayed in left composite , in right composite specific images will load .
Now functionality i have completed using rcp , used fill layout for both composite and scrolled composite and row layout for inner composites that displays images with label , now the same logic i am implementing in wizard page but GUI is nonexpandable ......it sucks.......i tried every layout but i don't know where i m lagging ....as i m newbee in GUI ...:(
My problem is how to display two composite in wizard page , where first is only vertically expandable , and other one is expandable in both directions, and display images in these composites , that are located in my c drive ........
The parent composite layout shoud be grid layout. For the left child composite, set it layoutdata to be vertical expand. As for the right composite, set it to fill both.
Hope this help.
Related
I need to implement drag and drop form in ExtJS 6.2 that adds components dynamically to a from.
I have a (grid)list on left side that contains type of components as texts, for example that list contains:
doctors (will be combobox)
units (will be combobox) "
check some constraints" in my case (will be checkbox) as texts.
I want to add that component (a combobox or checkbox) to right side of my panel when I click or drag one of them.
Each component can be added more than one. Can anyone show me the way or give me an example?
I come across to grid to grid or div drag and drop examples.
Thanks.
So I have this GUI .ui file made with Qt, which is embedded inside a sidebar on some Qt app I'm working on. Problem : it gets shrinked to an unsuable size.
My ui form starts with a QWidget, which is the main and base area for adding more things. This is set to be a grid layout (I didn't insert a grid layout manually, I just set the base QWidget to have one using the dedicated button at the top).
And it contains one thing only : a tab widget with all my stuff inside on two tabs.
And that's it.
Of course I did play with the size policy of everything, it's all set to Expanding and all.
This form is embedded by code into a larger tab widget. There is a new tab for every new form, I have like 10 different forms like this one.
Some actually have a QMainWindow at their base, and are not shrunk to death. I don't understand the difference, but I when I set my base thing to be a QWindow, the form does not shrink.
I also have one form in another tab that has a QWidget at its base and is not shrunk to death.
Any other information I could provide to help you guys help me ?
I want to create chat window, and the messages must appears from side. So now I have the system with messages that placed inside of UI element with Vertical Layout Group, but I can't move the messages in horizontal axis, because position of messages is driven by Vertical Layout Group.
I had tried to do it by changing paddings but it works very ugly and I can't add messages into chat window and move them at the same time.
So is there a way to create custom appearance of messages in chat window that driven by Vertical Layout Group?
Instead of putting the labels directly into the VerticalLayoutGroup, put each of them into a seperate container, called ChatLine. ChatLine is just an empty GameObject with a RectTransform. Those ChatLines you put into the VerticalLayoutGroup.
VerticalLayoutGroup
ChatLine
Label
ChatLine
Label
VerticalLayoutGroup will arrange the ChatLine objects, putting one below the other. How you arrange the Labels contained in each of the ChatLines is up to you. You can move them horizontally as you please to create the effect your want.
Vertical Layout Group has its limitations. You can look for more properties in VerticalLayoutGroup class via scripting but most likely you just have to create your own layout so you will have full control on position of every element.
I'm a newbie to GWT.And i wonder when to use panels and when to use layout panels.I'm really confused.Can anyone provide a legit use case , where we need to use panels instead of layout panels and vice versa?.Thanks.
When you need a child to take its initial size from a parent and then resize when a parent resizes, use a LayoutPanel or another panel that implements ProvidesResize() interface. This way, for example, you can split the browser window into top menu and main area parts, and make the main area change its size as the browser windows is resized.
When you want a panel to take its size from its own content, use HTMLPanel or FlowPanel.
It is said here http://code.google.com/intl/ru-RU/webtoolkit/tools/gwtdesigner/quick_start.html
that one should "Choose an appropriate panel type for" one's UI.
How this can be accomplished?
It all depends on your application layout. There is one RootPanel and you keep adding more panels and Widgets into it.
You can read about different panels at:
http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
Panels in GWT are much like their layout counterparts in other user
interface libraries. The main difference is that GWT panels use HTML
elements to lay out their child widgets. Panels contain widgets and
other panels. They are used to define the layout of the user interface
in the browser.
In GWT Designer choose Panel from Layouts and then you drop other child widgets inside (Buttons, Labels, etc).
The main panel is always RootPanel, which can be retrieved by RootPanel.get("");
What they are trying to say in the quick start guide is you should choose a panel to add to the RootPanel and start adding widgets in there.