Hi Folks - is it possible to set a button showClick property to true from cod in an onShow or onLoad event? I see no property available from the code method window?
no this is not possible
it is possible through the solution model i guess and then a recreateUI() when doing it through the onshow
jcompagner:
no this is not possible
it is possible through the solution model i guess and then a recreateUI() when doing it through the onshow
Thanks for the feedback Johan - is this not possible to implement or simply isn’t implemented?
no not possible without the solution model
show or not to show a click generates a completely different component.that chooses between a Button and a Label
HI kahuna,
I don’t know exactly what kind of user experience you need to implement, but you can chose to place a label and then change the border style depending on what you want.
var etched = ‘EtchedBorder,0,null,null’;
var bevel = ‘BevelBorder,0,#ffffff,#c0c0c0,null,null’;
elements[‘elem’].setBorder( ‘bevel’ Or ‘etched’)
erdione:
var etched = ‘EtchedBorder,0,null,null’;
var bevel = ‘BevelBorder,0,#ffffff,#c0c0c0,null,null’;elements[‘elem’].setBorder( ‘bevel’ Or ‘etched’)
Note that in Servoy 6 there are functions to make creating borders easiers, see solutionModel.createXXBorder().
Fabrice, Joas
Thanks for the feedback Guys.
What I’m attempting to do should be simple but has turned out to be pretty difficult to achieve.
Our solution is primarily used in the SC, but because of certain circumstances for some clients we need a WC version now too. Almost all of the application has now been converted and looks quite nice in WC. The one aspect we are not happy with is user feedback on button actions. If we use buttons at design time - in SC they look nasty and we have not found a way to style them appropriately. But at least in WC they show a click and therefore the user gets some feedback that the action has been initiated. In SC we use labels, and colour them / change text as appropriate for the action - but without continuations we cant use these colour changes in WC.
Hence I was exploring the possibility of changing the labels to buttons with the showClick property at run time!
Hi Ian,
In that case just add the buttons using the solutionModel in the onLoad handler. Should be simple.
ROCLASI:
Hi Ian,In that case just add the buttons using the solutionModel in the onLoad handler. Should be simple.
I’m going to look into that over the weekend Robert - though concerned over the interaction of our security code which loops through all the onLoad form events to set and enable/dissable form availability for users. I’ll see how this could work together / integrate.