20.04.2007, 19:20 | #1 |
Участник
|
casperkamal: creating Transparent forms in Dynamics Ax
Источник: http://casperkamal.spaces.live.com/B...CD63!271.entry
============== You can adjust the opacity of a form to make it partially transparent. One good example of such a form is the EventAttentionGrabber. Let us see how to create such forms...... To create such transparent forms is very simple, All you have to do is, 1. Change any of the specified property in the Form (This is only applicable in the following cases 1. When the "Frame" property of the form is in "Border" or "None" 2. When the "Window Type" property of the form is "PopUP") 2. Now on the init or run method of the form write the following code WinAPI::setWindowLayered(element.hWnd()); //opacityLevel can be an integer variable with max value of 255. WinAPI::setLayeredWindowOpaque(element.hWnd(), opacityLevel); and this is how it looks ........ Here is a nice example download and check out a fading window ...... Transparent Form Demo(click to reach the download page) ...... that's nice Источник: http://casperkamal.spaces.live.com/B...CD63!271.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|