Jump to content

uniStringGrid - how can I scroll grids together?


aem

Recommended Posts

We're porting another set of applications from VCL to UniGUI - and several

of those forms have pairs of grids positioned right against each other.

When either grid is scrolled the ONTOPLEFTCHANGED event sets the TOPROW

property to match the other grid - slick.  Is this synchronization doable without those?

(I notice an event onalignposition that sounds interesting but nowhere do I

see any references to it in docs or forums - It's probably irrelevant to my need anyway)

thanks, tonyM

Link to comment
Share on other sites

  MORE:  It looks like I could get rid of the several places where this two-grid-sync business is done if we

could make specific columns readonly within a single tunistringgrid.  We have explored

that possibility before but come up dry. But that seems like an alternative if it were possible.

thanks,  tonyM

Link to comment
Share on other sites

The idea is something like this.

The user enters a set of special numbers (corresponding to a mix of claims and such)

So a stack of simple grid cells seemed appropriate ( our VCL apps do this in several places).

When the user is ready they click a button ANALYZE. Then to the right of each value

a number of new values and messages are filled.

They then 'work' with this list, going up and down the info, until done.

Two grids connected using ONTOPLEFTCHANGED to reset the other grid's TOPROW

property was a simple way to have the info scannable.

  - Of course this could be done with a single grid just fine if

the rightmost columns could be made readonly and Tab did not move users

from the entry column 0 to the info columns.

tonyM

Link to comment
Share on other sites

  • 2 weeks later...

Thank you for considering this silly question....

We changed all the synchronized grid places to use a

scrollbox that contains multiple grids. Obvious once we

thought of it. Keep up the great work. This has always

been a great forum for quick responses about a fantastic product.

sincerely,

tonyM

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...