X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Jun 2013 09:11 PM by  anon
keyword '/bitmap' in IDL8.2.0
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 Jun 2013 09:11 PM
    I used the keyword '/bitmap' of WIDGET_BUTTON in IDL8.2.0. value =filepath('open.bmp', SUBDIRECTORY=['resource','bitmaps']) but the 'open.bmp' icon couldn't display. why?

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Jun 2013 11:52 AM
    What does the following syntax produce for you? t = widget_base() b = widget_button(t, value = filepath('open.bmp', subdir = ['resource', 'bitmaps']), /bitmap) widget_control, t, /realize

    Deleted User



    New Member


    Posts:
    New Member


    --
    21 Jun 2013 12:15 AM
    Yes, I write it as your. but it didn't work unless in IDL7.1.2. I think it maybe the question of version

    Deleted User



    New Member


    Posts:
    New Member


    --
    21 Jun 2013 02:54 PM
    There hasn't been a change in syntax in IDL between versions. Perhaps your installation directory or path has been modified. f = filepath('open.bmp', subdir = ['resource', 'bitmaps']) print, f ; does this output look correct, for the version of IDL you are running? print, file_test(f) ; does the file exist? What is the exact error you're seeing? Is there a message, or does the button simply fail to render?
    You are not authorized to post a reply.