Normal Topic Opening the Command Area Button (Read 597 times)
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Opening the Command Area Button
Jun 1st, 2005 at 8:55pm
Print Post Print Post  
I tried programming a command button to open the command area when closed.

The programming included @CloseCommandArea function but it did not work at all.

Is this doable

Right now I have it set that the command area opens upon form entry and closes upon searching and retrieving.

I can get it to open by hitting F10, F7 and then F10 again and selecting the Open command area under the View option.

This actually works fine but it would be nice if I could program a button.

Thanks,

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Opening the Command Area Button
Reply #1 - Jun 1st, 2005 at 9:02pm
Print Post Print Post  
Yes it is doable.

http://www.lantica.com/Forum2/cgi-bin/yabb/YaBB.pl?board=program;action=display;...

Just be sure you put the code in the On Element Entry event of the Command Button.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: Opening the Command Area Button
Reply #2 - Jun 2nd, 2005 at 4:14pm
Print Post Print Post  
Ray:

Thanks once again.  I have the command area working exactly the way I want it now as follows:

APPLICATION: ON APPLICATION OPEN

var state as Int

//OPENS COMMAND TREE

state = @CloseCommandArea()

CloseCommandArea(0)


EMPLOYEE: ON FORM ENTRY

//CLOSES THE COMMAND TREE

RunExitProgrammingOnCloseForm(1)

CloseCommandArea(1)

EMPLOYEE: ON FORM EXIT

//OPENS THE COMMAND AREA WHEN YOU EXIT THE FORM BACK OUT TO THE APPLICATION MENU

If (@FormWillClose() = 1) Then
{
   CloseCommandArea(0)
}

EMPLOYEE: ON RETRIEVE SPEC OPEN

var state as Int

//CLOSES THE COMMAND TREE

state = @CloseCommandArea()

CloseCommandArea(1)

OPEN COMMAND AREA BUTTONS - on each page tab

var state as Int

//OPENS THE COMMAND TREE

state = @CloseCommandArea()

CloseCommandArea(0)      

Thanks,

Louis
  

Louis Galvao
Back to top
 
IP Logged