1. Andrew Davis
  2. PowerBuilder
  3. Thursday, 30 August 2018 14:43 PM UTC

Hi

I am trying to disable the titlebar on a window on the open event - using this.titlebar=false

I get the following message -

A systemwrite property can be modified only in an event or function in its parent class 

what am i doing wrong ?

 

i can disable the control menu using similar code this.controlmenu=false

 

I am using pb2017 r2

 

as always thanks in advance

 

Andrew

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 30 August 2018 15:08 PM UTC
  2. PowerBuilder
  3. # 1

Hi Andrew;

   This was also the case in PB 12.6 & lower versions of PB. The odd property - like this one - can only be controlled via the related painter at design time.

   Please submit an enhancement request via a Support Ticket to have this restriction removed. In the meantime, a workaround would be to have two window classes (one with & without the title bar) and then at runtime, open the version you need. A bit of a PIA but the only suggestion I can make at the moment. Maybe someone else will "chime in" here if they know of a SDK call that can be made at run-time to mitigate this problem at run-time using the one window class.

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.