Hide Navigation Pane on open form

Iwan_UbachsIwan_Ubachs Member Posts: 19
Hi,

Does anyone know if it is possible:

- 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.

Comments

  • themavethemave Member Posts: 1,058
    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.
  • ObiWanObiWan Member Posts: 21
    Hi, u could use the Windows Script Host Object Model.WshShell as an Automation.

    SendKeys('%{F1}');


    Best regards ObiWan
    May the force be with u :mrgreen:
  • Iwan_UbachsIwan_Ubachs Member Posts: 19
    Thanks ObiWan it works fine!
  • kribokribo Member Posts: 12
    For those wondering how ::
    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...
  • ahmadheriyantoahmadheriyanto Member Posts: 1
    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
Sign In or Register to comment.