Hi,
I can’t find the function: .putClientProperty() on a button or label.
I would like to set these .putClientProperty() trough the solutionModel.
I’m I missing something? or is it simple not there?
Hi,
I can’t find the function: .putClientProperty() on a button or label.
I would like to set these .putClientProperty() trough the solutionModel.
I’m I missing something? or is it simple not there?
putClientProperty() is a runtime thing. You cannot set ClientProperties at designTime, can you?
Therefor, you cannot set ClientProperties through the SolutionModel either.
Paul
Oke, than my question is, can this made into designtime property?
So we can use it in the solutionModel? That would be sooo powerfull…
make a feature request case.
That would be sooo powerfull…
Curious to know what it allows you to do that you can’t already do now…
Paul
For instance, if we want to set ALL or our buttons to: elements.myButton.putClientProperty(‘JButton.buttonType’,‘textured’) (special apple button)
we have to create some kind of global onload, than go to all our forms, and put that onLoad on it.
it would be SO much simpler if we could do this at login, with the solutionModel, than we could set such setting, without having to change ANYTHING to our excistings solution(s)
Harjo:
it would be SO much simpler
above all: much faster!
mboegem:
above all: much faster!
Indeed! +1
You shouldn’t do this on element level, but on global level, using application.setUIProperty(‘JButton.buttonType’,‘textured’);
Or is there a specific reason why you want to do this on element level?
Secondly, if you still want to do such stuff on form level, use inheritance and do it in the onLoad event of the super form.
Paul
Paul, did you tried that?
that is not working, look here: http://forum.servoy.com/viewtopic.php?f … 767#p66088
Maybe you know a way how to make this work, than indeed we don’t need it in the solutionModel…
apple doesnt seem to first look into the client properties and then fallback to the default UIManager properties.
If they did that then you wouldnt need to set it on all elements yes.