Re: SplitScreen
- From: "Michael C" <mike@xxxxxxxxxx>
- Date: Wed, 5 Dec 2007 11:20:30 +1100
"Armando" <armando@xxxxxxxxx> wrote in message
news:KVi4j.986$2n4.26495@xxxxxxxxxxxxxxxxx
In another thread, I had mentioned a split-screen effect I was using, and
another poster thought it interesting, so I thought I'd bring it out here
to share, and then ask a few questions.
In an app at work, I have screens with three related FlexGrids side by
side. I have synchronized the scrolling across all of them, and I'll be
writing a routine to allow the user to sort the entire combination on any
column, keeping the rows intact. But the cool feature (in my opinion) is
the vertical bars between grids 1-2, and 2-3, which I use as draggable
dividers. This allows one grid to occupy almost ALL of the available
width, or any other combination of spacing desired.
I found some code on the net (I'll try to refind it to credit the creator)
that uses PictureBox controls for the divider bars, and I haven't figured
out why that was chosen. I have a few ideas though - you need a control
that can receive Mouse events (down, up, and move), which I believe
eliminates a few controls. A TextBox would work, but the cursor blinks in
it when you're done. Any other ideas why the PictureBox is the best?
A question on the synchronized scrolling - it appears that a FlexGrid will
not let you set TopRow unless its vertical scrollbar is enabled. What a
pain. I want to use a single scrollbar (on grid 3) without others showing
up in the middle of things. I was able to hide them by using Left
properties and Z-orders to create overlaps, but that still gets messy when
the grid's horizontal scrollbars come and go (varying column counts). Is
there a way to read if a FlexGrid's HScrollbar is on or not? I guess the
Height property and a multiple of row height might work, or a scan to see
the limits of RowIsVisible...
Why are you using 3 grids at all if they're all syncronised and you can
resize between them anyway? Sounds like the whole thing could be replaced
with 1 grid and the resize bars would just be columns in the grid.
Michael
.
- Follow-Ups:
- Re: SplitScreen
- From: Armando
- Re: SplitScreen
- References:
- SplitScreen
- From: Armando
- SplitScreen
- Prev by Date: Re: SplitScreen
- Next by Date: Re: SplitScreen
- Previous by thread: Re: SplitScreen
- Next by thread: Re: SplitScreen
- Index(es):
Relevant Pages
|