How would i create a menu of circles dynamically coming from a central circle?

cblack

Member
Joined
Oct 24, 2015
Messages
5
Programming Experience
1-3
Would I use blend or something else? Are there useful online tutorials I can look at?

I’ve currently developed a winform app and I want to change it to use a dynamically generated menu. I want it to generate menu options based on queries for key words.

Thanks.
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
4,130
Location
Sydney, Australia
Programming Experience
10+
Blend is for WPF, so that's out if you have a WinForms app. There are options but the first one that comes to mind if you want to use circles is to just draw the menu using GDI+, which means in the Paint event handler of the relevant form or control. You then have full control over what goes where. You'd then handle the MouseClick event of that control and just test each menu item area to see whether the click location is inside it and do whatever's appropriate in that case.
 
Top Bottom