Is there a way to create a TabPanel like Button out of a regular com.emitrom.gwt4.touch.client.widgets.Button
I mean, TabPanel buttons are used to switch between tabs, and have this "pushed down" effect when a certain tab is selected, as it style blends properly with the TabBar of the TabPanel. I am not after the tab switching function but more on the push button function of a TabPanel button.
With TabPanel buttons are automatically inserted as TabPanel item is inserted. Looking at the code I can see that items are styled with: item.setIconCls(TouchIcons.INFO), so I set my button.setIconCls(TouchIcons.INFO) but the effect is not the same.
For some reason I can't use TabPanel so I just need to have this push button style with regular Button or if there's a PushButton.
Answered here: http://www.emitrom.com/node/313
The Button class does not support this feature. What you could do is use the SegmentedButton class with only one button and setAllowMultiple to true. That should do the trick.
Cheers,
Pat.
Regards.
Related
My aim is to create a tabbed menubar instead of the traditional menubar presented in the latest TinyMCE 4.7.6. I plan to do this by hiding the menubar, then create a toolbar above the normal toolbar. This new toolbar would consist of buttons with the menu names such as File, Edit, Insert, View etc. When one of these buttons is clicked, the normal toolbar buttons would be replaced with the toolbar buttons under the relevant menu item. [I hope I have been clear to this point.]
In case I haven't worded my description well enough, I want to create something like the Microsoft Word 2013 menu style.
Here's my problem. I am unable to create the toolbar that would host the menu buttons (File, Edit etc buttons). The TinyMCE docs say nothing about creating custom toolbars. All there is, is on creating toolbar buttons and adding them to an existing toolbar. Anyone with an idea how this can be done? Thanks.
This is quite some work you want to do, so first of all let me tell you a "ribbon" skin is already existing, check it here
Now if you really want to make your own, first you have to understand the difference between a menubar and a toolbar
On this image there is one menubar and two toolbars
Here is the documentation for the menubar API and for the toolbar this is here
But you should really give a try to the existing skin first.
I have a radio control with text package. I need to disable the control for the radio button. But the text should be enabled.
Can any one help?
The SWT radio button (new Button( parent, SWT.RADIO )) is a single control that can be enabled or disabled as a whole only.
Technically, you could use a separate radio button (without text) and a Label with a layout to position them side by side. Now you would be able to control their enablement separately.
However, radio buttons are a common and well-recognized UI elements that you would break by enabling/disabling the button and text differently.
i use the GWT TabPanel and want to use a DialogBox in one of these tabs. I think the DialogBox is added to the RootPanel because i see the box in every Tab.
Is there a option to see the box only in the box there the panel was created? Or must i create my own DialogBox or overwrite some methods (.show?)
Greetz,
Destiny
A DialogBox is is a popup and not attached to any of your panels. So you can't use a Dialogox in a TabPanel as it will not be attached to that panel as you found out yourself (it's attached to the RootPanel). If you want to only show this dialogbox when a specific tab is selected you need to hide the dialog box when another tab is selected. You can do this by adding a TabListener on the TabPanel and implement the onBeforeTabSelected method and check which tab is selected and hide or show the dialogbox.
i just want to know how to create a dropdown menu when a button is clicked, just shown in the image.![image][1]
When I click "Default Language" button it should show a list of options to select from. And when this list appears, the other buttons (or rows) below the "Default Language" button should move down so that they are not covered by the popped list.
Regards Nipin.
Try this sample code from Apple. It basically uses a table view and gestures to open up and close different sections of a cell.
In B4A, it is possible to add radio buttons to a parent (or group them) - such as a panel, instead of using designer? I have used addview to add 3 radio buttons to a panel but no luck.
I was using designer and then decided to try 100% code but I am having no luck getting them to select properly
There should be no problem adding radio buttons with code. Can you post the code that you tried?