Creation of the custom toolbar commands

Hey everyone, I am trying to add custom commands to the toolbar, such as undo/redo/delete commands.  So far, I've extended the sharedwhiteboard and canvas, so added a class called RCGlowShapes that extends from WBCommandBase.  In my custom canvas, I added a function as well, which creates a new instance of the RCGlowShapes control and adds the command handler.

My question is this: when I add a custom command to the toolbar like this:

                         var glowTool:WBShapeToolBarDescriptor = new WBShapeToolBarDescriptor(WBShapeToolBarDescriptor.COMMAND);
                         glowTool.toolTip = "Glow Chip";
                         glowTool.command = "glow";
                         glowTool.icon = ICON_EIHEAD;
                         defaultToolBar.addCustomShapeToToolBar(glowTool);

How can I connect this button function in my extended WBCanvas?  The "command" property clearly has something to do with it.  What exactly is the command of the WBShapeToolBarDescriptor property do?  The source says

/**

* The command that would be sent by the toolbar. Used if the type is WBShapeToolBarDescriptor.COMMAND

*/

I'll try to find where in the source that the undo/redo/erase commands are linked to their respective functions, like WBRemoveShapes, but I had no luck...

Hello

You can do it.

// Get your WhiteBoard toolBar

toolBar.addEventListener(WBToolBarEvent.TOOL_BAR_CLICK, glow)

