Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question on Tkx

11 views
Skip to first unread message

Jeremy Palmer (jepalmer)

unread,
Apr 16, 2013, 11:19:45 AM4/16/13
to tc...@perl.org
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?

Thanks,

Jeremy Palmer

Kevin Walzer

unread,
Apr 16, 2013, 6:41:40 PM4/16/13
to tc...@perl.org
Hi Jeremy,

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

--Kevin


--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com

Jeff Hobbs

unread,
Apr 16, 2013, 6:45:33 PM4/16/13
to Jeremy Palmer (jepalmer), tcltk@perl.org Mailing List
On 2013-04-16, at 3:41 PM, Kevin Walzer <k...@codebykevin.com> 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
0 new messages