![]() |
CXTResizeDialog - Icon in Top Left Corner |
Post Reply
|
| Author | |
Warren
Groupie
Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTResizeDialog - Icon in Top Left CornerPosted: 29 August 2005 at 6:08pm |
|
I've got a few resizable dialogs in my application. Right now, an ugly
little rectagular icon shows up in the top-left corner. I would like to
remove the icon (is there some setting in the dialog editor that I
missed?!?) The following image demonstrates the problem.
1) the top part of the image is a dialog from the sample: Xtreme Toolkit Pro v9.60\Samples\Controls\CheckListBox 2) the bottom part of the image is the behaviour I would like (i.e. no icon in the top left corner). It is taken from: http://www.codejock.com/products/toolkit/tour_25.asp but I wasn't able to find this behaviour in any samples. Thanks for any help Warren |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 August 2005 at 5:04am |
|
1. All sizable frames have this icon. In Dialog editor instead border - Rezing, set Border - Dialog Frame. No icon, but no resize availaible. So better change this icon to something: SetIcon(LoadIcon.., FLASE); 2. Try to derive new class from CXTPCustomizeSheet and CXTResize.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Warren
Groupie
Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 August 2005 at 10:14am |
|
My initial thoughts for a solution were along the lines of your reply,
but I'm still wondering how the screen shot on the following page was
created:
http://www.codejock.com/products/toolkit/tour_25.asp the icon is not present in the customize dialog. Was this done in code, or was the icon removed by re-touching the image after the image was captured (I'd rather have an honest answer here if the image was altered - I'll admit to "re-touching" some screen shots in a previous job). |
|
![]() |
|
Barto
Groupie
Joined: 27 February 2005 Location: Germany Status: Offline Points: 60 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 August 2005 at 6:32am |
|
i just set the properties in the dialog editor to "resizing" instead of dialog frame then make sure to uncheck "system menu" |
|
![]() |
|
Warren
Groupie
Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 August 2005 at 1:35pm |
|
>
> then make sure to uncheck "system menu" > I tried that one. Unfortunately, that gets rid of the icon in the top left, but it also gets rid of the Big red X in the top-right corner - which I don't want to get rid of. I'd like all the dialogs to look the same (standard non-resizable dialogs have no icon, but the big X in the top-right). Warren |
|
![]() |
|
aholm
Newbie
Joined: 18 April 2005 Location: Finland Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 September 2005 at 2:12am |
|
I think you will find that the following combination of dialog styles do what you want.
DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME I usually find it easier to set these by editing the resource file as text. /Anders |
|
![]() |
|
Warren
Groupie
Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 September 2005 at 3:00pm |
|
Anders,
Yes, that combination of styles does the trick (it seems I was missing the DS_MODALFRAME style). However, I've still got a little problem. Do you know how to apply the style in code? since: 1) When I added it to the resource file as text, the setting gets blown away if I make adjustments to any of the properties in the resource editor (it seems like DS_MODALFRAME and WS_THICKFRAME are mutually excusive in "border" property in the Visual Studio editor ?!?). 2) I tried using WS_THICKFRAME in the dialog editor, and inserting a call to ModifyStyle(0, DS_MODALFRAME), in a number of the CWnd/CDialog virtual functions - but the result was that it either didn't remove the icon, or the resizing didn't work. Warren |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |