|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Wang Yang
|
Nov 4, 2004 - 8:50 PM
|
Hi,
For my groupbox, I changed the CButton to the CExtGroupBox and I found that CExtGroupBox can NEVER center-aligned!!!
Another problem is that sometime when I change the CButton to the CExtGroupBox for a groupbox, it dispears in the dialog when the application is running!!!
I wonder whether these problems are bugs for CExtGroupBox or you may give me the correct way to solve these prolems. Thank you!
Best Regards, Wang Yang
|
|
Technical Support
|
Nov 5, 2004 - 8:22 AM
|
We cannot confirm the bug with disappering CExtGroupBox at runtime. Would you give us more details?
|
|
Wang Yang
|
Nov 4, 2004 - 8:56 PM
|
PS: "...CExtGroupBox can NEVER center-aligned" means that the caption text on the groupbox can NEVER center-aligned, although I have set "Center" selection for the groupbox’s "Style > Horizontal alignment" property using the ResourceView of VC++.
|
|
Technical Support
|
Nov 5, 2004 - 8:19 AM
|
To align the text, please use the CExtGroupBox::SetTextAlign method. For example:pGroupBox->SetTextAlign(
CExtGroupBox::e_text_align_t::ALIGN_CENTER
)
|
|
Clive Minnican
|
Nov 5, 2004 - 5:43 AM
|
I experienced this problem myself. I found that if a control has it’s Horizontal Alignment property set to ’Center’ then Prof-UIS will display it aligned to the left! The solution is to set the Horizontal Alignment to ’Default’ and the text will then be centered automatically. Clive.
|
|
Technical Support
|
Nov 5, 2004 - 8:18 AM
|
To align the text, please use the CExtGroupBox::SetTextAlign method. For example:pGroupBox->SetTextAlign(
CExtGroupBox::e_text_align_t::ALIGN_CENTER
)
|
|