Resize a panel at launch

Hi,
I need to the resize my panel at InDesign start, normally, InDesign uses the width and height from the previous session. For some reason, calling Resize in DoPostCreate (from my object based on PalettePanelView) does not work, while a call to Resize works as exepected when triggered from some user interaction (we provide 3 sizes of the panel which the user can choose via buttons).
Any idea?
Thanks and best regards
   Ferdinand
P.S.: We are developing for InDesign CS6.

I think I've got the problem solved, but can I follow up on
one thing you mention below? It has to do with the parent/child
relationship and the startDrag action. I was under the impression
that if I put a movieclip inside of another movieclip and then
apply a drag action to the parent movieclip, then there was no way
to access the child movieclip. For example, I put a small textInput
component inside of a larger movieclip and then I put a drag action
on the movieclip. I wanted users to be able to type in some text
into the middle of the movieclip and then move the moviecip around
if they wanted to. However, as soon as I put the drag action on my
parent movieclip, the inputText component could no longer be used -
the "hand" appeared over whole movieclip so users could no longer
type anything into the inputText area. Is there any way to do what
I want to do here?
Appreciate your help!
Michael

Similar Messages

  • Stop gnome panel launcher icons from scaling when resizing the panel

    hi guys!
    ive been trying to customize my gnome de and cant find the answer to this. i want to have a thick panel say around 36px with a large main menu icon and 22x22 launcher icons. i tried checking gconf-editor and dont see any option to set this. when i resize the panel to 36 px, the launcher icons follow the size of the panel. i want them to stay at 22x22 even when the panel is resized to 36 px.
    below is a screenshot of what im talking about.
    please let me know what you think! many thanks!
    josh

    hey droog!
    thanks for your reply! tried that and it didnt work. i tried this: 
    gtk-icon-sizes = "panel=16,16:gtk-large-toolbar=16,16:gtk-small-toolbar=16,16:gtk-button=16,16"
    it did change the icons in the menu bar. and the icons in the notification area. but it did not change the custom launcher icons...
    do you know if they have a howto for this?

  • How to keeps button in center of resizable dialog/panel?

    Hi all,
    Is there any ways to make a button still in center of dialog/panel when I resize dialog/panel without changes its frame size?
    I'm using kBindAll but the button will be changed frame size. Can anybody please help me resolve that?
    My attribute of button:
    ButtonWidget
      kAMPBrowseBtWidgetID,
      kSysButtonPMRsrcId, // The Plugin ID
      kBindAll, // Frame binding
      Frame(64,220,200,246) // Frame(4,4,265,320) // Frame
      kTrue, // Is this visible
      kTrue, // Is this enabled
      "Browse Pages", // The String value

    Hi,
    I couldn't get it to work using the binding.
    There may be a better way of doing it, but I got it working by setting to kBindNone and moving the button on panel resize events:
    Firstly, make sure you have a custom class for your panel's control view.
    Mark it up in the fr file for the panel's widget boss class with:
    IID_ICONTROLVIEW, kMyPanelViewImpl,
    Add to the ID definitions, factory list etc and set up a MyPanelView class (or whatever you want to call it...), derived from PanelView, for this implementation
    Then in your MyPanelView class, setup the Resize function as below:
    void MyPanelView::Resize(const PMPoint& dimensions, bool16 invalidate)
        PanelView::Resize(dimensions, invalidate);
        InterfacePtr<IPanelControlData> panelData(Utils<IPalettePanelUtils>()->QueryPanelByWidgetID(kMyPanelWidgetID));
        if(panelData == nil) return;
        IControlView *myWidget = panelData->FindWidget(kMyButtonWidgetID);
        if (myWidget == nil) return;
        PMRect theFrame = myWidget->GetFrame();
        PMReal left = (dimensions.X() - theFrame.Width()) / 2;
        PMReal right = left + theFrame.Width();
        theFrame.Left(left);
        theFrame.Right(right);
        myWidget->SetFrame(theFrame, kTrue);
    You will need these includes:
    #include "Utils.h"
    #include "IPalettePanelUtils.h"
    Hope that helps

  • Resize tool panels

    Help - I'm working in Photoshop CS4 on a Mac - and for some reason I cannot get my tool panels to resize. I can only see 2 of the many many layers in my documents and it's making me crazy! For some reason, there is no resizer at the bottom right corner. Can anyone help? Thanks!

    What you are seeing is not normal.
    Try trashing your preferences as per the FAQs of this forum (press Command+Option+Shift as you launch Photoshop and hold those keys down until you see a dialog box asking you if you really want to delete Preference, which you do.)

  • Resizing Extension Panel does not layout Flex controls at all, simply scales stage

    Hello,
    I'm having this issue with Extension Panels in Fireworks compiled with the Flex 4 SDK. When the panel is first opened, it has the correct dimensions and controls are laid out correctly. If I resize it at all, it scales itself instead of laying out it's controls to take advantage of the new space. This doesn't seem to occur when using Flex 3's mx:Application, only Flex 4. Any ideas?
    Before Resize:
    After Resize:
    This occurs no matter the Application container control I use - mx:Application, mx:ApplicationWindow, cs:CSXSWindowedApplication, and so on.
    My Application MXML is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <cs:CSXSWindowedApplication
      xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx"
      xmlns:cs="com.adobe.csxs.core.*" xmlns:s="library://ns.adobe.com/flex/spark"
      <!-- Setting width & height are the only way I can get it to show properly when first opened. -->
      width="200" height="200" historyManagementEnabled="false" showStatusBar="false">
      <s:Button label="Click Me" />
    </cs:CSXSWindowedApplication>

    So they key is apparently to have this as a compiler flag:
    -includes=mx.managers.systemClasses.MarshallingSupport
    And in applicationComplete:
    CSInterface.instance.autoThemeColorChange = true;
    Also use CSExtension as your base application class/component.

  • [SOLVED] KDE Panel - Application Launcher Icon Size

    With the standard KDE panel, when I add an application launcher widget (it doesn't matter which one) the icon size of the launcher is too small. Increasing the size of the panel makes the icon get bigger to a point, but then it shrinks again. Is there a config file that I can override the icon size? I don't see one in ~/.kde4/share/config, is that the right place to look?
    Last edited by ioos (2012-05-16 18:22:06)

    That was it! The "Panel" setting only changed the launcher icon. I guess I assumed that it would change all of the icon sizes, but so far it looks good. Thanks!

  • Resize detached panels in framemaker_9 (beyond default limit)...

    Greetings,
    I was wondering if anyone knew how to increase the size of detached panels beyond what seems to be a default limit. Is there a .ini or .inf file somewhere that controls this? Or perhaps a hidden setting somewhere in Framemaker 9?
    I have noticed that after a reinstall and transition to a new PC (same OS and versions of FM, same monitor sizes and resolution, different PC), the panel resizing is smaller than what was, by about 1/2. The panel used to be able to be resized to about 1/3 the size of the monitor... now it's about 1/4. This happens with all detached panels, but the main focus is for the "Structure View" panel.
    Thanks in advance!

    FOUND IT!
    I found out where the panel settings are held (in Windows 7):
    %SYSTEMDRIVE%\%USERPROFILE%\AppData\Roaming\Adobe\FrameMaker\9\WorkSpaces\Structured\Struc tured Authoring.cfws
    if you open up that file, there is a line in there that handles the size of the detached panel:
    data=#quot;5 10 #quot; minimum-size=#quot;400 80#quot; pref-unc-size=#quot;960 712#quot; pref-c-size=#quot;480 580#quot; maximum-size=#quot;1920 1160#quot;/>" host-cached-sizes="false"/>
    the bolded part will set the maximum size of the detached panel in pixels. I noticed that the more panels/things you open in FM the more lines get populated in Structured Authoring.cfws.
    I also assume that the first part of the line: "data=#quot;5 10" is the identifier for the panel. That part seems to not be replicated in any other part of the file. I'm not sure if these are univeral identifiers or are specific to my system upon creation. 
    How I found the specific line: I used this (http://www.cthing.com/Meazure.asp) tool to measure the panel maximum detached size in pixels and then looked in the file for corresponding numbers.
    How I found the file: had the old OS drive that had FM installed that had a larger maximum size detached panel. Copied over the user specific files from the above directory to figure out if I was right. Then tried the files one by one until I hit the right one.

  • Resizing a panel that uses a CardLayout

    I have a panel (mainPanel) that uses GridBagLayouts.
    mainPanel contains two panels:
    1- panel1: contains 3 JRadioButtons
    2- panel2: uses CardLayout to show 3 panels based on the JRadioButtons selection. (one of the 3 panels (editorPanel) contains a JEditorPane added to a JScrollPane)
    Now when im resizing the mainPanel, the JEditorPane in the editorPanel is not resizing.
    Is there any way to make the JEditorPane resizable while using cardLayout?
    Thanks

    do you want the editorPane, or the scrollpane it is in, to resize?
    post the code of how that particular panel is constructed - a lot depends
    on the layout manager/s used

  • Programmatically resizing Front Panel does not repaint

    I am trying to extend the width of a front panel at run time when a user hits a button. The problem is
    that the contents of the newly exposed front panel section are not redrawn. I have to either drag
    another window over that section or minimize-maximize it to get it to repaint.
    My issue is how can I get the front panel to refresh/repaint, or if that is not possible what other
    ways are there to do resizing. I have tried changing the "Window Bounds" and "Panel Bounds" properties of
    the VI (not at the same time) as well as using LVWUtil32 (Windows API Function Utilities (32-bit) for
    LabVIEW). Each of these methods results in the same problem.
    Thanks for the help!
    Naveen

    HI Naveen,
    It seems to me that you are having Problem with your Graphics Hardware, rather than labview. Generally the window should be repainted by system.
    If you go to Display Properties -> Settings -> Advanced -> Troubleshooting or Graphic Acceleration - You may see the slider to full Acceleration. Under this setting the OS basically relegates most graphic duties to Graphic Hardware.
    What you may want to do is to Move the slider a couple of notches back. And then try your VI's. Infact try all the settings on your Slider. See if it works at No Acceleration.
    The Problem for me is I do not Have this Problem and cannot even simulate it to try a solution.
    Another Solution is this -
    There is a vi Property Class called "Front Panel" Which can be access
    ed from Vi Server. Under this Class you will see a Property "Defer Front Panel Update" Generally this Property is used to Prevent a redraw. But if this Property is set to False, Labview immediately redraws the Panel.
    What you may want to do is after resizing to let you program go through this Property Node set to False and See if this Helps.
    By The way, the way you have to wire this Property is to Open a Vi Ref, Wire it to Property Node, Select Property as "Front Panel". Right Click on "Front Panel" and Click on Create-> Property -> Defer Front Panel Update. Wire the Referneces of the these Objects, with the output of "Front Panel" going to "Defer FP Update".
    I hope your ver of Labview has these Properties. I am Using 6.1
    I hope you can take it from there!!
    Please advise How you solved the Problem. Good Luck!!
    Mache
    Another Solution which you can try is this
    Good Luck!
    Mache

  • How to show the front panel when launching VI with Call by reference node??

    Hello!
    I just wonder how I make the front panel visible during execution when I launch the VI with CALL BY REFERENCE NODE.
    Se example.
    Could u also show me how to change different properties (window size ..) of the front panel??? (launched with CALL BY REFERENCE NODE)
    Thank you!
    Attachments:
    test.vi ‏18 KB

    In VI Properties>>Window Apperance>>Customize you can check "Show front panel when called". This will open the front panel on each call. It doesn't matter how the call was initiated.
    You can set a lot of Front panel properties during runtime. Place a Property Node in the block diagram. Change the class from App to VI. Under properties select Front Panel window>>Panel bounds to set the position and size of the front panel.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Resizing Front Panel Objects

    Anybody,
    Is it possible to resize a group of selected objects to the same size?
    Thanks.
    Petter Kristiansen

    I found another way too.
    I created attribute nodes for the objects and programmatically adjusted
    their sizes, then I
    removed the attribute nodes when I was satisfied with their sizes. Not easy
    this method either, so I hope a editor function for this will be implemented
    soon.
    Thanks a lot
    Petter Kristiansen.
    Greg McKaskle wrote in message <[email protected]>...
    >> Is it possible to resize a group of selected objects to the same size?
    >>
    >
    >Unfortunately, this isn't something that the LV editor makes very easy,
    >not yet. There should be a yellow tip strip that appears each time you
    >move or grow an object. When growing, it will give the width and
    >height. With a little practice, you can resize other objects to match.
    >As I said, not that
    easy.
    >
    >Greg McKaskle

  • Automatic Resizing of panel with drawings added to a scrollPane

    I have a Panel with rectangles text and arcs drawn .and it is added to a scrollPane.both vertical and Horizontal scrollbars are enabled for scrollPane.My problem is that i have to draw arcs connecting these rectangles with text enclosed in it. and when i connect two rectangles a span is formed connecting the two..and as hierarchy goes deeper ie connecting spans of already linked rectangles with similar spans..There wont be enough space at top for arc to be drawn..So ive to either readjust all objects related with drawings in panel or is there any other way to increase panel size automatically as drawings need more space..Please suggest me some method for this problem

    Panels Preffered size is set as (3000,1000) and TextRectangles are drawn in panel Cordinates of textRectangle are set in setTextRectangle method and all further drawings connecting rectangle are done by mouse clicks on specific rectangles.
    and layout in setTextRectangle is TextLayout of the text enclosed in rectangles.So when i coordinates for arc drawn exceeds the panel should i call separate method for resetting panel size is that what you have suggested
       screen_Resolution = Toolkit.getDefaultToolkit().
                               getScreenResolution();
             screen_Width = Toolkit.getDefaultToolkit().
                               getScreenSize().width;
             screen_Height = Toolkit.getDefaultToolkit().
                              getScreenSize().height;
    public void setTextRectangle(Graphics g, Font font)
              Graphics2D g2 = (Graphics2D) g;
             FontMetrics metrics= g.getFontMetrics (font);
            int textHeight = metrics.getHeight();
            int left=textHeight;
            int yCordRectangle=(int)(screen_Height/5);
            for (int i = 0; i < layouts.size (); i++) {
                 int top=(int)(screen_Resolution*2);
                 for (int j = 0; j < layouts.get (i).size (); j++) {
                     top += textHeight;
        TextRectangle textRectangle=new TextRectangle(left,yCordRectangle,wrapWidth,top-150);
         addtoarray( textRectangle, rectangles);
        left += wrapWidth + textHeight;
       

  • Icloud2 control panel not launching on windows7

    Hi
    I just downloaded an installed icloud 2 on my windows 7 machine and it appeared to be working fine so I closed the panel and then a little later I tried to open it again and nothing happened. No window, no error message, nothing, nada, niente.......
    I noticed a few people are having probs. Is the solution to go back to an earlier version and if so where do I get it from and how do I uninstall v2.
    Thanks
    Anna

    you find the version 1.1.0.40 at this link http://download.cnet.com/iCloud-Control-Panel/3000-2242_4-75717233.html (thanks to mcauble)

  • CVI 2010 SP1 Graph Control Resizing Following Panel Resizing Bug

    Steps to duplicate:
    - In a running application, compress a panel containing a graph control with a top x-axis down to some very small size.
    - Re-expand the panel.
    Observed behavior:
    - Graph control is drawn abnormally large (larger than panel size; abnormally large fonts).
    - This is only seen with graphs with top X axes. 

    Hello -
    I'm not able to reproduce what you're seeing.  Could you please post a small example project that reproduces what you're describing?
    Thanks -
    NickB
    National Instruments

  • Resize the panels in a transaction iView?

    Some transactions in the transaction iView have 2 panels: one on the
    top and one on the bottom.
    Sometimes the one on the bottom cannot be seen unless the user pull
    the bottom line up.
    Is there any parameter that can be adjusted to let the bottom one
    show up by itself? Thanks! Points guaranteed.

    Go Content Administration --> Portal Content --> Browse the Transaction iView from the tree --> Double Click on that iview --> Select from Property Category --> Appearance - Size or Select show all --> enter new value to the layout.
    Also go thru this link.
    http://help.sap.com/saphelp_nw04s/helpdata/en/9e/7d96bb087311d7b84600047582c9f7/frameset.htm
    Regards,
    Padmanaban

Maybe you are looking for

  • Hey all just trying to set up my ipad synced up with itunes but now if i try to download any apps i put my password in then comes up with unknown error and wont download any help would be great

    hey all just trying to set up my ipad synced up with itunes but now if i try to download any apps i put my password in then comes up with unknown error and wont download any help would be great

  • Format question for a ABAP report

    Hi experts,       Exist a way to create or use a format to print an output of an ABAP report that adjust to the screen? I have a Abap report that in the output have some subtrees for the information displayed.... but if the user expand a lot the subt

  • Microsoft word not opening

    Hi. my microsoft word 2008 was working fine a few months ago and when i tried to open it it crashed, no error message, no nothing. I can't reinstall because this mac I bought off someone. please help. P.S. all the office apps don't work

  • BOE/Webi Error

    Dear All, We are facing production server stability issue. From this Friday in morning almost each 30 min WebIntelligence Service is crash. When users are trying to refresh report it give following error The Web Intelligence Server could not be reach

  • A ZIP at Object Services

    Hi all. I have to open ZIP files stored in the Object Services (The attachments at PA30) from the portal. Right now I have a working program that opens DOCs and PDFs... But I cannot use the same method to achieve this. The method I´m using is get the