I need a 'container '.

Hi all.

In my project, there are 2 radio buttons. Each of them provides access to several controls (such as string, listboxes, and boxes) that differ in number and type. What I want to do is to make these controls visible or invisible in one fell swoop. To do this, I think I need to insert controls in 2 different "containers", each one associated with a specific option button. In this way I should be able to view the controls, want, simply make the right container visible and invisible of an evil.

Anyone know how I can do this?

Looks like you want to put related controls in a Cluster.

Tags: NI Software

Similar Questions

  • Need a container Bay for 1.8 "Toshiba HD

    I can't find a USB container that works for a small 1; 8 "hard drive I got a used laptop and I would like to use this HD as external drive to another laptop. Thks in advance for any help and where and which template I should use.

    Post edited by: jeaneq

    Hello

    Looking for an external box of HDD USB 1.8?
    I studied a bit in the internet and bingo I found what you ;)

    Check this site:
    http://www.Meritline.com/USB-HDD-Enclosure-hard-drive-external.html

    Of course, it s not a Toshiba product, but I think that it of not important.
    The case supports the interface: 44 pins with female connector

  • create a list or a container for the States of a statemachine

    Hello

    I'm working on an application where many different types of devices will be put into a test set-up for Board level testing.  Depending on the type of Board, I need to create an ordered list of all necessary tests for the device.  I have a state machine and a single State for each of the tests and try to figure out how to create a list of tests for the specific device.  I want to have control in each of the States to remove the first element of the list and then take the next value and he lead the shift register used to go from one State to the other.  This should allow the state machine switch to the appropriate State based on the type of device and its sequence of necessary test.

    It should be with a table?  Is there some containers easier to work with this use case?  I need a container that will allow me to easily add between 5 and 30 names of State (based on the needs of the unit type) and easily remove or increment a pointer to the next State in the container.

    Thank you

    Gary

    Hi Gary,.

    an array of string or "enum" comes to mind. You can use it for the selection of States.

    You have to transfer data?

    Another way would be a queue. You can read the States with the enqueue function.

    It may be useful

    Mike

  • Is Container::borderRadius a decent idea for a feature request?

    Before that you think (or probably you have already done) to suggest the 9-patch scaling, allow me to clarify my situation.

    I have controls that scroll in a container. I use an absolute provision and manage key events to make the scrolling. The same situation is if the container is set to any mode of scrolling in no more. Controls that are the object of a scroll are ImageViews, it is impossible to achieve by a substantive ruse. A masking approach, displaying a picture above the container and make transparent holes in this 'false' if necessary, is not a very effective in my case option, because I resize the container on some touch events, which makes it necessary to update this image on each of these touch events, which is very expensive in CPU cycles.

    I need the container to clip the elements it contains, giving a round border appearance. It has been suggested to me that in Java, it is possible by hiding the bitmap to the window, but this feature is not provided by Cascades.

    So, basically, you should post a request for such a device?

    I have not found a need for it and I don't know how many application developers want to play with the default layout and spacing of standard items - consistency is appreciated by the users.

    If you need it and may be useful, maybe it is. If so, you could add a feature request in Issue Tracker, if not perhaps wait until you have a good reason?

    Stuart

  • After the update to 15.0.1 Firefox open from C:\Program Files (x 86) \Mozilla Firefox\updated\firefox.exe

    After the 15.0.1 update this afternoon on a machine 64 - bit Windows 7, I restarted Firefox. Immediately liked began to display warnings that firefox.exe was not a recognized program and needed plugin container, the SVC host access and other things. Weird. So I look in the Comodo and Explorer and it says that the process runs from this path:

    C:\Program Files (x 86) \Mozilla Firefox\updated\firefox.exe

    But there is no update file. This happens even when clicking on the firefox.exe file in the Mozilla Firefox folder.

    Is this normal? It does not seem right.

    Too bad. I restarted the computer and everything seems to be back to normal - firewall and the paths are now correct. Then. anyone having this problem - try to restart the machine. Never had that after a Firefox update before so don't think of him.

  • Variable overall station by the object to be measured using a model of batch process

    Hello

    I have 4 DUT which is tested by using individual ports of com I use global variables Station 4 to store 4 Com ports - COM port assignments are in no particular order and vary depending on the test PC station.

    Example:

    S1 = Com12

    S2 = Com14

    S3 = Com10

    S4 = Com9

    Using a model of batch process I want to test DUT all at the same time: I'm trying to understand what is the best/better way to S1 to S2 for UUT2, UUT1 and so on!

    Any help appreciated.

    Thank you best regards &,.

    Shane.

    The easiest way is to use the property Runstate.TestSockets.MyIndex to index a table.  Each socket of the batch will get an index (from 0 to n - 1, where n is the number of sockets) when it is created.  You can create an array (of strings? I can't tell if you just have channels or need a container) and use the property for the index in the array.

  • PXI-6551 device data Underflow

    Hello.

    I have a module, PXI-6552.  I need to enter my DUT (ADC) out after a very long and very precise vector sequence.  And I want to loop through this sequence of more than 1 000 times (at the average of the results).

    The following script works:

    script ADCcapture
    generate marker0 of vecsetup (0)
    Repeat 1000
    generate marker0 of vecsample (424)
    end repeat
    end of script

    Here are the sizes of waveform for each wave listed:

    vecsetup = 280 cycles
    vecsample = 262 060 cycles

    My sample = 512 MB record length and the number of records to capture = 1 001

    The first marker in my script is my trigger start for my CQI. session.  The following markers are triggers of the advance.

    As I said, this example works, but the "vecsample" waveform is much smaller than it should be.  It should be 5 times as large, but I don't have a lot of memory.

    Fortunately, most of the 'vecsample' is a sequence repeatedly to keep living clocks (in my example above are just exhaustively written in the form of ongoing vectors).

    I know I can't nest, and I know now that I can't embed instructions more than 55 inside my finished loop (repeat 1000).

    Then, I tried to break my my 'vecsample' signal break up into 3 sections that I could "split the difference" between the size of memory limitations and the script of vector:

    script ADCcapture
    generate marker0 of vecsetup (0)
    Repeat 1000
    generate marker0 of vecsampleA (424)
    generate a vecsampleB
    generate a vecsampleB
    generate a vecsampleB
    ...  (Note: I have exactly 50 copies of 'generate vecsampleB')
    generate a vecsampleB
    generate a vecsampleB
    generate a vecsampleC
    end repeat
    end of script

    Here are the sizes of waveform for each wave listed:

    vecsetup = 280 cycles
    vecsampleA = 1 660 cycles
    vecsampleB = 4 884 cycles
    vecsampleC = 16 200 cycles

    vecsampleA contains unique things initially, including the previous sampling period output ADC.
    vecsampleB contains 1 221 best x of the model 4 time keep alive clock that I need.
    vecsampleC contains unique things at the end.

    Yet once, my record sample length = 512 and the number of records to capture = 1 001

    In the end, this generates the same number of cycles as the previous example:
    1 660 cycles 4 884 * 50 + 16 200 plus 262 060

    However, when I run this new script, I get an error:

    Exception detected
    Detail: [-1074115901] Windows error 0xBFFA4AC3
    Description of the DLL: DAQmx 200316 error has occurred:
    Measurements: Device data precision passing. The device was not able to move data quickly enough to deal with the frequency of sampling for the active script.

    Perform the operation at a lower sampling rate, or are looking for the following in the current script: markers can be too close together, waveforms is too small, wait may be too short or subsets may be too small. If you are using an external clock, the clock provided might have disappeared during your generation.

    State code:-200316

    Sorry for the long post.  Any help is very appreciated!
    Brian

    PS: I found the following topic regarding this issue, but it has not helped me to understand my mistake (as it seems that my markers and waveform sizes seem to be big enough):

    http://forums.NI.com/NI/board/message?board.ID=70&message.ID=10306

    Hello Brian,.

    I've recreated your problem on my side, thank you for the detailed description of your problem, it makes it much easier to understand what was going on.

    Although I'm still looking at the root cause of the problem, there seems to be a problem with the number of orders in the repeat loop. You need 2 less commands within the repeat loop. This can be demonstrated that the problem by moving two of orders outside the loop, keep the same number of lines in the script, but less than two lines in the loop to repeat itself.

    In your case I want to double the size of the vecSampleB and only run 25 times. This should allow you to start going forward.

    With regard to the underlying issue, when I find I'm going you know.

  • SearchFilterHost.exe in memory of reference '0x0700609c' to '0 x 00000014 '. the memory could not be read.

    How correct this or poping up every minitues bit to stop it

    Hello, Amidou,

    This behavior indicates that the Windows registry is unable to allocate the pool of memory needed to contain the registry files. This can be caused by a faulty (RAM) memory module random access

    Run memory diagnostics to check RAM

    http://oca.Microsoft.com/en/windiag.asp

    Follow these steps and check if they help.

    Step 1:

    Test the issue in safe mode.

    Step 2:

    If the problem does not occur in safe mode, perform the clean boot.

    Note: The steps in the article to restart your computer as usual.

    Step 3:

    Make SFC scan and check if the problem persists.

  • OneLineTextField and the border are not displayed correctly together

    Hi all, I need a container by tabs and found the example of the pill buttons that look awesome

    and can function as tabs, (from the article 'Implement advanced buttons, fields, and managers')

    so I use in my application.

    Let me say, they are superb, thank you very much for creating that

    then in one of the 'tabs', I asked

    a field of research (OneLineTextField), followed by the results (ObjectListField) below

    but my field of research is not get drawn properly (see photo)

    seems the border intersect on the right and try to reduce its size

    seems to be ignred. I'm under api 5 with 5.0.0519 Simulator (or is it 591)

    any help on how I can get this to look like, I expect, in addition, also, where is the

    stress being placed in OneLineTextField put, I guess that this is when he thinks a

    misspelled word is there.

    I would like to show a remove this effect and just get to lok more professional

    OneLineTextField searchOneLineTextField = new OneLineTextField ("search for:", "");
    XYEdges padding = new XYEdges (2,2,2,2);
    At the border roundedBorder = BorderFactory.createRoundedBorder (padding, Border.STYLE_SOLID);

    searchOneLineTextField.setBorder (roundedBorder);
           
           
    Add (new LabelField ("screen test"));
    Add (new SeparatorField());
    Add (searchOneLineTextField);

    you are great here, without being able to read through it, I would never get this app for my complete work

    FYI: I had the OneLineTextField from here

    http://supportforums.BlackBerry.com/T5/Java-development/sample-code-scrollable-one-line-text-input-f...

    and the example of "implement advanced buttons, fields and managers" of

    http://supportforums.BlackBerry.com/T5/Java-development/implement-advanced-buttons-fields-and-manage...

    u blackberry developers are more helpful engineers and sweet, with that I've never dealth.

    I'm waiting for a sarcastic response while I read all these

    positions and never a response brief soaking, great work team.

    your solution worked like a champ

  • Get hexadecimal values from current theme

    I am currently working on an application where I need a container of notification to hide behind a container of the title bar. An example of my QML would be:

    Container {
        layout: DockLayout{}
    
        Container {
            // Notification stuff goes here
        }
    
        Container {
            // Title bar that hides notification        background: Color.White
        }
    }
    

    The container of title bar should have a defined background color, otherwise the notification would be visible at all times. This notification slips into the display via an animation when necessary. It works very well and good for the Z10, but for the Q10, this poses a problem.

    As the Dev C Alpha (and Q10) use an OLED display, the light theme uses a clear grey shadow as its background color instead of white. This means that the title bar stands out as it is explicitly set to have a white background and therefore brighter than the rest of the page. This will also be a problem if I want to give the user the possibility to change the theme in the future.

    Is it possible to find the hex value of the background color of the current theme, or any other component? And if not, is it possible to scale against any future Visual changes?

    And here, I found it. I can find the screen in DisplayInfo type and choose the approriate here color value. Is not a nice work around, but it's going to do in this case.

  • ListView in Scrollview will create near infinite scroll

    I have a vision that needs a container ('Content') and then a ListView ("content"). I do all that scrolling by incorporating them both in a scrollview.

    It behaves exactly as I expect, except that it continues to parade in front of the ListView, and nothing. Can I have a listview into a scrollview without what is happening? Or should I make a single list and provide a ListItemProvider, which defines a different container for the first item that associated content? It seems very complicated to implement a ListItemProvider just to solve this problem of scrolling.

    I solved it. When ListView is filled, I put the preferredHeight of the ListView:

    (content line height + padding content) * County of entires in ListView

  • Question of layout using unmanaged nodes

    I have a question of quite simple layout, but I can't understand any simple way to solve it. I need a container object that contains an label that should be centered in the parent container. I then need an another label which should be placed at the top left of the parent container. What I tried to do was to create a serving VBox of parent container with -fx-alignment: Center. When I add the first label, it looks great. Then I try to add my 2nd label, and I put his property managed to false in the hope that it would not participate in the VBoxto layout its children. But I do not see this second label.

    Using panoramic view, I can see that the 2nd Label is on the display list, and is size, even though I see that his layoutBounds is empty.

    Any ideas on how to achieve this type of layout?

    I think I've answered my own question to tweak it and experimentation. As a beginner, I have not yet mastered all the container classes. For this example, it seems that the use of AnchorPane is the way to go. Here's the code that does what I want:

    Component AnchorPane = new AnchorPane();

    lblValue = new Sun;

    lblValue.getStyleClass () .add ("boardCellValue");

    lblOp = new Sun;

    lblOp.getStyleClass () .add ("boardCellOp");

    pane.getChildren () .addAll (lblValue, lblOp);

    AnchorPane.setLeftAnchor (lblValue, 0d);

    AnchorPane.setRightAnchor (lblValue, 0d);

    AnchorPane.setTopAnchor (lblValue, 0d);

    AnchorPane.setBottomAnchor (lblValue, 0d);

    AnchorPane.setTopAnchor (lblOp, 5 d);

    AnchorPane.setLeftAnchor (lblOp, 5 d);

    where lblValue is the label I want centered in the container component, and lblOp is the one I want at the top left.

    The interesting thing about the boardCellValue style, it's that I need

    -fx-alignment: center;

    since now the lblValue has width that spans the entire width of the container component.

    If it works for me and is quite simple. There are easier ways?

  • With the help of SCORE on top of view with UNION

    Hi guys,.

    I explain what I'm trying to do it quickly:

    2 tables: table1 and table2 with the same structure and have both a multi_column_datastore ctxsys.context.

    1 view: View1

    Select * from table1

    Union

    Select * from table2

    If I run:

    Select * from View1 WHERE contains (view1. Column1, '% textext %', 1) > 0;

    It works fine, I get the correct result.

    If I try to use the PARTITION function, I got an error:

    Select * from View1 WHERE contains (view1. Column1, '% textext %', 1) > 0 ORDER by SCORE (1);

    ORA-29921: auxiliary operator not supported with query to configure block

    I understand the problem is in the UNION inside the view, is it possible to keep work, filtering the VIEW?

    Thanks in advance

    There is no score in the view, so you cannot reference the score when you query the view.  In order to put the note in the view, you need a contains the clause, which requires a value.  A method to do this is to use sys_context.  Please see the reproduction of the problem and solution below.

    Scott@orcl12c >-reproduction of the problem:

    Scott@orcl12c > create the table1 table:

    2 (column1 varchar2 (30))

    3.

    Table created.

    Scott@orcl12c > insert into table1 values ('textext")

    2.

    1 line of creation.

    Scott@orcl12c > create table table2

    2 (column1 varchar2 (30))

    3.

    Table created.

    Scott@orcl12c > insert into table2 values ('textext")

    2.

    1 line of creation.

    Scott@orcl12c > start

    2 ctx_ddl.create_preference ('test_ds', 'multi_column_datastore');

    3 ctx_ddl.set_attribute ('test_ds', 'columns', "column1");

    4 end;

    5.

    PL/SQL procedure successfully completed.

    Scott@orcl12c > create index table1_idx on table1 (column1)

    2 indextype is ctxsys.context

    3 parameters ("test_ds of the data store")

    4.

    The index is created.

    Scott@orcl12c > create index table2_idx on the table2 (column1)

    2 indextype is ctxsys.context

    3 parameters ("test_ds of the data store")

    4.

    The index is created.

    Scott@orcl12c > create or replace view View1

    2 as

    3 select * from table1

    4 union

    5 select * from table2

    6.

    Created view.

    Scott@orcl12c > select * from View1 where contains (view1.column1, '% textext %', 1) > 0

    2.

    COLUMN1

    ------------------------------

    textext

    1 selected line.

    Scott@orcl12c > select * from View1 where contains > 0 (view1.column1,'%textext%',1) order by score (1)

    2.

    Select * from View1 where contains > 0 (view1.column1,'%textext%',1) order by score (1)

    *

    ERROR on line 1:

    ORA-29921: auxiliary operator not supported with query to configure block

    Scott@orcl12c >-solution:

    Scott@orcl12c > create or replace view View1

    2 as

    3. Select the partition (1) score, table1.* from table1

    4 where contains (table1. Column1, sys_context ('text_query', 'query_value'), 1) > 0

    5 union

    6 select score partition (1), table2.* from table2

    7 where contains (table2.column1, sys_context ('text_query', 'query_value'), 1) > 0

    8.

    Created view.

    Scott@orcl12c > create or replace context text_query using text_proc

    2.

    Context that is created.

    Scott@orcl12c > create or replace procedure text_proc

    2 (p_val in varchar2)

    3 as

    4 start

    5 dbms_session.set_context ('text_query', "query_value", p_val);

    6 end text_proc;

    7.

    Created procedure.

    Scott@orcl12c > text_proc exec ('% textext %')

    PL/SQL procedure successfully completed.

    Scott@orcl12c > set autotrace on explain

    Scott@orcl12c > select * from View1 by score

    2.

    MARK THE COLUMN1

    ---------- ------------------------------

    3 textext

    1 selected line.

    Execution plan

    ----------------------------------------------------------

    Hash value of plan: 4090246122

    ----------------------------------------------------------------------------------------------

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

    ----------------------------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |            |     2.    60.     8 (0) | 00:00:01 |

    |   1.  SORT ORDER BY |            |     2.    60.     8 (0) | 00:00:01 |

    |   2.   VIEW                          | VIEW1.     2.    60.     8 (0) | 00:00:01 |

    |   3.    UNIQUE FATE |            |     2.    58.     8 (50) | 00:00:01 |

    |   4.     UNION-ALL |            |       |       |            |          |

    |   5.      TABLE ACCESS BY INDEX ROWID | TABLE1.     1.    29.     4 (0) | 00:00:01 |

    |*  6 |       DOMAIN INDEX | TABLE1_IDX |       |       |     4 (0) | 00:00:01 |

    |   7.      TABLE ACCESS BY INDEX ROWID | TABLE2.     1.    29.     4 (0) | 00:00:01 |

    |*  8 |       DOMAIN INDEX | TABLE2_IDX |       |       |     4 (0) | 00:00:01 |

    ----------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    6 - access("CTXSYS".") CONTAINS "(" TABLE1".»)" Column1', SYS_CONTEXT ('text_query ',' query_v)

    Alou '), 1) > 0)

    8 - access("CTXSYS".") CONTAINS "(" TABLE2".»)" Column1', SYS_CONTEXT ('text_query ',' query_v)

    Alou '), 1) > 0)

    Note

    -----

    -the dynamic statistics used: dynamic sampling (level = 2)

    Scott@orcl12c >

  • where my Adobe Photoshop Elements 5.0 images are stored?

    I feel like a fool, but I used Adobe Photoshop Elements 5.0 for years on my PC.  I put the software on an external hard drive that is separate from regular hard drive of my computer, thinking that if my computer goes down, my photos will be safe, assuming that the images were where I put all the software.  Well, my computer is dying, in preparation for a new, I wanted to "Save" my photos, I never tell Photoshop to do when he asked in the past because I think that the pictures ARE saved by being on this external drive.  Anyway, when I looked at the amount of memory is on this external drive (where I also copied my non-critical files from the image), I've seen some photo files but there is no way (depending on which is rated display and the amount of memory used) files of the actual image of my k 10 photos are on this extra external hard drive.  I then tried to 'save' in Photoshop, but he asked me everything first to search for the missing files, which gave rise to a lot of research and then Adobe "not responding."  FYI, when I opened my Gallery of Adobe Photoshop, I can see all my photos, including those that I have edited and saved in the catalog, I can pull things up by tag, etc., as if everything is 'there' and ok.  So, where the hell are the actual files for images in my Gallery of Adobe 'put' when I download in Adobe Photoshop?   I want to assure you that I have back up on something before I get rid of my current computer, but now I don't know where they are in order to save them!  Thanks for any help you can offer.  Sincerely, Luddite

    Lots of questions here, let's go step by step.

    carolynw62372360 wrote:

    I put the software on an external hard drive that is separate from regular hard drive of my computer, thinking that if my computer goes down, my photos will be safe, assuming that the images were where I put all the software.

    To be precise, you put the 'library' (your image files) on your external hard drive. The 'software' is the program components itself. And Yes, your library is not affected by a failure of your main internal drive.

    Well, my computer is dying, in preparation for a new, I wanted to "Save" my photos, I never tell Photoshop to do when he asked in the past because I think that the pictures ARE saved by being on this external drive.

    Sorry, another definition of the word: a backup is necessarily a copy (in various forms, but a copy; for example, instead of a pure copy, you can have a zipped copy). This means that if your original disappears, your copy (backup) is available to restore the original. Regardless of the definition of the word, for you, this means that your external hard drive crash has no backup. You lose your entire library.

    Anyway, when I looked at the amount of memory is on this external drive (where I also copied my non-critical files from the image), I've seen some photo files but there is no way (depending on which is rated display and the amount of memory used) files of the actual image of my k 10 photos are on this extra external hard drive.

    You should be able to see your files of images from Windows Explorer. Your image files are probably under a single master file; This main folder has probably many folders full of files with the extension jpeg. Note that I recommend to set the properties of the files in Explorer to display the file extension. When you select the main folder in Solution Explorer and right-click to select "Properties", you will see the number of files and disk space for these images.

    I then tried to 'save' in Photoshop, but he asked me everything first to search for the missing files, which gave rise to a lot of research and then Adobe "not responding."

    It is a common situation when the files have been moved, deleted or renamed from the Explorer instead of the Organizer himself. It is strongly recommended to check periodically if the files are missing instead of wait for the moment should be safeguarded.

    Photoshop elements (PSE) knowledge base.

    Anyway, even if you have "offline" files, the backup should work. The first step in the backup, calculate disk space needed to contain the copy of image files and the catalog (database) itself.

    FYI, when I opened my Gallery of Adobe Photoshop, I can see all my photos, including those that I have edited and saved in the catalog, I can pull things up by tag, etc., as if everything is 'there' and ok.  So, where the hell are the actual files for images in my Gallery of Adobe 'put' when I download in Adobe Photoshop?

    When you "import" photos in your catalog, image files are "downloaded" to your computer if it is copied from a card reader or the camera. No copy, if they are already in the drive of your computer. In both cases, an entry is recorded and listed in the catalogue with the location (path) of the file and a very small "thumbnail" is created and included in the vignette "cache" of your catalog folder.

    When you browse your pictures, you always have the opportunity to see the "details", "information" for a given file, you know the location, the drive and the path where it is stored.

    Just a comparison: a catalog in the Organizer, it's like the brochure catalog used for a Museum of painting. It tells you where to find a painting and shows a small image. If some tables is 'missing' at the Museum because they were absent during the restoration, you will continue to see the small images in the booklet. Ditto for the Organizer: moved the photo from the Explorer files will still show in the catalogue, but with a? sign.

  • Dynamically set the height of the rectangle

    I need to define a rectangle of height according to the items it contains dynamically. I need the container to float its size accordingly.

    For example:

    'Apple' class needs an extra 10 pixels height

    "Pear" class needs an extra height of 10 pixels

    "Peach" class needs an extra 10 pixels height

    So... i f I switch Apple, pear, fishing all on... I have to add 30 pixels to the height of the 'rectBasket'.


    Goal: cart adjusts its height at each rocker. In the rocker by each fruit:

    If (SYM $("..) (Is Apple") (": visible ")) {}

    SYM $(".) Apple"). Hide();

    var htApple = 0;

    } else {}

    SYM $(".) Apple"). Show();

    var htApple = 10;

    }


    var htBasket = htApple + htPear + htPeach;

    Is it important that PEAR and fishery variables have been set into a different scale?

    sym.getComposition () .getStage ().getSymbol("GV-4Cases").$("rectBasket").css ({"height": "htBasket"});

    Place immediately after, shouldn't this resizing the basket?

    No luck.

    I'm a 'high functioning designer' with respect to the code. Can someone correct me with a simple and clear description or give a better method (direct, easy) to dynamically change the height of the "rectBasket"?

    Thank you very much! Grace

    I did it. I forced myself to understand the variables (you can hear me, designers).

    Goal: float a rectangle size, whose elements are oriented, such as when items are turned on, the rectangle grows (if the elements do not overlap each other). An accordion of sorts. Each of the elements is relative to the upper or down, so when the rectangle increases, the elements are drawn out.

    BTW, thanks to resdesign which is always useful to read. His other posts have helped tinkering me together an answer to my specific case. THX!

    Step 1:

    Declare the variable in compositionReady

    Declare variables as elements call later

    var AppleHigh;

    var PearHigh;

    var PeachHigh;

    var ComboHigh;

    Step 2:

    In the code of the rocker of each element (switching power of the Apple, pear, fishing,..), declare the variables in the main code

    var AppleHigh;

    var PearHigh;

    var PeachHigh;

    var ComboHigh;

    Step 3:

    Below it, create a toggle of the value of the variable

    for the class of Apple

    If (SYM $("..) (Is Apple") (": visible ")) {}

    var AppleHigh = 55;

    } else {}

    var AppleHigh = 0;

    }

    for the Pear class

    If (SYM $("..) (Is pear") (": visible ")) {}

    var PearHigh = 55;

    } else {}

    var PearHigh = 0;

    }

    for the Peach class

    If (SYM $("..) (Is Peach') (": visible")) {}

    var PeachHigh = 30;

    } else {}

    var PeachHigh = 0;

    }

    Step 4:

    Below it, declare and set the variable that matches the new height

    var comboHigh is 175 + AppleHigh + PearHigh + PeachHigh;.

    Alert (comboHigh) / / / uncomment to test the value in the pop up window

    NOTE: 175 is the height of the initial base rectangle

    Update: I use it instead

    Declared ' var boxStartSize; "in both: compositionReady and above the rocker in the code of the item

    In the code of the item...

    var boxStartSize = sym.getComposition () .getStage ().getSymbol("GV-4Cases").$("CASE-master-box").height ();

    Gets the entire value of the height

    var comboHigh = boxStartSize + bottomlyHigh + pronounHigh + pseudosHigh + personalsHigh;

    It is therefore only once that I copy this structure all over in different places, I didn't go back to handcode the height of the original rectangle.

    Step 5:

    The score allows you to change the height of the box

    ENTER IN THE HEIGHT BOX.

    sym.getComposition () .getStage ().getSymbol("GV-4Cases").$("CASE-master-box").css ({"height": comboHigh});

    IMP: no quotes on the value of the variable.

    Quotes on the value of the variable were a big obstacle for me. It took me a while to understand this detail. Ugh.

    Step 6:

    Create the same for each rocker of the element, then the height is re-evaluated whenever you change a toggle.

    Step 7:

    Assign/check the relative angle.

    Check on what corner your items received! Select the item, look for the 4 tiny squares next to Global applied icon in the properties panel. Choose a corner. Where the element is fixed in relation to a parent.

    Make sure that the element has a parent via dragging on a div or in a rectangle structure structure.

    Example could look like this:

    RectangleMaster

    > RectangleApple

    > Apple.svg

    > RectangleFruitChoice

    > RectanglePear

    > Pear.svg

    > RectanglePeach

    > Peach.svg

    Here, in this example, RectangleMaster is the parent of RectangleApple and RectangleFruitChoice.  This means that I did slide the rectangles on another rectangle to build the structure. Select the element and choose a corner of the icon of small places accordingly.

    Similarly, RectangleFruitChoice is the parent of RectanglePear and RectanglePeach.

    In this way, you can build a complex and dynamic structure.

    Best of luck to you all, code-ambitious designers out there! /GB

Maybe you are looking for