06-06-2007 08:39 AM - edited 06-06-2007 08:39 AM
Message Edited by Ben on 06-06-2007 08:42 AM
06-06-2007 08:55 AM
I would do the palette as a transparent 2D array of transparent pictures (I assume they all have a standard size) and detect which element was clicked. I would probably extract the square root to try to get the palettes to be as square as possible. You can see a basic example here.
I would also look up the context menu examples posted on the web (I believe PJM had one in the LAVA forums) and use that as a basis for doing the nesting of multiple palettes.
If this is for the touch screen application, you should also check whether your screen can handle drags properly, since I have seen in the past that they sometimes tend to detect a release too early, so you might need to have the users click on the icon and then click inside the picture control to release.
06-06-2007 09:14 AM
Nice "wack" tst!
You've got me thinking.
Ben
06-06-2007 09:17 AM
Maybe you could hack the Mac iphone interface when it comes out.
06-06-2007 09:24 AM
06-06-2007 09:28 AM
How about making each palette a dialog VI with no title or menu bars. Then each subpalette could be activated by a button which opens another one of these dialog VIs. Run the main palette when the user right clicks, and move it to the position of the click. This would make it pop up right under the mouse like the LV palettes do.
Detecting a mouse click outside of the palette VI could close it, and clicking another button at a higher level could close a subpalette if one was opened and open a new one. I could see these things being tricky, but you're a smart guy.
Now you've got me thinking, maybe I'll give it a try to see if I can get anything working.
06-06-2007 09:38 AM
06-06-2007 11:05 AM
Well that was a nice flurry of ideas.
Give me time to think and process and I will update back.
Ben
06-06-2007 06:49 PM - edited 06-06-2007 06:49 PM
Message Edited by sth on 06-06-2007 07:50 PM
06-07-2007 07:35 AM