Page Index Toggle Pages: 1 [2]  Send Topic Send Topic Print Print
Very Hot Topic (More than 25 Replies) Coloring menu tree items (Read 2585 times)
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Some design questions.
Reply #15 - Sep 7th, 2007 at 1:05pm
Print Post Print Post  
Hello Scott,

I've tried those entries on several computers and the Save bar is grayed out successfully. Could you send me your complete INI file so that I can see what you are seeing?

-Ray
  

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


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Some design questions.
Reply #16 - Sep 7th, 2007 at 1:15pm
Print Post Print Post  
On it's way, thanks Ray.
  

**
Captain Infinity
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Some design questions.
Reply #17 - Sep 7th, 2007 at 1:29pm
Print Post Print Post  
Infinity wrote on Sep 7th, 2007 at 11:06am:
Here's the result of my current experimentation with the topics discussed in this thread:
http://www.jamiara.com/colors1.jpg


Bravo! Looks GREAT!
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Some design questions.
Reply #18 - Sep 7th, 2007 at 2:09pm
Print Post Print Post  
Good work Scott.

Can you provide some examples of how you used RelabelTreeItems to make that happen?
I did not provide a screen shot with my sample code.  Your samples with your image would be great.

How about changing topic from "Some design questions" to "Menu Tree Colors?" to make it easier to find on forum in the future?

  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Some design questions.
Reply #19 - Sep 7th, 2007 at 2:14pm
Print Post Print Post  
Bob_Hansen wrote on Sep 7th, 2007 at 2:09pm:
How about changing topic from "Some design questions" to "Menu Tree Colors?" to make it easier to find on forum in the future?


Done.
  

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


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Some design questions.
Reply #20 - Sep 7th, 2007 at 2:36pm
Print Post Print Post  
Quote:
Can you provide some examples of how you used RelabelTreeItems to make that happen?

While the thread discussion was going on, I did a Google search and found a copy of the FLTK color table, showing all 256 colors (http://fltk.org/documentation.php/doc-1.1/functions.html#fl_show_colormap).  I spotted a color I liked for Green (100) and Blue (176) by counting across and down the chart.  Those looked nice, but after Ray posted his numbers I decided I liked the Green with his number (8257536) better.

I then adapted the code that Erika taught me a few days ago to contract the command tree items, throwing the relabel commands into the loop.  As so:
Code
Select All
var vList as String
var vCount as Int
var vLoop as Int
var vApp as String
var vDB as String
var vTemp as Int
Var vColor as Int

// Contracts and colors the Command Tree mode items
vApp = @Application
vList = @ListDatabases()
vCount = @CountStringArray(vList)
For vLoop = 1 to vCount
	vDB = @AccessStringArray(vList, vLoop)
	vTemp = @ContractTreeItem(vApp + "!Forms!Add Data!" + vDB)
	vColor = @RelabelTreeItem(vApp + "!Forms!Add Data!" + vDB, "@C8257536" + vDB)
	vTemp = @ContractTreeItem(vApp + "!Forms!Search/Update!" + vDB)
	vColor = @RelabelTreeItem(vApp + "!Forms!Search/Update!" + vDB, "@C176" + vDB)
Next
vTemp = @ContractTreeItem(vApp + "!Forms!Add Data!")
vTemp = @ContractTreeItem(vApp + "!Forms!Search/Update!") 

  

**
Captain Infinity
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Coloring menu tree items
Reply #21 - Sep 7th, 2007 at 2:52pm
Print Post Print Post  
This page: http://fltk.org/documentation.php/doc-1.1/functions.html#fl_show_colormap shows the FLTK color map (bottom of page).  There are 8 colors across and 32 down, for a total of 256 (black is zero).  Find a color you like, count across and down, do a bit of math and you have the number of the color for the @C attribute.
  

**
Captain Infinity
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: Coloring menu tree items
Reply #22 - Sep 7th, 2007 at 3:05pm
Print Post Print Post  
Hello Scott,

I may be wrong about this, and I'm sure Mark or Erika will chime in if I am, but I believe that we change the color table, so 176 in a different Sesame Application may not always be the blue that it is on your system.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Coloring menu tree items
Reply #23 - Sep 7th, 2007 at 3:10pm
Print Post Print Post  
Quote:
Hello Scott,

I may be wrong about this, and I'm sure Mark or Erika will chime in if I am, but I believe that we change the color table, so 176 in a different Sesame Application may not always be the blue that it is on your system.


We do indeed. We don't mess much with the colors below 256, but there are exceptions.
  

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


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Coloring menu tree items
Reply #24 - Sep 7th, 2007 at 3:26pm
Print Post Print Post  
OK, good to know, I'll use the number Ray gave me for Blue.  Thanks.
  

**
Captain Infinity
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Some design questions.
Reply #25 - Sep 8th, 2007 at 3:47pm
Print Post Print Post  
Quote:
Hello Scott,

I've tried those entries on several computers and the Save bar is grayed out successfully. Could you send me your complete INI file so that I can see what you are seeing?

-Ray

It's grayed out until you open an applicaton.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
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: Some design questions.
Reply #26 - Sep 10th, 2007 at 4:22pm
Print Post Print Post  
Quote:
It's grayed out until you open an applicaton.


Yup Scott figured that out and I'm looking at the source of Sesame to get it fixed.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send Topic Send Topic Print Print