Forum: wxRuby Standard icon in custom dialog

Posted by unknown (Guest)
on 2011-07-15 21:45
(Received via mailing list)
Is there any way to grab a standard icon for a custom dialog?  I have a
message box with Wx::ICON_ERROR, and I want to add a check box to it.
The only way I know to do this is to create a custom dialog.  Then I can
use a standard button sizer to get the proper buttons, but I can't find
the error icon.

Any hints are appreciated.  Thanks!

---
Ryan Hinton
L-3 Communications / Communication Systems West
ryan.w.hinton@L-3com.com
Posted by Alex Fenton (Guest)
on 2011-07-16 08:22
(Received via mailing list)
hi

On 15/07/2011 20:23, ryan.w.hinton@L-3com.com wrote:
> Is there any way to grab a standard icon for a custom dialog?  I have a
> message box with Wx::ICON_ERROR, and I want to add a check box to it.
> The only way I know to do this is to create a custom dialog.  Then I can
> use a standard button sizer to get the proper buttons, but I can't find
> the error icon.

Wx::ArtProvider.icon(Wx::ART_ERROR)

cheers
alex
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.