Page 1 of 1
Need a little guidance on adding a dynamic menu
Posted: Fri Oct 11, 2013 1:54 am
by shawnblc
I need a little guidance on adding a dynamic menu. I imported an image as a control and have it in a navar. I'd like to make it a dynamic menu with perhaps 3 or 4 items under it.
Re: Need a little guidance on adding a dynamic menu
Posted: Fri Oct 11, 2013 2:17 am
by Simon
Not exactly sure what you are looking for but take a look at this:
http://forums.runrev.com/phpBB2/viewtop ... 49&t=17212
Simon
Re: Need a little guidance on adding a dynamic menu
Posted: Fri Oct 11, 2013 2:24 am
by shawnblc
Hey Simon. Looking for something like this (see attached image). I imported an image as a control to start with. By the way this is a desktop app.
Re: Need a little guidance on adding a dynamic menu
Posted: Fri Oct 11, 2013 2:32 am
by Simon
Hi,
it looks like the example I gave ... or maybe I'm misunderstanding?
An image with an animated dropdown?? No?
Simon
Re: Need a little guidance on adding a dynamic menu
Posted: Fri Oct 11, 2013 2:46 am
by shawnblc
Simon wrote:Hi,
it looks like the example I gave ... or maybe I'm misunderstanding?
An image with an animated dropdown?? No?
Simon
Yup! Just downloaded the example in that thread! That definitely looks like what I was after. Thank you!
Re: Need a little guidance on adding a dynamic menu
Posted: Fri Oct 11, 2013 2:57 am
by Simon
There is some code in there that should be better.
I used "hard" numbers e.g. tLeft,137 which isn't really good coding.
It should have something like "the bottom of me" so that the number of dropdown buttons doesn't matter. I think any time you can use topLeft, bottom, right etc. you should. I think it's what they call "Robust code", move it anywhere and it still performs the same.
If you do figure out a robust version would you care to post it?
At any rate, glad it helps.
Simon
Re: Need a little guidance on adding a dynamic menu
Posted: Fri Oct 11, 2013 3:00 am
by shawnblc
Simon wrote:There is some code in there that should be better.
I used "hard" numbers e.g. tLeft,137 which isn't really good coding.
It should have something like "the bottom of me" so that the number of dropdown buttons doesn't matter. I think any time you can use topLeft, bottom, right etc. you should. I think it's what they call "Robust code", move it anywhere and it still performs the same.
If you do figure out a robust version would you care to post it?
At any rate, glad it helps.
Simon
I sure will. Thanks again.
Re: Need a little guidance on adding a dynamic menu
Posted: Fri Oct 11, 2013 4:49 am
by shawnblc
Not quite sliding, but I do have it so you can move it around the screen. I'm sure my code is terrible (what little there is). lol
Maybe we can get it sliding. I tried to do a dissolve just to make it more noticeable, but it's not working.
see attachment.
Re: Need a little guidance on adding a dynamic menu
Posted: Fri Oct 11, 2013 5:11 am
by shawnblc
Here's the latest, got the slide working too
If anyone improves it please post the update in this thread. Thanks.
Re: Need a little guidance on adding a dynamic menu
Posted: Fri Oct 11, 2013 5:33 am
by shawnblc
Here's another one. Click on the submenus.
