Illustrator SDK :: Close Button (X) On UI Extension

Dec 2, 2011

I am very new to Flex/Flash/Illustrator. Using Illustrator CS5.1, Flex 3.6 SDK in Flash Builder 4.5, and Visual Studio 2010.I am developing a hybrid plugin for Adobe Illustrator.  The plugin is C++ and interfaces with a hardware device and an UI extension built on Flex/Flash.  It uses the CSXS library (version 2.0 based on Flex 3.4 SDK) to perform the communication between the extension and the plugin.
 
When the UI extension closes, I need the plugin to perform some tasks. These tasks might be related to Illustrator and/or to the device it communicates with. If the UI is closed using a button I add to the UI, the plugin runs the tasks as needed.  If the UI is closed using the 'X' button in the corner of the window, I can not get the CSXS interface dispatch events to carry over to the plugin.  This is the same dispatch events used from the UI button that I manually created and works fine.
 
I have tried capturing the exiting event from the NativeApplication and I do see myself entering the associated function to that capture.  The dispatch events run but I do not enter the corresponding functions in the plugin.Below is one of several attempts at making this work (believe this was found on the Adobe forums):
 
public function init() : void
{
      NativeApplication.nativeApplication.addEventListener(Event.EXITING, windowedapplication1_closingHandler);

protected function windowedapplication1_closingHandler(event:Event):void
{
      event.preventDefault();
      //event.stopImmediatePropagation();
      CSXSInterface.getInstance().dispatchEvent(new CSXSEvent("com.testui.events.closing", CSXSEventScope.APPLICATION));
}
 
Again, windowedapplication1_closingHandler will process but the dispatched event is not seen by my plugin (when the 'X' is clicked).Is there a way to disable/hide the 'X' in the corner of the window?Am I not properly "capturing" and "halting" the exit event?Should I move away from the CSXS Library and use sockets to perform this communication (though the closing of the extension may have the same affect on the socket communication)?I am currently working on Windows 7 64-bit (if that matters) but the plugin will have to work on Mac too.

View 4 Replies


ADVERTISEMENT

Illustrator SDK :: How To Create Extension (flex - Extension Builder)

Feb 9, 2012

I'm learning how to create extension (flex - extension builder) for Illustrator and how to make it communicate with a plugin.

The samples provided in the SDK detailed how to load /unload extension from a menu item from Illustrator, and how to add / remove EventListeners to make the magic happen.
 
to sum up, this is something like that:
1- click on the menu item
2- load extension
3- add listeners
4- do your stuff......
5- remove listeners
6- unload extension
 
Basically my plugin is a module/service which is in charge of dealing with / modifying artwork tree. It has no User Interface.

My extension will have a user of this service.  
 
What I would like to do is to load my extension as soon as my plugin is loaded, and unload the extension when the plugin will be unloaded.

Or notify when extension is loaded or unloaded.

Is that possible and hw could I achieve that?

View 2 Replies View Related

AutoCAD LT :: Close And Don't Save Button

Mar 22, 2012

I'm trying to create a menu macro to close and dont save the drawing without it prompting me.

View 1 Replies View Related

AutoCAD 2010 :: Close Button Disappears

Aug 31, 2011

It has happened repeatedly, but on different occasions, that the close file X that should be in the top right position of the drawing has vanished. In other drawings that are open at the same time the X in present...Switching between drawings often brings the X back, but this is a weird bug that was not present before the 2012 release.

win 7 IV 2012 suite + Vault

View 7 Replies View Related

AutoCAD Civil 3D :: Random OK Button After Close?

Mar 28, 2013

After I close C3D 2012 I get this button,

Why?  It doesn't seem to be affecting anything, but it's annoying.

Any way I can get rid of it?

View 9 Replies View Related

Lightroom :: How To Disable Red Close Application Button

May 9, 2013

Unlike other programs, this one closes the application rather than a window.

View 2 Replies View Related

AutoCad :: Clean-screen Disables Close Button?

Aug 31, 2011

I just loaded 2008. With cleanscreen on, the close "X" button is grayed out and inop. Also, the minimize button which is still operable does not fully minimize AutoCAD. How can I get these buttons operable in cleanscreen mode?

View 9 Replies View Related

CorelDRAW Graphics Suite X5 :: Auto Close Gaps Button On Toolbar

Apr 18, 2011

I have seen a reference to the auto close gaps button on the toolbar of CorelDraw.I need something like that, because whatever I do I cannot fill my lineart with the smartfill tool, even though I have closed all the gaps, as far as i can tell.

I am wondering if there is a problem with my Coreldraw X5 Software.I am using it on an iMac with Parallels.

View 9 Replies View Related

Illustrator SDK :: Progress Bar As Flash Extension Possible?

Nov 29, 2012

Try to realize the progress bar as a flash extension?
 
i tried to realize a progress bar as a flash extension, but the flash ui with the progress bar freezes, because my time consuming process ssems to block the flash ui.
 
In the first step I moved the time consuming algorithm into a separated thread. At first I used a dummy time consuming algorithm to keep the tests simple and the progress bar worked fine. Then I replaced the dummy algorithm with the real algorithm, but the algorithm did not work. I could not invoke Suite functions of the Illustratok SDK. I assume that after the plugin main thread had invoked my worker thread and returned, some resources are released.
 
In the next step I tried to move the flash extension handling to a separate thread, but then loading the extension by the SDKPlugPlug hangs. I assume that the extension handling is an event based process. Since my new created thread has no event loop, the extension can not communicate with my thread.

View 1 Replies View Related

Illustrator SDK :: Converting JavaScript To Actionscript For Extension

Apr 14, 2013

Converting some Javascript to Actionscript for an extension.

Have a selection. Need to iterate through selection, and then when finding groups, iterate through groups to get geometricbounds.
 
in Javascript GroupItem.Pageitems[i] will allow me to access properties of items in the group. Actionscript is a big fat 1009 NULL error. Probably some type error since GroupItem is Object?
 
This simple code throws the error. I have two rectangles grouped. That is what is selected.
 
var mySelItem:Array = app.activeDocument.selection as Array;
if (mySelItem[0] is GroupItem){
var myPath:PathItem = mySelItem[0].PageItems[0]
myPath.remove()
 
Line of code that will allow me to access children of GroupItem and get properties?

View 1 Replies View Related

Illustrator Scripting :: CC Extension Preferences Aren't Being Saved?

Jul 1, 2013

I am trying to save preferences in the onClose function of my extension using the following code:
 
CSXSInterface.instance.storePreference("shapeStrokeSize", model.shapeStrokeSize.toString());
 
But the values I save do no persist and I can't find the prefs file. I am checking in: /Users/mitya/Library/Application Support/Adobe/CEPServiceManager4/preference
 
if I run this same extension in CS6 everything works fine.

View 2 Replies View Related

Illustrator Scripting :: Regain Keyboard Focus From Extension

May 9, 2013

Have a lovely extension. Such a pretty panel. Useful. Except there is a bug using FlexUI. If you click a flex panel it grabs up keyboard focus and will not let it go unless you click somewhere else. This may be a Mac thing. You can see this behavior in the built in "Kuler" extension. Select object. Click on Kuler panel. Hit delete. Object doesn't go away.
 
Now scouring the intarwebs I've seen a few posts describing this issue, but no fixes for Illustrator. If people know, they ain't telling. I aim to fix that, but first I need to find that answer.
 
Actionscript is just plain slow anyway, so I have my extension logic running from a Javascript. If there was some command in that script to give Illustrator back keyboard focus, even if it's a hack (such as invoke action), now that would be something.
 
Test it by using Kuler and running the script from Illustrator. The act of switching between ESTK and illustrator will fix things, but obviously you don't want to switch applications in the middle of a task.

View 9 Replies View Related

Photoshop :: Adobe CC Close Illustrator

Nov 15, 2013

I seem to be having a problem installing Adobe Photoshop CC , everything was working great in the beginning , but as soon as I began installing it I had a message display saying "Please Close The Following Application " Which in this case is Adobe Illustrator. I already have it closed , even in task manager , I can't see the Illustrator.exe.

View 4 Replies View Related

Illustrator :: How To Close Off Included Shape

Jul 22, 2012

I have attached a couple of comic book bubble shapes that have "tails" on them (the little pointy part that you put near the persons mouth who is speaking the dialogue). I'd like to remove these tails and close off the shape so that it's symmetric (as if the tail never existed).

View 9 Replies View Related

Illustrator :: Close All Windows Shortcut?

Apr 4, 2011

Is there a faster way to close a group of windows or all windows at once than clicking on each one and waiting for it to close?

View 4 Replies View Related

Illustrator :: Setting Up Action To Save Files In CS4 - File Saving Without Extension

Sep 4, 2012

I'm trying to set up an action to save a batch of files I creating using the variables tool (as detailed in this video: [URL]), I'll go into the Actions window, and record myself  saving the current file in .Ai format, and then stop recording. Seems pretty simple, but when I set that action to run a batch on my dataset it saves all the files without an extension. Am I missing another step where I set the file format that the action is supposed to save with? I'm confused. I've tried this using a few different file formats and they all come up the same.
 
this is what my Output looks like:

and my simple action:

View 2 Replies View Related

Illustrator :: Self Portrait - How To Close Paths With Pen Tool

Dec 6, 2013

I am working on a self portrait in illustrator.  I have done some of the work using the pencil tool.  How do I close the paths with the pen tool. 

View 2 Replies View Related

Illustrator :: When Close One Page / Very Slow To Allow To Open Another

May 25, 2012

When I close one page, it's VERY slow to allow me to open another...

View 2 Replies View Related

Illustrator :: CC Applications Close After Splash Screen

Jan 22, 2014

i just subscribed to CC as a student, and i cant get photoshop or illustrator to open. the splash screen loads and goes through, and you can see illustrator and photoshop both open, but close a few seconds later with no prompts or errors. i browsed around and saw something about verdana font, but i have it installed.
 
Edit: i am running windows 8.1

View 8 Replies View Related

Illustrator :: What Is ShellExtLoader And How To Close It To Complete Installation

Sep 4, 2013

installation question...what is ShellExtLoader and how do I close it to complete installation?

View 2 Replies View Related

AutoCAD Inventor :: Breaking Dim Extension Lines As They Cross Over Other Dim Extension Lines

Nov 29, 2011

I'm using Inventor 2011 and I can't figure out how to set my dimension settings so it breaks the dimension extension lines automatically when crossing over other dimension extension lines.  I saw that others say it just happens, but it is not "just happening" for me.  how to set my dimensions so when dimension lines cross each other one of them automatically breaks?

View 9 Replies View Related

Illustrator :: Dialog Windows Close Prior To Action CC

Nov 12, 2013

When I select "open" from the menu, the "open" dialog box opens and then immediately shuts.  I can't open a document in Illustrator.  Also, this has been happening in other dialog boxes, such as save as....
 
Creative Cloud indicates my software is up to date. 

View 4 Replies View Related

Illustrator Scripting :: Print All Open Windows In CS5 Then Close Files

Feb 2, 2012

To print all open windows  in Illustrator CS5 (or illustrator files in a folder) then close the files.

View 12 Replies View Related

Illustrator :: 3D Clothes Button With Holes In CS6?

Feb 23, 2014

I can make the button profile and spin it around its axis just fine..getting the holes into such a shape is another matter..Is this beyond AI's 3D tool capability?
 
And to be clear, I mean the clothing type of button, with holes for thread, as opposed to an interactive button pushed by a user on a web page.

View 5 Replies View Related

Illustrator :: Bind To A Mouse Button?

Nov 20, 2013

Specifically, I would like to be able to click and hold my middle mouse button to drag the screen, a la the Hand Tool. Additionally, I'd like scrolling my mouse wheel to zoom in and out, rather than scroll the screen up and down. I know this can be done by holding Spacebar to use the left mouse button to drag the screen, but I'd like to be able to do it with my scroll wheel alone, especially since it doesn't already seem to be filling any other important function.

View 4 Replies View Related

Illustrator SDK :: Trigger Button Click

Sep 9, 2012

I need a way to programmatically click one of the interface buttons, if at all possible. I've tried calling the method directly linked to the button, but for some reason it doesn't work. I've tested several different scenarios, but it never works as expected. So, I figured the easiest, most effective way would be to activate a button as if a user had clicked it.
 
Is there any way to do this? My button is of course an IADMItem and I've tried stuff like SendNotify(), but it just doesn't work as expected.
 
Seems like there's something really simple that I've been overlooking.
 
I'm actually a server admin/web developer who inherited a complex C++ project, so I'm still in the middle of figuring half of this stuff out.

View 1 Replies View Related

Illustrator :: Can See Sync Settings Button But Not Enabled?

Feb 20, 2014

I can see the sync settings button but is not enabled how do I sync it?

View 1 Replies View Related

Illustrator :: Trace Button Does Not Vectorize The Image?

Aug 23, 2012

I place the image in AI then hit the live trace button. The image changes into what appears to be vector, but remains a solid image. i.e. can not select any of the shapes or use magic wand tool?

View 2 Replies View Related

Illustrator :: Download Button Doesn't Work

Mar 16, 2013

I am unable to download the following template: URL....
 
-Using Chrome, the download button doesn't work.
-Using IE 10, the download button works, but takes me to a login screen. When I enter my adobe ID and password, the page just sits there with a spinning circular spoked icon going round and round, indefinitely.
 
As a result, I am unable to download this template, or any templates.

View 1 Replies View Related

Illustrator :: How To Recover Live Trace Button

Jul 15, 2013

How to recover the Live Trace button as well as the entire option on a CS5 top bar and Objects menu? Mine has vanished, and while i am still able to find Live Trace under the OBJECT section, it won't allow me to use any of the options. I've tried restarting, I've checked if my images were locked, I've opened various files hoping the outcome would be different, but nothing worked. I've even tried going to Keyboard Shortcuts and keying in a new shortcut, but it won't allow me to as no box appears for me once clicked. 

View 7 Replies View Related

Illustrator :: Button That Removes All Unused Swatches?

Nov 12, 2013

Just wondering is there a button that removes all unused swatches in an illustrator file?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved