Jump to content
Software FX Community

CommandStyles Question


Recommended Posts

I use ChartFX for JavaServer  7.0

I'm trying to add a new Command to the ToolBar, with a new image and setting to call a javascript. I'm following the documentation in the Programmers Guide. The line in bold/italic doesnt work.  What is the correct syntax?

Thanks

cmds = chart1.getCommands();

cmds.add(new Command(20));

cmds.get(20).setImageIndex(1);

cmds.appendImage(new ImageIcon("/selfservice/images/left_arrow.jpg").getImage());

cmds.get(20).setStyle(CommandStyles.SMART_LIST);

cmds.get(20).setEnabled(true);

cmds.get(20).setChecked(true);

cmds.get(20).setScript("goBack");

cmds.get(20).setText("custom Cmd");

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...