Print Page | Close Window

Popup Positioning

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=10967
Printed Date: 18 April 2024 at 5:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Popup Positioning
Posted By: mrmathis
Subject: Popup Positioning
Date Posted: 09 June 2008 at 12:22pm
I am calling CXTPPopupBar::Popup to track a context menu.  Inside there, a call is made to UpdateLocation to position the menu.  Shortly thereafter, a call is made to OnIdleUpdateCmdUI, and in my handler for that I remove an entry or two via "pControl->SetVisible(FALSE)".  However, since that happens after the position is calculated, the menu ends up looking "off" when the click happened near the bottom of the screen.  That is, there is an n-entry vertical gap (where n is the number of entries I removed) between the cursor and the bottom of the menu.
 
Shouldn't the UpdateLocation call happen after OnIdleUpdateCmdUI?
 
 


-------------
--Mike



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