Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLEDragDrop on pageframe tab
Message
From
18/05/2005 20:00:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
OLEDragDrop on pageframe tab
Miscellaneous
Thread ID:
01015642
Message ID:
01015642
Views:
50
For those who have been reading my recent posts, this post will probably be another reason for me to use my own controls for pageframe page navigation :)

Question: Any ideas on how I might OLEDragDrop on to a pageframe page tab? Here's the problem - page tabs return an object pointer to the parent pageframe and not to the page associated with the tab. I have confirmed this behavior via sys(1270). So, given a click on the edge of a pageframe where tabs sit, how do I determine which tab an OLEDragDrop was over?

My ideas so far:

1. Use ThisForm.TextWidth() to calculate width of each tab caption, use a constant for tab border and separator widths, place this info in an array of tab widths (or heights if vertically aligned tabs), then use the mouse coordinates to guesstimate a tab position based on the info in the tab width (height) array. Seems a bit overly complicated to me.

2. Follow this community's advice from my other thread on pageframes and (damn it! :) build my own page tab controls that can receive their own OLEDragDrop events, among other benefits.

Thanks for your ideas,

Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Reply
Map
View

Click here to load this message in the networking platform