[JS] [CS5.5] [ScriptUI] issue of Manager event ScriptUI

I built a graphic script of pie starting with graphic Pie of Mariusz Sobolewski 2005 script available in the Exchange, and I'm trying

to implement a feature in InDesign base chart type and a ScriptUI user Board to allow its use.

I define global variables to keep track of the settings that the user will choose in a ScriptUI dialog box.

The problem is that I can't event handlers to update the values of 8 dropdownlist controls to the globally defined JavaScript object that must ultimately be used by a Pie Chart Builder.

I can update the values of several checkbox controls in a globally defined table, but cannot find a way to make it work for the dropdownlist controls that indicate the object style to apply to each piece of the pie.

Can anyone help? See code below:

#target "InDesign-7.5"
var graphStyleFiles = getStyleFiles();
var graphStyleNames = new Array(), pStyNames = new Array(), oStyNames = new Array(), oStyGroupNames = new Array(), pStyGroupNames = new Array();
var graphStyle = readGraphStyle(graphStyleFiles[0]);
/*
resulting default graph style is JavaScript object:
graphStyle = {
    objectStyleGroup: "graph",
    paraStyleGroup: "graph-styles",
    legendTextParaStyle: "legend_1",
    labelTextParaStyle: "label_1",
    sliceObjectStyles: [ "osty_1", "osty_2", "osty_4", "osty_3", "osty_7", "osty_5", "osty_0", "osty_6" ]
}
*/

//Global to track which slices should "explode" based on user selections
var explosionIndices = [];
...
rslt = showOptionsDialog( zValues, zLegendTexts);
...
var aPieGraph = new Pie( circle, dataValues );
aPieGraph.explodeSlices( explosionIndices );
...
function Pie( zCircle, zValues ) { 
...
}
//show options for pie graph with ScriptUI dialog
function showOptionsDialog( vals, texts ){
    ...
    //onClick handler to update indices of selected checkboxes (all contained in a parent panel) that indicate whether a given slice of pie is to be exploded
    //THIS WORKS: IT UPDATES the GLOBAL VARIABLE "explosionIndices"
    function updateExplosionIndices() {
        explosionIndices.length = 0;
        for ( var i = 0; i < this.parent.children.length; i++ ) {
            if ( this.parent.children[i].value ) explosionIndices.push( i );
        }
    }
    //onChange handler for dropdownlist controls (all contained in a parent panel) that map each pie slice to an object style
    //THIS DOES **NOT** WORK. IT DOES NOT UPDATE THE GLOBAL OBJECT "graphStyle"
    function objectStyleItemPickerReact() {
        graphStyle.sliceObjectStyles.length = 0;
        for ( var i = 0; i < this.parent.children.length; i++ ) {
           graphStyle.sliceObjectStyles[this.parent.children[i].selection.index] = this.parent.children[i].selection.text;
         }
    }
    ...
}

Hi Matthew,

Your source code contains a very strange line:

graphStyle.sliceObjectStyles [this.parent.children [i].selection.index] = this.parent.children [i].selection.text;

Given a dropdownlist this.parent.children [i], you use the index of the item selected in a new index of the graphStyle.sliceObjectStylesrange, which reassign you from scratch. So your algorithm looks like:

myArray is an empty array (myArray.length = 0)

for each (widget) {myArray [widget.selection.index] = something ;}

Are you sure you want to remap table of this way? Assume that A.selection.index == 2 and B.selection.index == 2 (i.e. the third element is selected in two different drop-down lists). Then your loop will assign myArray [2] twice! In addition, nothing prevents the resulting table for 'holes' (= indices not defined).

Maybe that's why your bug.

In addition, I find it weird to go this.parent.children go to a Manager. Of course I can't assume something about the hidden part of your statement, but what is confusing, here's how to connect to objectStyleItemPickerReact to the corresponding widgets. You don't seem to attach this event handler for the parent panel. Why? As long as the bubble of the 'change' event, you can use smth like:

parentPanel.addEventListener ('change', objectStyleItemPickerReact)

and then work evt.target widget in your event handler changes.

Usually, when we have a set of similar widgets that need to share a same behavior, it is possible to use a single listener (attached to the parent object). Here is a simple example with dropdowns:

var NB_OF_WIDGETS = 5;

