Limit Panel Resize to One Dimension?

Is there an easy way to limit panel resizing to a single dimension? That is, can I make a front panel that allows resizing the HEIGHT but not the WIDTH?
What would be nice is if there was a way to set the "VI Properties>>Window Size" MAXIMUM size along with minimum (default to <Inf>). But I would settle for a programmatic way to do it, too. I tried making a UE to catch the <Panel: Resize> event, and replace the "Left" and "Right" bounds of the NewBounds with those of the OldBounds, but that ended up doing some wonky stuff.
Anyone out there found a solution for this problem?
[I should add, I'm still running LV 8.6.1...maybe this has been addressed in later versions?]

I'm pretty sure that there isn't, as I don't think Windows supports it and resizing windows is presumably handled by it.
If there's a window message associated with the resize, you might be able to intercept it using some platform-specific code, but that's beyond the realm of my own experience.
One thing you can try to do is disable the resizing completely and then add your own resizing logic and code (such as buttons near the edge which will expand or compact the UI by X pixels). I think this is what you usually see in programs which allow expanding in only one direction (although usually the buttons expose an entire pane at once).
Try to take over the world!

Similar Messages

  • How can I scale just one dimension of a pic? I need to shrink the width only, to fit the frame.

    HELP!  How can I shink only one dimension?  I need to shrink the width slightly to fit the frame; the program only allows scaling that is proportional, so when I shrink the width the heigh becomes too short.  Father Mike

    I'd recommend using the rectangular marquee and the crop command. This will crop the image to an exact size without any resampling or distortion. Cropping without constraint can cause distortion...like giving someone a cone head.
    Check the size of the image first by either looking in the Image<Resize<Image Size. Make a notation of the height since you don't want to change that in this case. (While you are there, change the resolution to the desired output...make notation of height after this step if you changed the resolution.)
    Select the Rectangular Marquee tool. Change the setting in the options bar to "Fixed Size" and input the desired size. (Along with the numbers, specify in this box in what units you desire...px, in, etc.
    Drag the marquee to the desired location. (As long as the marquee tool is selected, this selection box can be moved around).
    Go up to the menu bar and select Edit<Crop.
    Reading material on Image<Resize<Image Size:
    http://help.adobe.com/en_US/PhotoshopElements/7.0_Win/WSae2ea3b149d0c3591ae939f103860b3d59 -7ee8.html
    Reading material on Crop Command:
    http://help.adobe.com/en_US/PhotoshopElements/7.0_Win/WSae2ea3b149d0c3591ae939f103860b3d59 -7eed.html

  • Resize only one object in selection, and other questions. InDesign CC

    I recently changed from InDesign CS4 to CC. I'm having a few problems with the interface and can't figure them out.
    1) This one is really annoying me: I select multiple items, like a picture and some text, to move them somewhere. I then want to maybe change the size of the text box, or crop the picture a little. What used to happen in CS4 was exactly what I wanted to happen: whichever item I clicked on to edit would be edited. In CC, it resizes everything selected! If I want to resize ALL the items, I'll group them. Is there an option to turn that off? I've looked through every menu I could find but didn't see anything that would refer to that.
    2) In the same vein: When I select a couple items, like a text box on top of a burst or an ellipse or something, and I then want to edit some of the text. In CS4 I could double click and it would turn into the type tool and I could edit text. It still works the same in CC, but only if I have just the text box selected. If there's anything else selected, it just doesn't work.
    3) I complained about this one when I changed from CS2 to CS4, but it's still a problem: When I print, and put in a particular page range, it prints those pages. Now, when I go back to print again, it has defaulted back to printing all pages. I'd really like to be able to hit CTRL-P then Enter, instead of using the mouse to select my page range again. Is there some option that I can change somewhere for that? It works fine in Print Booklet, and Export to PDF. It's only when I print normally this happens.
    4) Every time I open the program, all my windows (Pages, Swatches, Stroke, etc...) are always minimized. It's annoying to have to open them every time. I couldn't find anywhere to change that either.
    These are kind of minor inconveniences I guess, but it would be nice if I could change them. Other than these few things CC has been pretty good. I definitely like that it's 64 bit. I got out of memory errors a lot with CS4. Anyhow, thanks for taking the time to read my questions!

    TopePrinting wrote:
    1) This one is really annoying me: I select multiple items, like a picture and some text, to move them somewhere. I then want to maybe change the size of the text box, or crop the picture a little. What used to happen in CS4 was exactly what I wanted to happen: whichever item I clicked on to edit would be edited. In CC, it resizes everything selected! If I want to resize ALL the items, I'll group them. Is there an option to turn that off? I've looked through every menu I could find but didn't see anything that would refer to that.
    I have InDesign CS5.5 - and when I select more than 1 object I get a bounding box for all the items - it's impossible to resize just one item without affecting everything selected.
    TopePrinting wrote:
    2) In the same vein: When I select a couple items, like a text box on top of a burst or an ellipse or something, and I then want to edit some of the text. In CS4 I could double click and it would turn into the type tool and I could edit text. It still works the same in CC, but only if I have just the text box selected. If there's anything else selected, it just doesn't work.
    I really don't see this behaviour at all.
    TopePrinting wrote: 3) I complained about this one when I changed from CS2 to CS4, but it's still a problem: When I print, and put in a particular page range, it prints those pages. Now, when I go back to print again, it has defaulted back to printing all pages. I'd really like to be able to hit CTRL-P then Enter, instead of using the mouse to select my page range again. Is there some option that I can change somewhere for that? It works fine in Print Booklet, and Export to PDF. It's only when I print normally this happens.
    No - this is the way it works - annoying!
    What's really frustrating is that it will remember the amount of copies you've input too! I would like that reset to 1 after I print 100 copies. All too often I've opened a file from last year to print a copy and hit Ctrl+P and then Return as the shortcuts - and I get 100 copies printed again!!!
    4) Every time I open the program, all my windows (Pages, Swatches, Stroke, etc...) are always minimized. It's annoying to have to open them every time. I couldn't find anywhere to change that either.
    Once you have the screen setup the way you like it go to Window>Workspaces and click "New Workspace"
    Save as it something unique to you.
    Everytime you open InDesign this should be the default panel settings.
    These are kind of minor inconveniences I guess, but it would be nice if I could change them. Other than these few things CC has been pretty good. I definitely like that it's 64 bit. I got out of memory errors a lot with CS4. Anyhow, thanks for taking the time to read my questions!
    They are minor for sure - and we all have niggly bits in InDesign that frustrate us.
    But unfortunately this is a user-to-user forum so it's unlikely to be picked up by Adobe employees.
    I suggest you put it in the feature request forums - http://forums.adobe.com/community/indesign/indesign_feature_requests
    There's the Adobe Feature Request page - https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    That's about as much as you can do.

  • Panel Resize - how to tell when mouse released?

    I need to programmatically resize all my controls when the panel is resized.  I can't use the automatic option, as I have some specific things to do, e.g. some controls stay at fixed size, others resize.
    I've used an event structure and am doing the resizing on the "Panel Resize" event.  The problem is that this takes a little time, mainly as one of the controls is an Adobe Reader ActiveX control, which takes a little time to rescale and redraw.
    The result is that the VI seems to queue up the events as the panel is resized - if you grab the corner of the window and move it around, the VI then sits and ploughs through all the events that were created as it was resized.
    What I'm really after is an event that fires after the panel has been resized and the mouse has been released.  Is there a way of achieving this?
    Thanks

    There's no event for this, but you can filter your events, for example, like this:
    There are other variations on this (setting a flag, using a case structure in the original event case, etc.).
    Try to take over the world!
    Attachments:
    Example_BD.png ‏2 KB

  • Problem with panel resize option

    Hi all,
    I am working on an application which i want to run on all the different resolutions. So, i searched the whole LV forum to get the solution for my problem.
    after going through many related discussions i found that one should develop the app in the min resolution which it should support and in the VI properties the option for panel resizing should be tick marked.
    i did exactly the same, but still couldn't get it worked for my application.
    i am developing my app on 1024*768 resolution. it runs fine on the same resolution if i don't tick mark the resizing option. but, when i tick mark the option and run the app on the same resolution, it crops some part from the bottom.
    I am attaching the picture of the interface when run with resizing option and without it.
    Pls look into the prob and let me know how can i make it work?
    Thanks,
    Ritesh 
    Attachments:
    Interface_With proportions.JPG ‏95 KB
    Interface_Without proportions.JPG ‏103 KB

    For a GUI of this nature, there is no easy answer to this problem.  Search the forums for "large font" to get many examples of how people have solved this issue.  I usually bite the bullet and handle all resizing myself.  An example of this can be found here.
    Since you want to cover the entire workspace, you need to know what this is.  There are two VI server methods which will give you pieces of this information.  Display:All Monitors will give you the valid coordinates for all monitors attached to the computer.  Display: Primary Workspace will give you the useable workspace of the primary monitor.  This does not include the space used by the Windows taskbar (and, I assume, the GNOME, OS X, or KDE equivalents, but have not verified this), so is different from the area given by the first property.  You can fairly easily determine which display is the primary workspace by checking bounds, but do not assume that the taskbar is on bottom of the display when you do this.
    If you have problems finding information or something is not clear, let us know.
    Message Edited by DFGray on 03-03-2010 08:10 AM
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Any way to limit POV selections between different dimension?

    Hi,
    For Hyperion Planning:
    My users continuously ask for to limit POV selections between different dimensions.
    For example,
    Dimension Entity: West, South, East, North
    Dimension StoreType: Mega, Super, Normal
    However, the following combinations make sense in current business context.
    West - Mega
    West - Super
    West - Normal
    South - Normal
    East - Normal
    If users select East - Mega, this does not make sense since there is no such combinations in current business context.
    Do any one know a way to limit the wrong selection?
    Thank you in advance.
    Casper H

    This link will give you the answer :- Re: Help in Data forms
    probably not the answer you want to hear though.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Panel resize event bug?

    I'm having a bit of hassle with a panel resize event.
    For reasons best known to me, I have some parallel loops monitoring certain UI behaviour and reacting appropriately.
    I have noticved that when a loop which is monitoring the "Panel Resize" event stops, (No dynamic registration) the next panel resize will freeze the VI.  It's as if the Event case is not releasing the handle to the "Panel resize" event.
    If I handle the "Panel Resize" event via a dynamic registration and subsequent release, everything works fine.
    This is in LV 8.2.1.
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant
    Attachments:
    Freezes.vi ‏22 KB
    Doesnt freeze.vi ‏24 KB

    tst wrote:
    I think this has to do with LabVIEW locking the FP (as configured) even when the event structure should not execute any more. I actually created a simple example of it recently, but saved it in one my projects instead of where I would see it, so I forgot about it. I now dug it up and back saved it to 8.0. You can also simplify this example by removing the value change event and making the key down event lock the UI.
    Message Edited by tst on 11-10-2008 02:14 PM
    Sorry Yair,
    but this is not a bug!, it is explainable behaviour and expected behaviour.
    What happens, the front panel is locked on the second edit. (use exectuion high-lighting) The event structure is always listening for events where it is registered for, even if the event case will never execute, on the first edit (key down) the event is triggered and the VI is locked and unlocked. The second edit the event is triggered again and the FP is locked. Because the event structure can't execute the FP stays locked.
    Shane's behaviour is truly a bug.
    The same behaviour is seen with the 'Pane:size' event. (in 8.6)
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Panel Resize respect to Text Size : How To?

    I have a panel named "description", It has only one text
    control named "detail".
    "detail" is a dynamic text control which gets data from an
    xml file and displays the
    detail of required thing.
    things have long and short details.
    I want that Panel resize its height according to the height
    of text control.
    I am a newbie and have no idea.
    Please Help

    Text object resize with the text it holds.
    Add Text object to a VBox and set the width property of the
    Text to 100%.
    It should do what you want.

  • How to delete the members in one dimension use the maxl script

    i have question that i want to delete the members in one dimension useing the maxl script, but i do not know how to do it. can the maxl delete the members in one dimension? if can, please provide an sample script, thank you so mcuh.

    MaxL does not have commands to alter an outline directly, except the reset command which can delete all dimensions but not members selectively. The best you could do would be to run a rules file (import dimensions) using a file that contains the members you want to keepload rule for the dimension. As typical the warning is to test this first before you do it on a production database

  • Use one dimension to feed 2 other dimensions

    Is there a way to use one dimension to push data into two other dimensions using push logic?  The client has one dimension in App1 that is a combination of 2 dimensions in App2 ie the Costcenter dimension in App1 is a combination of Plant and Account in App2.
    Now they want to push data from App1 into App2 using the Costcenter dimension to populate the Plant and Account.
    I have Plant and Acct properties in the Costcenter dimension for mapping.
    I tried to use *Rename_dim CC= CC.Plant and *Rename_dim CC=CC.Acct but would get errors when validating the logic script.
    Any help would be greatly appreciated.

    Parameters
    COSTCENTER: 70101014
    When I test the logic using the logic debugger, I get the error:
    Validate member failed:
    70101014
    70101014
    70101014
    70101014 on COSTCENTER dimension
    When I run the logic thru data manager, the package is successful but the end of the detail status log is 'No records to process'
    The push logic should ideally take the Costcenter 70101014 from App1 and take the first 4 char (7010) and record to the Plant dimension in App2 then take the last 4 char (1014) and record to the Account dimension in App2
    Logic script:
    *DESTINATION_APP= APP2
    *RENAME_DIM CC = ACCOUNT
    *RENAME_DIM CC= PLANT
    *WHEN CATEGORY
    *IS "AOP"
    *REC(CC=CC.RPT_A,CC=CC.PLANT,CATEGORY=AOP)
    *ENDWHEN     
    *COMMIT

  • How to sort two different hierarchies in one dimension

    Does anyone know of a way to sort two different hierarchies in one dimension and still make drilling work correctly? We have two hierarchies in our item dimension; one called category and the other origin. Simplified, it looks like this:
    CATEGORY
    Hardware (100)
    ..PCs (100.100)
    ....PC 1
    ....PC 2
    ....PC 3
    ..Monitors (100.200)
    ....Monitor 1
    ....Monitor 2
    ....Monitor 3
    Software (200)
    ..Big (200.100)
    ....ERP package
    ....CRM package
    ..Small (200.200)
    ....Solitaire
    ....Mine Sweeper
    ORIGIN
    Vendor A (10)
    ..Site A1 (10.10)
    ....ERP package
    ..Site A2 (10.20)
    ....PC 1
    ....Monitor 3
    Vendor B (20)
    ..Site B1 (20.10)
    ....PC 2
    ....PC 3
    ....Monitor 1
    ....Monitor 2
    ....Solitaire
    ....Mine Sweeper
    ..Site B2 (20.20)
    ....CRM package
    We have numeric codes at each level above item which I represents the sort order (the number in parentheses at each level), and the items themselves should be sorted according to item number. I have implemented this (level code/item number) as an attribute in AWM making this the default sort order. However, as item is the lowest level in each hierarchy, I have only been able to list the items under the correct level in one hierarchy. As soon as I drill using the other hierarchy, the levels above item are sorted correctly, but the items appear at very odd places...
    The AWM documentation states that if default order is not selected on any attribute, hierarchies are sorted in the order they are created. Is there a way to control this order?
    Any input will be greatly appreciated!

    Hi,
    thank you for your answer. Yes, now I also find the class CL_SALV_WD_MULTI_CELL_EDITOR which could be used to set different UIE in one cell. But it is quite limited, just the following UIE could be used
    - LinkToAction 
    - LinkToURL    
    - FileDownload 
    - Button       
    - ToggleButton 
    best regards,
    Wenwen

  • One dimension and two fact report in OBIEE

    Dear All,
    I have one dimension "region" and two facts (Sales value & Gross margin%). Gross margin% is logical column which has been derived from two other facts column and it's value is in range from Zero to 100.
    Now, I want to generate below report. For each gross margin% range of 5%, I want to sum the sales value for each region. Please assist (Just a small snapshot of report)
    GM%     Region_1     Region_2
    <0     254      619
    0-0.05     524      799
    Thanks & Regards,
    [email protected]

    Hi,
    Create Bins for Gross% fact column and go to pivot view place Gross% fact column into rows area,region column into columns section and sales value into measures section
    hope it works

  • One dimension used twice in a cube

    I have one dimension, but it has two meanings. How can i use the same dimension twice in the same cube as it was two separate dimension?
    Example:
    There is dimension "Region". The fact table has two keys. First key means - "region of birth", and second "region of living". So one dimension has two meanings.
    I tried put the same dimension twice with two different aliases in one cube. OEM shows such cube as valid, but querrying it through OLAP API, or building analytic workspace based on this cube is impossible (error ORA-1007).
    The only workaround i see is to build two separate but identical dimensions.The bad side of this is that i have to create two separate but identical tables of data for those dimensions (i can't create two levels from the same column).
    Raf
    i work with Oracle9iR2

    i did the same on Oracle9iR2 with OEM 9.2.0.1.0.
    Creating the cube with two aliases for one dimension was ok.
    But creating MOLAP cube from that source cube using AWM was impossible .
    Also querrying that cube (the one created in OEM) for example through Discoverer or Excel is imposible.
    I searched forums on that question, and some people had the same problem, but no answer.
    Raf

  • Moving the object from one dimension to other in the cube in BI7.0

    Hi Gurus,
    I am new to BI7.0
    We have a requirement wherein we need to move the object from one dimension to other dimension within same Infocube.I tried doing 'cut' and 'insert' from the context menu of the dimensions, but it didnt work.
    Please let me know how do we do that..
    Thanks,
    Shalaka.

    Hi,
    Use Remodelling opttion avialable .For more info, earch the forum and go through SAP standard help.
    With rgds,
    Anil Kumar Sharma .P

  • Copy one dimension to other in the same Application

    Dear Experts,
    I need to create a new dimension as a copy of one dimension inside App_set (yes, two dimensions with same data), I think about implement a BADI like this:
    Time dimension & BAdI
    But really I'm not sure what happens in this code.  I'm in a good way or I need to change my point of view?. Anyway, can somebody help me with my problem?
    Many thanks.

    Solved.
      lo_context = cl_uj_context=>get_cur_context( ).
      lo_model = cl_uj_model=>get_model( i_appset_id = lo_context->d_appset_id ).
      lo_dim_origin = lo_model->get_dim_data( 'Dimension7' ).
      lo_dim_post = lo_model->get_dim_data( 'Dimension8' ).
    " Leémos los datos de la dimensión origen
      CALL METHOD lo_dim_origin->read_mbr_data
        EXPORTING
         " if_ret_hashtab = abap_true
          "if_sort        = abap_true
          "if_inc_txt     = abap_true
          if_only_base = abap_false
        IMPORTING
          er_data        = lr_data.
      ASSIGN lr_data->* TO <lt_dim_mbr>.
      if lines( <lt_dim_mbr> ) = 0.
        return.
      endif.
    " Escribimos los datos de la dimensión destino
      CALL METHOD lo_dim_post->write_mbr_data
        EXPORTING
          i_key_date   = sy-datum
          it_md        = <lt_dim_mbr>
          if_overwrite = abap_true
        IMPORTING
          ef_success   = lf_success
          et_message   = lt_msg.
      IF lf_success = abap_false.
        RAISE EXCEPTION TYPE CX_UJ_CUSTOM_LOGIC.
      ENDIF.
    Edited by: Roger Peruchet on Oct 25, 2010 6:31 PM

Maybe you are looking for

  • Ipod touch 5g wifi not working after update

    I recently did the update for ipod touch 5g, and now i cannot connect to any wifi network. I know the internet and connection is available as my phone and computer connect to my wifi just fine. How can i get my ipod to work on wifi again?

  • Why can't I sign in on PDF Pack page?

    Why can't I sign in on PDF Pack page?

  • Problem in MD01 and MD03

    Dear Experts, Please guide me to understand the following issue: When I run MD01 for a plant, there are no materials planned. No purchase reqn. are generated. However when I run MD03, the MRP results for the given material (in the same plant) are com

  • Freebsd Java path & classpath

    Hi everybody, I am new to the Freebsd env, and I am having trouble with compiling java code. Below is my system configurations. Note. I am able to compile and run the Hello World program., but when I import classes into my code I get "cannot resolve

  • Anyone know how to rip DVD in PC? Helpppp!!!!

    I just got my new video iPod couple of days ago. And I have a bunch of DVD ready to be ripped, but I don't know how? Helpp!!!