protected function glow(p_evt:WBToolBarEvent):void{          if (p_evt.item.command == "glow") {               //Your operations          }}

Thank you

Arun

Tags: Adobe LiveCycle

Similar Questions

  • I can't create the custom toolbar

    Whenever I try to create the custom toolbar, it disappears after you restart Firefox. Can you suggest me a solution for this?

    Thank you!

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do not click on the reset button on the start safe mode window or make changes.

    What security (firewall, antivirus) software do you have?

    Some security software has virtualization or sandbox features that can cause problems to protect and restore files in the Firefox profile folder.

  • Is it possible to save a layout of the custom toolbar?

    Is it possible to save a layout of the custom toolbar?

    Print the help to the page layout, I can pretty well do memory...

    Once you have freshly generated the page layout you want

    1. Open your profile folder by typing about: support int the address bar (or help > troubleshooting information...)
    2. Click Open containing folder
    3. Use file > exit or "Firefox" button > Exit to exit Firefox (not the ' X' top-right that just closed the window)
    4. in your profile f older localstore.rdf select and copy ('Ctrl + C') then in short tights to make a copy, repeat the steps to create at least a copy, the original and the "localstore - Copy.rdf" and the "localstore - copy (2) RDF" will all be the same, about 4 KB to begin with. (not 18KO not 76 KB)
    5. Replace Firefox.

    Freshly generated means rename or delete the localstore.rdf original while Firefox is down, restart Firefox and customize your toolbars as you want.

    If you have a problem with a corrupt localstore.rdf put Firefox down and in your profile directory, delete or rename the localstore.rd then rename a copy of localstore.rdf

    Reference: http://kb.mozillazine.org/Corrupt_localstore.rdf see references to the backup copy, you must, of course, take periodic backups of all your personal data, and for Firefox, which includes your profile.

  • I have reset Firefox and now I've lost the Favorites and the custom toolbar.

    I can't restore my custom toolbar. Got back bookmarks by following the instructions found. I can not understand how to restore the toolbar... I go to the "Troubleshooting" information and I click on the "view files", but the only 'local' in my opinion, is not dated before I reset Firefox and I do not understand ' click on Firefox and while it repairs... etc. ". I am pretty good at following instructions, but these baffle me. Help, please!

    I haven't seen that pop up...

    If you want to try to roll back the clock I can describe a procedure to do this. In short, it would be to create a new folder of parameters (a new Firefox profile), deletion of the contents of this folder and copy the contents of your old data from Firefox on the desktop file.

    Does not take long, if you are interested, but then you have to troubleshoot why the old profile was slow. Here's how:

    Resucitating your profile before reset

    (1) create a new Firefox profile:

    Close Firefox and starts in the Profile Manager, as described in this article:

    Use the Profile Manager to create and delete profiles Firefox

    Any time want spending profiles, close Firefox and come back to this dialog box. When you create a new profile, I recommend that you use the suggested default location, not to delete all profiles without first making backups. For quick reference, name the 12 profile so you can easily recognize.

    (2) when you start in the new profile, it is almost empty. Open the profile folder using

    Help > troubleshooting information > "view file" button.

    The bar of Windows Explorer should show a name combining random characters with 12.

    (3) keep this folder open, exit Firefox. Allow a few moments for Firefox complete update of the files in the profile folder. Then delete the contents of the folder new profile. This will leave you with a profile folder 12 vacuum.

    (4) in a separate window, open the folder of old data from Firefox on your desktop. Copy all the data of this file in the profile folder 12 vacuum.

    (5) run Firefox. It is expected to launch in which looks exactly like your discount to zero prior configuration.

    Now on troubleshooting. If Firefox feels slow, I suggest starting with Safe Mode. It is a standard diagnostic tool in order to avoid interference by extensions (and some custom settings). More info: questions to troubleshoot Firefox in Safe Mode.

    You can restart Firefox in Mode safe help

    Help > restart with disabled modules

    In the dialog box, click on 'Start mode safe' (not Reset)

    Any difference?

  • The Custom Toolbar control ring question

    Hello.  It is probably a stupid question, but how do I add items to a ring (kRing) toolbar item when you use the toolbar Custom Control (toolbar.fp) in CVI 2010?  Thank you.

    You can add your items first, get the ID of the control to the item toolbar via the functions Toolbar_GetCtrlFromIndex or Toolbar_GetCtrlFromDescription, then using InsertListItem to add your items to the ring.

    Luis

  • The custom toolbar need create in addition Excel 7.1.6

    Hello

    According to the customer requested, all the features of essbase under menu essbase need create the toolbar of the customer. Explains user go to the menu of Essbase, click the retrieve, lock, send options that they can select the icon to display in the standard toolbar.

    Can you please guide me how to create the custom with all the functions of Essbase toolbar. ?

    Thank you
    Sekar.

    There is a sample available that was previously built toolbar. You can more or less features, but the default toolbar will get the most heavily used functions

    To install the default toolbar (installed on PC with the installation of the Essbase client). Find the file...
    esstoolb.xls

    This is, I believe, customer/sample

    This file contains a macro to create a toolbar, then when you open it, make sure you allow macros.

    Enjoy!

  • Add on tool bar appears, but add ons, and new custom toolbar only appears when the Customize window open - toolbar does not name in list of the toolbar?

    I used view = > toolbars = > and ticked all the toolbars that I want to appear. BUT add it to the toolbar appears blank (i.e. toolbar but no add ons). AND the new custom toolbar that I created is not yet listed in the toolbars available for check or not. The only way I can get to show upward (but no function) is by clicking the Customize button. The toolbar remains open as long as the window is customize, and I can add/remove/rearrange icons, but not use any of their functions (for example. I added a new button to the custom toolbar window, but when I click of course nothing happens, because another window - window customize - is still open). I need a way to lock the toolbar, so I can access buttons to use it please!
    BTW use Windows 8 and just went from IE (and fearing that I'll have to downgrade...)
    TNX so much.

    In my opinion, which suggests that what you were actually doing was to customize the toolbar of the addons. Firefox is quite flexible and you can for example put the print icon on the toolbar of the modules or the bookmarks toolbar, and not only on a new designed user a custom toolbar.

    Many modules are designed by their developers do not make use of the toolbar of the add-on. Some add-ons appear on other menus. Collusion shows also in the Tools menu. Some use the page modules interface for results or settings.

  • In Firefox v4.0.1, custom toolbars disappear from the menu of the toolbar when I open a 'new window '.

    1.
    I created a new toolbar in customize... / Add the new toolbar. It is on the list of the toolbars and opens upwards most of the time I start Firefox, but not always. I tested it and it is completely random.

    2.
    Same type of problem as 1., but whenever I use the function "New window" disappears from the custom toolbar in the menu of the toolbar, and if I need to use it, I have to Save all tabs bookmark and then close and reopen FireFox if I get my original window [where the toolbar]. AARRRGHH.

    I use FF for 7 years now, so I know enough to rule out corrupt localstore.rdf, new or updated modules updated (I could be wrong, but as I am often...).
    It comes back with other users? I am cursed? [lol] any help would be appreciated.

    See:

  • How to remove a custom toolbar.

    Where are stored the definitions of the custom toolbar? I created one, but now want to permanently delete it.

    Everytime I open Firefox is activated and I have to disable in the view menu. My preferences are not stored. This has happened in the last update of Firefox. The upper area is also a nasty green color before it loads my custom background.

    No idea of what is happening and how I can fix?

    Either way, "assumptions" for this are all wrong. It shows my version 3.5.4 and my XP OS.

    You must remove all elements (including separators and elements of space) in a toolbar and have them drag in the toolbar palette to remove the toolbar, customize the window is closed.

  • Custom toolbar library/store DPS

    Hello.

    In the section "Navigation Toolbar" from the Builder App DPS, I see an option to hide the navigation toolbar, but then I can't have custom library/windows...

    Is there a way to hide the toolbar of navigation (bottom) at the launch of a library custom / store?

    I know that I can return to the application library by default via DPS JS API (adobeDPS.configurationService.gotoState ("library")), if a way to hide the toolbar would be great...

    Thank you.

    There is a way, it's really really stupid UI.

    1. enable the custom toolbar

    2 customize the Library button to have your store/library custom HTML

    3 disable the custom toolbar

    When you build your application we will actually remember the settings of the custom library and use them even if the toolbar is disabled. Whoever designed it this way is a fool...

    Neil

  • How to reduce or hide the webroot toolbar upward under the command line?

    Browser = Firefox; Virus program = Webroot security; on the firefox browser, a white line will appear on the command line, followed by the logo of webroot with 'tools webroot' my webroot and 'sign-in '. can it be lost. the Explorer windows or chrome show these. It's a waste of screen for me.

    I should have mentioned that you could click next to the menu, the '+' (new tab) button or in a box empty after the address button to access the pop-up window and turn off the display of the individual toolbars on and outside. It works with the Webroot toolbar?

  • How can I reinstall the Norton toolbar under my command tool bar and how do I reinstall the Bing search engine

    Installation of bar tools original title: norton
    After a few not so useful offshore network supports my norton toolbar and search engine Bing (to the right of the toolbar) have been installed is no longer. I can see that both are enabled when viewing "Manage Add Ons". How can I reinstall the Norton toolbar under my command tool bar and how do I reinstall the search engine Bing?

    Hello

    1. is the computer connected to a domain?
    2. using Internet Explorer or another third party browser?
    3. what version of Internet explorer on the computer do you use?
    4 did you do changes on the computer before the show?

    If you use Internet explore, then you can reset Internet Explorer and reinstall the Norton toolbar, and check if that helps.
    http://support.Microsoft.com/kb/923737
    Reset Internet Explorer warning
    Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    You can also check out the link:
    http://Windows.Microsoft.com/en-us/Windows-Vista/change-or-choose-a-search-provider-in-Internet-Explorer

    Alternatively, you can display the query in the Norton community link for assistance.
    http://www.Symantec.com/Norton/support/index.jsp

  • During the creation of domestic demand, we enter the destination location, but when IR is converted to ISO how this system pick up the customer?

    During the creation of domestic demand, we enter the destination location, but when IR is converted to ISO how this system pick up the customer?

    Hello

    The location is added to the customer (internal part).

    Kind regards

    Isabelle Syed

  • When to pay issued what the command processing error occurred. For more information, contact the customer service by phone 8 800 333 36 63. What should do?

    When to pay issued what the command processing error occurred. For more information, contact the customer service by phone 8 800 333 36 63. What should do?

    Hello

    You will need to contact support by calling/chat for this request.

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    Kind regards

    Sheena

  • How can I add custom toolbar buttons to load the different TOCs?

    In my outings WebHelp, I want to have some custom buttons on the toolbar that when clicked load a table of specific contents in the left navigation pane. For example, when the user clicks the button on PC, the table of contents PC load in the left pane. When the user clicks the button on the virtual machine, TOC VM load in the left pane. All help files are managed in a single project and some files will appear in both tables of contents.

    I think that this should be possible, but do not know how to get there. Is it JavaScript that I should add to the element of custom toolbar to the table of contents of load on a click? How can I specify the table of contents I want to display for each button?

    BTW - I use RoboHelp 8 (version 8.0.2) to generate WebHelp output. Thank you in advance for your help!

    Hello

    If you were to upgrade to RoboHelp 9 it would simplify your question. Version 9 offers a new feature called content dynamic (DUCC) user-centric and offers a nice little drop-down selector in the mini-bar of Navigation Tools.

    As you are in version 8, the only way I can understand you it would handle is by generating two different outputs. Each output would use his respective OCD. In each project toolbar button can be configured to open the other project.

    You could report first having to manage two exits and all files. But if you take part DUCC and the way in which it is set by Adobe, it works the same way. It's just hidden from your initial view.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7, 8 or 9 in the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

Maybe you are looking for

  • Everyone is dismayed to see that there is no password recovery or reset secure put in place for encrypted backups?

    I am absolutely amazed that there is no recovery password for iPhone backups encrypted. (1) no password is required to access the iTunes application. He launched and the phone connects automatically. (2) someone might maliciously put a password. The

  • Firefox saved the most version of bookmarks after reset

    Having had the endless problems with Firefox and Adobe Flash wave breaking, unresponsive plugins and scripts, I took a leap of faith and 'reset' Firefox just now. My hesitation is that the last time I have reset Firefox, all my favorites have disappe

  • "Sleep mode" trackpad

    After updating to El Capitan, the trackpad on my MacBook Air goes to a mode "sleep" after a few seconds of inactivity. "Activating" the trackpad requires clicking on it. It's very frustrating, especially because time is so short. Is it possible to di

  • Support for Windows 10 for Satellite C885D

    I currently own a toshiba satellite laptop computer model c855d-16j and I tried to upgrade to Windows 10, initially, he begins to update and reach 86% where he begins to reset, the problem is it doesn't do anything from there and I'm stuck on reboot

  • Can Installer detect previous install and uninstall?

    Hi all We use LabWindows CVI 2010.  One of the previous iterations of the distribution of the CVI kit would detect and install from one of our programs and will ask before uninstall it would install the new version.  It wasn't a big problem for us, b