Normal Topic command buttons (Read 1877 times)
aussie
Member
*
Offline


No personal text

Posts: 4
Joined: Dec 15th, 2003
command buttons
Dec 23rd, 2003 at 10:05pm
Print Post Print Post  
Hi all,
Congrats on the new product.

I've hit my first hurdle.

I'm trying to design a form that uses command buttons to open a specific database, the user  then has the choice to add a record or update a record.

but i cant get the programing right - any pointers would be a great help.

The user base is not paticularly computer savvy so i would rather use command buttons rather than the "tree" structure for them to open records etc.

oh - & seasons greetings to all
  
Back to top
 
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: command buttons
Reply #1 - Dec 23rd, 2003 at 11:58pm
Print Post Print Post  
Aussie,

If I understand you correctly, you want to open the database with the tree menu closed and then have your own command buttons to do specific tasks.

You will need to start Sesame with the –closed option and have a macro take you to a form you create with the scripted command buttons. Below is a copy of a reply and help I received from Mark Lasersohn on this subject.

Start quote
When you start Sesame using the -closed option, you must be prepared to also load a database/form. You cannot put a button on the logo screen. So, you should usually combine the -closed option with the -macro option:
    Start Sesame
    Turn on macro recording
    Load a .db file
    Navigate to its form
    Stop recording macro
    Save macro - name it "start_me.mac"
    Stop Sesame
....
    Start Sesame with:
   sesame -closed -macro start_me.mac

    Alternatively (and preferably) you can load a database from the command line, and only use the startup macro to open its form. That form can then be covered with buttons, etc... to help the user navigate further.

    Also - in general, be very careful. If you close the tree you are severely limiting what Sesame can provide to your users without some help/coding from you. In other words, you will have to provide a sufficient interface to normally used functions to compensate for the interface you are hiding.


Mark Lasersohn
Programmer
Lantica Software, LLC

End quote

I hope this starts you in the right direction
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
aussie
Member
*
Offline


No personal text

Posts: 4
Joined: Dec 15th, 2003
Re: command buttons
Reply #2 - Dec 24th, 2003 at 12:12am
Print Post Print Post  
Thanks Mark, for your very quick & helpful reply.

I was going to take the second option.

but thats where my "problem starts"

if i want the buttons to do something i need to add some progremming to them.

I've attempted to use the selecttreeitem command but i don't get very far.

the example in the apps programming manual is a bit confusing (to me) because it uses "if...then" statements.

So i guess what i'm looking for is a pointer towards the
programing for

"if I push this button it will open the add details section of a database"

senario

Anyway - early days yet,
& many thanks in advance.

AU!
  
Back to top
 
IP Logged