1. Clarence Chamorro
  2. PowerBuilder
  3. Thursday, 8 December 2022 18:50 PM UTC

I recently discover the MaxBox, MinBox and X in a Datawindow TitleBar but when I click in the X or the Maxbox or MinBox everything reacts at the datawindow level. I want to Minimize or Maximize or Close the Window. So I will like to find which event to check and redirect action. You advise is always greatly appreciated.

Regards,

Clarence

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Sunday, 21 January 2024 19:08 PM UTC
  2. PowerBuilder
  3. # 1

Hi Clarence;

   That's great news ... Thanks for letting us know!  :-)

Regards... Chris 

Comment
There are no comments made yet.
Clarence Chamorro Accepted Answer Pending Moderation
  1. Sunday, 21 January 2024 17:56 PM UTC
  2. PowerBuilder
  3. # 2

I completely apologize. I never went back to see if somebody had gave me an answer.

 

Chris it work perfect.

 

You are a Genius and generous sharing your knowledge.  

Regards,

Clarence.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 8 December 2022 22:30 PM UTC
  2. PowerBuilder
  3. # 3

Hi Clarence;

1) Create a User Event on the DW Control and map it to PBM_SysCommand, as follows

2) In the test Script from the above you should see the following values for the CommandType in the Window Title, as follows ...

  • Min: 61472
  • Restore: 61488 (When Minimized and returning to previous size)
  • Restore: 61728 (When Maximized & returning to previous size)
  • Max: 61488 ( and DC's Width & Height now ='s Window's Width & Height)
  • Close: 61536

Note that you can also cancel any activity in this UE as well to stop the action from happening (aka "Cancel").

HTH
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.