List Info

Thread: Re: Question about stretching a window....




Re: Question about stretching a window....
country flaguser name
United States
2007-05-22 21:30:21

--- In anthemion-devtools%40yahoogroups.com">anthemion-devtoolsyahoogroups.com, Tony Harris <kg4wfx...> wrote:
&gt;
> Platform: Windows
> DB Version: 3.06
>; Build Tools: Visual Studio 2005 Professional, VC++ build (tried
both release and debug)
&gt;
> -Tony
&gt;

Hi, Tony!

Thank you for the info!;) I have another question. Since you're on a
Windows platform and the problem seems to be flicker, have you tried
using wxCLIP_CHILDREN for the affected elements? It's a Windows only
style for wxWindow and derived classes to handle flicker on repaint.
There's also wxFULL_REPAINT_ON_RESIZE, which may help.

A point of curiosity, why use VC++ and not VC++ Project? The latter
gives you the ability to open the generated .vcproj file in the Visual
Studio IDE where you have Intellisense for hand coding and an
excellent GUI debugger. DB runs the build through devenv.com instead
of nmake. If you need to override any DB generated properties in the
.vcproj file, just change devenv.com to vcbuild.exe (Project make
command in Configurations) and use a .vsprops file, specifying that
file in the DB Configurations properties Project build command and
Project rebuild command as /override:<filename>.vsprops.

There's lots of info on using DB with Visual Studio at wxMS_developers
group. There are tutorials, demos, answers to user questions which
contain illustrative DB .pjd files and sources, and other items
related to DB, MinGW, Visual Studio, and other Windows/wxWidgets
specific topics. See the links section at:

http://www.anthemion.co.uk/dialogblocks/

HTH:

thx,
Dave S.

__._,_.___
.

__,_._,___
Re: Re: Question about stretching a window....
country flaguser name
United Kingdom
2007-05-23 04:30:40

Hi,

ddotedotsdot wrote:
&gt;
> Thank you for the info!;) I have another question. Since you're on a
> Windows platform and the problem seems to be flicker, have you tried
&gt; using wxCLIP_CHILDREN for the affected elements? It's a Windows only
>; style for wxWindow and derived classes to handle flicker on repaint.
> There's also wxFULL_REPAINT_ON_RESIZE, which may help.
&gt;
I think wxCLIP_CHILDREN is now the default (i.e. applied whether or not
it's included in the style), but it's worth _removing_
wxFULL_REPAINT_ON_RESIZE for the frame if it exists (and for other
windows where a resize shouldn't repaint the whole window).

However I think there's a problem with the way you're using sizers. You
shouldn't have to override the size event; you should be setting the
expansion and proportion of the notebook to allow it to resize in both
directions. It should be evident whether this is set up correctly by
using the preview (F5) in DialogBlocks and resizing the window.

Regards,

Julian

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )