So I have a class library I created which handles the various kinds of
virtual silkscreens.
(In case it matters, I am using POL and all my modal forms ultimately derive
from CModalForm).

Everything works fine, but I have the following situations:

A modal form pops up and the user changed the silkscreen state.  When the
modal form closes I have to resize my original form.
An alert pops up and the user changed the silkscreen state.  When the alert
closes I have to resize my original form.

3 solutions:
1. I can add a check at every possible place in my code after a modal form
or alert could pop up, and resize my form then.  Bleh.
2. When the silkscreen resizes, I can send an update event to every open
form and resize all of them.  Mebbe I'm slow today, but I can't figure out
how I would send an update event to all open Forms.  I can only figure out
how to send it to the currently active form.
3. On my app's pre-event handler, I can constantly check if the current form
is sized appropriately for the silkscreen state.  Seems kinda icky, but this
is the most-unobtrusive way to do it.

Before I go with solution #3, anyone have any better ideas?




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to