Image thumbnails buttons

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
R
Posts: 3
Joined: Sun Feb 24, 2008 11:06 am

Image thumbnails buttons

Post by R »

Hello :)

I need some clickable images in the program I'm writing.
I tried IGuiButtons, but could not scale my textures to fit the button area.
These are the possible solutions I was considering:
  • 1) subclassing Button class, overriding ::draw(...)
    2) subclassing Image class, providing event handling
    3) programmatically creating a texture of the size of my buttons
but I'm still wondering if there's a simpler way.
There's really no provision for resolution independent Button images?

Thanks in advance, R
R
Posts: 3
Joined: Sun Feb 24, 2008 11:06 am

Post by R »

There's really no provision for resolution independent Button images?
Well, I guess the answer is "no" :)
Thanks anyway, R
Post Reply