Looking for tips/techniques to support the ability for users to OLE
dragdrop between different pages in a pageframe with  non-justified page
tabs.

Goal: 

Mouse hovering over a page tab during an OLE dragdrop operation causes
hovered page to be activated. This is similar behavior to what happens
when OLE dragging to a program icon in the taskbar ... after hovering
over the application's taskbar entry the application is activated in a
restored state allowing it to become a target for a drop operation.

Challenge: 

How to accurately detect hover on a pageframe page tab?

Possible approaches:

1. Use fontmetric() to determine width/height of each page tab caption,
add hard-coded assumptions for page tab caption padding heights/widths,
store this info in a pageframe array, then use the pageframe's
MouseMove() event to determine which tab is currently being hovered
over, pause for a hover delay, and if hover detected, activate the
appropriate tab. Add special logic to calculate width/height of active
page tab with different constants for padding heights/widths since the
active tab is taller and wider than a non-active tab. Also add logic to
account for differences in padding/sizes between themed and non-themed
environments.

OR:

2. Turn off page tabs and implement page tab behavior via a container
control filled with controls that look and behave like standard page
tabs.

Are there simpler ways to accomplish this?

Thanks,

Malcolm


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to