Skip to content

Instantly share code, notes, and snippets.

@poor666
Created February 28, 2012 07:13
Show Gist options
  • Save poor666/1930325 to your computer and use it in GitHub Desktop.
Save poor666/1930325 to your computer and use it in GitHub Desktop.
onMouseDown
onButtonClick = function(event){
event.result = [
["save", "enabled", false],
["Pass", "enabled", false],
["save", "label", waitingFrase()]
];
setup.password = event.currentValues.Pass;
var appDir = fw.userJsCommandsDir + "/my_commands";
var file = appDir+"/buildUp.jsf";
fw.runScript(file);
},
panelJSON = {
events: {
onFwObjectSettingChange: function(event){
console.log(":::: onFwObjectSettingChange");
},
onFwActiveToolChange: function(event)
{
console.log(":::: onFwActiveToolChange");
}
},
children: [
{
TextInput: {
name: "Pass",
toolTip: "Choose a password",
text: "clientpass",
style: {
fontWeight: "bold",
fontSize: 15,
}
}
},
{
Button: {
label: "Build Presentationx",
name:"save",
events: {
click: onButtonClick
}
}
}
]
};
fwlib.panel.register(panelJSON);
@poor666
Copy link
Author

poor666 commented Feb 28, 2012

there should be a way to do this

Button: {
label: "Build Presentationx",
name:"save",
events: {
onMouseDown: onButtonDown,
click: onButtonClick
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment