[CS4 Mac] Change PictureWidget image at running time.

Hello,
I have a PictureWidget on a panel - by default it displays a PNG file loaded from resources.
It can also display error icons when a query fails - etc: these icons are loaded from plugin's 'PICT' resources.
So far so good.
Now - when a query doesn't fail it would need to display an image stored as a 'PICT' file on a server: the query result is telling me which 'PICT' file is to be displayed in the PictureWidget.
For QXP I was using DrawPicture() to draw the PicHandle directly in the item rectangle.
Switching it to InDesign - I am looking for a recipe to achieve same result but following InDesign SDK means and spirit.
In other words - how do we change a PictureWidget image at running time in order to display a PICT files from server instead of built-in default PNG or 'PICT' resources.
Any pointer or direction to achieve this would be very much appreciated indeed.
Best regards
Patrick Perroud

Hi,
I have to add a image on a dialog, I am able to add a image on Windows by associating a image resource ID with image path in .rc file. But not able to do the same on mac. How can we associate image resource ID with image path on MAC?
Thanks in advance.

Similar Messages

  • Dynamic Images at run-time

    I have a report that I would like to display a different
    image/logo depending on the user who is generating the report. Is
    there a method to display a different image at run-time? Or, does
    anyone have a better way rather than cloning 10 versions of the
    report will a different image on each?
    Thanks for any help in advance,
    Kevin

    Here is a sample that shows changing an image at runtime. If you are using a different version of Crystal Reports than XI R2, let me know.
    https://boc.sdn.sap.com/node/6174
    Cheers,
    Jonathan

  • Create LinkToAction with Image by run time

    Hi,
    I want to create linkToAction UI's with different images by run time. But if I try the code below I get always the same image for every linkToAction UI. What is my mistake? And how can I solve this problem?
         for (int i = 0; i < wdContext.nodeGlob_Struc().size(); i++){
              IWDLinkToAction linkToAction = (IWDLinkToAction)
                   view.createElement(IWDLinkToAction.class, "linkToAction"+i);
              IPrivateDocPreAppView.ILinkToActionElement nodeLink =
                      wdContext.createLinkToActionElement();                    
              wdContext.nodeLinkToAction().bind(nodeLink);     
              wdContext.currentLinkToActionElement().setImageSource(
                      wdContext.nodeGlob_Struc().getGlob_StrucElementAt(i).
                           getUrl_Thumbnail() );
              linkToAction.bindImageSource( wdContext.nodeGlob_Struc().
                       getNodeInfo().getAttribute(IGlob_StrucElement.URL__THUMBNAIL) );     
                theGroupBox.addChild(linkToAction);
    regards,
    Sharam

    Hallo Sharam,
    The Web Dynro binding model does not support "index binding". This means binding multiple image UI elments to the same attribute in a multiple context node (cardinaltiy 1..n) means, that all images are bound to the node's lead selection. That's what you implement with
    linkToAction.bindImageSource( wdContext.nodeGlob_Struc(). getNodeInfo().getAttribute(IGlob_StrucElement.URL__THUMBNAIL) );
    Armin's solution is based on the fact, that he breaks the data binding principle by directly setting the imageSource property values.
    Sharam, when reviewing your code I find several "problems":
    1. Never ever store UI elements in the context. I assume you do this in order to access UI elements outside wdDoModifyView() as it is static. There is no need to do this.
    2. Then you break databinding by setting the imageSource property in the linkToAction object (stored in the context) directly, breaking databinding.
    3.)  Finally you "un-do" this hard property setting by binding it to the context again. This has the effect you described.
    Breaking the data binding principle for UI elements has an important drawback. It also breaks the generic Web Dynpro caching mechanisms. Read my article on
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/301d715e-0b01-0010-1a8b-f1f83d175972">Best Practices for Building Client-Independent Web Dynpro UIs</a>, section Coding Rules, rule <i>Implement Fine-Grain UI Manipulations on Context but Not on UI Element Level</i>:
    To maximize the rendering performance of your Web Dynpro application, implement all fine-grain UI manipulations on context instead of UI element level. This means do not call the setter-methods of UI element objects inside wdDoModifyView()directly but bind the related properties to the context and call the corresponding setter methods outside wdDoModifyView():
    <b>Not:</b> wdDoModifyView(){ … theField.setEnabled(true) … }
    <b>But:</b> wdDoInit(){ … wdContext.currentFieldNode.setEnabled(true) … }.
    Otherwise Web Dynpro’s caching mechanisms cannot speed up the rendering of view layouts.
    The view controller’s wdDoModifyView() method is designed for a special purpose: the creation of a UI tree or UI sub-tree at runtime in case it is not possible to declare the UI at design time. The method is neither intended for fine-grain UI manipulations nor for context manipulations. Fine-grain UI manipulations are achieved via means of data binding. Context manipulations are done in wdDoInit(), action event handlers or event handlers.
    Unfortunately, the name wdDoModifyView() is somewhat misleading since the purpose of it is to create (and not to modify) a UI tree dynamically. While the usage of wdDoModifyView() in order to create a UI tree initially (firstTime == true) is not performance critical, modifying an existing UI tree (firstTime == false) is: Changing only one single attribute of a single UI element within wdDoModifyView() flags the complete view containing the control as dirty and the complete view must be completely re-rendered again – depending on the size and complexity of the view this can result in significant performance hits.
    But in your case databinding cannot be applied, as index binding is not supported. The only databinding solution must use multiple/n nodes of cardinatliy 1..1 instead of 1 node of cardinality 1..n with no node elements. And this would require further coding for dynamic context node creation, copy logic based on value semantic.
    Best Regards, Bertram

  • How to create transparent image at run-time?

    How to create transparent image at run-time? I mean I want to create a (new) transparent image1, then show other (loaded) transparent image2 to image1, then show image1 to a DC. The problem is - image1 has non-transparent background...

    i'm not sure, but you can set the alpha value to 0 in all pixels which are 'in' the background..
    greetz
    chris

  • Can you set an image at run time?  Does it really work?

    I have read that others have been able to set an image at run time, but I cannot seem to get it to work (the image I set does not load).
    What I do is have a page, call it page2, that has two image components on it. In the constructor for page2 I do this:
    // Additional user provided initialization code
    image1.setValue("bike1.JPG");
    image2.setValue("bike2.JPG");
    The jpg files are in the build directory:
    C:\Documents and Settings\Darrin\My Documents\Creator\Projects\ImageTest\build\images
    The odd thing is that for the first image component(image1), I set a default jpg file (nogo.JPG that is in the same directory as the other two), and that does load.
    In fact, when I I check the value of image1 in afterRenderResponse by calling image1.getValue() it still has the default image (nogo.JPG) instead of the one I set it to (bike1.JPG) in the constructor by calling image1.setValue("bike1.JPG");
    So, either the image1.setValue() has no effect, or something is overwriting it.
    What is the trick to getting an image to load at run time like this?
    THANKS!

    Well after several more hours of banging myh ead against the wall, I still cannot get this to work.<br><br>
    I read in the constructor comments that whatever is in the jsp file will override the backing bean's constructor, so that might be part of the problem, but others I thought got this to work using a similar method.<br><br>
    Here is what I tried last which still does not work, but mimics what others have said did work for them:<br><br>
    //See if the default jpg file can even be copied over
    <br> image3.setHeight(image1.getHeight());
    <br> image3.setUrl(image1.getUrl());
    <br> image3.setValue(image1.getValue());
    <br>
    <br> Integer aiw = new Integer("1");
    <br> float aar = 0;
    <br> float ar = 0;
    <br>
    <br> ImageIcon ii = new ImageIcon("C:/Documents and Settings/Darrin/My Documents/Creator/Projects/ImageTest/build/images/bike1.JPG");
    <br> ar = (float)ii.getIconHeight()/(float)ii.getIconWidth();
    <br> aiw = new Integer(ii.getIconHeight());
    <br> aar = ar*aiw.intValue();
    <br> image1.setHeight(""+(int)aar);
    <br> image1.setUrl("images/bike1.JPG");
    <br> image2.setValue("C:/Documents and Settings/Darrin/My Documents/Creator/Projects/ImageTest/build/images\\bike2.JPG");
    <br> image2.setUrl("C:/Documents and Settings/Darrin/My Documents/Creator/Projects/ImageTest/build/images\\bike2.JPG");
    <br><br>Note that when I run this and look at the log that I write out to in afterRenderRepsponse, it shows that image1 (which shows up as the default image I set at design time) and image3 (which does not show up which I set at run time using image1's value) both show the nogo.JPG image from the <b>resource</b> directory while image2 (that I set at run time to be bike2.JPG) is showing up as <b>empty</b>
    <br><br>
    This is really getting frustrating, and I would greatly appreciate a small tutorial from the JSC staff on just how you need to go about doing this. given that this is so common a need, a tutorial is warranted. Heck, just clue me in on how it is done and I will write one!
    <br><br>
    THANKS!

  • How to select a sub image in run time

    Hi ,
    how can i select sub image from an image on panel in run time ?
    OR
    how to draw a rectangle(with dashed lines) on the panel and from its dimension i'll get the sub image ?
    THANKS

    BufferedImage.getSubImage(....);

  • How to change the skin at run time

    I am using jDeveloper 11.1.1.3 for ADF.
    My UseCase: i want to give a dropdown for skins. User should be able to select the skin at run time and it should be loaded. Please let me know how can i achieve it.
    Zee

    As per usecase, looks like you have the LOV containing the different skins.
    You can ensure that the application is skinned according to the selected value in the LOV.
    Ensure that you have a session scope variable that is set, whenever you change the LOV.
    For more details, look into this link http://download.oracle.com/docs/cd/E14571_01/web.1111/e10140/skinning.htm
    Thanks for your reply, but then...... what will be the skin loaded by default before the user selects the skin - drop down. Do i have to set something default before hand .?Define the LOV such that there are no empty elements. i.e the first element in the LOV is selected.
    In the Managed bean, if the session scope is not set, return the skin family for the first element. This would be the scenario when the application loads.
    Thanks,
    Navaneeth

  • Change display pattern at  run time

    I have a date/time field which has display pattern set as MM/DD/YYYY...
    During run time, if user clicks on a check box...the display should change to DD/MMM/YYYY...How can i do that?

    You can do this with a little bit of script on your check box's Click event (in FormCalc in this example):
    if ($ == 1) then
    DateTimeField1.format.picture = "DD/MMM/YYYY"
    else
    DateTimeField1.format.picture = "MM/DD/YYYY"
    endif
    The trick is to know that in XFA, what Designer refers to as the "Display" picture is the <format> node which contains a <picture> which, in turn, contains the "display" picture; or, the picture used to
    format the field's value for display purposes.
    I've attached a sample form which demonstrates this.
    Stefan
    Adobe Systems

  • Change Item Type at Run Time!!

    Hi all,
    I am using apex 4.0, and I want to know if their is any plug-in that can help me to change the type of an item at run time.
    what exactly i want to do is to change the type of an item according to the value of a select list, for example when the user select a specific value from the select list,this item should be displayed as a date piker.
    so, can any one help me?
    thanks in advance,
    Ola,

    Hi,
    Here is sample
    https://apex.oracle.com/pls/otn/f?p=40323:81
    When you select "Date" from select list and submit Field is changed to datepicker.
    I did create select list P81_SELECT with static LOV
    STATIC2:Text;T,Date;DNormal text item P81_FIELD and to page JavaScript Execute when Page Loads
    if($v('P81_SELECT')=='D'){
    $('#P81_FIELD').datepicker({showOn:'both',buttonImage:'#IMAGE_PREFIX#asfdcldr.gif',buttonImageOnly:true});
    }Regards,
    Jari

  • Adobe Cs4 - Can't change 1 image at a time .. ??

    hi guys, this is my first time in this forum, and i have been looking for the solution of this problem of mine for like 3 hour on the internet  and couldn't find anything .. so i came here ..
    well, the problem is, i am making a website (even tough i don't know much about editing and stuff yet) and i'm trying to use this Template.. there are tabs on the site with option etc, and i am having trouble editing 1 tab at a time .. everytime i change something in 1 tab, it automatically changes all the others as well .. i don't know why .. there is a green 'glowing' light green retangle around all the tabs.. it migh have something to do with what's happening.
    Screenshot:
    http://img695.imageshack.us/img695/2386/helpw.jpg
    and i'm really sorry i'm posting such a thing on my first post .. but i started using adobe flash cs4 yesterday ...

    Luckily that's not a CS4 file or I wouldn't be able to open it.
    If you go back to the image you showed in your first posting, that timeline you were editing is the key to having the names changed to what you want.  Each frame of that timeline holds a different label for the button.  So you need to edit those to be the labels you want to display.  The code to control which frame you land on for each button is on the buttons on the main timeline.
    If you go back to the main timeline and select one of the buttons, you will see code in the Actions panel like the following assigned...
    onClipEvent (load) {
    this.p = 1;
    lnk = "index.html"
    This code is placed on each button at each keyframe, so you need to edit it at each keyframe (if you need to edit it... you may not if changing the labels was all you needed).
    The line that says "this.p = 1;"  is what determines which label the button will have... that number is the keyframe of the button timeline you changed the names in.  Hopefully, the "link = " line is obviuous to you as far as what it's for.

  • Change Windows Title in run-time

    I can change windows title in File-->VI Properties--< Windows Title.
    I wish You write in a string box change the windows title. How can i made it?
    Thanks.

    GerdW,
    If you open a reference, and then, in a loop, change the title, there is no
    problem.
    But if you open a reference and change the title in a loop, you get problems
    when you don't close the reference. This does not happen when you don't use
    the Open VI Reference.
    The attached VI will hopefully clear things up...
    Regards,
    Wiebe.
    "GerdW" wrote in message
    news:[email protected]..
    > Hello Wiebe,
    >
    > what do you mean with new and old reference? Does the reference of the
    > vi change, when you change the FP.Title property?
    > I have a vi, that runs as long as I'm sitting in front of my computer
    > (say 10 hours a day). It sets the title every 90 seconds to signal
    > running pr
    ocesses in Windows taskbar. I close the reference on vi exit
    > and never realize some memory leaks.
    >
    > Best regards,
    > GerdW
    [Attachment Change Title Leak.vi, see below]
    Attachments:
    Change_Title_Leak.vi ‏50 KB

  • Change style property at run time

    Hi,
    I have one table with update icon(as column), if i click that icon of any row means it needs to change the table as editable.
    I don't know whether it is possible or not.
    If possible means please tell me how to do that.
    Thanks
    SAN

    Hi San
    Yes it is possible.You need to make use of SPEL and PPR for that.I have exact scenario on my blog.You can refer
    http://oracleanil.blogspot.com/2010/08/how-to-make-read-only-selected-row-in.html
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Can i change tabIndex order in run time

    iam giving tabindex order. some swf file loading runtime than can i change tabIndex order. if possible how

    yes, you can use the tabIndex property of interactive objects:
    textfield1.tabIndex=1;
    movieclip1.tabIndex=2;
    button1.tabIndex=3;

  • How to change field text at  run time in alv

    Hi all,
    Following are the columns need to displayed in an alv. year shd be the year which was entered in the selection screen.
    if the year entered was between 2001 and 2003 then the o/p(for year)  shd be as follows
    Division/Name     Position     Management Level     year 2001     Year 2002      Year 2003
    How can i achieve this. i have tried as follows:
      data : lv_yr1(4),
           lv_yr2(4),
           lv_yr3(4).
      clear: lv_yr1,
             lv_yr2,
             lv_yr3.
      lv_yr1 = s_date-low(4).
      lv_yr2 = s_date-high(4) - 1.
      lv_yr3 = s_date-high(4).
      perform fill_fieldcats using:
      'PERNR'         'GT_FINAL' '1'  'Employee No.'            ' '       ' ',
      'RTEXT1'        'GT_FINAL' '5'  'Year'  lv_yr1                ' ',
    form fill_fieldcats using %fname
                              %tabname
                              %col_pos
                              %text_l
                              %text_m
                              %emphasize.
      gs_fieldcat-fieldname  = %fname.
      gs_fieldcat-tabname    = %tabname.
      gs_fieldcat-col_pos    = %col_pos.
      gs_fieldcat-seltext_l  = %text_l.
      gs_fieldcat-seltext_s  = %text_m.
      gs_fieldcat-emphasize  = %emphasize.
      append gs_fieldcat to gt_fieldcat.
      clear gs_fieldcat.
    but the o/p i'm getting is only year. where shd i pass the value of year in the fieldcatalog?

    Hi all,
    My self resolved the issue.

  • Standard text must change its value in run time in english or in chinese

    Hi all,
    i have created the standard text in SO10. name is  YTEST and inside i have declared &vbdpl-idnkd& since i need to get the value of this variable.
    In script i have written
    IL    ,,&VBDPL-POSNR+03(03)&,,&ZPRN_MTRL&,,
    /:     INCLUDE YTEST OBJECT TEXT ID ST LANGUAGE 'EN'
    =     ,,&VBDPL-BSTNK&,,&VBDPL-LFIMG(I10.0)&
    but the output is coming as &vbdpl-idnkd& only and not the value inside it.
    1) how to retrieve it.
    2) Also the value inside &vbdpl-idnkd& may come in English or sometimes in Chinese
    3) the standard text when printing is getting printed in the next line and not on the same line with posnr, mtrl ..... 
    Plz guide me how to process this.
    thanks
    Sakthi.

    Hi,
    Save the text in different languages in different SO10 objects .(Maybe with same name but dufferent LANGU Key).
    Now while calling the text, give in the appropriate langu key...for eg:
    /:     INCLUDE YTEST OBJECT TEXT ID ST LANGUAGE 'EN'    -
    > for English
    /:     INCLUDE YTEST OBJECT TEXT ID ST LANGUAGE 'ZH'   -
    > For chinese
    Hope this helps you.
    Cheers,
    Varna

Maybe you are looking for

  • Restricting Purchase order's payment terms change authorization

    Hi, While changing the PO payment terms, system does not reset the release strategy of the released PO. Is there any way we can restrict to PO change with Payment terms change authorizations? Regards, Sattuj

  • Access Connection - Prefer MAC address problem

    Hey My specifications: Windows Vista Access Connection v5.31 After updating access connection I'm not able to prefer MAC addresses for my profiles anymore. Edit profile> Wireless settings> Advanced configuration (settings)> Preferred access point MAC

  • I have fixed -48

    Very simple but requires a windows PC with itunes installed. I had experienced the -48 error with 2 back iPod 30gb called up india several times but the same thing happened again and again. I then took a tip from a mate and reformated my ipod to Wind

  • Can't get two ipads to transfer apps

    I have two ipads for work.  I am unable to transfer apps  from one to the other.  I have done this before  but one one of them when I hit "Purchased" it states that I cannot connect to the itunes store.  I have even tried to transfer by hooking my ip

  • How to create custom Easy Setups in Final Cut Express 4

    I've been searching the web hours on end trying to find an answer to this question. Basically, here's the deal. I have a whole bunch of clips in 720p HD, at 60 fps with some other custom settings that aren't supported by Apple's default easy setups.