var  u, // undefined shortcut
     dlg = new Window('dialog'),
     pn = dlg.add('panel'),
     i;

// Add some dropdownlists in the panel
for( i=0 ; i < NB_OF_WIDGETS ; ++i )
     pn.add('dropdownlist',u,["aaa","bbb","ccc"],{idx:i}).selection = i%3;

function myChangeHandler(ev)
     {
     // NB:  is the parent container (==pn)
     var wg = ev.target,
          sel = (wg instanceof DropDownList)&&wg.selection;

     if( false !== sel )
          alert(['DropDownList: ' + wg.properties.idx,'Selection: ' + sel.text].join('\r'));

     wg = sel = null;
     }

pn.addEventListener('change', myChangeHandler);
dlg.show();

Hope that helps.

@+

Marc

Tags: InDesign

Similar Questions

  • I'm trying to update my CS5, but my Adobe Application Manager maintains do not install updates despite having my registered product. What should I do? I need customer support.

    I'm trying to update my CS5, but my Adobe Application Manager maintains do not install updates despite having my registered product. He was giving me the same error for months.

    What should I do? I need customer support.

    All the early updates here and product selection, read to see if you need to install updates in the order of the numbers, or if updates are cumulative for the product http://www.adobe.com/downloads/updates/

  • Service Control Manager (event ID 7000, 7009) issues

    Cannot start a license server Flexnet (PTC, Flexlm 10.8, 32-bit) as a service on my Windows Server 2008 R2 SP1 system. When I try it does not immediately, event ID 7000, 7009. There is no second waiting 30 or 60 before the failure is reported. (Yes, I tried increase the setting of registry ServicePipeTimeout.) When I uncheck the option 'use the service' LM 'configure the service' tab and start the license server manually, it runs. How can I make it work as a service?

    Hello

    As you use the Windows Server 2008 R2 operating system, we have a forum dedicated to the same thing. Please post the same query in the Windows Server forum:

    https://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    Please let us know if you need any other assistance on Windows.

  • Error service Control Manager Event Id 7026

    Service Control Manager error - the next time you start Event Id 7026 or starting system (s) failed to load: __Lbd (I see this error message in the system event viewer when connecting). The full message of MS is below.

    Details
    Product: Windows Operating System
    ID: 7026
    Source: Service Control Manager
    Version: 5.2
    Symbolic name: EVENT_BOOT_SYSTEM_DRIVERS_FAILED
    Message: The next (s) starting or starting system could not load: %1
        
    Explanation
    The specified drivers not been loaded properly. The driver is not in the expected location.
         
    User action
    Do all the following:
    Verify that the drivers are properly configured.
    Check that the computer is running the latest version of the drivers.

    Unfortunately MS did not say how to do this, just to make - not all that useful. How can I solve this exactly?  Any help will be greatly appreciated.

    Hi Bantam,

    In Event Viewer, do you think the list of specific drivers as well as the error message?

    You can follow this link to update the drivers on your computer:

    How to manage devices in Windows XP?

    Hope the helps of information.

  • Event ID 11 ATAPI / Service Control Manager event ID 7031 / crashes / freezes...

    OK, I'm almost certain that it is a hardware problem; probably in the hard drive (because that's what I read form similar problems online).

    I have a Dell XPS m1330 laptop computer, 2 GB of Ram, Vista Home Premium, 2.2 GHz processor, Nvidia G8400 MS with 128 MB allocated.

    Basically, he started a week or two ago, I got bluescreen containing "KERNEL_INPAGE_DATA_ERROR", out of the blue. I read it can be caused by incompatible software, which makes sense to me because I have recenty changed in msconfig startup programs, to try to speed up my startup... It was fine for a day or two, but then I got persistent crashes, woulf computer freeze for 20 seconds - 3 minutes (90% of the time when I was using firefox, although he did so with just iTunes open by himself before).

    Checking event viewer I've seen above, errors with the Red 'X'.

    I also see a lot of "Volmgr - the system does not have empty data in the transaction log.". Corruption can occur "with a yellow '! ».

    Also, I see some "Kernel-processor-Power - the speed of the processor 0 is restricted by the system firmware. The processor has been in this state of reduced performance for 9 seconds since the last report. »

    I often get warning messages that various programs have stopped working and the dialog box "do you want to close now or wait to face." These programs are sometimes an indexer Board/management console/windows search service Mcafee etc...

    Today, I got a new problem, a warning box appears, saying a critical error has occurred and windows will restart in one minute, telling me to save and close all work immediately...

    The only reason why I post here instead of replacing parts is that I updated my Dell Support Center and ran a test of the hard drive:

    Targeted reading test
    Test started 03/05/2011 12:37:29
    Error message: Error reading sector 23962699. 03/05/2011 12:38:14
    Error message: Error reading sector 23962698. 03/05/2011 12:38:58
    Error message: The test found 2 errors in sector. 03/05/2011 12:39:01
    Completion test: Failed 03/05/2011 12:39:02

    For some reason, it won't test the rest of the hard drive, just do not here and stop the test. However, he claims that the mistakes above are not "allways" indicative of hard drive failure... and annoyingly, tells me to do more tests...

    I know this doesn't look good, and I am extremely optimistic to think I can remedy without replacement of the equipment, but are there steps I can take before finally diving into the portfolio? (Guarantee missed 3 weeks ago... obviously).

    ChkDsk runs fine, no problem.
    Reference Dell Diagnostic returned failures in the hard drive, which I can list if necessary.
    I checked for new drivers, nothing there.
    I took out my hard drive, compressed air used to attempt to clean the connectors, nothing helps. (Note I've heard SATA cables may be at fault, but I wasn't able to get to them because of their location, migt need to disassemble my laptop further if you think it's worth)
    Off the CD/DVD rom drive (had mistakes occasional cdrom with yellow "!") The computer can will work perfectly for hours and then suddenly hang down to the minute, and Event Viewer is filled with dozens of error ID 11 atapi...

    Any advice?... huh.

    Hello

    I suggest to run the disk check in windows recovery environment and check if it helps.

    http://Windows.Microsoft.com/en-us/Windows-Vista/startup-repair-frequently-asked-questions

    Method

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-the-system-recovery-options-in-Windows-Vista

    Open the command prompt in Windows recovery and type chkdsk/r click on Enter Note there is a space between chkdsk and / r

    We you will ask if you want a drive type is check, and then press enter

    It will take place in 5 sections, please do not interrupt this let him finish.

    But the files may be corrupted and unrecoverable

    Hope this helps,

  • Win7 clean Post install issues Device Manager

    Hi all, I just did a clean reinstall Windows 7 on my XPS of 8700 (in reason to put in a new SDS). All right and it's working great, but there are two point in Device Manager with exclamation points that I can't get rid of. It's Controller of Bus SM and other devices. I tried to look for an update to the driver, but none have been found...

    The thing is, everything I want to do on my machine works fine as it is, so my questions are, can I disable or uninstall these things? What are they for? Etc...

    Oh yes, another important issue. When I did the re-install, I never invited to activate windows. But it the FACT in Control Panel-> system, show that it is activated and it shows a product key. What's up with that? I mean its fine, I don't want unpleasant surprises later.

    Thank you!

    Have you installed Intel Management Technology?

    http://downloads.Dell.com/FOLDER02057483M/2/ME_Intel_Win_A02_DMNV3_setup_ZPE.exe

    Licenses Dell Windows 7 OEM use OEM SLP activation. For Windows 7 the 25 digit Dell SLP entered since the reinstallation DVD and Windows is automatically activated if the BIOS contains SLP markers IE Windows active only if a valid Dell BIOS is detected. Each preinstalled with Windows 7 Professional Dell uses the same SLP key.

    Provide the ID of the unknown hardware devices:

    http://dellwindowsreinstallationguide.com/downloading-drivers-checking-hardware-ids-and-downloading-and-installing-dell-system-drivers-in-the-correct-order/checking-hardware-ids-in-the-device-manager/

  • Issue of recovery event

    I noticed that the health of sensor on IPS showing 'critical '.

    And I clicked for details, he showed that the recovery of the event is not recovered and critical now. I don't know what that means.

    Can someone tell me what are the causes that information, and how to fix it?

    Hello

    In this case, the recovery of this event can be ignored as mentioned in the last answer. You need IME to pull events.  It isn't causing any trouble.

     As we know IDM cannot pull events from the IPS/AIP directly and we will need IME for that, so if the events were not polled for an amount of time (default of 300 for yellow status) and (default of 600 sec for RED), the event status will change colors. So it's either Event Retrieval is enabled and the IME is not installed, hence no events are being polled, then this error can be ignored and the event polling can be disabled safely (un-check the Event Retrieval checkbox), OR the IME is not operating as it should and there might be communication issue between the device and the IME.

    Please let me know if you have additional questions on this. If this answers your query, I'll ask select answer as the solution for this thread.

    Kind regards.

    Akshay Rouanet

  • Can not download CS5 update of Adobe Application Manager

    I bought adobe CS5 creative suite 5 years, but today I can't download and install new versions of Adobe Application Manager.

    He said that there is a mistake...

    Any idea how fix?


    Thank you in advance for you're response

    Capture d’écran 2016-01-03 à 19.13.47.png

    Hey, Clement,.

    El Capitan cause strange behaviour, especially problems with older software. As you may know, CS5 is end of life and has not been tested on the latest operating systems like OS X 10.11. There is no warranty, so that it will work. That said, there are several things we can try.

    First, El Capitan has caused some problems with the downloads due to its default security settings. Sometimes the questions like the one you experienced when you tried to download direct updates can be corrected by changing the settings temporarily.

    1. Go to the Apple icon in the menu bar and select "System Preferences."
    2. Click the "Security & Privacy" and make sure the "Général" tab is active.
    3. If the lock at the bottom of the menu is closed, click Unlock. You may be prompted to enter the password for your computer.
    4. Under "allow downloaded applications from" check the rocker next to "Anywhere".

    Once you have made this change, try again to download the updates manually from http://www.adobe.com/downloads/updates/. If you are able to apply updates, don't forget to reset your security settings to your preferred level, once you're done.

    Still no luck? Let us know if you receive any kind of change in the error message or if it's exactly the same thing, and then we will continue accordingly.

    Best,

    Del

  • Management events JFXPanel drag a expensive impact on performance with event handlers

    We have a drag event handler, which is a bit expensive, takes something like 20 ms. However, the code must be run synchronously.

    Is no problem in a pure environment of JavaFX, less events drag are created when the CPU load is high.

    However, when they are incorporated in the Swing using JFXPanel, this adaptation doesn't kick in, many events drag is created and the application become slow.

    Is it possible to imitate what JavaFX in the JFXPanel scenario?

    The code below is a stand-alone example that shows what I'm describing.

    Some results I got:

    -eventHandlerSleep = 5 - noswing-128 events > drag

    -eventHandlerSleep = 30 - noswing - > 46 events drag

    -eventHandlerSleep = 5-> 136 events drag

    -eventHandlerSleep = 30-> 135 events drag

    {code} import java.util.Arrays;

    Javax.swing import. *;

    import com.sun.glass.ui.Robot;

    Import javafx.application.Application;

    Import javafx.application.Platform;

    Import javafx.embed.swing.JFXPanel;

    Import javafx.event.EventHandler;

    Import javafx.scene.Scene;

    Import javafx.scene.input.MouseEvent;

    Import javafx.scene.layout.BorderPane;

    Import javafx.stage.Stage;

    public class DragHandlingTester {}

    private static long EVENT_HANDLER_SLEEP = 30;

    Public Shared Sub main (String [] args) {}

    for (String arg: args) {}

    If (arg.startsWith("-eventHandlerSleep=")) {}

    EVENT_HANDLER_SLEEP = Long.parseLong (arg.split ("=") [1]);

    }

    }

    If (Arrays.asList (args).contains("-noswing")) {}

    Application.Launch (JavaFXDragHandlingTestApp.class, args);

    } else {}

    new SwingDragHandlingTestApp();

    }

    }

    public static class SwingDragHandlingTestApp {}

    {SwingDragHandlingTestApp()}

    JFrame frame = new JFrame();

    final JFXPanel fxMainPanel = new JFXPanel();

    Platform.runLater (new Runnable() {}

    @Override

    public void run() {}

    DragTestScene dragTestScene = new DragTestScene();

    fxMainPanel.setScene (dragTestScene.createScene ());

    }

    });

    frame.setDefaultCloseOperation (WindowConstants.DISPOSE_ON_CLOSE);

    frame.getContentPane () .add (fxMainPanel);

    frame.setSize (800, 600);

    frame.setVisible (true);

    }

    }

    NotInheritable public class JavaFXDragHandlingTestApp extends Application {}

    @Override

    {} public void start (point primaryStage)

    primaryStage.setWidth (800);

    primaryStage.setHeight (600);

    primaryStage.setX (0.0);

    primaryStage.setY (0.0);

    DragTestScene dragTestScene = new DragTestScene();

    primaryStage.setScene (dragTestScene.createScene ());

    primaryStage.show ();

    }

    }

    public static class DragTestScene {}

    private int Queens = 0;

    public createScene() {} Scene

    New Thread (new Runnable() {}

    @Override

    public void run() {}

    try {}

    After 1 second, drag the mouse through the window

    Thread.Sleep (1000);

    Robot robot = com.sun.glass.ui.Application.GetApplication () .createRobot ();

    robot.mouseMove (50, 50);

    robot.mousePress (1);

    for (int i = 20 & lt; 700; I = i + 5) {}

    robot.mouseMove (i, 50);

    Thread.Sleep (10);

    }

    robot.mouseRelease (1);

    } catch (Exception e) {}

    e.printStackTrace ();

    }

    }

    ({. start()});

    BorderPane borderPane = new BorderPane();

    borderPane.setOnMouseDragged (new EventHandler() {}

    @Override

    public void handle (MouseEvent mouseEvent) {}

    Drag Queens ++;

    try {}

    Thread.Sleep (EVENT_HANDLER_SLEEP);

    } catch (InterruptedException ignored) {}

    }

    System.out.println ("number of events slide:" + drag);

    }

    });

    new back stage (borderPane);

    }

    }

    }

    {code}

    Yes, it is a known problem or expected, even if I don't remember the JavaFX bugs filed on this issue. JFXPanel is known to have some different problems with the sending of the event, such as Swing and live JavaFX on two threads. Drag-and - drop are required to be synchronous, so we enter a nested event loop while sending events to the Swing DND to JavaFX. It is the source of performance issues that you observe.

  • MAC snow leopard - CS5 with any update: extensions Manager seems to do nothing

    I have my macbook pro with snow leopard.  CS5 update to the current... I have a mxp file... I click on it... Manager ext. monte on the tool bar... but nothing else... nothing in the window... just to be sure, I downloaded again the Manager of the position (CS5.0)... same thing... nothing.  I click on ANY station MANAGER and nothing shows.

    Suggestions?   I want to get this mxp file to work.

    Thank you, - bill

    1. delete all files under "/Users/Library/Preferences/Macromedia/Flash Player / # Security/FlashPlayerTrust / '.

    2. If step 1 does not work, please delete "/Users/Library/Preferences/Adobe/Extension Manager CS5/exman_uiPreferences.xml.

    3. If step 2 does not work, please run command in terminal: sudo "/ Applications/Adobe Extension Manager CS5/Adobe Extension Manager CS5.app/Contents/MacOS/Adobe Extension Manager CS5»

    4. If step 3 does not work, please create a file named "ExManLog.YES" under "/ CS5.app/Contents/MacOS/Applications/Adobe Extension Manager CS5/Adobe Extension Manager", then launch the extension manager. You will get logs «/Users/Library/Application Support/Adobe/Extension Manager CS5» Please provide the log files for troubleshooting.

  • Need help with event handler Code - does in Manager event Manager

    Hello

    Here is the code snippet that I use to create an event handler:

    ///////////////////////////////////////////////////////////////


    package com.oracle.events;

    import com.thortech.util.logging.Logger;
    import com.thortech.xl.client.events.tcBaseEvent;
    import com.thortech.xl.dataobj.tcDataObj;
    import com.thortech.xl.util.logging.LoggerModules;

    public class tcCheckOvrallProvStatusUDFs extends tcBaseEvent
    {
    private static Logger logger = Logger.getLogger (LoggerModules.XL_JAVA_CLIENT);

    public tcCheckOvrallProvStatusUDFs()
    {
    setEventName ("generation tcCheckOvrallProvStatusUDFs");
    }

    /**
    * @Override
    * @throws exception
    */

    protected void implementation() throws Exception {}
    data tcDataObj = getDataObject();

    String OIDProvStatus = data.getString ("usr_udf_oidusrprovstatus");
    String EBSProvStatus = data.getString ("usr_udf_ebstcausrprovstatus");

    If (OIDProvStatus.equals ("Provisioned") & & EBSProvStatus.equals ("Provisioned")) {}
    setOverAllProvStatus (data);
    }
    }

    /***
    *
    @param data
    * @throws exception
    */
    Private Sub setOverAllProvStatus(tcDataObj data) throws Exception
    {
    data.setString ("usr_udf_ovrrscprovstatus", "put into service");
    }

    }

    ///////////////////////////////////////////////////////////////



    Its a simple code that I use to fill the value of a UDF field according to the value of the remaining 2 fields. I want to trigger the events it after insertion and subsequent update.
    But even if I restart the server of the IOM after having placed the file compiled successfully (0 error, 0 warnings) in the EventHandlers's OIM_HOME folder. It does not appear in the Console Design-> developer tools-> definition of business-> event Manager Manager rule. :( I need this file appears in the search for adapters/event handlers to create an event handler. This JAR file doesn't show up there.

    Is there something missing in the code?
    What else must be specified?

    Please provide some guidance.

    Thank you
    -jhb.

    Create a variable username you adapter, go to the list of Variable in the adapter and click Add. Do set during execution.

    Once the adapter of the entity is created and you put this device in the data object manager ==>.click on Attach pre users insert and save.

    Go to the tab cards card, here, you can select your adapter and double click on the variable User ID and map it to entity field - USR_LOGIN.

    Thank you
    Suren

  • Issue of change event in the dialog box.

    Hi all

    I'm having a problem with a user dialog box. The dialog box should use eventchange to update aspects of the dialog box based on a user selection in a drop-down list box. The problem I encounter is that eventchange does not recognize the change of no selection to the first selection. IE, a user will have to select something else first, then change to what they want to be recognized. Is there something better that would solve this problem? or is the problem something else entirely?

    Thank you

    Artemis

    Hey, Artemis,

    The simplest solution would be to use the event EventInitialize to set the combo box to a default value when the dialog box opens, and your settings dialog box to match the selection.  In this way the first change makes the user would trigger change of value.

  • HP 251 has 244: blue screen issues/memory management

    I just got my ride on sea and ever sice I got it I had questions that I get blue screen error messages saying: memory management is paginated fault in non paged area or attempt to write to read memory dead, called hp for repair without success said he can't be a hardware problem should be problem software and programs that I put my being the origin of the problem so deleted 2 programs but still get error messages help!

    Please follow this step.
    http://support.HP.com/us-en/document/c04756946

  • Keyboard - capture #issue opening/closing event

    Hello

    As off SDK 1.0.1 the method provided in this post is no longer works to capture the event of opening and closing of keyboard.

    http://supportforums.BlackBerry.com/T5/Tablet-OS-SDK-for-Adobe-AIR/is-there-is-a-way-to-capture-even...

    I looked at it, but so far has not found a good way. I was wondering if anyone knew a solution to capture when a keyboard opens or closes. To be clear: I don't want to force the keyboard to open/close, I just want to know when the keyboard appears or disappears. (the method in the included post just that)

    I need to know what I use the flash Textfield (and not TextInput due to the lack of support of what I need to do) and when a user closes the keyboard it does not lose the focus.

    Thank you

    Lol, I was just with my semi-automatic functions, I found the solution:

    If you link your textfield with the keyboard by using this:

    IMFConnection.imfConnection.setKeyboardOptions(yourTextfield, null);
    

    He will lose the focus if dismiss you the keyboard. If you capture the FocusEvent.FOCUS_OUT on the "yourTextfield" then you can do what you want in this function.

    Hope this helps some other institutions

  • Scale of grey with CS5 and windows issues

    Hi, I used CS5 for years, but purely by heart and that you don't really understand how it things.  I ran win 7 and 8.1 on an iMac in VMware Fusion without any problems so far. He has now decided to display all changes 'live' on the main image when you are working in grayscale, all selections in any form of picture mode.

    Can someone tell me if I got something wrong in the Photoshop system please? I already reinstalled and made more simple my computer works perfectly stuff and it is.

    It is interesting if I run CS2 everything seems to work normally.

    concerning

    John

    ERM...

    I ran win 7 and 8.1 on an iMac in VMware Fusion

    Install a suitable graphic driver and enable the GPU acceleration in the VM or, conversely, turn off the power in PS.

    Mylenium

Maybe you are looking for