You can use the emulator to run heapspace, but running it on an actual
OmniGo will make the results more accurate. This is because the OmniGo uses
XIP memory and that effects the heapspace enough to make it worthwhile to use
an actual OmniGo to determine the heapspace value for your geode.
> Q2: Is there a similar way to determine the exact amount of stack space
> required ?
No easy method that I know of. The reason it's difficult is that Swat has
no way of knowing how deep your subroutine calls will get, or if functions
are recursive. Also, local variables are usually stored on the stack and Swat
would have to take that into consideration as well.
> Q3: How can I reduce the font size in my GenGlyphClass, GenTextClass, and
> GenValueClass ?
> ( With a fast study of the object class descriptions I could not
> find a solution. )
You'd have to intercept MSG_VIS_DRAW_MONIKER for GenGlyph/GenValue and draw
the moniker yourself. With GenText it's simply a matter of changing the
character attributes. I don't have the books at my disposal so I'll leave it
to you to look up character attributes.
Actually, you might be able to change the system font in the GEOS.INI file
and that should effect the size of the text used for monikers. The downside
is you'd have to reboot GEOS for the font change to take effect and it would
effect everything, not just glyphs and values.
> Q4: Using (a subclass of) GenInteractionClass as a push button in the
> menu bar, I specified GI_visMoniker = "TEXTXXXXXX".
> Now, TEXTXXXXXX is either not a suitable title for my window, or,
> if I make it more expressive, it is too large for the push button.
> How can I use two different texts, one for the push button and a
> larger one for my window title ?
Nothing that I know of. How is the moniker too long for the menu item? I
would think you could have a reasonably long moniker and it should be
displayed correctly, as long as it fits on the screen.
> Q5: The content of one of my windows may slightly exceed the Omnigo
> screen size. In this case, when the window appears first, some text
> on the RIGHT hand is truncated.
> However, when the window is closed and reopened again, the text is
> truncated at the LEFT hand side.
> Does anybody know how to shift the window contents to the right
> hand side. Which Omnigo keys or pen actions might have this effect ?
Again, I've never heard of this problem before so I can't even guess at an
answer. Have you tried using HINT_MINIMIZE_CHILD_SPACING or some other hints
to rearrange the objects on the screen?
> Q6: Is there a way to retrieve the user/owner name of my GEOS from a
> program ?
> I don't know whether GEOS systems other than Omnigo GEOS have a
> unique user/owner name.
This isn't something that is typically maintained across all GEOS
platforms. Without manuals or an SDK to look at I would have to guess that
the user information is stored in the GEOS.INI file. Take a look at the .ini
file in the OmniGo emulator and see if you can find something.
Nathan