Print Page | Close Window

Resizer AutoSize and CommandBar context menu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8738
Printed Date: 28 September 2024 at 7:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Resizer AutoSize and CommandBar context menu
Posted By: ssarabando
Subject: Resizer AutoSize and CommandBar context menu
Date Posted: 09 November 2007 at 3:15pm
Hi all,
 
I've stumbled across the following 'odd' (IMO) behaviour.
I've put a Resizer, a ReportControl (inside the Resizer) and a CommandBar inside a VB6 form.
The resizer has AutoSize = True so that it will automatically fill its container (the form).
The command bar has an action and a context menu with the referred action.
The report control is supposed to handle the MouseDown event in order to show the context menu (ShowPopUp) when the right mouse button is pressed.
The problem is that is doesn't. The event handler doesn't even fire.
 
I've managed to track the problem to the Resizer.AutoSize = True.
If I use the AutoSize, the MouseDown event handler never fires; if I don't use the AutoSize property, then the MouseDown event handler fires as it is supposed to.
 
To bypass this, I've had to programmatically resize the Resizer inside Form_Load. But this isn't the way I would 'like' it to be.
 
Any thoughts? Is it my blunder, an undocumented problem/feature or a bug?
 
Regards,
 
SS



Replies:
Posted By: Oleg
Date Posted: 12 November 2007 at 1:35am
Hi,
 
Yes, Resizer and CommandBars have conflict. Please set property to False and manually set its position in CommandBars_Resize event.


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