Page 1 of 1

Trying to hide minimize and maximize buttons

Posted: Mon Jan 28, 2019 7:55 pm
by fmulder
Hi everyone,

I'm trying to hide the minimize and maximize buttons in a child panel. I'm using the code below but the panel will always briefly blink.
Does anyone have an idea how to fix this.

The code itself works fine. I just want to get rid of the blink

Code: Select all

  
  // Hide the minimize and the maximize buttons
  self.updatesEnabled = false;
  self.windowFlags = "WindowTitleHint|WindowSystemMenuHint|WindowCloseButtonHint";
  self.updatesEnabled = true;
Thanks

Share the fun
Frenk Mulder

Re: Trying to hide minimize and maximize buttons

Posted: Wed Feb 06, 2019 4:39 pm
by LIGO
Hi Frenk,

Why do you need to stop the panel from being updated? windowFlags is working fine for me without any changes to updatesEnabled property and I think that is what causes the panel to blink.

Best Regards
Leonid Solovev