TSE: How to create a simplest help menu? [calendar.s]

13 views
Skip to first unread message

knud van eeden

unread,
Jan 3, 2022, 5:26:13 PM1/3/22
to SemWare TSE Pro Text Editor, TSE Editor List
Hello,

HELPDEF calendarHelp
 title = "calendar.s help" // The help's caption
 x = 10 // Location
 y = 3 // Location
 //
 // The actual help text
 //
 "Usage:"
 "1. Run this TSE macro"
 "2. Then press <F1> to show this help."
 "3. Press <SHIFT ESCAPE> to quit."
 //
 ""
 "Key: Definitions"
 ""
 "<Alt T> = Today"
 "<Alt C> = Toggle Calendar Type"
 "<Alt I> = Insert calendar text"
 "<PgDn> = Previous Year"
 "<PgUp> = Next Year"
 "<Grey+> | <Shift => | <SpaceBar> | <Enter> = Next Month"
 "<Grey-> | <-> | <BackSpace> = PrevMonth()"
 "<CursorRight> | <CursorUp> | <CursorLeft> = Previous Day"
 "<Home = First day"
 "<CursorDown>=PrevDay"
 "<Home> = First Day Of Month"
 "<End>=Last Day Of Month"
 "<Ctrl Home> = First day of January"
 "<Ctrl End> = Last day of December"
 "<Escape>=Quit"
END

KEYDEF CalendarKeys
 <F1> QuickHelp( CalendarHelp )
 <SHIFT ESCAPE> Disable( calendarKeys )
END

PROC Main()
 Enable( CalendarKeys )
END
---

1. Save this as foobar.s
2. Compile it
3. Run it
4. Then press <F1> to show the help
5. Then press <SHIFT ESCAPE> to quit.

with friendly greetings
Knud van Eeden


Knud van Eeden

unread,
Feb 10, 2026, 1:46:42 PM (9 days ago) Feb 10
to sem...@googlegroups.com
So that calendar.s menu was actually created by me, surprise surprise.

It is not and nowhere part of the native TSE calendar.s as comes with e.g. the latest TSE version 4.50.19.

with friendly greetings
Knud van Eeden
image.png


--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semware/105249305.1254664.1641248771030%40mail.yahoo.com.
Reply all
Reply to author
Forward
0 new messages