[AccessD] Setting Box Forecolor

Stuart McLachlan stuart at lexacorp.com.pg
Mon May 1 10:54:28 CDT 2006


On 1 May 2006 at 7:43, Rocky Smolin - Beach Access S wrote:

> P.S. - additional question for the future - this app is coming from a 
> back pain specialist who saw The Sleep Advisor and wants to do a similar
> expert system to diagnose back pain.  Very interesting idea.  In the
> meantime, the areas of pain on the manikins are, of necessity, rectangles. 
> But on his original drawings, they are irregular shapes conforming to the
> outlines of the body.  As it is now, it will do for alpha and beta testing,
> but ultimately we'll need something more precise.  Does anyone have any
> ideas on how to draw irregular shapes on a form which will respond to a
> mouse click?
> 

I don't know of any way to put irregular shaped objects on a form, but I 
can thing of two possible options, both using an imagebox to show the body:

1. lots of small transparent buttons over the image
2. Read the X and Y on the image's MouseDown event to find out exactly 
where the user clicked (they are the offset in twips from the top left 
corner of the image)

In both cases, you'd have to store and display different images depending 
on the status of the various areas.

-- 
Stuart





More information about the AccessD mailing list