AutoScrolling of PanelLayout and setting Location of dynamically created controls

Hi, I have a question related to setting Location of dynamically created controls when my PanelLayout is scrolled down or up.
So basically I have wrote a code that lets me drag on control over other other and replace their's locations.
So I wanted to add possibility for user to dynamically add new controls (every new control is suppose to be 200px below previous) - everything is fine as long as I add them from upper section of my LayoutPanel (without scrolling) but when I try to add
them while I'm half dawn scrolled they are placed based on CURRENT left upper corner which is NOT a upper left corner of LayoutPanel therfore they are placed with wrong padding based on current scrolled position.
So my question is how can I avoid it and always add new controls based on LayoutPanel upper left corner? (I have already tried disabling AutoScroll while adding new control and enabling it back after adding - it works but I want to find PROPER way because
I'm sure there must be some kind of solution to it)
Thanks in advance.

Hi darekg11,
>> I have a question related to setting Location of dynamically created controls when my PanelLayout is scrolled down or up
I am wondering what the PanelLayout was, was it a “flowLayoutPanel” or “tableLayoutPanel”?
>> basically I have wrote a code that lets me drag on control over other other and replace their's locations
Did you mean you drag the control at runtime or at design time?
>> how can I avoid it and always add new controls based on LayoutPanel upper left corner
I could not reproduce your issue, and could you share us some key code or a simple demo to reproduce your issue?
I made a research about “scrolling panel”, and I think the link below might be useful to you:
# Scrolling Panel
http://www.codeproject.com/Articles/226381/Scrolling-Panel
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.

Similar Messages

  • Bringing dynamically created controls into scope

    Normally I can bring controls into scope in a function with
    the line
    var myControl = myControl;
    where myControl is the name of the control.
    If I dynamically create controls (called say cbx1, cbx7 etc.
    where the
    numbers are all different, but not necessarily contiguous)
    and save
    their names in myArray, then myArray[0] will contain the name
    of one of
    my new controls.
    How can I bring this control into scope in my function?
    And is there a way to create, read and change variable
    variables in
    ActionScript?
    Doug

    create an array within your function that's local to your
    function, if that's what you want. what's the purpose,
    though?

  • Url location of dynamically created file...

    I have a web app war that I have deployed to weblogic. This war generates some images which I want to point to from my web app browser.
    1. Is there a specific directory ( like the default root of the web app ) that I can get access to create these files ?
    2. Then what is the relative url to use to access these images ? ie, after creating the file in step (1), what relative url should I pass to the RequestDispatcher to access these images ?
    I can do this in Tomcat because I can create "/webapp/images" directory, and create the image files under this directory and then access them using the same url. But in weblogic, I dont know what the default directory is.
    Thanks
    -- pady

    Hi Pady,
    we have to place all imaze files or jsps or html files under webapplication directory(resides WEB-INF directory of the webapp).
    then the container automatically reads those files.
    we can access these files with RequestDispatcher Interface as given below.
    RequestDispatcher dispatcher =      request.getRequestDispatcher("/template.jsp");
         if (dispatcher != null) dispatcher.forward(request, response);
    suppose if you placed imaze files under myimazes folder then we can acces those files like this
    RequestDispatcher dispatcher =      request.getRequestDispatcher("/myimazes/imaze.jpeg");
    dispatcher.forward(request, response);
    ----Anilkumar kari

  • Accessing a dynamically  created control

    I have  created a method inside a class to create a combobox. here is my code
    package com.inf
    import mx.controls.*;
    public class ClsInf
      public function ClsInf()
    public function addDistDrp(source):void{
    var objDist:ComboBox=new ComboBox();
      objDist.id="cmbDist";
      source.addChild(objDist);
    in my AS file  I wrote
    var objInf:ClsInf=new ClsInf();
    objInf.addDistDrp(myTargetId);
    here I am able to create the combobox. But Now My problem is here how access the combobox so that I can fill data, disable it, set style inti it etc.
    suppose if I have to set a style into it . I am trying to access it by its ID like
    cmbDist.styleName="clearButton2"
    which showing error. how can I access . Pls Help!

    Thanks Adrian, This is working if I am calling the addDistDrop method directly But here is a twist . Inside that class I have written one more method ie
    public function createNavBar(source,type):void{
       switch(type)
        case "Dist":
         addStateBtn(source);
         addDistDrp(source);
         break;
        case "Block":
         addStateBtn(source);
         addDistDrp(source);
         addBlockDrp(source);
         break;   
        default:
        addStateBtn(source);
    and inside actionscript I have written
    var objInf:ClsInf=new ClsInf()
    var strType:String="Block";   
    objInf.createNavBar(myTargetId,strType);
    so here how can I get the cmbDist combobox

  • Is it possible to dynamically create form fields in PDF form?

    Hi all,
    I would like to dynamically create object like textbox, dropdown list from xml data. For example:
    When I receive following xml data:
    <field name="Check Box" type="selectbox"/>
    <field name="Text Field" type="textbox"/>
    I want to generate 2 form fields check box and text field with title "Check Box" and "Text Field" accordingly.
    Is it possible to do it in javascript for PDF form?
    Thank you and regards,
    Anh

    You cannot dynamically create objects on the fly like that but you can create interpret the XML and create an XDP file (which is the language of the template file) then bring that into Designer and create a PDF from that.
    Paul

  • Design Time and Dynamicall​y Created Controls

    I have a project written in VC6 as an MFC Dialog Box project. In a particular box, I dynamically create several (exact number depends on user entry) CNiGraphs. There are also a two CNiButtons that were created at design time using the resource editor. The problem I'm having is that when this dialog box is opened, a message pops up saying it's an eval version and the control will go inactive after 5 minutes. After waiting 5 minutes, the 2 CNiButtons go inactive (turn black), but the CNiGraphs continue to run. I have a valid licensed version of MStudio 8.1.6, but it appears that these 2 buttons don't recognize the license. There are also other design-time buttons in the project but those one's don't have a problem at all. When creating the dynamically creating the CNiGraphs I give them a valid license string, and I was wondering if there is a problem with having design time created and dynamically created controls in the same dialog box. Does anyone know?
    I can't remember, but I may have created those 2 CNiButtons when I was only using an eval license. (All the other were definitely create when I had a full license) Could that be affecting them? I seem to have a vague recollection of reading somewhere that design-time create controls check the license when they are created in the designer and store that license info in them. If that's the case does anyone know an easy way to update the license stored in the control? I'd rather not just delete it and re-add it as I'd like to avoid having to redo the tab order (unless someone knows how to easily insert something in the middle of the tab order instead of having to click through all the controls in the correct order?)
    Also, I'm not sure if this would affect anything, but the project was originally built with ComponentWorks 1.0, but we were forced to move to MStudio when we encountered some bugs in CW, so all the controls were originally CW Controls that have been converted to CNi Controls. I doubt this is it though as everywhere else we changed over the controls don't have a problem, but I'm willing to try suggestions.
    Solved!
    Go to Solution.

    Hi JC,
    I hope you had a good weekend!  I am glad to hear you are back up and running.  Adding the extra button was, in fact, what caused the updating of the license information for the other buttons, as you suspected.  After doing further research, I have found that the license information is stored wtihin the form for the control, and unless that control changes in any way (or in your case adding a new one to the project), it does not see any reason upon compiling to relink the license.  However, after changing the control and recompiling, it updates the linking of the license information, which resolved this issue in your case.  
    I hope this helps, JC.  Have a great day!
    Taylor G.
    Product Support Engineer
    National Instruments
    www.ni.com/support

  • My problem is very simple......firefox wont allow me save my downloads to any other location than my c drive....for example i have gone into options and set sav

    ''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/986549 /questions/986549]''
    my problem is very simple......firefox wont allow me save my downloads to any other location than my c drive....for example i have gone into options and set save downloads to my e drive....but still firefox keeps saving them to my c drive....i have 4 internal hard drives in my rig....and have tried saving downloads to them all.......why this is happening i cant understand....i have tried lots of suggestions....and have re-installed firefox multiple times

    hello, there's a general regression in firefox 27 that won't allow files to download directly into a root drive. please try to create a subfolder (like ''E:\Downloads'') and set this as default location for downloads...
    also see [https://bugzilla.mozilla.org/show_bug.cgi?id=958899 bug #958899].

  • TS4006 How do I add iphone4s to iCloud's "find my phone"? I turned on macbook pros system prefs to "find my phone", turned on iphone4s's "location services" and set up iCloud, etc. iPhone4s still won't show-but macbook does show. It receives gmail, weathe

    How do I add my new iPhone4s to iCloud's "Find my iPhone"? I followed the iCloud instructions and turned on Macbook Pros' system prefs to "find my mac", turned on iPhone4s's "location services" and set up iCloud, etc. In the "Find my iphone" tab of my new iCloud account (on my Macbook Pro) my iPhone4s still won't show—but my macbook does show. I had my iPhone4s set up at the phone store (2 days ago) and It receives gmail, my contacts and calender entries, the weather, etc. I installed the "Find iPhone" app from iTunes on the iPhone4s, synched to iTunes, even reset the phone, but the only device that gets located is my Macbook Pro. I can send a "sound" message to my Mac (and the Mac recieves it) but unable to see the iPhone4s from my Mac, let alone send any message. Any suggestions to get the iPhone4s device to appear in iCloud?
    Thank you in advance for your help.

    OK, I figured it out...I deleted the iCloud account off my iPhone (Settings, iCloud, Delete Account), and then added iCloud back in (Settings, iCloud, SignIn)....and then my email (iCloud) and "Find my phone" features worked! Nice!!!!

  • Tried to upgrade and after uninstalling and reinstalling several times, keep getting "procedure entry point could not be located in dynamic link library" followed by "iTunes was not installed properly"  Error 7.....Help, please??

    Tried to upgrade as instructed and after uninstalling and reinstalling (even back to the former iTunes which I was happy with)several times, keep getting message "Procedure entry point could not be located in dynamic link library"  followed by "iTunes was not installed properly"  "Error 7".    Help, please??

    Entry point errors can usually be fixed by deleting the offending dll, then repairing the component it is part of from the programs and features control panel. Unfortunately you neglected to include the detail of which dll is mentioned.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • Set location of components and reduce the size

    I want to resize JavaFX component and shrink the components which are next to it. Here is the result which I get:
    When I click on the angle of this component I can resize it down and right.
    http://i.stack.imgur.com/jqoNW.png
    The components which are next to it are pushed down and right. Part of them are behind the visible part of the screen.
    http://i.stack.imgur.com/rsi0L.png
    All components are placed in BorderPane,VBox,HBoxand againBorderPane. I don't want to allow components to move. I want to shrink them and use Scrollpane` when their size is reduced. Can you give me some hits how to solve these two problems?
    Ref javafx 2 - Set location of components and reduce the size - Stack Overflow

    I did something similar the other day. Based on the resizing of the scene I adjusted the position.
    widthProperty().addListener(new ChangeListener<Number>() {
        @Override public void changed(ObservableValue<? extends Number> observableValue, Number oldSceneWidth, Number newSceneWidth) {
            widthChange((Double)oldSceneWidth, (Double)newSceneWidth);
    heightProperty().addListener(new ChangeListener<Number>() {
        @Override public void changed(ObservableValue<? extends Number> observableValue, Number oldSceneHeight, Number newSceneHeight) {
            heightChange((Double)oldSceneHeight, (Double)newSceneHeight);
    You should be able to do something similar, when you add a change listener to your component and handle the resizing of the other components.
    What I don't understand is why you would need a scrollbar, when the components shrink down. I would think it would be the other way round.

  • Unable to set plant and storage location in Batch as required/mandatory

    Hi Experts,
    I am having a problem regarding field controls.
    I would like to make plant and storage location as mandatory/required in MSC1N,MSC2N,MSC3N and MSC4N.
    I have follow the path below
    SPRO-logistics-general-batch management-bath master-field selection batch master-assign field to field groups
    What i can see is field groups are being assigned to field name.
    My question is, where do we go to to set the field group?
    Thanks in advance!

    Hi Dex,
    You have gone to the right location.
    On 'change view field control for batch master record' against each transaction like MSC1, MSC2,MSC3 and MSC4 there are number of dots '............'.
    Double click on each dot against the transaction you want to modify. Each dot corresponds to different fields. Over here you can specify wheter you want to make the field required, optional etc.
    Hope this helps.
    Tarang

  • The procedure entry point NS_Set DLL Directory could not be located in dynamic link library Xul.dll. Firefox 4 downloaded and used yesterday won't start today. Any answers?

    I downloaded Firefox 4 yesterday. I used it and had no problems. I started my computer today and clicked the Firefox icon and got the message "The procedure entry point NS_Set DLL Directory could not be located in dynamic link library Xul.dll" .I tried to shutdown and restart and got the same message.I use Norton Security. Could it not recognize Firefox 4 and done this?

    '''Edit: '''That was a lot of questions. You might want to just re-run the Firefox 5.0.1 installer to see whether that corrects what appears to be a mismatch of files. I suggest saving the installer to the desktop, restarting Windows to ensure that all file locks are released, and then running the installer. As always, you can download from here: http://www.mozilla.com/firefox/all.html
    In your other post, you wrote "I just downloaded FireFox 5.0 today, and none of the icons on my desktop will open. This is the message that I receive. The procedure entry point NS_Set DLL Directory could not be located in dynamic link library Xul.dll."
    Can you describe what happens in these different scenarios:
    (1) Start Firefox with its own program icon. Error dialog, but Firefox runs normally after you dismiss it? Or no error? Or Firefox won't start?
    (2) Firefox not running, double-click shortcut to web site on desktop. Error dialog but Firefox loads the page after you dismiss it? Or Firefox doesn't load the page? Or Firefox never loads??
    (3) Firefox running, double-click shortcut to web site on desktop. Error dialog but Firefox loads the page after you dismiss it? Or Firefox doesn't load the page? Or Firefox dies??
    (4) Double-click unrelated desktop shortcut. Does this give an error as well?
    If you've noticed effects with links in documents or emails outside of Firefox, that could be a clue as well.

  • I've set my home and work location in contacts but siri still doesn't pick up either?

    I've set my home and work location in contacts but siri still doesn't pick up either?

    Call mum and dad are in the contact of yourself.
    You have to manually add it back or if you have contacts in your computer addressbook, you can sync them back.

  • Loading SWF into level and setting height/width/location?

    Hi folks, I am an old AS2 guy who gave up on Flash heavy coding when it switched to AS3. Always thought it was less intuitive, longer, and a brand new language and I got tired of trying to keep up when most of my clients did not want to pay for a full flash site. But I got this client...
    Here's the problem, I can load a swf into my main stage or into an MC , but I cannot find out anywhere how to set parameters or load into a level so it doesn't replace the current material or fix to a size that doesn't block my other material.
    I've gotten this far:
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    loadGallery();
    function loadGallery():void
    var l:Loader = new Loader();
    var req:URLRequest = new URLRequest("shortstack.swf");
    l.load(req);
    l.contentLoaderInfo.addEventListener(Event.INIT, galleryLoaded);
    function galleryLoaded(e:Event):void
    addChild(e.target.loader);
    What i want to do is load shortstack.swf into level 5, say, and fix it to the bottom left corner of the stage, and set its height to 400px and width to 980. 
    I have a an MC on the stage at those exact dimensions called placeholderMC, but I cannot figure out a way to target it, and the tutorials I've read have to do with loading on CLICK (I want it to load on enterFrame), and none of them tell me how to set parameters, as I could in old AS2.
    FWIW, AS3 may be more powerful, but AS2 was easier to understand.
    TIA,
    Jeff

    http://www.adobe.com/devnet/flash/quickstart/display_list_programming_as3.html

  • The Picture of OLE object  in the report  can't be printed, and how to sovle dynamic OLE object based on path

    <p>Hi, everybody,</p><p>  I have a problem which the picture in the report can&#39;t be printed.</p><p>I want to display some pictures  in the reports and print them.So I insert the picture as OLE object, select the graph format and set graph location fomular with the path of the picture which is stored in the local machine. I run the system and generate the report,  the picture is displayed correctly in the report, but when i print the report using ie&#39;s tool, the picture is gone and replaced with a little red mark. </p><p>I want to use the new feature of dynamic graph location about  the  crystal report xi version, but I don&#39;t know where I should put the picture into on the web server and what the path is . Because my web server is installed in the another machine.</p><p>I check the view source of html report and  find that the system searches the picture under  the crystalreportviewer11 folder on the web server.</p>

    Need to give the web server access to the folder

Maybe you are looking for

  • No sound on movies once burned to disk

    I have no idea if this is the correct place to ask my questions, but hopefully someone can help me. I made an iDVD project consisting of three movies imported from my camera and a slide show. I can view all three movies perfectly when I open from the

  • Groupwise.wsdl in Visual Studio Web Developer 2010 Express

    Hello, I'm trying to add a "Service Reference" in VS Web Developer 2010 Express by importing the groupwise.wsdl file. Everything looks fine when importing the file/adding the reference but when using it several things are missing (e.g. there is no Gr

  • EWA reports question regarding user

    Hello, we have implemened the EWA for our Portal 7.0 SP14 and for the ABAP 7.0 SP14. The EWA for the ABAP shows the cumulated users for the whole week. Is it somehow possible to get the information at which time over day how many users were logged in

  • My computer is having a real hard time with the up date

    My e mail stopped opening things. so I'm trying to find out what is wrong. I see an update is needed and I try but I get that error code. I have windows 8. (and hate it) what do I do?

  • My payment method is decline.plz help me how do I solve this?

    Plz help me for my payment method is decline..