Sign in to follow this  
Followers 0
natwolf

making an image move in GUI?

6 posts in this topic

I have recently been trying to create movement in a GUI. I've determined through research that I will most likely need to use the GDIplus functions but I've been unable to find much that helps me achieve exactly what I am trying to do.

The idea is to draw an image in a GUI and then make that image move across the GUI based on the user pressing the arrow keys. I can handle the drawing an image to a GUI rather easily but I have yet to be able to successfully make it move despite hours of effort.

I've found some scripts that when executed achieve what I am trying to but I am unable to follow them to find out how they did it or why what they are doing is working because the dev notes are in other languages.

can anyone point me in the direction of any example scripts that may help me out or give me any pointers?

Share this post


Link to post
Share on other sites



>look 

 

Saludos

1 person likes this

Share this post


Link to post
Share on other sites

Seems to be what I aiming for except the script doesn't appear to work.

Share this post


Link to post
Share on other sites

put a your own picture 

Global $hImage = _GDIPlus_ImageLoadFromFile(StringLeft("here your picture or icon")

 

saludos

Share this post


Link to post
Share on other sites

Both of these work for what I'm trying to do. The first example allows for a bit more what I'm aiming for except I cannot figure out how to make the frame transparent or invisible so the background of the GUI is visible.

All of my attempts have only made the GUI itself invisible or transparent. I Haven't even really been able to change the color of the frame no matter what I changed. I've tried _winapi_setLayeredwindowattributes and _winApi_setbkcolor but neither seem to have the effect I'm searching for.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0