Titled pane auto size increment and decrement  in resizing pbm

hi can anyone help me in fixing this issue ,
i am getting the problem i need the titled pane to be occupying the whole space of window or the space of split pane size .. when there is a resize..

The answer was a simple property setting - sweet!
<s:VScrollBar id="verticalScrollBar" visible="false" 
                   fixedThumbSize="true"
                  skinClass="com.sprycel.views.controls.ThumbOnlyVScrollBarSkin"/>

Similar Messages

  • Is Increment and Decrement Operators Atomic?

    Is there a need to synchronize increment and decrement operations, or they are atomic? If so, how about pre and post variations?

    raychen wrote:
    jverd wrote:
    Simple rule: If multiple threads are accessing a variable, all access to that variable must be synchronized. There are exceptions, but you'll seldom go wrong by following that rule.I don't synchronize data member accesses in simple setters and getters, as JVM guarantees my read and write are atomic at the memory level. Am I making bad assumptions?Yup, you are. For a couple of reasons.
    1. Reading and writing of non-volatile longs and doubles is not guaranteed atomic.
    2. It also does NOT guarantee that one thread will ever even see a value written by another thread, however, unless either a) the variable is volatile, in which case threads don't have local copies all reads and writes go against the main copy, or b) access is synchronized and therefore the writing thread's local copy is flushed to main memory upon exiting exiting the sync block and the reading thread gets its first read after entering the sync block from the main copy.
    Edited by: jverd on Jul 21, 2009 10:33 AM

  • Increment and decrement buttons on a ring control are greyed out

    Hello,
      The check box for showing the increment and decrement buttons on a ring control are greyed out. Does anyone know why? I have verified that the ring is a control as opposed to a indicator.
    Regards,
    Kaspar
    Regards,
    Kaspar

    "the controls are greyed out because they do not exist on the Menu ring control."
    Errr... yes, I believe that's exactly what I said in my last response.
    "This is different from what I saw in another part of this forum about using event structures on a Menu ring."
    Don't know what you could be referring to, as there is no event specific to the increment/decrement controls. All that they would do (if they existed) is to change the value of the control, and the applicable event would be the "Value changed" event. Where exactly did you read this?

  • The Increment and Decrement Operators (++ and - - )

    Hi all !
    Even if i do understand how ++ and -- operators works fine (as a pre-modifers and post-modifers) but i can't understand how do they got the HIGHTEST precedence (unary operators) over than other operators , consider the follwing examples :
    Ex(1):
    ======
    initially : x = 5 & y = 0;
    y = x++ ;
    i know the process goes like this :
    - Evaluation : Left-to-Right (y is 0 and x is 5)
    - Operation : assignement of x to y , then increment x by 1.
    Q(1) is : why do assignment first then increment even if operator ++ has higher precendence than "=" operator.
    (i understand that that is true if y=++x, but why? ).
    Ex(2):
    ======
    initially : x=5 & y =0;
    y = x++ + 5;
    y now is 10 , x now is 6
    Q(2) is : even if the ++ operator is higher in precedence ,the arithmetic operator "+" is evaluated first, why?
    (same applies to the -- operator)
    Thanks ...

    Q(1) is : why do assignment first then increment even
    if operator ++ has higher precendence than "="
    operator.
    (i understand that that is true if y=++x, but why? ).The assignment is not performed first:
    (1) Memory is reserved to store the result of the expression on the right hand side.
    (2) The expression evaluates to the current value of x, which is 5. This value is stored away.
    (3) x is incremented, and is now equal to 6.
    (4) The value previously stored away is assigned to y. y is now 5.
    Q(2) is : even if the ++ operator is higher in
    precedence ,the arithmetic operator "+" is evaluated
    first, why?The + operator is not evaluated first:
    (1) Memory is reserved to store the result of the expression on the right hand side.
    (2) The current value of x is stored in that reserved memory. The value is 5.
    (3) x is incremented to 6.
    (4) 5 is added to the expression result, and the result is now 10.
    (5) The expression result is assigned to y. y is now 10.
    Note that the implementation is free to perform the calculation however it wishes, so long as it is done such that the user/programmer can not tell the difference.

  • Numeric Format with "dB" causes strange Increment and Decrement behavior

    To reproduce this, drop a numeric control in LabVIEW (Version 8.2 and later).
    Right click on the numeric control and select properties
    Select the "Format and Precision" tab
    Select the "Advanced editing mode" radio button
    Change the Format string to "%#_gdB" and press OK.
    Type "-123" into the numeric control.
    Place the cursor inbetween the 2 and 3.  Press the up arrow.  The normal response of the numeric is to increment the number to the left of the cursor, in this case the 2.  The expected number is -113.  However, with the "dB" in the format string, the number becomes -11.3.  This caused a problem with a Signal Generator whose power output (in Decibels) was controlled by this instrument.  in 2 keystrokes, the power went from -80dB to 0dB and almost damaged some equipment.
    The work around is to remove the dB from the format string or put it in parenthesis.  However, this seems like a bug.  If someone from National Instruments determines this is a bug, please post the CAR# to this thread.  Otherwise, it would be nice to have this behavior explained.

    Interesting behavior. I confirmed this with 8.2. What's more interesting is that the behavior is not consistent. If you use "Hz" the control works as you expected it to work. If you use "A", and perform the same steps, pressing the up arrow gets you "NaN". I tried putting a space before the "dB", and it made no difference. At first I thought that the "d" was being misinterpreted, but the result from using "A" made no sense. Very odd.
    Lesson learned from your experience: Always make sure to check the values that you want to set before you actually set them. You should have 2 layers of checking. The lowest level checks the values against the instrument's capabilities. In other words, making sure you don't try to program a level of 100 when the instrument can only handle 10. A higher level should check values against usage limits. This is where you put in the valid ranges for how you're using the instrument. For example, even though the instrument may be able to go to 13 dBm, in your testing you may only want a maximum setting of, say, -20 dBm. In my code I write a wrapper VI around each driver function to implement this. This requires extra code, but it can save your butt in many instances.

  • Increment and decrement with a Boolean input

    Hello Labview Experts (and life savers actually !!)
    In my VI ,I have  a numerical controller (knob) feeding a numerical indicator ,in addition to a bolean input.
    As an initial state the numerical indicator will contain a certain value (zero for example) and will only receive the variation in the knob input as long as the bolean input is true and then add it to this initial value.
    what is the variation ? lets say that the knob was on 8 before i hit the boolean true ,the indicator's value is zero ,and then I hit the boolean true ,
    Now ,when i move the knob from 8 to 18 (+10 variation) ,I want the indicator to receive +10 and add it to the zero ,now the result is 0+10=10.
    Now the boolean is false ,I move the knob and nothing happens to the 10 in the indicator.
    Now the boolean is true again ,let's to say the knob was on 4 at the time i hit the boolean true ,and I move it from 4 to 1 (-3 variation) ,the indicator's value now will be 10+ (-3) = 7
    I hope I explained the idea in a clear way ,I would be very thankful if someone would help me with that.
    P.S. I only attached the vi for illustrating the idea.
    Thanks in advance
    Solved!
    Go to Solution.
    Attachments:
    main components.vi ‏7 KB

    You only care about how much the knob changed.  Therefore, you need to subtract the old value and the new value to get how much the knob changed.  Then inside the case structure, add that difference to your value that belongs in the shift register.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Incremental_BD.png ‏7 KB

  • Increment and decrement to reach upper and lower limit

    I have to simulate a central heating system. A heater is turned on, room temp rises to 'upper limit'; heater is turned off when upper limit is reached. When heater is off, temp drops until lower limit is reached then heater is turned on again. I'm scratching my head!! have tried various case structures but cant get it to run continually. Whats the best way to do this? PS, im a noob! :-)

    Use a shift register to keep the current heater state (since you only want the state to change when you go outside of the limits).  From there, the Select function helps keep things straight.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Heater control.png ‏12 KB

  • Can someone help with auto-size fields in forms?

    I created a form in Acrobat for my team members with auto-size text fields that allow to shrink the text when the field size is not large enough to show the entire text. When I then open the same form file with Adobe Reader on my machine with text that has shrunk in some field, I can see all the text and have also a scroll function when the text size has reached its lower limits and there is still more text to show.
    However, when I receive the filled out forms back from other team members' iPads (they use my template created with Acrobat), the text didn't shrink as on a PC version and the scroll function is disabled. I checked the template and the fields are correctly set to auto-size left and they do work on my PC's and laptop's Adobe Reader. But the iPad version of Adobe Reader may cause some issues.
    Can anybody help with solutions?
    Thank you!
    Klaus

    The filled version of your PDF document (20140722 Daily Meeting Report...pdf) is no longer a PDF form because it has been flattened.
    Once an interactive PDF form (such as your template version) is flattened, all form fields are replaced with images of filled data.  You can no longer interact with form fields, edit form data, or tap/click any buttons in the flattened PDF document.  That is the reason why the text in auto-size text fields did not shrink.
    When you email a PDF document (including a PDF form) in Adobe Reader for iOS, the E-mail Document dialog is displayed.
    In this particular case, your team member must have selected "Share Flattened Copy".
    If you would like to keep the interactivity of a PDF form, you can select "Share Original Document".  Please advise your team members to select the "Share Original Document" option when emailing filled forms.
    Unfortunately, once flattened, a PDF document cannot be reverted back to the original "unflattened" state.  However, if your team members still have the original filled forms, they can resend the forms with the "Share Original Document" option.
    Please let us know if you have further questions.

  • How can I auto export a PDF File using the "Smallest File Size" preset and set the Exported File Name based on information from an Imported PDF?

    Greetings all,
    I am trying to create a script to automate a PDF export process for my company for inDesign. I’m fairly new to inDesign itself and have no previous experience with javascript, although I did take C++ in high school and have found it helpful in putting this code together.
    We have an inDesign template file and then use the Multi-page PDF importer script to import PDF files. We then have to export two version of each file that we import, then delete the imported file and all of the pages to reset the template. This has to be done for nearly 1000 pdf files each month and is quite tedious. I’m working on automating the process as much as possible. I’ve managed to piece together code that will cleanup the file much quicker and am now trying to automate the PDF exports themselves.
    The files are sent to us as “TRUGLY#####_Client” and need to be exported as “POP#####_Client_Date-Range_North/South.pdf”
    For example, TRUGLY12345_Client needs to be exported as POP12345_Client_Mar01-Mar31_North and POP12345_Client_Mar01-Mar31_South.
    There are two templates built into the template file for the north and south file that are toggled easily via layer visibility switches. I need to get a code that can ideally read the #s from the imported Trugly file as well as the Client and input those into variables to use when exporting. The date range is found in the same place in the top right of each pdf file. I am not sure if this can be read somehow or if it will have to be input manually. I can put North or South into the file name based on which template layer is visible.
    I am not sure how to go about doing this. I did find the following code for exporting to PDF with preset but it requires me to select a preset and then type the full file name. How can I set it to automatically use the “Smallest File Size” preset without prompting me to choose and then automatically input some or preferably all of the file name automatically? (If the entire filename is possible then I don’t even want a prompt to appear so it will be fully automated!)
    PDF Export Code (Originally from here: Simple PDF Export with Preset selection | IndiSnip [InDesign® Snippets]):
    var myPresets = app.pdfExportPresets.everyItem().name;
    myPresets.unshift("- Select Preset -");
    var myWin = new Window('dialog', 'PDF Export Presets');
    myWin.orientation = 'row';
    with(myWin){
        myWin.sText = add('statictext', undefined, 'Select PDF Export preset:');
        myWin.myPDFExport = add('dropdownlist',undefined,undefined,{items:myPresets});
        myWin.myPDFExport.selection = 0;
        myWin.btnOK = add('button', undefined, 'OK');
    myWin.center();
    var myWindow = myWin.show();
    if(myWindow == true && myWin.myPDFExport.selection.index != 0){
        var myPreset = app.pdfExportPresets.item(String(myWin.myPDFExport.selection));
        myFile = File(File.saveDialog("Save file with preset: " + myPreset.name,"PDF files: *.pdf"));
        if(myFile != null){
            app.activeDocument.exportFile(ExportFormat.PDF_TYPE, myFile, false, myPreset);
        }else{
            alert("No File selected");
    }else{
        alert("No PDF Preset selected");
    So far my code does the following:
    1) Runs the Multi-Page PDF Import Script
    2) Runs PDF Export Script Above
    3) Toggles the Template
    4) Runs #2 Again
    5) Deletes the imported PDF and all pages and toggles template again.
    It’s close and much better than the original process which was almost 100% manual but I’d like to remove the Preset prompt from the PDF script and have it automatically select the “Smallest File Size” preset. and then if there’s a way to have it auto-fill in the file name so no user input is required at all other than selecting each file to import. (If there’s a way to setup a batch action for the multi-import script that would be even better!)
    Thanks in advance and if there’s anything else I can provide that would help please let me know! Even a nudge in the right direction will be a big help!

    If you hold down the option key, it will typically show the location. Or you can often hit option-return on the file and it will reveal the file in the Finder, instead of opening it.
    Final option is to open it, and just option-click the filename in the toolbar of Preview and it should show you the location.
    It's probably an attachment to an email you've received. If you have Mail set to cache emails and their attachments it'll be stashed in a subdirectory of ~/Library/Mail. Which is fine.

  • The plus(+) and minus(-) keys to increment or decrement the date

    Hi All,
    I have a date field in which I would like to have the + and - keys to increment or decrement the date as in some windows programs.
    Thank you, Bill

    Hi Chad, Yes I know the Date Picker... that is what it has now.
    My users are keyboard users... hitting the plus or minus sign in the Num Pad is much quicker if the date is only 2-3 day plus or minus...
    We desire to have the Date Picker and have maybe a onkey event call. I was hoping to find someone that has used "onkey" for a specific element/field so it doesn't look at every key stroke in the document but just the one date element onkeyup etc......
    Thanks for the response.
    Bill

  • Indesign Bug with Auto-Size and fitting in Anchored frames

    Hi,
    Steps to reproduce:
    1. Create a text frame with 2 Anchored text frames with the same width.
    2. Make the anchored frames Auto-Size --> Vertical only
    3. insert text to the first frame, when type enter to the next line the frame become higher but the next frame remain in the same position. just after typing the first character in the second line the next frame adjust in the right position.
    4. The same happen when pasting text that make the frame bigger.
    5. The same happen without Auto-Size when fit frame to content.
    Does anyone knows about it?
    Any idea how to bypass?
    Thanks

    This is a user to user forum with "some" Adobe staff participation, report bugs at this link
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform for bugs or feature requests

  • Has anyone tried emailing after the Yosemite upgrade?  The size of the email pane is enormous and cannot be resized so I cannot see what I am typing as it disappears off screen to the right.  This must surely be a fault?

    The email window pane is huge and disappears off screen and I have not found any way to resize it.  This means I cannot see what I am typing as the text disappears to the right off the screen.  Only way to see what you are typing is to drag the pane to the left and then back again when the cursor moves to a new line.  This surely must be a fault with the new Yosemite OS X?

    Thanks, Bee!  I never knew that one--it does resize the screen.  But, what I want to do is resize it from the corner, or from the side, or from the top.  I'd like to move it to another place on the page, if I need to. The bigger problem is that I can no longer click and drag to highlight a word or phrase, etc.  Both of these things happened in Office and in Safari after I downloaded Yosemite. I feel sure that it is just some little trick like the one you suggested or some box that I need to tick to get things working like I've always known them to be.  Thanks for any help you can give...

  • Q:  Window Titles for Identically Named Objects and Views

    How does such an application described on
    http://java.sun.com/products/jlf/at/book/Windows8.html#50028
    behave when there are 4 Windows and Window #2 is closed ?
    Will 3 and 4 renumbered to 2 and 3 ? or Do they stay and the next Window opened becomes #2 ?

    Aside from testing it yourself, reading the link,
    you the programmer must add "something" to identify
    each windows...
    How shall I test it ? - I don't think SUN is giving
    SMC away for free ...Don't need SMC, it was used as an example, It could be a text editor with multiple windows pointing to the same file object...
    >
    so following that logic, the next window that gets
    opened will be "5"...
    How do you know ? - Is there a reference
    implementation of a swing program ???
    Best explained in this statement from the link...
    If multiple primary windows show views of the same object, distinguish each of the windows by appending the suffix :n to the object name in the window title
    So lets say that I am using multiple Windows (like JFrame) to display the same object... Then as part of the opening sequence for each window would do a check to see if it is the same object, if so, then it would increment an int like int windowNumber; then use the setTitle("myObjectname" + windowNumber)
    since the int windowNumber increments by one each time a new window opens up displaying the same object, then logically it I have 4 windows open, they would be numbered 1-4 with the next one being 5 regardless of whether the other windows are open or not...
    Unless I wrote some code that upon closing a windows, it re-numbers the window... Which brings us to this question below...
    you would need to program something ( like a method
    ) that renumber your windows...
    Really ?!? - That's why I'm asking: HOW should it be
    renumbered ???Well this would be the fun part...
    each window would have a int variable to indicates is number if its the same object...
    each window object will be kept in a list...
    upon closing a windows, it will check all windows containing the same object who ID number is greater than the window ID number of the closed window and decrement them by one... so if window with ID number 2 gets closed, then window with ID number 3,4,5 6 gets decremented by one making its 2,3,4,5 respectively...
    Which means that you will have to create a method that upon closing a windows with an ID number, call the decrement method that iterates through the list and decrements the ID number...
    psuedo code:
    upon windows close call renumber menthod...
    renumberMethod ( windowList,ID , object)
    for (int i=0; i < windowList.size() -1; i ++){
                if ((windowList.getObject() ==object)&&(windowList[i].getID() > ID){
    windowList[i].decrementID();}
    //... some code...
    decrementID(){
    --IDnumber; // where ID number is an instance variable of the Window object
    setTitle(ObjectName + IDnumber);
    Or something along these lines...
    - MaxxDmg...
    - ' He who never sleeps... '

  • Retrieve last x val on chart (auto x increment)

    I am using ChartY(matrix,1,false) so have auto X incrementing. I use GetAxes().Item("XAxis").Maximum
    to find the last displayed X on the graph (give or take roundoff brom panning). But how do I find the auto generated X value for the last point graphed?
    I saw the discussion that the X,Y of a(all) point(s) can't be retrieved, but somewhere you have to know the X of the last point and the first point (after roll-off) when doing auto increment. Right?

    The CWGraph control is not intended to house your data for recall, but to display it. It is true that the last point's X value is retained for the next call to ChartY, but there is no method or attribute given to retrieve this value.
    You can easily calculate this value by creating a variable which holds the size of the array charted multiplied by the auto-increment value.
    regards,
    Eric

  • Auto size of columns is not working after latest update of itunes 8.02

    columns will no longer auto resize correctly after the 8.02 update. the song title column hides song titles on request to resize very annoying please fix this Apple. any thoughts?

    SAME HERE!
    I just created a New List in my iTunes 8.0.2, and noticed the same Columns Width Issue, in List View and Cover Flow View:
    When I Controll-clicked on any Column, and chose Auto Size All Columns, it made the Name Column width more narrow then needed to display it's full content.
    I Controll-clicked on the Name Column, and chose Auto Size Column. It didn't make it wider to extend its width to the the width of the longest Name in that Playlist.
    I tried different Playlists, and another Library and it was the same issue!
    It did work in Music and Podcasts, but not in Videos and Audio Books. Unchecking Columns didn't help.
    Repairing Permissions, and Restarting iTunes and Restarting my Powerbook G4 didn't help either...
    I am sending this bug report to Apple
    http://www.apple.com/feedback/itunesapp.html
    and hope others will do also, if they encounter the same problem.
    And while at it, please join me in asking Apple to make Lyrics Field SEARCHABLE! What an underutilized opportunity that Lyrics Field is. I can store my notes in there, and have clickable web links, if they are in the same format as the one above, in this post. And while at it, make it Searchable on iPhones/iPods, or at least visible!
    Powerbook G4 17', 1.67, 10.4.11, 2GB RAM, all latest Software Updates

Maybe you are looking for