TableFrame column moving - in OPAL -
07-13-2007
, 09:58 AM
Greetings all.
On a form with a MRO tableframe, I'm trying to let the users reorder the
columns, and also resize them. I've figured out how to actually reorder
them using mouse events and ui1.CurrentColumn and ui2.ColumnPosition. But
I can't figure out how to clearly show them where they're moving the column
to. I'm highlighting each field on mouseEnter/mouseExit, but as you scroll
off the page left/right, this doesn't follow.
So, basically, 3 questions looking for good techniques to:
1. Scroll a tableframe so it follows a mouse event off the left/right of
the visible area?
2. Highlight that a column move is happening, and where it will be positioned
as it is moving?
3. Resize an existing column?
Also, is there any way to do this without having to set TabStop=true? Most
of the columns are for reference only - just 3 of 30+ can be changed.
My main question on this is how do you know you're on the column divider
instead of a field?
I can figure out the resizing mouse events, but I don't know how to kick
them off. What I'm looking for is to display a <-> pointer when I'm hovering
over the divider, and the regular cursor if not.