Re: SplitScreen

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"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


.



Relevant Pages

  • Re: SplitScreen
    ... This allows one grid to occupy almost ALL of the available width, ... that uses PictureBox controls for the divider bars, ... eliminates a few controls. ... A question on the synchronized scrolling - it appears that a FlexGrid will ...
    (microsoft.public.vb.controls)
  • SplitScreen
    ... This allows one grid to occupy almost ALL of the available width, ... that uses PictureBox controls for the divider bars, ... eliminates a few controls. ... A question on the synchronized scrolling - it appears that a FlexGrid will ...
    (microsoft.public.vb.controls)
  • Re: Basic Binding and Filtering Problem
    ... If I access the data through a dataset, the grid and monthcalendar bind ... i woud use DataView for all ... Controls and then filter that. ... Hey Bart - I don't have any code written beyond filling the data adapter. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Complex GirdView Problem, returning values from dynamic Templa
    ... From within that method you will have access to the grid row ... Issue #2 - Save the user's selectionto viewstate. ... the controls were not accessible. ... > However, from your example, instead of a GridView I created a PlaceHolder. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Basic Binding and Filtering Problem
    ... That's all it takes to keep the controls and grid in sync when all of them ... same dataset, not the same dataview. ...
    (microsoft.public.dotnet.framework.adonet)