Sign in to follow this  
Followers 0
Rad

GUICtrlCreateImageBtn()

6 posts in this topic

I was messing around being bored and decided to make a media player with the newly discovered _Sound functions, and i made picture buttons. When you hover or click on them they change... Its a pain making the options for each button though, so I thought

...I remember awhile back asking about how to make Includes, but i never was successful with it and gave up easily. But now that I have something I actually need, I could use some advice... How would I go about making this type of include? Can you add buttons to a GUI through a seperate script? (Actually, i used GUICtrlCreatePic)

Not really sure where I am going with this though :lmao:

Share this post


Link to post
Share on other sites



there are two scripts that should help direct you with similar intent

1

ControlHover()

2

XSkin

Both use the same concepts

Both are in scripts and scraps

Both are in my signature

( all my programs )

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I like that first one, at least the demo looks cool. Ill mess around with it for awhile and see if I can get it to work for what I need.

But the XSkin thing looks more advanced than what im looking for

:ph34r:

I would still like it a bit easier and just have the GUICtrlCreatePictureBtn() or something, then it could be like ("Idle.bmp", "Highlighted.bmp", "Pressed.bmp", X, Y, width, height, press delay, styles)

lots of options though ^^

LOL!

I just discovered that GUIGetCursorInfo() you can check in $info[4] is equal to a control variable. I feel stupid! I thought it was the window ID control (ie, button 1, 2 etc, which is displayed in the window information thing on the helpfile demo...thing)

anyway, this makes things alot easier :lmao:

Edited by Rad

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Look at my beautiful buttons! put rad.au3 in your include and extract the rest to a folder and run the script

:P

Now if only I could make the include handle everything in RMP.au3 ... :/

I was wondering, whats the font that makes every letter the same size? or is it a font format... IDK... like when you do code tags

A|B|C|D|E|F|G|H|I
J|K|L|M|N|O|P|Q|R

A|B|C|D|E|F|G|H|I

J|K|L|M|N|O|P|Q|R

edit - looks the same as the forums to, but it doesnt in autoit :whistle:

If I figured this out I could make a better way to display what track is playing (once i get a little farther ;))

Edited by Rad

Share this post


Link to post
Share on other sites

instead of putting a picture on top of a button, but a label on top of a picture, and use the label just like you would use a button...

I hope that makes sense

there are two scripts that should help direct you with similar intent

1

ControlHover()

2

XSkin

Is there anything that XSkin isn't helpful in? :whistle:


What goes around comes around... Payback's a bitch.

Share this post


Link to post
Share on other sites

instead of putting a picture on top of a button, but a label on top of a picture, and use the label just like you would use a button...

I hope that makes sense

Thats a good idea. I never thought about doing that.. :whistle:

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