Page Index Toggle Pages: [1] 2  Send Topic Send Topic Print Print
Hot Topic (More than 10 Replies) DisableMenubarItem question (Read 2294 times)
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
DisableMenubarItem question
Apr 18th, 2011 at 1:48pm
Print Post Print Post  
In Program Application from the Application Property Manager, I am able to disable the  "Save" menu button using DisableMenubarItem("&Save"). My client wants me to also disable the "New" and the "Open" buttons. I'm not having any success using DisableMenubarItem("&New") or DisableMenubarItem("&Open").

Is is possible to disable them and if so how?

Thank you
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: DisableMenubarItem question
Reply #1 - Apr 18th, 2011 at 2:33pm
Print Post Print Post  
You can disable the toolbar buttons using INI file entries.

DISABLE BUTTONBAR BUTTON: SAVE
DISABLE BUTTONBAR BUTTON: OPEN
DISABLE BUTTONBAR BUTTON: NEW
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: DisableMenubarItem question
Reply #2 - Apr 18th, 2011 at 2:39pm
Print Post Print Post  
This is a nice feature, but it means we must have access to edit the user's Sesame INI file, correct? Or is this done on the server's INI file?
  
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: DisableMenubarItem question
Reply #3 - Apr 18th, 2011 at 2:41pm
Print Post Print Post  
Thank you Erika.
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: DisableMenubarItem question
Reply #4 - Apr 18th, 2011 at 2:52pm
Print Post Print Post  
Steve_in_Texas wrote on Apr 18th, 2011 at 2:39pm:
This is a nice feature, but it means we must have access to edit the user's Sesame INI file, correct? Or is this done on the server's INI file?

This is a client-side setting, so you do have to edit the client ini file. If you want all your clients to have the same ini settings, consider using a single ini file in a shared location that you reference using the -ini_file startup switch. That way, you can change one ini file, and all the clients will pick up the changes.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: DisableMenubarItem question
Reply #5 - Apr 18th, 2011 at 3:12pm
Print Post Print Post  
Thanks for that tip, Erika.

This sounds easy enough to implement, but I discovered last week that getting each remote user to change their Sesame Startup icon is not an easy task. (Typos and complacency are inevitable) and this would be a job that I cannot monitor for completion.

Is it possible to do this from the server side, or do I just need to walk each user through this process? Perhaps a Startup switch that will not launch sesame at all, unless it loads all switches exactly right.
  
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: DisableMenubarItem question
Reply #6 - Apr 18th, 2011 at 5:13pm
Print Post Print Post  
Steve_in_Texas wrote on Apr 18th, 2011 at 3:12pm:
Thanks for that tip, Erika.

This sounds easy enough to implement, but I discovered last week that getting each remote user to change their Sesame Startup icon is not an easy task. (Typos and complacency are inevitable) and this would be a job that I cannot monitor for completion.


Sure you can. Set your server to run on new and different ports for a while. Anyone who does not edit their switches won't be able to connect.

Quote:
Is it possible to do this from the server side, or do I just need to walk each user through this process? Perhaps a Startup switch that will not launch sesame at all, unless it loads all switches exactly right.


May be easiest to place a correct command line in an email and encourage everyone to cut and paste it out of the email and into the icon's command line - discouraging them from trying to type it in.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: DisableMenubarItem question
Reply #7 - Apr 18th, 2011 at 5:22pm
Print Post Print Post  
Good plan. I'll change the port numbers when I'm ready for the users to change their startup settings.

The last time I asked the users to change their startup commands, Outlook decided to auto-correct the dashes in my command so no one could connect. I'll put the Startup Command into a text file next time.

Thanks for all the help.
  
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: DisableMenubarItem question
Reply #8 - Apr 18th, 2011 at 5:41pm
Print Post Print Post  
You can also set a user parameter (USER PARAM:) in your ini file and check for it in application open. Probably a lot better than changing the ports.

Also, don't use outlook. Find a mail program that doesn't change things for you.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: DisableMenubarItem question
Reply #9 - Apr 18th, 2011 at 6:03pm
Print Post Print Post  
Yes, this does sound better. I'll read up on the USER PARAM option.

Quote:
Also, don't use outlook. Find a mail program that doesn't change things for you.


I'm going to have to chew on that one for a while. We're pretty well dug in to Outlook for day-to-day communication.
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: DisableMenubarItem question
Reply #10 - Apr 18th, 2011 at 6:38pm
Print Post Print Post  
Steve_in_Texas wrote on Apr 18th, 2011 at 6:03pm:
I'm going to have to chew on that one for a while. We're pretty well dug in to Outlook for day-to-day communication.

Might be lower impact to see if you can change the auto-correct options.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: DisableMenubarItem question
Reply #11 - Apr 18th, 2011 at 8:16pm
Print Post Print Post  
Quote:
Might be lower impact to see if you can change the auto-correct options.


Yes, and also turn off the 'HTML' feature, as it distorts the code enough to break things.  Undecided

Also, I've learned to make notes when Mark drops a subtle hint. (He mentioned Linux long ago...wish I would have listened better back then.)
  
Back to top
IP Logged
 
Rick_R
Full Member
***
Offline



Posts: 243
Joined: Jan 29th, 2010
Re: DisableMenubarItem question
Reply #12 - Apr 19th, 2011 at 3:24am
Print Post Print Post  
Consider adding code to the Application section that does the following:

1) Read the local Sesame.ini file.
2) Search for the lines you want.
3) If it doesn't find them, add lines to the end of the file, rewrite the file, pop up a MsgBox to the effect "Sesame has been updated.  Click Ok, then restart Sesame."  When they click Ok it exits Sesame.

That will also help as new users are added -- you won't have to check the ini file each time.
  
Back to top
 
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: DisableMenubarItem question
Reply #13 - Apr 19th, 2011 at 3:48am
Print Post Print Post  
Interesting idea. Thanks Rick.
  
Back to top
IP Logged
 
Rick_R
Full Member
***
Offline



Posts: 243
Joined: Jan 29th, 2010
Re: DisableMenubarItem question
Reply #14 - Apr 19th, 2011 at 5:15pm
Print Post Print Post  
Check out the post about 'Switch' files, especially "Admin Mode".  For something that will automatically change the ini file and force a restart, you'll probably want to add an override.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send Topic Send Topic Print Print