Print Page | Close Window

Colourable pane or groupbox control for dialogs ?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12811
Printed Date: 23 June 2025 at 11:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Colourable pane or groupbox control for dialogs ?
Posted By: alistair.m
Subject: Colourable pane or groupbox control for dialogs ?
Date 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





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net