Maximize XPA without MAX button or system toolbar


Adrian Wick
 
Edited

Is there a way to maximize XPA with action inside of XPA? The system toolbar is hidden ... Is there a c# code or some other windows function to do this?
I have tried "call windowMode" in a batch file and it does nothing. Tried "call windowMode" with title and pid and had no success. I also tried winmax(), winrestore() ...

Any ideas if this is even possible?

Regards,
A


Harry Kleinsmit
 

WinMaximize

Maximizes the Magic xpa frame from where the function was invoked. If the function is invoked in a non-SDI program, the MDI will be maximized and if the function is invoked from an SDI program, the SDI will be maximized.

Syntax:

WinMaximize()

Parameters:

None

Returns:

Boolean True or False indicating success or failure.

Platform specific:

This function is not supported for mobile devices.

See also:

WinMinimize

The Online and Rich Client Samples projects (program IF02 and RIF02)


On Fri, Mar 31, 2023 at 04:50 AM, Adrian Wick wrote:

Is there a way to maximize XPA with action inside of XPA? The system toolbar is hidden ... Is there a c# code or some other windows function to do this?
I have tried "call windowMode" in a batch file and it does nothing. Tried "call windowMode" with title and pid and had no success. I also tried winmax(), winrestore() ...

Any ideas if this is even possible?

Regards,
A


Adrian Wick
 

Yeah I did test this.

It works, for instance, in the main of the control file.

I need to trigger this as an user event ... So when user clicks on a button or calls a program with this action or a combination of key has been pressed by the user ... That way it does not work.

Regards,
A


Steven Blank
 

Adrian,

Which version xpa?

I tested the WinMaximize() function in xpa v4.9, to wit:
  • Create a User Event called Button_Click with Trigger = None, no Parameters and no Exit action.
  • Add a button to a form, configure it to raise event Button_Click.
  • Add a Event Handler Logic unit on Button_Click event.
  • In this logic unit, Evaluate WinMaximize().

Works for me ...

Evaluating this function maximizes the xpa main frame MDI. Are you rather wanting to maximize the child window within the MDI?

Which "system toolbar" is hidden? The main MDI frame's (how did you manage this?) or the child window's?

Steven G. Blank
Ξ SGBlank Consulting


On 3/31/2023 4:50 AM, Adrian Wick wrote:

Is there a way to maximize XPA with action inside of XPA? The system toolbar is hidden ... Is there a c# code or some other windows function to do this?
I have tried "call windowMode" in a batch file and it does nothing. Tried "call windowMode" with title and pid and had no success.

Any ideas if this is even possible?

Regards,
A



Adrian Wick
 

XPA 3.3

Yes, i am talking about the xpa main frame MDI. Hm, i guess i am doing something wrong than.

I will have a 2nd look.

Thank you Steven and Harry.


Adrian Wick
 

Everyday i learn something new!

Thank you Steven it works! 

Regards,
A


Adrian Wick
 

I am just curious ... 

I have a system event ctrl+shift+1 which did:
evaluate - > winmax()

And it didn't work

Now I have changed this into a virtual variable and put winmax() on init of that variable and it is working.

Why is there a difference??


Adrian Wick
 

Sorry ... I have no idead why it wasn't working before ... It is working even with only evaluate ... 
That is some alien stuff right there ... I'll bring out the last night backup. Because it wasn't working! Now it does.


Adrian Wick
 

Ok.

If there is only MDI opened, this thing doesn't work, until you hover over a menu. 
As soon as you have a form opened up, it fires immediately. 

Regards
A