Skip to main content
gamedev.net
🔒 Locked

Gui controls

Started by snyp Apr 17, 2004 at 6:21 PM 0 replies 300+ views
Original Post
snyp
snyp
How can you make gui controls like when you hover on a control you put this pic, when you click and hold you get this pic and when you release you get this pick.. also when its disabled.
Actual Linux penguins were harmed in the making of this message.
Uriel
Uriel
if you are talking about winapi then i have no idea.

But you can always write your own GUI class like i did. Then you simply check if cursor is over gui object, is any mouse button pressed and you render that object with texture prepared for that state.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.