X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 05 Jul 2006 03:17 PM by  anon
Beginner in IDL
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
05 Jul 2006 03:17 PM
    Hi I've a (beginer)question concering Itools, and in particulat the Idlitimessaging class. I am trying to set a progress bar, but I really don't know how to do. I have tried the following code, but it doesn't work: obj = OBJ_NEW('IDLitVisualization') test=Obj->IDLitIMessaging::ProgressBar('test',cancel='cancel', PERCENT=40) Could you give me a way to do that (just the idea)? I will then use "help" Thank you very much Best regards Arnaud

    Deleted User



    New Member


    Posts:
    New Member


    --
    05 Jul 2006 03:17 PM
    I do not have any experience with this ProgressBar before, but I can imagine that it would not execute properly or appear, if the object that was calling it were not displayed. Thus, I think your first line: obj = obj_new('IDLitVisualization') has no effect for displaying the progress bar. When I started looking at the IDLitMessaging class and its subclasses, however, I quickly noticed that IDLitTools implement the IDLitMessaging interface. This means that code like the following can get the progress bar to appear: IDL> iplot, findgen(100) IDL> idPlot = itgetcurrent(TOOL=oTool) IDL> status = oTool->ProgressBar('Test', CANCEL='Cancel', PERCENT=40) The iTool object is by no means the only object that could call ProgressBar and get it to appear. Probably I could search for and find the IDLitVisPlot object and have it invoke the ProgressBar method. However, I can imagine that there are many iTool scenarios where the IDLitTool object is as good an object as any to invoke it. (By the way, because 'IDLitMessaging' is the only class defining a 'ProgressBar' method, you do NOT need to use this extra syntax "IDLitMessaging::" in your "ProgressBar" calls.) Regards James Jones
    You are not authorized to post a reply.