Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Colourable pane or groupbox control for dialogs ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Colourable pane or groupbox control for dialogs ?

 Post Reply Post Reply
Author
Message
alistair.m View Drop Down
Groupie
Groupie


Joined: 14 January 2008
Location: United Kingdom
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote alistair.m Quote  Post ReplyReply Direct Link To This Post Topic: Colourable pane or groupbox control for dialogs ?
    Posted: 27 November 2008 at 10:16am
Hi, we're currently investigating some UI dialog improvements, and as we already use CJ wondered if there was a XTP solution.

What we want is a simple to use panel or groupbox control that can:

1. act like a normal group box (with common controls placed over/inside it)
2. have a coloured background
3. play nice with CXTResizeDialog (without flickering)
4. did I say simple?

e.g
/--------------------------------
| dlg (say blue - maybe skinned in future)
|
|    Panel name (maybe a CJ CaptionBar)
|    /------------------------------
|    | panel (say light blue)
|    |
|    |    Supplier Name [edit control]
|    |    Address...
|    |    Date... 
|    |    etc
|    \---------------
|

I've looked through the samples and source files in XTP (10.4.2) looking for a direct drop in for what we want. But the closest I can find is a task panel demo that looks nice, but may not work well on dialogs (or will it?).

I have a CodeProject class (CXPGroupBox) that provides a reasonable drop in coloured group/pane class, but when my dialog supports CXTResizeDialog, it all flickers like a ...
I've added CJ's own Exclude() fn that calls ExcludeClipRect() for all the child controls and it now doesn't flicker the controls, just the background. I'm not sure this is the right way to go though, especially if we implement CJ schemes and any colour routines are overridden.

Any ideas ?
Thanks
Al


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.