Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Add bitmaps...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 5567 of 6457
Post > Topic >>

Re: Add bitmaps to 'widget_base'

by David Fanning <news@[EMAIL PROTECTED] > Mar 25, 2008 at 06:42 AM

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/
Se****e ma de ni thui. ("Perhaps thou speakest truth.")
 




 3 Posts in Topic:
Add bitmaps to 'widget_base'
steverajiv <Rajiv.Pane  2008-03-25 05:24:24 
Re: Add bitmaps to 'widget_base'
steverajiv <Rajiv.Pane  2008-03-25 05:27:47 
Re: Add bitmaps to 'widget_base'
David Fanning <news@[E  2008-03-25 06:42:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 20:58:33 CST 2008.