Allow Panes to be Shrunk and Expanded in VLF One

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
dhunt
Posts: 35
Joined: Fri Feb 08, 2019 3:06 am

Allow Panes to be Shrunk and Expanded in VLF One

Post by dhunt » Tue Apr 09, 2019 9:09 am

is there a way to shrink a filter and/or an instance list in VLF ONE to save screen space? I found an example for VLF Win but my application is in VLF One.

MarkDale
Posts: 106
Joined: Wed Dec 02, 2015 10:06 am

Re: Allow Panes to be Shrunk and Expanded in VLF One

Post by MarkDale » Tue Apr 09, 2019 11:40 am

I am assuming this is programmatic Shrink/Expand of Panes.

(The end user can minimize a pane using the minimize icon, though not the instance list or filter individually)

This section in the VLF guide explains about expansion/shrinking of panels in VLF-ONE

https://docs.lansa.com/14/en/lansa048/i ... 8_7095.htm

In VLF-ONE a filter or command handler can programmatically expand or shrink the pane it is in (avPaneMaximize, avPaneMinimize) and it can restore its pane back to its original size (avPaneRestore).

These methods are asynchronous – the request is queued up and waits for the command handler or filter that issued the instruction to finish its processing before the expand/shrink/maximize/restore is performed.

If a filter or command handler needs to maximize/minimize/restore a filter or command handler in a different pane, this can be done by signalling. The target command handler or filter listens for the signal and maximizes or minimizes or restores itself.

dhunt
Posts: 35
Joined: Fri Feb 08, 2019 3:06 am

Re: Allow Panes to be Shrunk and Expanded in VLF One

Post by dhunt » Wed Apr 10, 2019 1:26 am

It is when a user clicks on something to shrink or expand the pane similar to VLF Win and how the documentation link can hide or show the contents pane to full screen. Where would i put avPaneMaximize, avPaneMinimize,avPaneRestore? Could it be in a click event on a pane i add to the right side of a filter?

Thanks for the help.

MarkDale
Posts: 106
Joined: Wed Dec 02, 2015 10:06 am

Re: Allow Panes to be Shrunk and Expanded in VLF One

Post by MarkDale » Wed Apr 10, 2019 11:02 am

Yes - it could be in a click event handler in the filter, or the filter could have a routine that listens for a signal, and in that routine it could use #Com_Owner.PaneMinimize.

dhunt
Posts: 35
Joined: Fri Feb 08, 2019 3:06 am

Re: Allow Panes to be Shrunk and Expanded in VLF One

Post by dhunt » Fri Apr 12, 2019 5:32 am

avPaneMaximize and Minimize did not do what i wanted. I want the pane to stay but be smaller when you click an icon. I can get the pane to shrink but the filter size stays the same. Any thoughts?
Annotation 2019-04-11 125647.jpg
Annotation 2019-04-11 125647.jpg (54.38 KiB) Viewed 10650 times
I want it similar to this
Annotation 2019-04-11 125734.jpg
Annotation 2019-04-11 125734.jpg (33.2 KiB) Viewed 10650 times
What it does look like is this below:
Annotation 2019-04-11.jpg
Annotation 2019-04-11.jpg (34.21 KiB) Viewed 10650 times

MarkD
Posts: 630
Joined: Wed Dec 02, 2015 9:56 am

Re: Allow Panes to be Shrunk and Expanded in VLF One

Post by MarkD » Tue Apr 30, 2019 2:25 pm

A new VLF version (EPC152057) version is due out soon.

It includes this new feature .....
capture1.png
capture1.png (122.59 KiB) Viewed 5667 times

Post Reply