|
Handling lots of menu entries: msg#00393windows.devel.dotnet.winforms
I wanted to add the ability to change the opacity to my GUI app. I added a 10 of menu entries with 10 handlers. It was grotesque! Is there a better way? void Form1::Opacity100(System::Object* s, System::EventArgs* e){ Opacity = 1.0; } void Form1::Opacity90(System::Object* s, System::EventArgs* e){ Opacity = .9; } void Form1::Opacity80(System::Object* s, System::EventArgs* e){ Opacity = .8; } __________________________________ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Binding Combobox to ArrayList (was User v Custom Controls): 00393, Vince Pacella |
|---|---|
| Next by Date: | Re: Handling lots of menu entries: 00393, Fabian Schmied |
| Previous by Thread: | Re: User v Custom Controlsi: 00393, Craig Larsen |
| Next by Thread: | Re: Handling lots of menu entries: 00393, Fabian Schmied |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |