jesawyers Posted June 29, 2011 Share Posted June 29, 2011 Hello All, Is there a way to implement a "On Mouse Up" Event for the Button Component? I can see the On Mouse Down event in the properties dialog but no On Mouse Up. Thanks...John Link to comment Share on other sites More sharing options...
AzeoTech Posted June 29, 2011 Share Posted June 29, 2011 Use the Action tab of the button properties and select Quick Sequence. There you can enter script for Mouse Up. You can also check the box that says "On Mouse Down" and create script for mouse down there as well. Often one will use both in a single component by having two actions, one for mouse up and one for mouse down to create a jog button. Link to comment Share on other sites More sharing options...
jesawyers Posted June 30, 2011 Author Share Posted June 30, 2011 Thanks for the info. I'm a newbie with DF and learning. I found the event tab after I sent the post. Sorry for wasting your time. John Link to comment Share on other sites More sharing options...
AzeoTech Posted June 30, 2011 Share Posted June 30, 2011 Never a waste of time. That is what we are here for. Link to comment Share on other sites More sharing options...
jyoti Posted December 24, 2012 Share Posted December 24, 2012 Dear sir , we are sending commands through buttons and it's works very well .But buttons should be indicate the txt after pressing the buttons .How can create linked between buttons and txt .When button is press then only txt is display according to button .so please guide me . Link to comment Share on other sites More sharing options...
AzeoTech Posted December 26, 2012 Share Posted December 26, 2012 I'm not quite sure what you would like. Do you want to display text in the button when its pressed, then clear it out when the button is released? Or do you simply want to change the text in a button depending on the state of your system? Link to comment Share on other sites More sharing options...
jyoti Posted December 27, 2012 Share Posted December 27, 2012 sir, Actually in our project 15 switches are used .All switches defined different txt .I want to display text near button not in button.it still up to next button .when next button is press then automatically txt will change and indicating the next button information. Link to comment Share on other sites More sharing options...
AzeoTech Posted January 4, 2013 Share Posted January 4, 2013 There are a number of ways to do this. In script, the easiest is to use the Static Text component, give the component a name, then access its strText parameter: component.myTextComponent.strText = "new text" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.