Re: Question on Tkx

[email protected] (Jeff Hobbs) Tue, 16 Apr 2013 15:45:33 -0700
Newsgroups perl.tcltk
Message-ID <[email protected]>
On 2013-04-16, at 3:41 PM, Kevin Walzer <[email protected]> wrote:
> On 4/16/13 11:19 AM, Jeremy Palmer (jepalmer) wrote:
>> I have created some of my own popup menus and they work great but I would to insert into them what seems to be built-in icons: info, error, question, and warning.   But for the life of me I can not seem to figure out how to do that.  Are these built-in icons available to be inserted into my own widgets?  If so can I get an example of that?

> These icons are specific to dialogs. They can't be accessed via other means.

To be a bit more specific, you need to use defined images (those recognized by `image names`) for menu images.  The icons are not reliably accessible that way, but you could simulate them with `image create photo -data …` (aka Tkx::image_create_photo(-data => …).

Jeff