Toggling visibility of parts of a dialog UI

I want to show and hide parts of my ui when certain events are triggered. My problem using the visibility property is that elements still take up space after they've been made invisible.
What's the easiest way to go on about this?

Try to call layout() function of the window's layout manager, e.g.:
win.layout.layout(true);
Here is an example.
-Kas

Similar Messages

  • How to toggle visible true-false for FourColListBoxNodeWidget Column

    Hi,
    I need to know that whether there is a way by which I can toggle visibility of a column (GenericPanelWithBorderWidget) on click of a button.
    Which Interface can be used to do the same?
    The code for table and button is given below.
    Following is "fr" code for four column table:
    type FourColListBoxNodeWidget(kViewRsrcType) : PrimaryResourcePanelWidget(ClassID = kDNDTreeNodeWidgetBoss) {};
    resource FourColListBoxNodeWidget(kFourColListBoxElementRsrcID + index_enUS) {
              __FILE__, __LINE__,
              kFiveColListParentWidgetId, kPMRsrcID_None,          // WidgetId, RsrcId
              kBindLeft | kBindRight,                              // Frame binding
              Frame(5, 0, 525, 17),                              // Frame
              kTrue, kTrue,                                                  // Visible, Enabled
              "",                                                                                // Panel name
                        GenericPanelWithBorderWidget (
                                  0, kPMRsrcID_None,                    // WidgetId, RsrcId
                                  kBindNone,
                                  Frame(0,-2,106,17)           // Frame
                                  kTrue, kTrue,                              // Visible, Enabled
                                            ColListBoxTextWidget (
                                                      k5ListTW3ID, kPMRsrcID_None,                                                            // WidgetId, RsrcId
                                                      kBindLeft | kBindRight,                                                                                // Frame binding
                                                      Frame(4,3,104,17)                                                                                          // Frame
                                                      kTrue, kTrue, kAlignLeft,kEllipsizeEnd                                        // Visible, Enabled, Ellipsize style
                                            #if CSVER >= 4
                                                      kTrue, //Convert ampersands
                                            #endif
                                                      "",                                                                                                                                   // Initial text
                                                      0,                                                                                                                                   // Associated widget for focus
                                                      kTipsWindowFontId, //kPaletteWindowFontId,                              // default font
                                                      kTipsWindowFontId,//kPaletteWindowSystemScriptHiliteFontId,                                         // for highlight state.
    Similarly other 3 columns.
    Code for Expand Button
                   // Button Expand
                                                                DynamicIconButtonWidget (
                                                                          kExpandButtonWidgetID,                              // fWidgetId
                                                                          kExpandIconPNGIconRsrcID, kIBPluginPluginID,                    // fRsrcId, fRsrcPlugin
                                                                          kBindNone,//kBindLeft | kBindRight,                    // fFrameBinding
                                                                          Frame(450, 37,470,68 )                              // fFrame
                                                                          kTrue,                              // fVisible
                                                                          kTrue,                              // fEnabled
                                                                          //kIconRaisedLook,          // fStyles
                                                                          kADBEIconSuiteButtonType,
                                                                                              IID_IDYNAMICBUTTONOBSERVER,
    Regards,
    Yogesh Walke

    You can try the approach discussed in this post(assuming you are on 11.1.1.5 or higher ) - http://jobinesh.blogspot.com/2011/07/overriding-display-at-run-time.html

  • Diplaying matrix with drill down (toggle visibility) enabled for 4 row groups

    Hello,
    I have a matrix in SSRS 2012 with 4 row groups representing a product hierarchy.   Product Sub Group, Product, Sub Product and Account Number are the levels of the hierarchy.  I have enabled drill down (toggle item visibility) on the first
    3 of these levels. 
    This works great, but my matrix is very wide when it is first rendered.  Ideally I want my matrix to expand horizontally as I expand/drill down into each grouping.  So when the report is first rendered, and 3 of the groups are invisible, the
    matrix will be thin.  Is this possible?
    Thanks,
    Gabe

    Hi Gabe,
    Based on my test, it cannot achieved in SQL Server Reporting Services (SSRS).
    We can hide these column contents in matrix, however, we cannot hide the space in the report. In this situation, I recommend you use table to display these data.
    Alternative, we can add a drill-down in the column group to hide the column group when it is first rendered. Please refer to the following screenshot:
    If you have any questions, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to use a checkbox to toggle visibility of a Bar or Line on a Graph

    I came across a tutorial but can't seem to get it working properly.  Would someone be able to better explain how you can use checkboxes on/off to toggle the visibility of a line or bar on a graph?  I know you can do this directly within the graph's legend, but my legend is so large that it doesnt fit on my screen, so I need to take an alternative route.
    This is the tutorial i'm referencing:
    http://analysis-reporting.blogspot.com/2009/06/formatting-tricks-2.html
    Here is a screenshot of my dashboard. I want to code the checkbox to turn visibility on/off of the blue bar, the blue bar gets its values from Row 3 Colums B to F:
    http://img266.imageshack.us/img266/3838/testah.jpg
    Any help would be greatly appreciated!

    It appears that you're missing the logic for the check box.  There needs to be a cell whose value changes based on the check box's status (1 for checked, 0 for unchecked).  Do this choosing 'destination' in the check box's options and setting it to a cell in your spreadsheet.  The default values are 1 for checked, 0 for unchecked.  Then, you should have the values for your blue line in a table, but the actual line graph should be driven from an identical table that gets its information from the first table (confusing?).  The logic in the 2nd table should read:   =IF(Control Cell = 1, Actual Value, "")
    What this does is if the check box is checked, then the 2nd table will read the same as the first, and your values will appear.  However if the check box is unchecked, the 2nd table will have blank values ( "" ) and thus not register.
    Here are some images to help:
    This is the dashboard I created, notice the values are mapped to one area but the chart is driven by the other.
    http://img191.imageshack.us/i/basicr.png/
    This screen shows that the chart is driven from the 2nd set of data.
    http://img821.imageshack.us/i/chartdata.png/
    This screen shows the logic behind the 2nd table, the one that actually drives the chart.
    http://img836.imageshack.us/i/maplogica.png/
    This screen shows the check values for the checkbox.  Note that the destination for the first check box is cell B3.
    http://img683.imageshack.us/i/checkbox.png/
    This is the dashboard in action:
    http://img511.imageshack.us/i/inaction.png/
    Here is the XLF file so you can look at the logic and stuff.
    http://www.filedropper.com/demo1_2
    --Hope this helps.

  • Dialog not visible from sidekick when using dialog participant step

    I am using the Out of the box dialog participant step in my workflow. I have created a dialog and using in the dialog participant step. When i start the workflow, the dialog is only available/visible when I complete the task from inbox and not visible when completing the task from sidekick.
    Any suggestions/pointers are Appreciated.
    Environment : CQ 5.5, Windows 7

    Unfortunately, It is known issue.  Please file daycare & provide the business importance & a schedule.

  • How does Toggle Visible for a Column in a Table work ?

    Hi All,
    I have a question for you.
    Using version 11.1.1.7:
    I was playing with a use case where I need to show and hide columns in an af:table component.
    I want to do this clientside using javascript.
    Guess what: It works, however, it only works for hiding columns ?!
    Initially I have client component = true and visible is true.
    See javascript below.
    When I call hideColumn, the component is found and hidden after calling.
    When I call showColumns (after it is hidden) the component cannot be found anymore.
      function showColumn(evt){
          var col = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9")  ;
          col.setVisible(true);    
       function hideColumn(evt){
          var col = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9")  ;
          col.setVisible(false);    
        }I checked and when the columns visible property is initially false, the column is not found by AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9"), which means it is not available ?!
    It looks like the visible property for an af:column works slightly different then for other components such as buttons.
    Also makes me wonder how the panelCollection component shows and hides columns. Doesn't that component do exactly the same ?
    Thanks.

    Luc,
    couldn't find a hint in the sources (maybe didn't spend enough time). However, one reason for this behavior would be if the hidden column had no client component created (in which case it only exists as hidden HTML). The work around I think would be to use a serverListener on the table and to pass the columns to show/hide as the payload for server side show/hide
    Frank

  • Letters only visible lower part!

    I hav e a problem in a document where in a table some letters only visible from the middle and down. I know what it says, but it looks so unprofessional! I have tried many solutions but still this problem persists. There is another problem as well where
    I have written the year 2014 but 14 is just half the width. Not Another fontsize, but like I physically sqeezed the letters.
    What  can I do?
    Thanks!

    Check that the line height isn't set to an 'exact' point size that's less than the point size you're using, or a multiple of less than 1 line.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Toggle Group Visibility while sorting results in error

    I have a custom website in which we have embedded SQL Server Reporting Services reports.  
    The report in question has 3 nested row groups.  The parent group is always shown, but the 2 child groups default to hidden and have their visibility toggled by the parent group.  This works fine by itself.
    There are several columns for which we've enabled Interactive Sorting.  This also works fine by itself.  
    The problem occurs when the user sorts a column first, then toggles the visibility of the child groups.  Toggling the groups before sorting works fine for some reason.  The Error only occurs when sorting, then toggling visibility.
    The error is a reporting services error.  It says 
    The value for parameter 'SortItem' is not specified. It is either missing from the function call, or it is set to null. (rsMissingParameter) Get
    Online Help
    There is no parameter in the report called "SortItem", so this seems to be some internal error which is triggered from this specific sequence of events.
    Additionally, this error only occurs when the report is embedded in the custom website.  This error does not occur when running the report in the standard reporting server website or in Visual Studio.  
    Any ideas on how to fix this?

    Hi Jahbreeze,
    Thank you for your question.
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Toggle layer visibility

    Hello,
    I need one keyboard shortcut that toggles visibility of one of layers.
    I paint and need to toggle on and off one layer below (layer with a reference picture, not one i paint on). with a shortcut painting process will be not break as with case click at icon.
    tried to make toggle layer visibility with actions unfortunately with no success.
    it is possibility to toggle active layer visibility by add shortcut in keyboard shortcuts preferences  but here it going not about active layer.
    I have no experience with scripting.
    thank you!

    For this to work as written there can only be one layer in the document named 'Ref' otherwise it will toggle the top most layer with that name.
    var targetID = getLayerIDByName('Ref');
    if(undefined != targetID){
        if(getLayerVisibilityByID( targetID ) ){
            hideByName('Ref');
        }else{
            showByName('Ref');
    function getLayerIDByName(name) {
        try{
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "LyrI" ));
        ref.putName( charIDToTypeID( "Lyr " ), name );
        return executeActionGet(ref).getInteger(charIDToTypeID( "LyrI" ));
        }catch(e){}
    function getLayerVisibilityByID( id ) {
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "Vsbl" ));
        ref.putIdentifier( charIDToTypeID( "Lyr " ), id );
        return executeActionGet(ref).getBoolean(charIDToTypeID( "Vsbl" ));
    function hideByName(name) {
        var desc = new ActionDescriptor();
            var list = new ActionList();
                var ref = new ActionReference();
                ref.putName( charIDToTypeID('Lyr '), name );
            list.putReference( ref );
        desc.putList( charIDToTypeID('null'), list );
        executeAction( charIDToTypeID('Hd  '), desc, DialogModes.NO );
    function showByName(name) {
        var desc = new ActionDescriptor();
            var list = new ActionList();
                var ref = new ActionReference();
                ref.putName( charIDToTypeID('Lyr '), name );
            list.putReference( ref );
        desc.putList( charIDToTypeID('null'), list );
        executeAction( charIDToTypeID('Shw '), desc, DialogModes.NO );

  • Large Multiplot XY Graph very slow to update visibility/color/line width changes

    Hello everyone, 
    I have an interesting problem for you all. I am trying to update characteristics of a large XY graph (3600 data points for each of 160 different plot lines, all on one graph) by reference and it's going incredibly slowly.
    What I have set up is a system where mousing over certain other indicators and buttons will "highlight" certain groups of plots by making the plot lines a thickness of 2 instead of 1. Similarly, clicking other buttons will change plot colors or toggle visibility of certain plots. To implement this I have a subvi that takes a reference to the xy graph and, in a for loop for each active plot, applies the changes I wish to see made. The problem is that this takes over a minute to complete for just one update!! I'm supposed to be plotting new points every second, and mouseovers and button clicks can happen many times in a second, so this is obviously unacceptable.
    I noticed that as I'm looping through all 160 plots in the subvi, the XY graph is updating, one plot at a time. My question is: Is there some way to keep the graph from updating until all the changes have been made? Or maybe some way of applying all the changes at one time, instead of using a for loop?
    I have discovered that if I simply drag out a HUGE xy graph property node and do everything all at once instead of in a for loop, the changes appear instantly as desired. Is this really what I have to do to achieve the results I want? It is incredibly time consuming and unmaintainable to have a gigantic property node will all stages of the for loop being applied at once.
    Help is greatly appreciated!
    -Aaron
    Solved!
    Go to Solution.

    Darin.K wrote:
    Two things you can consider:
    1) Defer Panel Updates.  Set to True before the Loop and False afterwards.  Speeds things like this up considerably.
    2) No way you can see 3600 points on a graph.  With this many plots I would consider decimation of the data to reduce the number of displayed points.
    This works amazingly well! In my absolute worst case scenario it takes about 70ms to update all 160 plots for 60 minutes worth of data (3600 points) where as before it took over 240000ms. 70ms is obviously a huge improvement and I thank you very much, this is exactly what I was looking for.
    Just as a side note, unfortunately I do have to display up to 3600 points, the end users want to see up to an hours worth of previous data (more even, if possible). Unless you are suggesting I should somehow cut out data, like 4 out of every 5 data points for instance? Part of the problem with cutting out points like that is that there are occasionally spikes in the data that consist of a single point. Cutting out data might remove these which would be a problem. The end users need to be able to spot these spikes when they occur. But perhaps a more complicated decimation that identifies outliers and plots them no matter what to ensure that the spikes remain and only decimate the remaining data? That could get tricky quickly, but doable I suppose. 
    Thanks for all the help guys, if anyone has any other methods they think might work as well, I would be interested in trying them too to compare, but Darin's solution will work great.
    -Aaron

  • Report file properties dialog on MS Vista

    Post Author: DCox
    CA Forum: General
    My company runs and distributes CR v11.x as part of our application currently running on XP.  We are migrating our application to Vista.  Our application, written in PowerBuilder v10.5, reads some of the user-defined file properties of the report (.rpt) file via the OLE API.  On XP, the specific properties I need to see are on the Summary tab of the properties dialog you get by right-clicking the .rpt file in the XP Windows Explorer.
    Our application uses the Title, Subject Keywords and Comments properties in XP to build a Tree of available reports in our application.  These properties are not displayed in Vista's property dialog for CR report files built on XP and copied to Vista.  Is there a version of CR that will display these properties?  Our application retrieves these properties on Vista but they are not visible in the Vista properties dialog.
    Also, is there information about the CR API (for Vista) that will show me how to access the MS OLEDocumentProperties SummaryProperties and CustomProperties?
    Any assistance is appreciated.

    That is an excellent find. I would definitely let Apple know.
    http://www.apple.com/feedback/iphone.html
    http://www.apple.com/feedback/itunesapp.html

  • Crystal Report Viewer in Sharepoint Page Viewer Web Part

    In our SharePoint setup, we have a web part that contains links that either hides or shows three other web parts (page viewer web part).  When entering the page, the first web part is shown and the other two are "hidden".  Clicking on the links will toggle through these three web parts.  Link 1 = Web Part One Visible, Web Part Two and Three Hidden.  Link 2 = Web Part Two Visible, Web Part One and Three Hidden.  Link 3 = Web Part Three Visible, Web Part One and Two Hidden.
    Our problem involves the CrystalReportViewer.  We have created a page that allows us to open the last successful instance of a report with the viewer.  This works correctly when calling the link directly from IE.  When we place this link in either the second or third web part, the report does not show.  The viewer borders will appear but the report itself will not.  If the .aspx is placed in the first part, the report appears without issue.  We do not want the .aspx to be called by the first web part and need it to load in one of the other two.  We can get the report to show in the other web parts if you right click on the empty space where the report should be and hit refresh.
    What do we need to do to get the report to load correctly in either of the two web parts?  We have looked at several options and can not get anything to work.  We didnt have this issue when using BOE XI R2 with an .asp opening the reports.  Please let me know if more info is needed.  We are running BOE XI R3.1 currently.
    Thanks

    We havent tried that.  We changed the link in the web part to access an html page that claims that the report is loading.  It states in the html that if the page doesnt load to "click here" which redirects to the crystalreportviewer.  Its a temp fix for it.  One thing we are looking at is the 64 bit version of the Sharepoint integration kit.  That may contain a reportviewer webpart.
    Thanks for the reply.
    Brian

  • Change visible layers in placed PDF

    I need to programmatically change the visibility of layers in a placed PDF. Do I use kChangeVisibleLayersCmdBoss? Please show an example. I can get the "eyeball" to toggle in the "Object Layer Options" dialog box, but the view does not reflect the change.

    I'm not sure if this setting exists in version 8, but check to see if Allow Layer State To Be Set By User Information is selected in the Documents Preferences. If it is not selected, Layer Properties dialog box settings, other than Layer Name and Default State, are ignored.

  • Disappearing dialog boxes in software demo

    I'm creating a software demonstration in Captivate 6, demonstrating tasks in Microsoft Project. When I preview the slides, they look fine. When I publish to an swf or an mp4, often a MS Project dialog box will appear as recorded, and then disappear too soon; or only part of the dialog box will be visible.
    Advice would be appreciated.  Thank you.

    Thanks for your response! I will try out setting the slide quality to optimized, because I haven’t been especially pleased with the slide quality.
    I previewed by using the Preview button: From this slide. It is not that the slide durations are too short; the boxes only disappear too soon after being published. I think Anjaneai Srivastava<http://forums.adobe.com/people/Anjaneai+Srivastava>’s suggestion has solved the problem.
    Regards,
    Gayle Pignone
    Applications Instructor and Consultant | 860.409.1742 | Download my vCard<http://www.goadnet.com/VCF/gap.vcf>
    ADNET Technologies, LLC
    An affiliated company of J.H. Cohn LLP
    www.goADNET.com<http://www.goadnet.com/> |  www.JHCohn.com<http://www.jhcohn.com/>
    P Please consider the environment before printing this email.

  • Notifying other checkboxes to toggle the state within an Action

    Hello,
    I created an action that toggles visibility of one dialog. There is a JCheckBoxItem in the menu and JToogleButton on the toolbar. Both with this action deployed (with setAction() method).
    When user click on the menu item checkbox it do not toggle the checkbox on the toobar and vice versa. I need some mechanism to "connect" the checkboxes with same action to set their values synchronously.
    What mechanisms or interfaces to do this?

    toggleButton.setModel(checkBoxItem.getModel());

Maybe you are looking for

  • Itunes confusion...sync....icloud

    My son created an itunes on my computer.  when i got an ipad, it synced his on my ipad too.  Now since i can't get icloud to work, i am afraid to sync cause it might lose his stuff....but my computer crashed and i lost outlook, contacts, emails, pers

  • Procedure and function

    hi folks,            procedure and function are doing a same job then why we using function,please give explanation in real time scenario ...

  • Question re Verizon Samsung Charge phone and Gingerbread when we get it

    Friday - 9/16/2011 ALL, My question is, when the OFFICIAL Verizon OTA (Over The Air) version of Gingerbread comes out and I update my Samsung Charge Droid phone will it wipe out all my phones settings along with my music, videos, the APPs that I load

  • Multiple BIUs with one triggering event

    Dear Experts, I am trying to create a B1i scenario that does something similar to the following: 1. Journal Entry created in sender system by a user 2. Journal Entry created automatically in receiver system by B1i This much works so far, my question

  • Forum Find for 2009-March-12

    Check out how BestBuy.com customers are rating our latest "Five-Star Forum Find" in Laptops! Toshiba - Satellite A305-S6916 Laptop with Intel® Centrino® Processor Technology Model: A305-S6916 | SKU: 9164343 Intel® Core™2 Duo mobile processor T6400; 4