Post It Notes App

I would like to write a small Postit Note app. It would let you draw using
the mouse. It doesn’t need to save the image, it just needs to follow the
mouse along the screen. Could someone point me to a good starting point?

thanks
Ben

Create PtRaw widget and attach raw callback. Allocate a memory structure to
hold your picture bitmap. In the raw callback handler look for Ph_EV_DRAG
events (mouse dragged) and modify your picture bitmap according to mouse
button states. The PtRaw also has ‘draw’ callback which is called by widget
engine whenever widget needs to be repainted. That’s where you put code to
flush your picture bitmap into widget (using low-level PgXXX routines).

I did a simple bitmap editor, but long time ago so I may be fuzzy about
names, but that was the general logic.

– igor

“Ben Brown” <ben@handcoder.com> wrote in message
news:a9hc34$2bc$1@inn.qnx.com

I would like to write a small Postit Note app. It would let you draw
using
the mouse. It doesn’t need to save the image, it just needs to follow the
mouse along the screen. Could someone point me to a good starting point?

thanks
Ben