Article # 684, added by Geoworks, historical record
| first | previous | index | next | last |

How to make flashing note smaller.



Q. Is it possible to create a smaller flashing note than the one
   that's created by default? I'm able to make it bigger than the
   standard bubble size but not smaller. I tried with HINT_FIXED_SIZE
   but it doesn't seem to work.

A. The FlashingNoteClass will ignore any attempts to make it smaller
   than 270x183 (its minimum size). To make it smaller you will need
   to subclass FlashingNoteClass and intercept MSG_VIS_RECALC_SIZE.
   In the subclassed method you can do something like:

       return MAKE_SIZE_DWORD( 200, 160 );

   or something to that effect. This will force the note box to be
   that size. Watch out! If you make it too small and the elements
   inside the flashing note don't fit, you'll get a crash in the
   geometry manager (the particular error will depend on the objects
   in the note).