smartgwt ToolStripButton icon on disabled form - smartgwt

I have used ToolStripButton which is added in ToolStrip. I have set icon on the buttons and by default button is disabled. problem is icon only shown on button when it is enabled. and but I want to show icon in disabled form of button too.

When a ToolStripButton becomes disabled, the URL of the icon gets "_disabled" added to it. So you'll see a 404 in the Net tab of Firebug from the attempt to fetch that icon. Just put the image file for the disabled version of your icon at that URL.

One small clarification. In my case smarGWT is looking for icon with "_Disabled" appended (with first letter in uppercase). Hope this will save someone time :)

Related

Upload component

Latest Vaadin Flow 23.0.10. According to method setDropLabelIcon documentation:
Set the component to show as the drop label icon. The icon is visible when the user can drop files to this upload component. Despite of the name, the drop label icon can be any component.
Params:
dropLabelIcon – the label icon to show for the users when it's possible to drop files, or null to cleat it
calling method setDropLabelIcon(null) not clear default icon.
It is bug or feature?
Thanks

Apple Watch Force Touch Menu

I just recently noticed it is possible to add a force touch gesture to my watch app. I've added a Menu and 3 Menu items... as seen here:
Although, when I force touch, the menu does not come up.
Do I need to do something else to get this thing working?
Tutorials suggest I do not. Thus, I turn to stackoverflow.
By default, each menu item's image is set to Custom in the attributes inspector, and without an image asset selected here a menu item won't appear at all upon a firm press. You'll have to choose one of the images that Apple provides in the attributes inspector Image dropdown menu or provide your own asset where it says No Image right below.

tap image in listbox in windows phone 7

I have a listBox in a win phone 7 app, and a icon image which in every list item.When I tap the icon image, some download work will be processed.If I don't tap the icon, just tap the selected item, page navigation should be executed.And now, when I tap the icon, the page was navigated to another page.If I want to tap the icon to do download work, but not the navigation, can anybody give me some advice? Thanks.
Instead of the button you could have associated an event Tap with Image inside your item template. I guess that should have worked too. Never the less great for you.

Cant get down state to work in browser in Firewoks CS5

can anybody help with this , I can get the 3 states to work in preview ie; up, over, down with the behaviour as onMouseOver Set Nav Bar Image.
It works in the browser if there are no links set as soon a i set a link then only up, over work not the down state , I have tried setting the links in dreamweaver but get the same result.
Is there any workaround for this this ?
Thanks
if anybody is interested , i have found out what to do
tick the box in the properties panel that says Show down state on load
this does not work if you have your nav menu set as part of the master template or as a shared layer.
So you need to copy the menu to each page and set the individual button on each page with the Show down state on load tick box.
Hope this makes sense ?
thanks

Customizing the look and feel of Orbeon forms

We would like to be able to customize the areas outside the form elements area itself, such that customers can have all their forms including the areas surrounding the form in their own style. For instance in the area on the top we would like to have a different color and we would like to replace the Orbeon logo by the logo of the customer. Also we would like to hide/remove/customize some buttons that appear below the form. For instance we don't need the buttons for PDF, Email and Close and we want to change the text in the Save button to Submit.
Is that possible? If so, how do we do that? Is there some instruction somewhere for this?
Yes, you can do all of this through properties:
You can change the color at the top by overriding the .fr-top rule defined in form-runner-orbeon.css. For more on how to override CSS, see: Default CSS.
You can replace or remove the default logo with the oxf.fr.default-logo.uri.*.* property. See Default logo.
You can choose which buttons are shown on the Form Runner "details" page by overriding the oxf.fr.detail.buttons.*.* property. See Buttons on the detail page.
You can change the label on a button by overriding resources. See Overriding resources.
I was faced with the problem to change the icon in the browser address and found the answer of Alessandro Vernet:
http://discuss.orbeon.com/page-address-bar-browser-icon-td4660752.html .
But this solution has the drawback that I had to change the orbeon-form-runner.jar, and this with every new orbeon forms release, what I wanted to avoid.
So the idea was to give my icons the same name as the orbeon icons and to load them in a corresponding directory of the resource directory.
So I named my icon orbeon-icon-16.ico and orbeon-icon-16.png and loaded the two files in orbeon/WEB-INF/resources/ops/images.
For Firefox this was OK, but IE continued to show the orbeon icon. Then I noticed that in orbeon-core.jar there where also the 32 pixel icon.
So I added the two files orbeon-icon-32.ico and orbeon-icon-32.png and than also IE was showing our icon.

Resources