Jump to content

DirectUI: Glass Buttons


midora
 Share

Recommended Posts

Maybe this info safes a little bit time if you like to activate glass buttons in your EffectConfigDialog:

public EffectConfigDialog()
{
    IsGlassDesired = true; 
        // this sets IsGlassEffectivelyEnabled if IsGlassSupported is true
    GlassInset = new Padding(0,0,0,38);
        // define the inset to the client area of the dialog
    AutoHandleGlassRelatedOptimizations = true;
        // this activates the handling of the dirty tricks
        // needed to get optimized controls in the glass area

    InitializeComponent();
}

This is just a hint extracted from my test phase. So you should calculate the inset padding depending on your controls.

 

Here is an example of a dialog, where I'm using this info:

 

post-79572-0-43273300-1360615386_thumb.j

 

The button area includes an additional command button containing a 'Reset All' command, commands to load and save the properties of the dialog, and 'About' information.

 

midoras signature.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...