Geotri Posted June 16, 2013 Author Share Posted June 16, 2013 Does anyone know how to add a img to frmMain in the game pic that works when you click it? Link to comment Share on other sites More sharing options...
Zeno Posted June 17, 2013 Share Posted June 17, 2013 Hi Geotri,This really depends on which engine you're using. The following may not all apply in DX7, but the idea is similar.You will need to add and edit subs in your modInput (sub HandleMouseDown, HandleMouseUp, HandleMouseMove, and create/edit subs for the mouse down / mouse up / double click as needed), modGraphics/modDirectDraw (the actual rendering of the image), and modGeneral (in many engines, image rendering constants in Sub InitialiseGUI).I suggest looking at and mimicking how the buttons already work, because you will essentially be making a large button. Copying the methods of your engine could be a better start than getting public advice, because it adds consistency to your engine and provides an excellent learning opportunity for how your engine already works. Let me know if you need support while doing this. For many engines a good search term within VB6 is "buttons(" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now