Print Page | Close Window

Common Controls Request

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=4959
Printed Date: 04 March 2025 at 9:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Common Controls Request
Posted By: Simon HB9DRV
Subject: Common Controls Request
Date Posted: 04 September 2006 at 3:35am
Hi,

In the Command Bars / Common Controls the slider bar contains a horizontal slider.

My dream: when the user docks the bar vertically I get a notification and change the orientation of the slider to vertical.

I would like:
  1. To know when a bar is being docked / orientation is changed - couldn't find the notification.
  2. To know how to tell the Command Bar(s) that the dimensions of a control have changed and, as a result the layout should be recalculated.
Currently I am contemplating destroying / re-creating the slider when the orientation changes. I could possibly do this via the OnUpdate... member, but it would be best to do this via a docking notirfication.

Help - what's the professional solution?


-------------
Simon HB9DRV



Replies:
Posted By: Simon HB9DRV
Date Posted: 06 September 2006 at 9:56am
This is not urgent - but would be a great 'to have' solution. I can live without it, just wait until my crazed users get their paws on the software!

-------------
Simon HB9DRV


Posted By: Oleg
Date Posted: 07 September 2006 at 2:29pm
hI,
 
1. You can override CutomControl and its SetRect method.
2. Just call pToolBar->OnRecalcLayout when size was changed.


-------------
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