Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PEM editor - AutoHide
Message
From
27/11/2021 12:46:44
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
PEM editor - AutoHide
Miscellaneous
Thread ID:
01682833
Message ID:
01682833
Views:
70
I love the PEMEditor. But,...

It can sometimes get in the way on the desktop. Well, along time ago I create a simple class called AutoHide. When a form is place next to one the VFP borders and the form looses focus, the form will slide behind the the border, leaving only a small portion visible. Then when the mouse pointer is placed over the exposed portion, the form pops out.

The AutoHide class is implemented by dropping the AutoHide class of the AutoHide.vcx onto the "frmPEMeditor" of the "EditProperty.vcx" in the PEMeditor.pjx project, and rebuild the PEMeditor.APP. Start the PEMeditor, place it next to any of the VFP desktop borders. Move focus to another window (click on something else). After a few seconds the PEMeditor will drop behind the border. Move the mouse over the exposed portion and editor will reappear. Move the editor away from the border to prevent the auto hiding. The delay is implemented to prevent the form from hiding when the mouse momentarily wonders outside the form.

See Attachment.

Controlling Properties of the AutoHide class:
- Margin : the amount of the form that is visible when the form is hidden. (def. 10 pixels)
- Delay_Duration : the number of seconds it waits before the auto hiding occurs. (def 2.0 seconds)
- Enable : Turns AutoHide on or off.

ToDo: Add a checkbox to the Preference Dialog to enable the AutoHide feature. And perhaps control the Delay and Margin too.
The AutoHide class seems to work on any VFP forms. It may not be 100%, but I have not had any issues from it.

If anyone feels like adding it to the production version, feel free to do so. It has always been public domain. But please mention where it came from (me) for my sake.
Thank you and Enjoy. Greg Reichert
Greg Reichert
Next
Reply
Map
View

Click here to load this message in the networking platform