PC Review


Reply
Thread Tools Rate Thread

Another implementation ideea

 
 
Crirus
Guest
Posts: n/a
 
      18th Dec 2003
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

------------------------------


 
Reply With Quote
 
 
 
 
Crirus
Guest
Posts: n/a
 
      19th Dec 2003
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
>
> ------------------------------
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Wireless networking] please help - no ideea on what to do next Tiberiu Dubau Windows Vista Networking 11 11th Apr 2007 04:23 PM
Why Implementation? Jeff Bowman Microsoft Dot NET 11 6th Jul 2005 12:47 AM
Crazy ideea, but who knows!! Crirus Microsoft VB .NET 5 11th Nov 2003 04:31 PM
Need some implementation ideea Crirus Microsoft VB .NET 16 1st Nov 2003 06:50 AM
AGP Implementation paulnews2002 Asus Motherboards 1 7th Jul 2003 10:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:19 AM.