> I would appreciate any help you could give on the following:
> How do I
> a) receive the message (there is no Wimp message class - am I
> missing something - should I be doing something else?
Assuming that you are using tboxlib (oh dear) then in your
initialising function call:
with the parameter being the function that contains your code
to handle it. Cast the WimpMessage.data to a const char *
and use that (taking care to handle a malformed message with
no terminating NUL).
As to the message number: you should apply to Pineapple for a
chunk of 64 message numbers. Or meanwhile just make one up
somewhere in the user-SWI range.
Quote:> b) How on earth do I control the display of text in the window?
Basically, you do it yourself! There are various ways one can
fake it though. The easiest is to run-time generate a text icon
per line. This is adequate for plain text display, but aint fast
to redraw, and does not scale well for large gobs of text.
Next easiest solution is to (probably) convert the text into a
Draw file (text area) object(s) and use the DrawFile module to
But if you want the user to be able to drag a selection, then
be prepared for a few long evenings programming lots of code that
should be in the wimp.
If you're feeling magnamanous you could then upload your rich-
text-file rendering code to a handy ftp site :-)