Print Page | Close Window

Menu and dialogs

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7390
Printed Date: 03 March 2025 at 1:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Menu and dialogs
Posted By: irekz
Subject: Menu and dialogs
Date Posted: 16 June 2007 at 2:25pm
Hi.
Most of my applications are CDialog and CPropertySheet based.
I find it difficult to integrate those with Xtreme toolkit.

Question no1: what's the bare minimum to add a menu to CDialog based application? Can you put it into a small list?

I was looking at DialogSample and still can't figure out if I need to copy and paste to my app most of this code (like RepositionControls function).

Question no2: I understand that to taqke advantage of toolkit features I need to change base class for my dialogs (like CDialog to CXTPDialogBase<CXTResizeDialog>) - what about CPropertySheet based dialogs?

Thanks for your time and help!
Irek

ps. toolkit looks great but I guess you miss some sales on ground that there is not enough tutorials. Sample applications are helpful but there is not enough comments in code so it's hard to guess what's essential and what's not.




Replies:
Posted By: Oleg
Date Posted: 18 June 2007 at 1:44am
if Your dialog not support resizing, you only need override class from CXTPDialog and
call in OnInitialUpdate handler.
 
RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);
in CPropertySheet  you also need RepositionBars call , but have manually move all pages.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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