# Standard icon in custom dialog

**URL:** <https://www.ruby-forum.com/t/standard-icon-in-custom-dialog/209531>\
**Category:** wxRuby\
**Created:** [July 15, 2011, 9:45pm UTC](https://www.ruby-forum.com/t/standard-icon-in-custom-dialog/209531 "2011-07-15T21:45:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [July 15, 2011, 9:45pm UTC](https://www.ruby-forum.com/t/standard-icon-in-custom-dialog/209531/1 "2011-07-15T21:45:47Z")

</div>

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 H.  
L-3 Communications / Communication Systems West  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [July 16, 2011, 8:22am UTC](https://www.ruby-forum.com/t/standard-icon-in-custom-dialog/209531/2 "2011-07-16T08:22:03Z")

</div>

hi

On 15/07/2011 20:23, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
