SeedCodeCalendarFree12

Scrolling The Calendar

Scrolling the day view.

Currently we show 12 rows on the day view,but let you scroll to see up to 36. We increase the number of rows on the day view instead of increasing the height of the rows as we do on other views- they are already 3 lines of text high.

You could take this further and have 100 rows on the day view, but you'd need to change $$sc_LastRow by mode on each refresh so we knew to fill out the records after 36.

Can I add a scoll bar to the week or month views?

Yes.

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).

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. If you do this, be sure to make the Tab Control bounding these objects (the Day, Week, Month tab) wider first, before expanding the objects within it.

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?".

How many records to show is kind of up to you, 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.
(855) SEEDCODE
[email protected]
Follow us: