Skip to main content

Detecting Minimised State in a GUI Class Library application

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

You can use code such as :-

           MOVE '"' & ProgramID & z'ToolbarDestroyed"' TO MessageName

           INVOKE EntryCallBack "new" USING MessageName

                                  RETURNING aCallback

           MOVE P2Ce-Destroyed TO i

           INVOKE aWindow "SetEvent" USING i aCallback

           INVOKE aCallback "finalize" RETURNING aCallback

to detact when a window is destroyed in the class library. What event can you use to determinate is the application is in a minimised state.

Resolution:

You can use the p2ce-resize to trap the sized event. The GUI class library "sized"  event is passed to the callback event in the user code.

This sized event has a method getMinMaxState that you can use in the callback to determine if the window is minimised.

Old KB# 1565

0 replies

Be the first to reply!