Skip to main content

In cobol wow, I want to know what instruction should I use for at runtime, when creating a windows form, specify it to be Maximized. Usually this is specified in the project properties, ShowState can be 0) Normal, 1) maximized, 2) iconic. However, I want to know how to change this at runtime. For example if the form has been created as 0) normal, I want for example 1) maximized.

CALL WOWCREATEWINDOW USING ?

In cobol wow, I want to know what instruction should I use for at runtime, when creating a windows form, specify it to be Maximized. Usually this is specified in the project properties, ShowState can be 0) Normal, 1) maximized, 2) iconic. However, I want to know how to change this at runtime. For example if the form has been created as 0) normal, I want for example 1) maximized.

CALL WOWCREATEWINDOW USING ?

Hola Wascar,

Why not to use call wowsetprop using win-return YourForm-h "ShowState" 1 on the onCreate event?

Regards,


Hola Wascar,

Why not to use call wowsetprop using win-return YourForm-h "ShowState" 1 on the onCreate event?

Regards,

WP-CREATE-CONTROLA.
         MOVE ALL 'N' TO WIN-STYLE.
        CALL WOWCREATEWINDOW USING CONTROLA-H
       CONTROLA-DEF WIN-STYLE 0 CONTROLA-CONTROL-HANDLES.
call wowsetprop using win-return controla-h "ShowState" 1.

------------------------------------------------------------

77 win-tipo pic 9.

call wowsetprop using win-return controla-h
"ShowState" win-tipo.


WP-CREATE-CONTROLA.
         MOVE ALL 'N' TO WIN-STYLE.
        CALL WOWCREATEWINDOW USING CONTROLA-H
       CONTROLA-DEF WIN-STYLE 0 CONTROLA-CONTROL-HANDLES.
call wowsetprop using win-return controla-h "ShowState" 1.

------------------------------------------------------------

77 win-tipo pic 9.

call wowsetprop using win-return controla-h
"ShowState" win-tipo.

Thank Juan Manuel. The .WPF that is actually part of the source had been ignored by me. I have tried the instruction you have recommended and it works.