[comp.sys.mac.programmer] SICNs on the menu bar

mjm@eleazar.dartmouth.edu (Michael McClennen) (07/13/89)

We are writing an FKEY to switch between the standard keyboard layout and an
alternate (e.g. standard Russian keyboard layout, different styles of Ancient
greek, etc.)  According to IM-V, pp. 313-314, the SetScript command can be
used to specify the ID of an SICN to be displayed in the menu bar when that
script is active. It also can be used to specify the ID of a KCHR resource to
be used to map the keyboard while that script is active.  The KeyScript command
changes the keyboard layout to that of the indicated script, and supposedly
draws the SICN in the menu bar.  Well, we try the following sequence of
commands:

    SetScript(smRoman,smScriptKeys,<our KCHR ID>);
    SetScript(smRoman,smScriptIcon,<our SICN ID>);
    KeyScript(smRoman);

The keyboard layout changes, no problem.  But the SICN is not drawn in the menu
bar.  We tried booting from a clean system disk (both 6.0.2 and 6.0.3), both
unifinder and multifinder, but to no avail.  Hardware: Macintosh II, 4 MB,
large HD.  Anyone have any ideas?  Please do not refer us to any tech notes, as
we have read through all of them that refer in any way to the problem
about ten times apiece...

Michael McClennen
Dartmouth College Humanities Computing