Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a phaser beam...hehe!

Status
Not open for further replies.

docjohn52

Programmer
Sep 28, 2002
114
US
I need this for a class project... not for grade, I'm 52 y.o. and a pro vb6 programmer.

I'm rewriting the old startrek game, with the 10,10 grid screen, and you have the enterprise and you have to visit x amount of quadrants and sectors in x amount of time to kill all the klingons... (you must have seen a variant of this game, I saw one that printed "E" and "K's" on greenbar...

Have built a 10x10 grid of labels on the main form (labels support both icons and text), enterprise in one, klingon in another, how in god's name do i draw a line between the two...?!

I have tried transparent forms, (namespace) and the line is transparent too, including opaque stuff (and making the main form opaque, still see through it)...

Can't just draw a line, because it occurs under the labels, on the form...

Can't make the labels transparent because it shows the desktop not the base form...

My instructor suggested a button control, manipulating the position, and this makes a wonderful photon torpedo. (the last control drawn apparently takes "bring forward?"), but still need a phaser.


How do I do this?

John
 
Try looking up the Chalk Talk sample on msdn.
It might have what you need.
(i think you need a transparent image box on top to draw on)





if it is to be it's up to me
 
tried that, it shows right through to the desktop, and doesn't show the icons for the enterprise and kingon, etc...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top