- To hide the Navigation Pane automatically, if a specific form ID is opened.
- To show the Navigation Pane automatically, if a specific form ID is closed.
don't know if it will help you, but short cut key to show and hide navigation pane is "ALT" + "F1", so if you can send the key code on form open, and then again on form close, you could do it.
The only snag within all this, is the detection of the current state of the Nav.Pane.
If the Pane is closed by running the form it shall open.
If the pane is open by running the form it shall close.
So if anyone out there knows how to detect the current state of the Nav.Pane
Please let us know
thanx...
how to detect the current state of the Nav ? -> shoud be compare with screen resolution of current computer setting,
but I'm not idea of how to get screen resolution
Comments
SendKeys('%{F1}');
Best regards ObiWan
May the force be with u
For example closing the Nav. Pane upon opening of a form.
create a global variable ::
Name :: wSHShell
DataType :: Automation
Subtype :: Windows Script Host Object Model'.WshShell
OnOpenForm
CREATE(wSHShell,FALSE);
wSHShell.SendKeys('%{F1}');
CLEAR(wSHShell);
OnCloseForm
CREATE(wSHShell,FALSE);
wSHShell.SendKeys('%{F1}');
CLEAR(wSHShell);
The only snag within all this, is the detection of the current state of the Nav.Pane.
If the Pane is closed by running the form it shall open.
If the pane is open by running the form it shall close.
So if anyone out there knows how to detect the current state of the Nav.Pane
Please let us know
thanx...
but I'm not idea of how to get screen resolution