View Full Version : Making certain controls stationary


Rosebud
03-28-2001, 10:25 AM
Does anyone know a simple way of making certain controls stationary?

I have a form that has a header, footer and detail section. The detail section consists of many controls that force the width of the form to be a maximum 22" and forces scrolling to view all of the controls. Thing is, I have controls in the header and footer section of the form, (like name of student and exit button) that I don't want to move when the user scrolls, sort of like freezing these controls the way you can freeze a column when viewing a table.
I know I could make a subform, but that would be a lot of work on my part w/ changing code and fields.

If too confusing let me know.

Rich@ITTC
03-28-2001, 10:42 AM
Hi Rosebud

Have you thought of using a tab control - a series of tabbed pages that can allow more controls to be displayed without needing to scroll across or down? You can have tabs with subforms as well - so they can make quite complicated forms look neat tidy and accessible.

HTH

Rich Gorvin

Rosebud
03-28-2001, 10:58 AM
Thanks for responding Rich,

Well, I've never used tab controls and they sound like they could be a good feature, but I do need the ability to scroll for the detail section. It's a matter of comparing information on a subform to information on a form and taking the scroll aspect out is not an option. Any other ideas?

Thanks.

Rich
03-28-2001, 12:53 PM
Couldn't you use a sub form and add scroll bar to sub?

Rosebud
03-28-2001, 01:32 PM
Thanks a whole lot Rich.

You know what? I didn't end up using a subform, but a form itself. What i did was created a new form with the controls I wanted to freeze on it, with a low height and large width, and set the border to none with no record selectors, nav. buttons, etc, and saved it to the same position I wanted it to appear on the main form.

When the command button is clicked (from previous form) to open main form, it also opens this pop-up form (and vice versa with close). So basically the user doesn't have any idea this "heading" to the form is not part of the main form and when I scroll the main form, the "heading" doesn't move! Yeah!

Now, only prob is when deactivating this main form, also deactivating the pop-up form, but that shouldn't be a big deal.

Thank you Rich!