Extension Panel GUI not refreshing / not rendering

General Discussion of Scripting for Flex, Flash & CS SDK

Moderators: Tom, Kukurykus

Jeremy Knudsen

Extension Panel GUI not refreshing / not rendering

Post by Jeremy Knudsen »

I have an extension panel that loads, but does not show the UI until I resize the panel. After that, the panel UI is visible, but unresponsive to mouse input. In other words, I don't see any hover or pressed states for the controls (e.g. button, checkbox, etc.). Instead, I just see a static image that doesn't update until I resize the panel again. A perfect example is: I click on a checkbox; the checkbox doesn't render any state change until I resize the panel.

Has anyone ever encountered this?
Jeremy Knudsen

Extension Panel GUI not refreshing / not rendering

Post by Jeremy Knudsen »

I've been able to trace the problem to a section of code where I'm registering for Photoshop events. Feel free to post a reply to good tutorials on how to handle Photosohp events...I apparently don't know what I'm doing.
cameronmcefee

Extension Panel GUI not refreshing / not rendering

Post by cameronmcefee »

Hi Jeremy,

Do you have an example of the the code you mentioned? It's weird that the events don't happen until the panel is resized. Perhaps you're adding the event listeners to the wrong thing?
Jeremy Knudsen

Extension Panel GUI not refreshing / not rendering

Post by Jeremy Knudsen »

I tore down my panel and rebuilt it from scratch. It seemed to have to do with a function in my JSX file. I have it working now.