It may be that I need to learn how to work with and design themes, but it would be nice to have a new property for objects which use the onAction(). This new property would be showAsButton.
This would allow you to specify objects to take an action like a button but not draw as one. The picture below shows that the column headers to the right of the Email column do not have onAction specified (using the Windows theme), whereas the Email column header does.
While I would like to specify these column headers as buttons, I don’t want them to appear as buttons.
Also notice that the object named “Invisible button”, will, in other themes, not show itself since it is set as transparent. However, with the Windows theme it shows as a button no matter what. This is also a situation that would be remedied by a new showAsButton property to accompany the onAction() function.
This issue is more complex then it seems.
It has to do with the fact that label/image/button are one and the same class. This also affect the use of styles with this object.
We will add a property in an upcoming version where you will be able to specify if an element displays as a button or not.
As for the visible issue Matt mentions in the first post in this thread: I am unable to reproduce it, if i use windows look and feel and do button.visible=false it always goes away. Can you upload an example?
jaleman:
We will add a property in an upcoming version where you will be able to specify if an element displays as a button or not.
As for the visible issue Matt mentions in the first post in this thread: I am unable to reproduce it, if i use windows look and feel and do button.visible=false it always goes away. Can you upload an example?
The button visibility is not the issue. Transparency is the issue. Until we have the property to showAsButton, you have to put a button on top of objects you want to associate the onAction with.
Column headers will be a common item that will take an onAction for sorting the list view. However, if you don’t want the onAction to turn your object underneath into a button you make another object with the onAction and set it to transparent. This is where you get variations from the different themes.
Of course, this is all extra steps for making an object clickable. It’s like FileMaker. The preferred option would be to have the showAsButton ALONG with being able to specify borders on embossed buttons.
Is there any news on this? I am also currently a little annoyed by an image with onAction showing up as a button in table view. It’d be a lot nicer if only the image was the button…
will be after 2.0
(we won’t be introducing any new properties now, because that would require another repository update that we are not willing to do for 2.0)