aem Posted November 28, 2020 Share Posted November 28, 2020 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 Quote Link to comment Share on other sites More sharing options...
aem Posted November 30, 2020 Author Share Posted November 30, 2020 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 30, 2020 Share Posted November 30, 2020 On 11/28/2020 at 8:59 PM, aem said: We're porting another set of applications from VCL Hello, Can you make a testcase in Delphi VCL, to see what you want? Quote Link to comment Share on other sites More sharing options...
aem Posted December 1, 2020 Author Share Posted December 1, 2020 Here is an example of two unistringgrids, side-by-side, that would be nice to scroll together. See what ya think, thanks, tonyMsyncedGrids.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 2, 2020 Share Posted December 2, 2020 6 hours ago, aem said: Here is an example of two unistringgrids, side-by-side, that would be nice to scroll together. I will analyze. But why do you need such a design? Quote Link to comment Share on other sites More sharing options...
aem Posted December 2, 2020 Author Share Posted December 2, 2020 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 Quote Link to comment Share on other sites More sharing options...
aem Posted December 17, 2020 Author Share Posted December 17, 2020 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.