-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|110|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Text and GUI's


 
mike_g
Created : 16 December 2006
 

Dropdown Menu



A dropdown menu function with a little demo prog:

 

Comments


Saturday, 16 December 2006, 17:31
garand
Thats awesome.
Saturday, 16 December 2006, 21:15
magicman
not bad, not bad at all!
Sunday, 17 December 2006, 05:49
mike_g
Yes agent smith having a 3 dimensional array here is wastes memory. And it would get much worse if I added extra sublists.

The method you suggested would be better and not waste memory but I cant see how it would be simpler code. Still I might have a go at improoving it like you said. If possible an example would be a help.

@Garand and Magicman: Glad you guys like it
Tuesday, 19 December 2006, 20:11
mike_g
Thanks. I'll have a look thorough the code when I finished writing this. To be honest what I made was just the first thing that came to mind that worked. I think I got a rough idea of what youre getting at. I'm not so good with the code speak if you know what i mean. Anyway I got a few improovements I can think of that I could do to this function, so hopefully I'll have an update sometime soon. Cheers.