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