comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Add bitmaps to 'widget_base'
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Add bitmaps to 'widget_base' [message #59457] Tue, 25 March 2008 05:42
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
steverajiv writes:

> Can any one explain me how to add bitmap images (4 or 5 pics) to
> 'widget_base'.
> (e.g user created bmp images representing 'lineplot', 'plot-surface'
> etc..like 'macros tool bar' in IDL ide but without using
> 'widget_button')
> Can I also add bitmap images or symbols to button widgets of type
> exclusive and/or non_exclusive?

I think you are a little confused about how things are
working here. All bitmap images or symbols *must* be added
to Widget_Buttons. Those buttons are then added to
Base_Widgets that can be either exclusive or non-exclusive,
as you wish.

Bitmaps on buttons are not exactly "BMP images", rather
they are images that are configured in a particular way.
You can use CVTTOBM can be used to convert an array to
a bitmap, or you can use the extensive list in the IDL
resources directory.

Another way to proceed would be to use actual images
on small draw widgets, that have been written as
compound widgets that return button events. You have
to manage your own "exclusivity" in this case, but
it is not hard, especially if you have written your
compound widget as a widget "object".

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Add bitmaps to 'widget_base' [message #59458 is a reply to message #59457] Tue, 25 March 2008 05:27 Go to previous message
Rajiv.Paneerselvam is currently offline  Rajiv.Paneerselvam
Messages: 14
Registered: November 2005
Junior Member
Can I also add bitmap images or symbols to button widgets of type
exclusive and/or non_exclusive?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Add bitmaps to 'widget_base'
Next Topic: Problem with IDLgrClipboard in callable mode

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:40:25 PDT 2025

Total time taken to generate the page: 0.00448 seconds