Nobody
--
Cheers,
Crirus
------------------------------
If work were a good thing, the boss would take it all from you
------------------------------
"Crirus" <(E-Mail Removed)> wrote in message
news:O$(E-Mail Removed)...
> I work on a game.
>
> I have a ZoomMap control, a MiniMap control and a CommandBar control
>
> The CommandBar control is for display (and give orders to) selected units
on
> ZoomMap.
>
> Anyway, if only one unit or building is selected I should display detailed
> data of it.
>
> Right now, I have this questions:
>
> 1) How to signal CommandBar control that a selection was made in ZoomMap
in
> order to redraw itself. Is ok to have a WithEvents reference of ZoomMap on
> CommandBar? Because this way I will need to have lots of references around
> to signal various actions of one control to the others.
> (I have lots of classes that I need to syncronize, so I wander how to do
> that... referencing each one in the others?)
>
> 2) When I draw images of seleted units in CommandBar I need a way to click
> on one of them and have selected only that one..so I need a way to know
each
> image what unit represent...should I store each image bounding rectangle
and
> check mouse click against this collection?
>
>
> --
> Cheers,
> Crirus
>
> ------------------------------
> If work were a good thing, the boss would take it all from you
>
> ------------------------------
>
>