Normal Topic Menu Selection (Read 912 times)
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Menu Selection
May 5th, 2011 at 2:41pm
Print Post Print Post  
I use the programming below to move from a "main menu" into various files in my application.  (The programming was originally supplied by Bill Halpern when I first got into Sesame)

It works fine, but I was wondering if I can change the appearance of the menu that appears.  Right now, the title of the menu has a dark green background with black lettering.  This makes it difficult to read the title.  Also, is there any way to increase the size of the font of the displayed info?





var vButton as string
var vMenu as INT



     PopupSelectPosition(4, @XPos(ThisElement)+80, @YPos(ThisElement))
     vButton = @PopupMenu("1. Search\\Update;2. Add", "MODE FOR CUSTOMER INFO")

     If vButton = "1. Search\Update"
     {
           vMenu = @SelectTreeItem(@Application + "!Forms!Search/Update!Customer!Customer")
     }
     Else
     If vButton = "2. Add"
     {
           vMenu = @SelectTreeItem(@Application + "!Forms!Add Data!Customer!Customer")
     }
  
Back to top
 
IP Logged
 
Ben
Lantica Support
*****
Offline



Posts: 218
Joined: Apr 7th, 2005
Re: Menu Selection
Reply #1 - May 5th, 2011 at 5:13pm
Print Post Print Post  
Hello NHUser,

What version of Sesame are you running? The version number will appear in the title bar of the Sesame window.

We will also need you to post the contents of your Sesame.ini file. In a default installation, this file will be located in C:/Sesame2/
  
Back to top
IP Logged
 
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Menu Selection
Reply #2 - May 6th, 2011 at 7:14pm
Print Post Print Post  
I'm using version 2.5.2.

The contents of the .ini file are below.



// SESAME.INI FILE. ONLY LINES THAT START ON THE LEFT MARGIN, WITHOUT //, ARE ACTIVE.
//  SO TO MAKE A LINE ACTIVE DELETE BOTH THE // AND THE SPACE, LIKE THE LINES BELOW ..

QUICK START: OFF            // DISPLAYS QUICK START MENU ON STARTING SESAME
BLINK: OFF                  // CURSOR BLINK
GLOBAL AUTOCOMPLETE: OFF      // PROMPT WITH EXISTING VALUES AS YOU TYPE IN A FIELD
HIGHLIGHT ON ENTER: OFF            // IF SET TO "ON" SELECTS FIELD VALUES ON ENTRY

// MENU STYLE OPTIONS
//MENU STYLE: BUTTONS            // "BUTTONS" or "TREE"
MENU STYLE: TREE            // USE THIS TO REVERT TO PREVIOUS MENU TREE STYLE


// DICTIONARY OPTIONS
INTERACTIVE SPELL CHECKING: OFF        // CHANGE TO "ON" FOR SPELL CHECKING AS YOU TYPE
// DICTIONARY PATH: C:\Sesame2\Dictionary.txt      // CAN BE USED TO SPECIFY ALTERNATIVE DICT. FILE


// THESE CAN BE USED TO FIX SIZE & POSITION OF THE SESAME WINDOW ..
// THE MEASUREMENTS ARE IN PIXELS, AS IS YOUR SCREEN RESOLUTION, eg 1024 x 768
// WIDTH: 900
// HEIGHT: 610
// X: 105      // MEASURED FROM TOP LEFT OF THE SCREEN
// Y: 80      // MEASURED FROM TOP LEFT OF THE SCREEN


// THESE CAN BE USED TO SET THE SESAME COLORS ..
// BACKGROUND COLOR: 236 233 216            // MAIN SESAME BACKGROUND
// SECONDARY BACKGROUND COLOR: 255 255 255    // BACKGROUND OF MENU TREE ETC

// MENU FONT:  Tahoma
// MENU FONT SIZE: 11

// TABLE ROW HEADER WIDTH: 40      // SETS THE WIDTH OF THE TABLE ROW HEADER, including subforms.


// SETTINGS USED IN SESAME DESIGNER ...

SNAP TO GRID: OFF
GRID WIDTH: 8
GRID HEIGHT: 8

PROGRAM EDITOR FONT SIZE: 12
  
Back to top
 
IP Logged
 
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Menu Selection
Reply #3 - May 18th, 2011 at 12:23pm
Print Post Print Post  
Any update?  Please advise.
  
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: Menu Selection
Reply #4 - May 18th, 2011 at 7:10pm
Print Post Print Post  
Hello

I am not sure why given the entries in your ini file that you are getting black text on dark green for the header. Do you have another computer that you could try the program on and see if it gives you the same colors?

To make the font larger replace your sesame.ini file with the one below.

Code
Select All
// SESAME.INI FILE. ONLY LINES THAT START ON THE LEFT MARGIN, WITHOUT //, ARE ACTIVE.
//  SO TO MAKE A LINE ACTIVE DELETE BOTH THE // AND THE SPACE, LIKE THE LINES BELOW ..

QUICK START: OFF		// DISPLAYS QUICK START MENU ON STARTING SESAME
BLINK: OFF			// CURSOR BLINK
GLOBAL AUTOCOMPLETE: OFF	// PROMPT WITH EXISTING VALUES AS YOU TYPE IN A FIELD
HIGHLIGHT ON ENTER: OFF		// IF SET TO "ON" SELECTS FIELD VALUES ON ENTRY

// MENU STYLE OPTIONS
//MENU STYLE: BUTTONS		// "BUTTONS" or "TREE"
MENU STYLE: TREE		// USE THIS TO REVERT TO PREVIOUS MENU TREE STYLE


// DICTIONARY OPTIONS
INTERACTIVE SPELL CHECKING: OFF	  // CHANGE TO "ON" FOR SPELL CHECKING AS YOU TYPE
// DICTIONARY PATH: C:\Sesame2\Dictionary.txt	// CAN BE USED TO SPECIFY ALTERNATIVE DICT. FILE


// THESE CAN BE USED TO FIX SIZE & POSITION OF THE SESAME WINDOW ..
// THE MEASUREMENTS ARE IN PIXELS, AS IS YOUR SCREEN RESOLUTION, eg 1024 x 768
// WIDTH: 900
// HEIGHT: 610
// X: 105	// MEASURED FROM TOP LEFT OF THE SCREEN
// Y: 80	// MEASURED FROM TOP LEFT OF THE SCREEN


// THESE CAN BE USED TO SET THE SESAME COLORS ..
// BACKGROUND COLOR: 236 233 216		// MAIN SESAME BACKGROUND
// SECONDARY BACKGROUND COLOR: 255 255 255    // BACKGROUND OF MENU TREE ETC

// MENU FONT:  Tahoma
MENU FONT SIZE: 13

// TABLE ROW HEADER WIDTH: 40	// SETS THE WIDTH OF THE TABLE ROW HEADER, including subforms.


// SETTINGS USED IN SESAME DESIGNER ...

SNAP TO GRID: OFF
GRID WIDTH: 8
GRID HEIGHT: 8

PROGRAM EDITOR FONT SIZE: 12  



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged