• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 331
  • Last Modified:

cover dialog with a translucent bitmap and disable dialog

I have several dialogs in my app and under some circumstances, the user must be prevented from using any of the controls of certain dialogs.  What I want is to cover the dialog with a translucent gray color so it looks evenly disabled, and I want to disable all the controls on the dialog.  If I disable the dialog, then the user cannot close or move the dialog.  My controls are in a panel which I can disable,but different controls have different looks when they are disabled, and some do not look any different than when they are enabled.  So I had the idea to cover the controls with some translucent color so they all look grayed out in the same way.

I know how to draw a bitmap with the correct alpha, but can I draw this over all the controls in a dialog?

Can anyone suggest a good way to do this?  
1 Solution
add a image to the form so that it covers the whole panel. initially make it invisible/disabled. then enable it whenever you want other controls to be not visible. this is just an idea.


Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now