Normal Topic Custom Menu Programming (Read 1055 times)
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Custom Menu Programming
Feb 15th, 2006 at 5:31pm
Print Post Print Post  
I am utilizing part of the code that Bill Halpern published in the December 2004 Inside Sesame newsletter on Creating Custom Menus, Part 1.

I find the following:

1.  When you open or preview your application, the custom menu appears but with the Add Data Menu on the left hand side.

2. Two tabs appear at bottom left: Application Menu and Add Data Menu tabs. 

Is there a way to shut the Add Data Menu off ? I presume not, otherwise you wouldn't be able to add or search/update.

What is the purpose of having the App Menu tab at the bottom left when it is rendered non-functional ?

3. I have programmed a "Backup Application" button but it doesn't seem to work:

Var vMenu as Int

vMenu = @SelectTreeItem("RBA Accounting!Application Utilities!Backup Application")

I was hoping to actually program the button to bring up all Application Utilities options but couldn't get it to work either.  I took off the programming to hide this part of the tree but I still can't see it in the App menu tab.

My code in Application property Manager currently is:

var VTree as Int
var VHideTree as Int

//Hide all tree items at Application Menu level

vHideTree = @HideTreeItem("RBA Accounting!Forms")


//Open main menu

vTree = @SelectTreeItem("RBA Accounting!Forms!Add Data!Menu!Menu")

//set the Custom Menu to be the default form

SetDefaultTab("Add Data Menu")

Thanks,

Louis

  

Louis Galvao
Back to top
 
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: Custom Menu Programming
Reply #1 - Feb 15th, 2006 at 5:50pm
Print Post Print Post  
Resolved  the Application Utilities issue re: showing up under the Application menu tab. 

The backup utilities programming didn't work in preview mode but it did live.

Thanks,

Louis
  

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


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Custom Menu Programming
Reply #2 - Feb 15th, 2006 at 6:12pm
Print Post Print Post  
Quote:
I am utilizing part of the code that Bill Halpern published in the December 2004 Inside Sesame newsletter on Creating Custom Menus, Part 1.

I find the following:
1.  When you open or preview your application, the custom menu appears but with the Add Data Menu on the left hand side.


Yes. The Custom Menu is opened in Add Data mode. It is just another form.

Quote:
2. Two tabs appear at bottom left: Application Menu and Add Data Menu tabs. 

Is there a way to shut the Add Data Menu off ? I presume not, otherwise you wouldn't be able to add or search/update.


What do you mean shut it off? You can hide the menu tree.

Quote:
What is the purpose of having the App Menu tab at the bottom left when it is rendered non-functional ?


Because it is still functional. If it was not there then @SelectTreeItem() could not be used to open any other forms.

Quote:
3. I have programmed a "Backup Application" button but it doesn't seem to work:

Var vMenu as Int

vMenu = @SelectTreeItem("RBA Accounting!Application Utilities!Backup Application")


Double Check your spelling. I just tried it here in the sample Customers.db application and it does bring up the backup application dialog box.

Quote:
I was hoping to actually program the button to bring up all Application Utilities options but couldn't get it to work either.  I took off the programming to hide this part of the tree but I still can't see it in the App menu tab.



You can program a button to switch to the application menu tab.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Custom Menu Programming
Reply #3 - Feb 15th, 2006 at 6:13pm
Print Post Print Post  
Quote:
Resolved  the Application Utilities issue re: showing up under the Application menu tab. 

The backup utilities programming didn't work in preview mode but it did live.

Thanks,

Louis


Hello Louis,

The reason it did not work in Preview Mode is because Preview Mode does not have the Application Utilities Section of the Application Menu.

-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: Custom Menu Programming
Reply #4 - Feb 15th, 2006 at 7:18pm
Print Post Print Post  
Ray:

In response to your question:

"What do you mean shut it off? You can hide the menu tree. "

Currently, when I open the application, I can see the Add Data menu tree on the left side of the screen and my custom menu to the right.  When I open a database from the custom menu buttons, leave it open, click on the Add data menu, at that point, the custom menu fills the entire screen and the tree menu disappears.

If I escape out of an open database, my add data menu tree appears again.

I would like to hide it altogether from the moment I access the application but can't seem to do it. 

Does that sound confusing or do you need further clarification ?

Thanks,

Louis

  

Louis Galvao
Back to top
 
IP Logged
 
wase
Junior Member
**
Offline


Always looking for a good
code

Posts: 57
Location: Austria
Joined: Jun 22nd, 2004
Re: Custom Menu Programming
Reply #5 - Feb 15th, 2006 at 7:29pm
Print Post Print Post  
hi try the usage of the

CloseCommandArea(1) command

page 121 in programming guide

best regards
sebastian
  
Back to top
ICQ ICQ  
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: Custom Menu Programming
Reply #6 - Feb 15th, 2006 at 7:37pm
Print Post Print Post  
Sebastian:

Thanks for the tip, that solved the tree on open of the application. 

However, if I open a database and escape out,  the add data tree re-appears.

Thanks,

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
wase
Junior Member
**
Offline


Always looking for a good
code

Posts: 57
Location: Austria
Joined: Jun 22nd, 2004
Re: Custom Menu Programming
Reply #7 - Feb 15th, 2006 at 7:42pm
Print Post Print Post  
Quote:
Sebastian:

Thanks for the tip, that solved the tree on open of the application.   

However, if I open a database and escape out,  the add data tree re-appears.

Thanks,

Louis


hi
maybe you could put the programming into the on form entry section so the programming is always executed when enter your own "menue"

sebastian
  
Back to top
ICQ ICQ  
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Custom Menu Programming
Reply #8 - Feb 15th, 2006 at 8:00pm
Print Post Print Post  
Hello Louis,

Check your programming and see if CloseCommandArea(0) is  being called anywhere.

Also what version of Sesame are you running?

-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: Custom Menu Programming
Reply #9 - Feb 15th, 2006 at 9:12pm
Print Post Print Post  
Ray:

I had a call on Form Exit in each database to open the menu tree.  I needed this previously before I customized the menu.

Problem solved - thanks.

Louis
  

Louis Galvao
Back to top
 
IP Logged