Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Resize Windows at run-time with AllowTransparency issue

 
 
Old 05-23-2007   #1 (permalink)
Vincent RITHNER || hotmail


 
 

Resize Windows at run-time with AllowTransparency issue


Hi ,

We have an issue with Window with Transparency= true to resize them at
run-time

We want to create non-rectangular Window with no border and Full
transparency;
so, we have create a Window with AllowTransparency=true and we have added a
Grid with some Controls inside;
this works well and the window can be dragged on the desktop;

The issue is coming when I try to resize my window at run-time; as I don't
have any border, I have added a Thumb control and
I use the DragDelta method to do the job;
the real issue is when I resize my Grid in a bigger size which make parts of
it clipped outside the window;
so, I have tried to resize dynamically the window in same time of the grid
in the DragDelta method, but it seems that's a bug doesn't allow this ...

Steps to reproduce:

we create a Windows with AllowTransparency=true and inside we add a grid,
then inside some controls;
at runtime, we use a Thump control to resize the grid and offcourse, we have
to resize the Windows otherwise some parts of the displayed grid are
rendered outside the window;

we played with a lot of windows property but we can't make it work....

later, we have discovered that if we set the window border visible removing
the AllowTransparency, then relaunch the sample:

- we click on the red square to resize, the windows doesn't size
- Take the mouse and size manually once the windows, then click again the
red square, now the windows resize ...

I know I could set the Window with a size of 2000x2000 to be sure but I
would avoid having huge window for nothing...

Thxs for any help

Regards

-Vince



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
How to programmatically resize the height of a custom IE toolbarwritten in C#? When I resize it, it shrinks but the real-estate it is in staysthe same size. .NET General
Windows Defender and LastAccess time stamps issue fix Vista General
Vista windows resize redraw issue in VS2008, Acrobat and others Vista General
Vista window resize issue Acrobat, VS2008 and others Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46