Page 1 of 1

Allow Panes to be Shrunk and Expanded in VLF One

Posted: Tue Apr 09, 2019 9:09 am
by dhunt
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.

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

Posted: Tue Apr 09, 2019 11:40 am
by MarkDale
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.

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

Posted: Wed Apr 10, 2019 1:26 am
by dhunt
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.

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

Posted: Wed Apr 10, 2019 11:02 am
by MarkDale
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.

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

Posted: Fri Apr 12, 2019 5:32 am
by dhunt
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 10957 times
I want it similar to this
Annotation 2019-04-11 125734.jpg
Annotation 2019-04-11 125734.jpg (33.2 KiB) Viewed 10957 times
What it does look like is this below:
Annotation 2019-04-11.jpg
Annotation 2019-04-11.jpg (34.21 KiB) Viewed 10957 times

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

Posted: Tue Apr 30, 2019 2:25 pm
by MarkD
A new VLF version (EPC152057) version is due out soon.

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