Home > Ax Technical > creating Transparent forms in Dynamics Ax

creating Transparent forms in Dynamics Ax

 
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
Advertisements
  1. Willy Sas
    October 6, 2007 at 6:57 pm

    Nice, but it doesn’t work in Ax 3.0?
    The methods WinAPI::SetWindowLayered and WinAPI::setLayeredWindowOpaque are not available in Ax 3.0
     
    Could you mail me the Ax code for both these WinAPI methods as well (or post here), so I can see if this is downgradable?
     
    (Windows supports these functions from Windows 2000 and above, so it should be possible)
     
    Thanx in advance
     
    Willy

  2. Willy Sas
    October 6, 2007 at 6:57 pm

    Nice, but it doesn’t work in Ax 3.0?
    The methods WinAPI::SetWindowLayered and WinAPI::setLayeredWindowOpaque are not available in Ax 3.0
     
    Could you mail me the Ax code for both these WinAPI methods as well (or post here), so I can see if this is downgradable?
     
    (Windows supports these functions from Windows 2000 and above, so it should be possible)
     
    Thanx in advance
     
    Willy

  3. Willy Sas
    October 6, 2007 at 6:57 pm

    Nice, but it doesn’t work in Ax 3.0?
    The methods WinAPI::SetWindowLayered and WinAPI::setLayeredWindowOpaque are not available in Ax 3.0
     
    Could you mail me the Ax code for both these WinAPI methods as well (or post here), so I can see if this is downgradable?
     
    (Windows supports these functions from Windows 2000 and above, so it should be possible)
     
    Thanx in advance
     
    Willy

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: