Skip navigation
Currently Being Moderated

Runtime window problems..

Jul 27, 2012 2:39 AM


I'm trying to skin a Window using setStyle("SkinClass"..). To do this. i've made a siply program that skin my window, and surprisingly (yes surprisingly using flex these days..) it works.. this is my code..


protected function openwin_clickHandler(event:MouseEvent):void
var tableWindow:Window = new Window();
tableWindow.setStyle("skinClass", ResizableTitleWindowSkin);
tableWindow.width = 600;
tableWindow.height = 500;
tableWindow.minWidth = 600;
tableWindow.minHeight = 500;
tableWindow.type = NativeWindowType.UTILITY;
tableWindow.systemChrome = NativeWindowSystemChrome.ALTERNATE;
tableWindow.resizable = false;
tableWindow.maximizable = false;;
var l:Label = new Label();
l.text = "ciao";


Happy for this "great" piece of software i've decided to get this code and put ii in my main program..

And with my great surprise... it doesn't work! Cool!

Basically.. the window is opened but nothing is shown into.. the label (added for test purpose..) is not shown and neither the drawn hand resize on bottom right. Nothing.

So. in the same program i've decided to add a small button that call the same function.. and strange.. it works! BUT... if i click on my previous datagrid that should open the window i'm trying to open correctly it doesn't work.. and the worst thing is that the test button i've added doesn't display the window correctly!

So my question is... in which way THE SAME code could be destroy eveything??

Please help me sice flex is getting me crazy these days..

  • Currently Being Moderated
    Jul 31, 2012 8:57 AM   in reply to afxgroup1976

    Can you make a really small test case that reproduces the problem?

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points