Stephen Hoffman <seao...@hoffmanlabs.invalid> wrote:
> On 2021-06-27 17:13:04 +0000, Zane H. Healy said:
>
>> In looking at the "OpenVMS RTL Screen Management (SMG$) Manual" on the
>> VSI website, they give examples of every language supported, except
>> C/C++. The manual itself says it's new as of 2019, but also says it's
>> for HP OpenVMS VAX/Alpha 7.3. :-) Looking at my copy of the manual
>> for v6, all they did was remove the code for "RPG II".
>>
>> Does anyone happen to have some basic examples of using the SMG$
>> Routines in C? As it happens, the example does just what I need, since
>> it shows how to use SMG$READ_KEYSTROKE.
>
> Yeah, past whatever is in SYS$EXAMPLES, the OpenVMS doc tends to have
> gaps. (The "the OpenVMS doc is great!" crowd always goes silent right
> about now, too.)
>
> If you have support, ask VSI. They're starting up a support database
> offering with examples. Having just checked, they do not yet have an
> example of smg$read_keystroke. The predecessor to the VSI database, the
> DEC/Compaq/HP TIMA/STARS/AskQ database?which did have lots of source
> code examples?is long gone.
Thank you for the detailed writeup and list of links! Keith Halewood got me
the basic answer I needed, and it looks like your examples should take me
much further. The last link, with the example programs look especially
useful!
I was already reading SMGDEF.H, which gets me the rest of what I needed.
For someone looking for an smg$create_menu example, they might want to try
reading through the DX sourcecode. I'd been trying to use it to figure out
SMG$READ_KEYSTROKE command, and noticed the code for the menues.
Thanks,
Zane