Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sychronized grid scrolling
Message
From
22/08/1997 17:27:53
 
 
To
22/08/1997 13:36:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00046362
Message ID:
00046472
Views:
32
>
>I can sell you even simpler idea. Have grid with e.g. 10 columns, resizable so just 5 of them are visible, and 5 hidden on right (no horizontal scroll). Toggle control (checkbox or button) will set width of the first 5 columns to 0, making 5 right columns visible, and restore column.width for left columns back on second toggle.

Okay, now we're cookin' with gas! Here's what I'm doing:

I put the grid object on the form instead of in the page frame, so I use the page active event to fire the changes to my grid (resizing column widths to 'hide' them etc). I put grid1.visible = .f. in the activate of the third page (and of course the corresponding grid1.visible = .t. in the activate of the first two pages). So, I didn't lose my other objects on the pages and everything comes out right. For me, the grids were exactly the same size and in the same position on both pages, but if not, no reason why you can't resize/reposition the whole thing in the page activate event, right?

Now, I'm working on storing the column width settings in arrays so when the user changes them dynamically (yes, I allow them to do that -- and I allow them to resize the whole form using Vladimir's excellent resize class), they won't go back to their original sizes.

Whew! This seems a little kludgy, but it works, so I'm not going to complain. Thanks again Edward and Bruce for your input.

Singing the "It was a great idea, and now it's no longer ugly thanks to Ed and Bruce" no-longer-blues. Have a great weekend!
Previous
Reply
Map
View

Click here to load this message in the networking platform