SeedCodeCalendar

Scrolling The Calendar

These are the docs for our FM10/11 version of the Pro Calendar. Docs for the newer, FM12 version of our calendar can be found here.

Can I add a scoll bar to the day, week, month or schedule screens.

Yes. This would let you scroll through the times of the day (or scroll through events on our SimpleViews) using portal scroll bars instead of our "time up" and "time down" arrows.

Note that this same technique can be used to make the calendar bigger without showing a scroll bar. If you have a massive monitor you can use the techniques below to change the number of rows, making your layout bigger instead of adding a scroll bar.

To do this, begin by editing the portals you're interested in to include a scroll bar (double click on the portal and select "show vertical scroll bar" from the Portal Setup screen). If you're not sure how to get to the different tabs (week, month, etc,) read this: calendar tabs.

Adding a scroll bar takes a few pixels away from the inside of the portal contents so you may want to make your portal wider (and your screen wider as well) to accommodate this: that can be easier than making all the portal contents narrower.

When making the portal wider, it is first necessary to increase the width of the tab panel beneath it. Portals that are not completely contained within a tab panel, even temporarily, may have their stack position affected. We recommend using the Inspector to first increase the width of the tab panel, and then to increase the width of the portal, ensuring that the portal never goes beyond the edges of the tab panel. Note that some tabs like Day and Week have sub-tabs beneath them for SimpleViews and you'll want to increase the width of these sub tabs as well, before widening your portal.

Next, edit the script "Load Calendar Settings - On Startup --- Edit Configuration Here ---" and find the comment "How many portal rows are visible on the month screen?". You'll want to change both numbers (for the small and large calendar) so that there will be additional rows to scroll to.

How many records to show is kind of up to you, but if you have your time increment set at 15 minutes and your day starts at 8am, 77 rows will show until 1am in the morning if you scroll all the way down. But since we want a number that divides evenly by 6 (for our month view) I'd suggest 78. After you've selected your number, run the Upon Opening script to see your changes take effect.

That's it.

Here are a couple things to keep in mind...

You can add a scroll bar to the month view also, this is pretty cool if you also increase the "rows per day" on the month view. Do this by editing the script "Load Calendar Settings - Each Redraw" where the first variable declared is $sc_RowsPerDay. This should be the number of rows shown divided by 6, or 13 if you've moved up to 78 rows above.
You can also add a scroll bar to the Grid tab without any extra programming. If you have more resources than will show on the Grid view even with it scrolled all the way down (that is, you have more resources than the setting for "How many portal rows are visible on the month screen?" above) you'll see the "Next Resources" button light up to you can "page" down to the next X resources.
(855) SEEDCODE
[email protected]
Follow us: