Project

General

Profile

Feature #1083

Image-based button like WPushButton?

Added by Peter K almost 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
12/03/2011
Due date:
% Done:

0%

Estimated time:

Description

It would be nice to have an image-based javascript button, with the same behavior as WPushButton, but with a constructor like

WImageButton(WImage* normal, WImage* pressed, WImage* disabled=NULL, WImage* rollover=NULL, WWidget* parent=NULL)

That would make it easy to create customized buttons (and they would be rendered in the same way in all browsers, too!)

The "normal" image would be how the button looks like in its normal state

"pressed" is when it is being clicked

"disabled" - after setEnabled(false)

"rollover" - mouse over the button or button is focused

No data to display

Also available in: Atom PDF