Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Resize Windows at run-time with AllowTransparency issue

Closed Thread
 
Thread Tools Display Modes
Old 05-23-2007   #1 (permalink)
Vincent RITHNER || hotmail
Guest


 

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


Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista windows resize redraw issue in VS2008, Acrobat and others arch Vista General 3 05-28-2008 02:49 AM
Vista window resize issue Acrobat, VS2008 and others arch Vista networking & sharing 0 03-14-2008 07:14 AM
AllowTransparency=True = CPU > 90% Avalon 1 06-01-2007 11:44 AM








Vistax64.com 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 2005-2008

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 47 48 49 50