Alternative to vertical separator line?

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
kretch
Beginner
Beginner
Posts: 3
Joined: Thu Sep 05, 2002 10:43 am

Alternative to vertical separator line?

Post by kretch »

When used as a horizintal menu layout, the program can be set to insert a separator bar between each main menu title like this :

choice 1 | choice 2 | choice 3 | choice 4

Any chance for some code tweaking so that that line can be replaced with a couple of colons like this:

:: choice 1 :: choice 2 :: choice 3 :: choice 4 ::

I've had a bit of a rummage throught the code for signs of the "|" character being added but well, my script abilities are still in beginners class ;)

Cheers,
Dennis
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

I don't think there is a way to do this. When you are referring to the separator bar, I am thinking you are meaning that at the end of a line where you input a URL into a menu, the very last option you can set to 1 and that will put a bar inbetween the menus. That bar isn't the character "|", its actually part of the border of the layer that the menu item exists in. That tag just turns it on.

But here is a nice little workaround for you.
In your menu style, make sure the padding for the items is zero. Then in the text for each menu item that is displayed put ":" on either side and it will look the way you want.
i.e.
":: Item 1 :","show-menu=first","#",......,0
": Item 2 :","show-menu=second","#",.....,0
": Item 3 :","show-menu=third","#",.....,0
": Item 4 ::","show-menu=fourth","#",.....,0

This will produce the following if your menu padding is 0....:
:: Item 1 :: Item 2 :: Item 3 :: Item 4 ::

Give it a shot! :idea:
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
kretch
Beginner
Beginner
Posts: 3
Joined: Thu Sep 05, 2002 10:43 am

Post by kretch »

Thanks Hergio,
I had thought about that option which is indeed the look I was after. Unfortunately, the mouseover state will cause the ":" characters to be highlighted as well and this makes the menu look "wrong".

It's a damn fine script anyway but there are always those of us who desire more :)
Cheers,
Dennis
menufurfer
Super Advanced
Super Advanced
Posts: 37
Joined: Sun Jul 28, 2002 4:40 am

Post by menufurfer »

Hergio and Dennis:

Through experimentation I have found that what Herg calls a switch (to turn on the separator) is actually a setting to specify the thickness of the separator, so it can take values above 0,1. I use 4 but for the rightmost menu option zero is better. The menu's right border will then default to the Border Width set up higher (in my case, 2) and look better.

I don't know of a way to change the separator (could be suggested in the suggestion section). Up in the properties array there are settings for 3D Border & Separator it says. But I can only get it for the outside border; I can't get any effect on the separator bar. /mfurf
Post Reply