|
-
Apr 29th, 2001, 04:13 PM
#1
Thread Starter
Hyperactive Member
Whoa
Hello, and welcome
Today I want to ask on about my dragon-problem. Not the same ol' stupid question, I've figured that out. But my new topic is still related to the issue of object-oriented programming.
If you haven't read my previous thread:
I have a dragon which I call 'Drag'. It's a class module called Drage and a 'Drag' which is a 'Drage'
Option Excplict
Public Drag as New Drage
But this control, Drage, needs a picture to display itself on the screen. I've used the coding:
Dim Monster1 As Image
Set Monster1 = frmBane.Img
With Monster1
.Picture = LoadPicture(App.Path & Drag.Pic1)
.Left = Drag.StartPosL
.Top = Drag.StartPosT
End With
And I've created an Image with the picture of a dragon. However, I am not able to control the Image Control directly from the Class Module, something which is vitally dramatic when I'm trying to build the Method called 'MoveDragon'. So I wonder, does anyone have an idea on how to Either:
Give my dragon class a picture, Left and Top Property OR
Give my dragon full authorization of controling the Image Control.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|