Adding and deleting images in the Group of the user interface

We try to make a user interface to display a preview of the images three at a time using pageination.

In the Code below, I can successfully remove the three images currently in my group, but when I go to add the three images, they add with success but they do not appear in the group. The result of the alert is my three new image objects.

myImageGroup.remove(myImageGroup.children[2]); panel.layout.layout (1);

myImageGroup.remove(myImageGroup.children[1]); panel.layout.layout (1);

myImageGroup.remove(myImageGroup.children[0]); panel.layout.layout (1);

Alert (myImageGroup.Children);

Table = table + 3;

myImageGroup.add ("image", undefined, imageArray [activeImage]);

myImageGroup.add ("image", undefined, demonstration [Table + 1]);

myImageGroup.add ("image", undefined, demonstration [London + 2]);

Alert (myImageGroup.Children);

Any ideas on how to get them to appear?

Thank you

Randy

> I know it's probably very basic inDesign scripting

Not at all!

Apart from the script by Marc, Gerald Singelmann has a script on his blog (http://indesign-faq.de/de/ScriptUI_scrollbar) that does exactly what you want. Its code can be informative for you.

Peter

Tags: InDesign

Similar Questions

  • Background image on the User Interface

    I'm trying to place a background behind my screen of the application image. So instead of the usual white, there would be a "background.png". I am following this thread with the blackberry API set

    http://supportforums.BlackBerry.com/T5/Java-development/drawing-bitmap-in-mainScreen-background/m-p/...

    So far, I tried to apply it within my own application, with the code to start as follows:

    final class UserInterfaceScreen extends MainScreen {
        HorizontalFieldManager _fieldManagerTop;
        VerticalFieldManager _fieldManagerMiddle;
        HorizontalFieldManager _fieldManagerBottom;
        BitmapField _bitmap;
        Bitmap _canadaImage, _ukImage, _usImage, _backgroundBitmap, _fieldBitmap;
        LabelField _label;
        BasicEditField _input;
        String _canadaCapital, _ukCapital, _usCapital, _capital;
        int displayed = 0;
    
        public UserInterfaceScreen() {
            super();
            LabelField title = new LabelField("User Interface Sample",
                    LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
            setTitle(title);
    
            HorizontalFieldManager _horizontalFieldManager = new HorizontalFieldManager(HorizontalFieldManager.USE_ALL_WIDTH | HorizontalFieldManager.USE_ALL_HEIGHT){
    
                //Override the paint method to draw the background image.
                public void paint(Graphics graphics)
                {
                    //Draw the background image and then call paint.
                    graphics.drawBitmap(0, 0, 640, 900, _backgroundBitmap, 0, 0); //240
                    super.paint(graphics);
                }            
    
            };
            _backgroundBitmap = Bitmap.getBitmapResource("background.png");
            _fieldManagerTop = new HorizontalFieldManager();
            _fieldManagerMiddle = new VerticalFieldManager();
            _fieldManagerBottom = new HorizontalFieldManager();
    
                add(_horizontalFieldManager);
                add(_fieldManagerTop);
                add(new SeparatorField());
                add(_fieldManagerMiddle);
                add(new SeparatorField());
                add(_fieldManagerBottom);
    

    Basically, I'm trying to combine the thread above with the user interface tutorial.

    http://supportforums.BlackBerry.com/T5/Java-development/user-interface/Ta-p/442781

    The question is when I run the code, I just get the background image, none of the other content is displayed in the foreground. I am this approach correctly?

    I'm not sure the solution you received one will work - it may well do, but the approach is different from what I do.  I based my image of background processing around comments in this article:

    http://supportforums.BlackBerry.com/T5/Java-development/MainScreen-explained/Ta-p/606644

    But if you look at what you said your screen, you will see why you don't see all your real fields.

    The first thing that you add to your screen is as follows:

    HorizontalFieldManager _horizontalFieldManager = HorizontalFieldManager(HorizontalFieldManager.USE_ALL_WIDTH | nouveau HorizontalFieldManager.USE_ALL_HEIGHT) {}

    You said this Manager to use the full height and width.  Then what place is left for any other Manager/field.

    You only add this option to provide abackground.  So actually, to do this, you must you add all your fields and managers in this HFM.  Otherwise that will expose after this one (which, as noted way they have no space to display in). I think you'll see something, if you replace this:

    Add (_horizontalFieldManager);
    Add (_fieldManagerTop);
    Add (new SeparatorField());
    Add (_fieldManagerMiddle);
    Add (new SeparatorField());
    Add (_fieldManagerBottom);

    with

    Add (_horizontalFieldManager);
    _horizontalFieldManager.Add (_fieldManagerTop);
    _horizontalFieldManager.Add (new SeparatorField());
    _horizontalFieldManager.Add (_fieldManagerMiddle);
    _horizontalFieldManager.Add (new SeparatorField());
    _horizontalFieldManager.Add (_fieldManagerBottom);

    But it probably won't be good, so you should follow the advice given in the previous Post or see the KB article.

  • Images of the user interface does not?

    I have this problem that just started to happen. I don't have to open my project within a certain time and now all of a sudden every time that I run through flash builder my entire user interface (all images) load with question marks and I get access denied error when you create a folder in a shared directory. I need to desperately remedy as soon as possible because I need to get an update for my application tomorrow. If this can help I worked in flashbuilder on a different project for some time, but I got my cert backup files. Has anyone seen this happen before?

    Thanks for the replies. I had all the necessary permits and all files were in place. It turns out that there may have been a corrupted project file. Everything has started a new project and copied on all my code and active, linked up all my library references and voila.

  • Question about the image of the user interface of the Script

    Hello world

    We can insert a picture into script

    Like this:

    var l is new window ('dialog', 'Testing');.

    var pictures = w.add ('image', undefined, the record ("" ~ / Desktop/mingxing2.jpg ""));

    w.Show ();

    But is it possible to say the script if you do not find the photo, we have the second choice

    Like this:

    var l is new window ('dialog', 'Testing');.

    var pictures = w.add ('image', undefined, of the file ("~ / Desktop/mingxing2.jpg" |)) (("" ~/Desktop/mingxing3.jpg "));

    w.Show ();

    or third choice...

    Thank you

    Respect of

    Teetan

    Hi Teetan,

    Why not call a function that returns the file you need?

    var getImageFile = function () {}

    var f = file (Folder.desktop+"/monImage.jpg');

    ! f.exists & f = file (Folder.desktop+"/image.jpg');

    ! f.exists & f = not defined;

    return f;

    }

    var l is new window ('dialog', 'Missing Image?');.

    flowers of the var = w.add ('image', the undefined, getImageFile());

    w.Show ();

    HTH,

    Loïc

  • Contact list that has brought as local is not displayed in the user interface

    Thanks to the Rest API of Eloqua, the contact list is created with scope as 'local' value but in Eloqua IU record is not displayed.

    Note: What scope is Global, then the folder is created successfully via API and also displayed in the user interface

    Maithili Eloqua creates lists with a range of 'local' when you add individual contacts or upload contacts to a segment.  These lists exist locally as part of the segment and should not appear anywhere else in the user interface.  For a list is available in the shared library, it must have a value of scope of the 'Global '.

  • Type the size of the user interface

    It's almost the end of 2015 - y at - it a solution to the ridiculously small UI in the CS6 / CC products?  I use Illustrator and PS a lot, and the size does not work.

    I have 20/10 vision, do not wear sunglasses.  I just upgraded to dual Dell UltraSharp U2515H 25 "monitors with a native resolution of 2560 x 1440.  The user interface in CS6 products is almost unusable and I can't find any way to change that.  I see the forums full of this problem since at least 2013 and probably before.

    Adobe, fix this.  There are alternative package graphics and I'm not locked in your products.

    Ideas of pragmatic community or solutions would be welcome - don't waste all the time will tell how it works fine for you, or preaching us on how we should just use Adobe products as they are.

    This is a problem, it's true, and I'm not alone in this observation (notice I didn't say "notice").

    Thank you.

    I have everything set to CC (2015), and it seems now the user interface option is available in both I and PS

    As much by the support of the HiDPI, it will now be on the same scale scale level because the OS (Win 7 x 64 in my case) - 100, 150, 200%.

    Looks now much better and more usable.

    BTW - I hate the interface for the new DC Acrobat - I'll be restoring the Pro XI.

    Thanks for responding.

  • How can I change the language of the user interface

    It seems that some efforts on l10n had been put in the latest TP. My host OS is Win 7 x 64 (Simp-Chinese) and I find that the user interface has been localized.

    As I have no option to change the language, could someone tell me how to do?

    BTW: I also noticed that some channels have not translated yet while some translations need to be improved.

    I wonder how can I report a l10n issues. As this community is English, I don't think I can report it here.

    Thank you.

    A solution from a member of the VMTN community. And it works:

    If you want to change the workstation to English user interface, you can open Control Panel, open "regional language and ' and change the format to"English (United States). Workstation displays in English.

    He also mentions that the l10n process is not yet complete. So I guess it would be better for people like me to inform after the final version.

  • want to remove some programs from my "adding and deleting' on the control panel

    I am wanting to remove some programs from my "adding and deleting' on the control panel.  I have several that I don't know if they are necessary in order to do not want to delete them until I have found.  Example: Microsoft.NET framework 2.0 service pack 2, if I said the same thing with the exception of program 3.0 can remove either one or both or what?  Redistributible MS Visual C ++ 2005 and also have 2008 and 2110.  Platform Installer 3.0, WCF RIA Services V1.0 for visual studio 2010.  I don't even remember downloading all of this stuff, but don't know if it has a meaning to my computer or not.  Y at - it somewhere I can look to find such information?  Don't like silly things like this, but would rather ask that screw up something.  Thank you

    Hello

    • What version of Windows are you using?

    I suggest you to see these steps:

    a. type msinfo32 in the start search box and press on Enter.

    b. a pop-up window, press CTLR + A, then CTLR + C and after that information here.

    c. then we can suggest you what program needs to be uninstalled.

    Response with more information

  • Question in cooperation with af:iterator and by program (add and delete records using the list)

    In our application, we try to add and delete records within a one: iterator lie to the backing bean list table.

    According to the feature remove should not fire any validation form so we are settign Remove button including the immediate property. And add can throw validation before adding a new record.

    Here the problem comes with button Delete with activated immeidate.  The deletions list action recording is removed from the collection list at the beacking bean, but after that the interface iterator partial page refresh user displays with bad Recordset. Some how instead of getting the last recordings of server of the user interface displays the previous local values for input components.

    For example: if I have 5 files in the list and delete record 2nd of collection. Backing bean (server side) the 2nd record is perfectly removal of list collection.

    On the user interface, the iterator 4 records are displayed as the size of the list is 4, but instead of 2nd record the last record is not rendered. According to my understanding, as deleting comme la suppression touche key is set immediately then the some how these recordings (genereted the Id of component runtime inside the i1: 0:it1 etc...) Apply request vandekerckhove is not updated gettign, Hene showing the old local values inplace of these components of entry and this behavior is only for input components.

    Can you suggest me a solution more come to the question above. Delete with immediate should unregister correspondent and only the record deleted if pannals UI.

    JSFF code

    <af:panelGroupLayout id="pgl1" binding="#{viewScope.formBB.mainPGL}">
            <af:iterator id="i1" value="#{viewScope.formBB.allEmployees}"
                         var="emp" rows="0" varStatus="vs"
                         binding="#{viewScope.formBB.iteratorBinding}">
              <af:panelFormLayout id="pfl1" maxColumns="4" rows="1" labelAlignment="top">
                <!--<af:outputText value="#{vs.index}" id="ot1"/>-->
                <af:inputText label="First Name" id="it1" value="#{emp.firstName}"
                              autoSubmit="true" required="true"/>
                <af:inputText label="Last Name" id="inputText1"
                              value="#{emp.lastName}" autoSubmit="true"
                              required="true"/>
                <af:commandImageLink text="Delete" id="cil1"
                                     immediate="true"
                                     actionListener="#{viewScope.formBB.deleteEmployee}">
                  <f:attribute name="index" value="#{vs.index}"/>
                </af:commandImageLink>
              </af:panelFormLayout>
            </af:iterator>
            <af:commandButton text="Add New Employee" id="cb1"
                              actionListener="#{viewScope.formBB.addNewEmployee}"/>
            <af:spacer width="10" height="10" id="s1"/>
    </af:panelGroupLayout>
    

    Delete the Action listener for the bean

    private List <Employee> allEmployees;
    public List getAllEmployees() {
            return allEmployees;
        }
        
    public void deleteEmployee(ActionEvent actionEvent) {
            int index = (Integer) actionEvent.getComponent().getAttributes().get("index");
            if(allEmployees != null && allEmployees.get(index) != null) {
                System.out.println("Emploeye Name:" + allEmployees.get(index).getFirstName());
                allEmployees.remove(index);
            }
            //AdfFacesContext.getCurrentInstance().addPartialTarget(mainPGL);
            AdfFacesContext.getCurrentInstance().addPartialTarget(iteratorBinding);
                
        }
    public void addNewEmployee(ActionEvent actionEvent) {       
            Employee addE = new Employee();
            if(allEmployees != null) {
                allEmployees.add(addE);
            }
            else {
                allEmployees = new ArrayList <Employee>();
                allEmployees.add(addE);
            }
            AdfFacesContext.getCurrentInstance().addPartialTarget(mainPGL);     
        }
    

    Jdev version - Build JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493

    POC Application - https://drive.google.com/file/d/0BysBrGAsXoo0Qjh3VGkzZkRGck0/view?usp=downalod

    Help, please.

    You probably need to reset submitted values.

    For this, you can use this util class: ResetUtils (reference Java APIs for Oracle ADF Faces)

    For example: ResetUtils.reset (iteratorBinding);

    BTW, you should never bind components to bean managed with a scope greater than the scope of the request.

    Dario

  • Oh noCRS-4258: adding and deleting files from voting are not allowed because

    Hi RAc sheet...

    whoat do now?


    CRS-4258: adding and deleting files from voting are not allowed because the files with voting rights are on ASM

    Oralce 11 GR 2 aix cluster with Asm...

    Hello Hagggy

    Something's still bothering you? Why always having these problems? Unfair or just good enough to get all ask them...

    Sorry don t be offended, we will do better... Attached a solution that could work, you may need to change some parts I'm not sure you need to move the voting too...

    First take a deep breath of fresh air and take a backup also

    /U01/11.2.0/grid/bin/ocrconfig - manualbackup

    create a fake vote of the volume of the DSO.

    CREATE DISKGROUP FAKE_VOT NORMAL REDUNDANCY
    FAILGROUP failure_group_rup DRIVE
    ' / dev/rfake_vot "vo1_rup1 NAME
    FAILGROUP failure_group_bry DRIVE
    ' / dev/rfake_vot_2 "vo1_rup2 NAME
    ;

    /U01/11.2.0/grid/bin/crsctl add css votedisk FAKE_VOT

    CREATE DISKGROUP PPR_VOT_OCR NORMAL REDUNDANCY
    FAILGROUP failure_group_rup DRIVE
    ' / dev/rhdisk13 "VOT_OCR_rup1 NAME.
    ' / dev/rhdisk15 "VOT_OCR_rup2 NAME
    FAILGROUP failure_group_bry DRIVE
    ' / dev/rhdisk14 "VOT_OCR_bry1 NAME.
    ' / dev/rhdisk16 "VOT_OCR_bry2 NAME
    FAILGROUP QUORUM fg3 DISK ' / dev/rhdisk17 "NAME QRM_VOT_OCR_BAL
    ATTRIBUTE 'compatible.asm' = ' 11.2.0.0.0 ';

    /U01/11.2.0/grid/bin/crsctl replace votedisk + PPR_VOT_OCR

    /U01/11.2.0/grid/bin/ocrconfig-Ajouter + PPR_VOT_OCR

    /U01/11.2.0/grid/bin/ocrconfig-Supprimer/dev/rfake_ocr

    get the new volume or diskgroup to pass to love

  • When I open Thunderbird it shows download 1 of 27 messages, but only downloads one 1 and stops, I then mark as spam and delete it from the junk e-mail folder

    When I open Thunderbird it shows download 1 of 27 messages, but only downloads one 1 and does not download the other 26. I mark as spam and delete it from the junk e-mail folder. I press the button to get the Messages and the same thing happens again with the same message that was deleted before downloads and other 26 messages fail to download. How can I get rid of this email and download the rest of my emails?

    What is a POP account? Please confirm.

  • No screen, no image of the user, not dell, no stand-by and no hibernation

    Hello.

    I have a Dell Latitude E6400 running Microsoft Windows XP Professional 2002 service pack 3.

    I recently had to recreate the image on my computer a virus. I have more access to the screen of welcome to all. I tried to change the settings to enable the Welcome screen, but everything happens with , it is "a recently installed program has disabled the Welcome screen and the fast user switching. To restore these features, you must uninstall the program. "The following file name can help you identify the program that made the change: msgina.dll '

    I can't recreate the image with the disks of origin of installation through computers of my work. These computers were purchased in bulk and of Microsoft Office is installed on the re-imaging utility.

    My second problem, which I think has something to do with the first is there is no image of the user for all users of the start menu. I checked was not in classic mode, it appears that it is.

    The basic software that comes with all Dell computers seems to be disabled. I tried the discs re - install for the sensor of ambient light, the sound card and many other functions of basic dell. Nothing Dell associate does not work. I think that it may have been blocked by the system.

    My fourth and fifth question has to do with the closing of my computer. Because it is a laptop, I can normally, close the cover and she would be on stand-by until I again to open the lid. There is more to this. When I open the lid again now, it indicates that the computer is running, but the screen does not show anything. I had a problem similar to this in the past to do with the ambient light sensor, but saw that I can not install the drivers, I doubt very much that this error has nothing to do with them. Hibernation seems to freeze my computer when he's preparing for the hibernation. Then, of course, I had to be manually turned off and when I start again, I get the Blue Screen Of Death treatment.

    I would be grateful any suggestions to solve these problems, and I confess that dell may also be responsible for some of these flaws. There are many more problems, but I won't bore you to their topic. And all of these problems stem from a system repair.

    MVP Ramesh: http://windowsxp.mvps.org/ginadll.htm
    MS - MVP - Elephant Boy computers - don't panic!

  • Im just get a blue screen, where the image should be in the develop module. What is happening with the Raw and Jpeg images. The display of the preview in the toolbar. Any ideas?

    Im just get a blue screen, where the image should be in the develop module. What is happening with the Raw and Jpeg images. The display of the preview in the toolbar. Any ideas?

    Disable GPU acceleration. Under preferences-> Performance, clear the check box

  • is it possible to have two different images in "develop" mode  I need to match the color and other image to the other.

    is it possible to have two different images in "develop" mode  I need to match the color and other image to the other.

    Select the reference image and choose window > secondary display > Magnifier (locked). Now the image you want to change, and start working. You can refer to the secondary display window while you work on the image you are editing,

    If you have a second monitor attached, the entire second monitor may be the secondary display.

  • I have need of an arrow or a kind of icon that points and moves to alert the user of the website to scroll down.  Are there widgets or is there a method to move an image in its own.  In addition, how to get my muse Web page to scroll automatically?

    I have need of an arrow or a kind of icon that points and moves to alert the user of the website to scroll down.  Are there widgets or is there a method to move an image in its own.  In addition, how to get my muse Web page to scroll automatically?

    A Google search for "animated gifs arrows" returned hundreds of animated arrows.

Maybe you are looking for