Problem when form is dynamically added in a tab page

Following is the requirement:
=> I placed a button on a tabPage of tabControl.
=> On click of a button,
1. I created a Control object.
2. I created a Form object.
3. Initialize the Form Object.
4. Initialize the Control object and add it under the Form Object.
5. Initialize the TextBox object and add it under Control. (Keep some multiline text in the textBox and make it Multiline)
6. Set form.TopLevel = False
7. form.Show
8. form.Parent = TabPage.
=> When i run the above application/form, the focusing works wierdly in the textBox. I am not able to guess what the issue is.
Any help will be appriciated. :)

Following is the requirement:
=> I placed a button on a tabPage of tabControl.
=> On click of a button,
1. I created a Control object.
2. I created a Form object.
3. Initialize the Form Object.
4. Initialize the Control object and add it under the Form Object.
5. Initialize the TextBox object and add it under Control. (Keep some multiline text in the textBox and make it Multiline)
6. Set form.TopLevel = False
7. form.Show
8. form.Parent = TabPage.
=> When i run the above application/form, the focusing works wierdly in the textBox. I am not able to guess what the issue is.
Any help will be appriciated. :)
I don't know what initializing a control object and adding it under a formm object means. Or what initializing a textbox and adding it under control means.
Rather than setting a Forms parent as a tabpage somehow set the Form so toplevel = false and add the Form to a tab pages controls.
Even this is a poor way to do business. There's also such a thing as
MDI Forms. Although if you want controls on a Form then why not use controls with it? What would be a reason for creating separate Forms to place inside of tabpages? It sounds not well thought out design wise.
La vida loca

Similar Messages

  • Security problem when signed applet dynamically load plugins

    Hi!
    I have one problem : "security problem when signed applet dynamically load plugins"
    This is the scenario:
    the main program [app.jar]
    . contain applet and shared library (interface & implement of common class)
    . it is signed and run normally on browser
    . it can draw image loaded from other URL [ex] http://bp1.blogger.com/image.jpg
    . the image loader is in the shared library
    . dynamically load amazon.jar through URLClassLoader and reflection
    the plugin [amazon.jar]
    . search amazon product [ex] Harry Potter book
    . draw image on applet
    . use image loader from shared library, BUT CANNOT LOAD IMAGE
    The question: "Why it cannot load image, because the image loader is in the shared library which has been signed and working?" I tried to sign the amazon.jar too, but it did not work.
    Your reply would be very helpful. Thank you.
    Sovann

    hello. i have create a signed applet for A.jar. A.jar include two package B and C. the main applet class is within B.
    B need some classes in C to run the applet. but i got the error that class in package c are not found.
    what shall i do?

  • Adding a New Tab Page in Cprojects 4.0

    Hi
    We have added a new tab page by the method of Global Enhancement to Cproject we are successfull in getting the link in the tab page. But the page we had created thru webdynpro
    is not seen in the tab page it gives a blank page. We are using Cproject 4.0 can u help us.
    regards
    Suresh Nair

    Hi,
    this can be done via  transaction CRMV_SSC.
    Please review SAP help for further information regarding Screen
    Sequence Control under :-
    Screen Sequence Control of the Business Transaction -> Selection of the
    Screen Control Data
    or
    The Screen Sequence Control of the Business Transaction is documented in
    the online documentation under
    - SAP Customer Relationship Management
       - Business Transactions
         - Basic Functions for Business Transactions
           - Screen Sequence Control of the Business Transaction
    Regards, Gerhard

  • Skipping problems when 2nd audio is added

    I have a problem of movies skipping and long beachball delays when adding transitions etc. if I have two audio tracks installed.
    This even happens on small 15min. movies, but only when I add a second audio track.
    All is normal until I add an audio track and at the point when the track starts to play.
    I did not experience this with iMovie5 or before.
    I have 1gb ram with 18gb free on system disk and working from external 500gb Lacie FW800.
    The two 512mb memory sticks are Apple and system profiler says all is OK.
    I repair permissions twice a week, run Disk Warrier once a week and Tech Tools every two weeks.
    My OSX system is always current.
    example:
    I start movies with about 15min. clips & photos. All is well.
    When video is done then I add music from iTunes. When the movie arrives at the music it begins to skip and jump.
    Also, if I add a transition it takes about 12 to 20 seconds to finish while I watch the ball.
    I have cleared the system of all active applications just to see if ram is being used meaning I might need more than 1gb.
    Doesn't matter if I have 0 or 5 active in the background ... same problem
    When I finally get a project done and burn to DVD it plays just fine without skips.
    Harold

    I need to clarify my initial description when I used the term "skips".
    In reality I am experiencing pauses.
    The movie does not skip to another location, but rather pauses both video and audio during play on iMovie only.
    It takes a very long time to edit just 20 min. due to this problem.
    The burn is just fine.
    Harold

  • Page layout problem when using more than 3 iviews(with Tab Strip controls)

    Hello Experts,
    I am using MS Visual Studio 2005 and PDK 2.5 for .net.
    I have created four iViews where two iViews are having TabStrip control which are dynamically added to iView.
    When I add iViews to the page and view page  ,I am not able to see the content of iViews having TabsStrip controls.
    But I can see contents with individual iView.I am using 3 columns layout for this scenario.
    I have tried all possible layouts available in EP.
    How should I placed iViews in page so that contents of iviews having Tabsrtip control will be displayed.
    Any help appreciated
    Regards
    Sunil Pawar

    Hi Sunil,
              Try changing the isolation property of iView to URL(Isolated) from Embedded-->Save .Now assign these iViews to the page.
    For more info,
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/97/0be13dc2fd605ae10000000a11405a/content.htm">Isolation Property</a>
    Regards,
    Vinoth.M

  • Dynamically Adding/Editing/Deleting Tabs on Tabbed Panels

    I am using the tabbed panels and need to know how to
    dynamically create a new tab with javascript with some content
    inside ( and switch to it ). Also, I need to figure out how I can
    delete tabs at "runtime"? I have tried many things to do this, but
    everytime, it has been failing. I need a functions just like this:
    addTab(title, innerHTMLcontent);
    deleteTab(currIndex);
    Also, I think all of the Spry Widgets should have an easy way
    to dynamically change content.

    Hi,
    here is the js file. I am also attaching a sample (I named it
    as Spry.Widget.ExtendedTabbedPanels, may be you could change it).
    Let me know if you face any issues.
    ===================START-JS
    FILE==============================
    var Spry; if (!Spry) Spry = {}; if (!Spry.Widget) Spry.Widget
    = {};
    Spry.Widget.ExtendedTabbedPanels = function(element, opts) {
    Spry.Widget.TabbedPanels.call(this, element, opts);
    Spry.Widget.ExtendedTabbedPanels.prototype = new
    Spry.Widget.TabbedPanels();
    Spry.Widget.ExtendedTabbedPanels.prototype.constructor =
    Spry.Widget.ExtendedTabbedPanels;
    Spry.Widget.ExtendedTabbedPanels.prototype.addTab = function
    (tabname, tabcontent, position) {
    var tabs = this.getTabs();
    if((!position && position != 0)|| position >
    tabs.length)
    position = tabs.length;
    var newtab = tabs[tabs.length - 1].cloneNode(true);
    this.setElementNodeValue(newtab, tabname);
    this.getTabGroup().insertBefore(newtab, tabs[position]);
    var tabContents = this.getContentPanels();
    var newContentPanel = tabContents[tabContents.length -
    1].cloneNode(false);
    newContentPanel.innerHTML = tabcontent;
    this.getContentPanelGroup().insertBefore(newContentPanel,
    tabContents[position]);
    this.addPanelEventListeners(newtab, newContentPanel);
    this.showPanel(position);
    Spry.Widget.ExtendedTabbedPanels.prototype.removeTab =
    function(tabindex) {
    var tabs = this.getTabs();
    if((tabs.length == 1) || (!tabindex && tabindex !=
    0) || tabindex >= tabs.length)
    return false;
    var tabToRemove = tabs[tabindex];
    this.getTabGroup().removeChild(tabToRemove);
    var contentPanelToRemove =
    this.getContentPanels()[tabindex];
    this.getContentPanelGroup().removeChild(contentPanelToRemove);
    this.removePanelEventListeners(tabToRemove,
    contentPanelToRemove);
    if(this.getCurrentTabIndex() == tabindex) {
    if(this.getTabs().length <= tabindex)
    this.showPanel(this.getTabs().length - 1);
    else
    this.showPanel(tabindex);
    Spry.Widget.ExtendedTabbedPanels.removeEventListener =
    function(element, eventType, handler, capture)
    try
    if (element.removeEventListener)
    element.removeEventListener(eventType, handler, capture);
    else if (element.detachEvent)
    element.detachEvent("on" + eventType, handler);
    catch (e) {}
    Spry.Widget.ExtendedTabbedPanels.prototype.removePanelEventListeners
    = function(tab, panel)
    var self = this;
    Spry.Widget.ExtendedTabbedPanels.removeEventListener(tab,
    "click", function(e) { return self.onTabClick(e, tab); }, false);
    Spry.Widget.ExtendedTabbedPanels.removeEventListener(tab,
    "mouseover", function(e) { return self.onTabMouseOver(e, tab); },
    false);
    Spry.Widget.ExtendedTabbedPanels.removeEventListener(tab,
    "mouseout", function(e) { return self.onTabMouseOut(e, tab); },
    false);
    if (this.enableKeyboardNavigation)
    // XXX: IE doesn't allow the setting of tabindex
    dynamically. This means we can't
    // rely on adding the tabindex attribute if it is missing to
    enable keyboard navigation
    // by default.
    // Find the first element within the tab container that has
    a tabindex or the first
    // anchor tag.
    var tabIndexEle = null;
    var tabAnchorEle = null;
    this.preorderTraversal(tab, function(node) {
    if (node.nodeType == 1 /* NODE.ELEMENT_NODE */)
    var tabIndexAttr = tab.attributes.getNamedItem("tabindex");
    if (tabIndexAttr)
    tabIndexEle = node;
    return true;
    if (!tabAnchorEle && node.nodeName.toLowerCase() ==
    "a")
    tabAnchorEle = node;
    return false;
    if (tabIndexEle)
    this.focusElement = tabIndexEle;
    else if (tabAnchorEle)
    this.focusElement = tabAnchorEle;
    if (this.focusElement)
    Spry.Widget.ExtendedTabbedPanels.removeEventListener(this.focusElement,
    "focus", function(e) { return self.onTabFocus(e, tab); }, false);
    Spry.Widget.ExtendedTabbedPanels.removeEventListener(this.focusElement,
    "blur", function(e) { return self.onTabBlur(e, tab); }, false);
    Spry.Widget.ExtendedTabbedPanels.removeEventListener(this.focusElement,
    "keydown", function(e) { return self.onTabKeyDown(e, tab); },
    false);
    Spry.Widget.ExtendedTabbedPanels.prototype.setElementNodeValue
    = function(element, nodevalue) {
    var currentElement = element;
    var tmpElement = this.getElementChildren(element);
    while(tmpElement.length != 0) {
    currentElement = tmpElement[0];
    tmpElement = this.getElementChildren(tmpElement[0]);
    currentElement.innerHTML = nodevalue;
    ====================END JS
    FILE==================================
    ===================SAMPLE
    TEST===================================
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryTabbedPanels.css"
    rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryTabbedPanels.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryExtendedTabbedPanels.js"
    type="text/javascript"></script>
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
    <div class="TabbedPanelsTabGroup">
    <span class="TabbedPanelsTab"
    tabindex="0"><b>Tab 1</b></span>
    <span class="TabbedPanelsTab" tabindex="0">Tab
    2</span>
    </div>
    <div class="TabbedPanelsContentGroup">
    <div class="TabbedPanelsContent">Content 1</div>
    <div class="TabbedPanelsContent">Content 2</div>
    </div>
    </div>
    <input type="text" id="tabname" />
    <input type="text" id="tabcontent" />
    <input type="text" id="position" />
    <input type="button" value="add tab" onclick="add();"
    />
    <input type="button" value="delete tab"
    onclick="TabbedPanels1.removeTab(parseInt(document.getElementById('position').value));"
    />
    <script type="text/javascript">
    <!--
    var TabbedPanels1 = new
    Spry.Widget.ExtendedTabbedPanels("TabbedPanels1");
    function add() {
    var tabTitle = document.getElementById("tabname").value;
    var tabcontent = document.getElementById("tabcontent").value;
    var position = document.getElementById("position").value;
    TabbedPanels1.addTab(tabTitle, tabcontent,
    parseInt(position));
    //-->
    </script>
    </body>
    </html>
    ===================SAMPLE TEST
    END=======================

  • Find Control in Event Structure doesn't show the object when it is not in the frontmost Tab page [Bug Report, LabVIEW 2012]

    When you are looking for the control/indicator handled by a case in the Event structure, you can use the contextual menu item "Find Control" (doesn't distinguish between control and indicator, BTW).
    The result is that the control/indicator is highlighted on the FP. The problem is, if that control is in a Tab and specifically in a page of that Tab that happens to not be the frontmost, the only thing you'll see is marching ants, but no control:
    <=========== the wrong TAB page was shown. LV did not bother to switch to the relevant one....
    In other words, "Find Control" in the Event Structure doesn't switch the tab to the owning page. This is contrary to what happens if you right-click, say, the terminal of this control: the FP will switch to the owning Tab page.
    I'd call this a bug and this is definitely an annoyance (which most likely has been around since the creation of the Event Structure).

    I did not. Is there any better chance for it to be caught there by a NI eye than it is in the LV forum? I though these threads were deemed to gather bugs/features that had been already acknowledged by NI with a CAR number.
    I (and others!) wished there was something like this: http://bugs.sun.com/ or http://bugs.python.org/ for LabVIEW...
    I am just coming back from a short conference of scientists who quite uninamously ended up with the conclusion that LabVIEW was to be disregarded as a lab development environment because of maintenance problems (which could have been argued for any language in my opinion, although I think they meant spaghetti diagrams are the natural tendency of students who could not care less as they are not going graduate because of their LV skills or lack thereof), but I guess I could have added my grain of salt and added the complete opacity on bug and feature handling by NI.

  • Portal forms connecting to each other in tabbed page

    Well, here's a challenge...for me anyway.
    If the forms are created and they are published as portlets and in the tabbed page, is there a way to get
    the user to fill out 1 form and be passed automatically to the next?
    I haven't done this before, but am aware of the parameter concept a tad. The page the forms go to can accept parameters and the forms have a common field on each of them > but what is the next step?
    -does this code work better as javascript or pl/sql?
    -where exactly does the parameter passing event occur/get written?
    hope these basic questions are easy for someone....
    thanks in advance.
    mary

    Hello,
    I have just seen your question. I have a very similar question myself (without tabs), but I have no reply yet. In case you have a solution, could you kindly email me ([email protected]). Thank you, Trivan Pal

  • Fonts problem when Form generated on Solaris/AIX

    Hi All,
    I have build forms on NT but am generating the .fmx on SOLARIS
    the problem is the fonts which I see while development change
    when the Solaris generated forms are deployed on the web.I have
    tried generating on AIX platform also but the problem remains
    the same.What could be the possible reason?
    Please help.
    Thanx
    Mohit
    null

    Mohit (guest) wrote:
    : Hi All,
    : I have build forms on NT but am generating the .fmx on SOLARIS
    : the problem is the fonts which I see while development change
    : when the Solaris generated forms are deployed on the web.I
    have
    : tried generating on AIX platform also but the problem remains
    : the same.What could be the possible reason?
    : Please help.
    : Thanx
    : Mohit
    Hai Mohit,
    Well, I am not sure if my answer is correct, but I
    think the fonts in WindowsNT/95 are different when compared with
    the Unix based ( HP, Sun, IBM-AIX, SCO).For example the default
    font in WindowsNT/95 would be MS Sans Serif but you will not
    find this font in Unix OS. Then in that case if you generate the
    form in Unix then it will take the font that equal to or nearly
    equal to it. So if you have a form with MS Sans Serif font it
    would be converted in Courier New font as it the default font in
    most Unix OS. I think you can find some info. about this in
    Developer 2000 manuals.
    Ramesh Pinjala
    null

  • File upload problem when form consists of more than 5 elements

              Hi,
              I noticed some bizarre behaviour that only occurs when going through an ssl proxy
              link to httpclusterservlet on our clustered environment, does not occur without
              ssl proxy.
              I have two different multipart forms One of them has:
              1.one file upload field and 7 other input fields
              The other one has:
              2.one file upload field and 2 other input fields
              Number 2 works as expected,
              but number 1-- it appears as if my servlet is called twice and the stream is corrupt--
              for example it starts of with the boundary, but after the fifth element half it
              gets cut off and then my servlet is called again with the remaining elements leaving
              off with where it was cut off.
              I don't think this is normal behaviour.
              Any ideas?
              

              Hi,
              I noticed some bizarre behaviour that only occurs when going through an ssl proxy
              link to httpclusterservlet on our clustered environment, does not occur without
              ssl proxy.
              I have two different multipart forms One of them has:
              1.one file upload field and 7 other input fields
              The other one has:
              2.one file upload field and 2 other input fields
              Number 2 works as expected,
              but number 1-- it appears as if my servlet is called twice and the stream is corrupt--
              for example it starts of with the boundary, but after the fifth element half it
              gets cut off and then my servlet is called again with the remaining elements leaving
              off with where it was cut off.
              I don't think this is normal behaviour.
              Any ideas?
              

  • Problems, when creating roles dynamically

    Hi,
    I have an application, in which roles and users are created programatically.
    Now I have an EJB, that wants to call isCallerInRole() for every existing role.
    As I create the roles dynamically, I cannot specify all roles in the deployment-descriptor of the EJB.
    As a result I get a <010013> <EJB "MyBean" referenced an undeclared security role "myRole".> - warning,
    and isCallerInRole() always returns false.
    What do I have to write into the deployment-descriptor, to make the ejb aware of the dynamically created roles?
    Thanks in advance
    Christian Wulff

    What you can do, is create an authorization profile (transaction pfcg) with these objects, and assign them to the user you are using for the trusted connection.
    Kind regards,
    Mark

  • Problems when using the Dynamic processor effect?

    Thanks in advance for any help.
    I am using adobe audition 1.5 on a windows Xp pro machine. Whenever I go to process an audio file with the dynamic processor effect, (after it is processed) The audio file is broken up or corupted. Auition will let me "undo" and I can retry the same process over and over until randomly it works. Any idea's?????

    vit1 wrote:
    Operating system developers hope for your answer.
    This is a user-to-user community support forum. We are not RIM employees, but volunteers who enjoy assisting other users. RIM personnel rarely comment on queries posted here. You would have noticed this in the message upon registration.
    #1 - don't know. What format?
    #2 - Correct. Others have noted this.
    #3 - Notepad, the third party application? Or are you referring to creating an entry in Remember?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Redaction problem - when applied, boxes are created on all other pages

    We are redacting PDFs converted from PowerPoint. When we apply redactions, a block of color the same size and location of each redaction appears on every page. There is no background on the documents. I created redactions of different colors, and those different colors showed up on all pages when the redactions were applied.
    We can find no explanation or fix. A workaround is to make the redaction color white which blends into our document but we want to not have the blocks show up. There is a forum question from 2012 with this question but no answer.

    We are having the same problem as well. It does appear to be document specific and is reproducible. Could someone kindly look into this?

  • Problem when passing non English text to another amx page

    Hi,
    I'm using JDeveloper version 11.1.2.3.0 under windows 7, to deployed ADF Mobile application into android device,
    when i used the application to pass 3 input text value to another page (or object)
    i note that if passed the 3 text without any English character (means just Arabic,Urdo,Farsi ...)
    the next page will received only the last text and the others will be null
    that means the other texts Value Change Listener dose not work, they will work just in one case if i used English
    or any other special Character (Space bar, Back Space ...) in order to invoke that action
    Any help plz
    Note:- when i deploy it to iPhone device it is work fine
    Edited by: user2397713 on Jun 5, 2013 3:11 PM

    Hi,
    do you have a test case and instructions for me to try and run. Just create a simple page-to-page use case and send it in a ZIP file (renamed to ZIP) for me to test on 11.1.2.4 and file a bug if required. If you have a support contract, you can file a service request with support. My mail addres sis in my OTN profile, just click my name link.
    Frank

  • EBS 11i Problem when i try to login to the main page

    Hello
    I have tried to access to my login page for ebs 11i  but  the page looks like
    i checked the database status is up and open .
    thanks for reply

    Was this working before? If yes, any changes been done recently?
    Does AutoConfig complete successfully on all tier nodes?
    Please see:
    On 11.5.x, Login failed on "null Cannot Get Connection to the Database" after the Database Upgrade to10g R2(10.2.0.4) (Doc ID 1448586.1)
    Troubleshooting Login Problems in Oracle Applications 11i (11.5.2 – 11.5.10+) ( Framework and OSSWA) (Doc ID 342332.1)
    Thanks,
    Hussein

Maybe you are looking for

  • Help requried with outer joins

    Hi All, I neeed a query help can any one please help me getting this done, for the below query select trunc(assumed_time_sql) AS date1,sum(rp.rebate_due)as sum1 from mn_date_dim dd ,mn_rebate_payment rp,mn_prc_program prc,mn_structured_doc sd where t

  • CS3 or wait for CS4?

    Hi, I've read bits and pieces of news for CS4 like 64 bit support, new code or something and was just wondering if CS3 wont upgrade to CS4? I'm not the expert but I'm sure thats not the case. But I don't want to upgrade to CS3 if a CS4 update wont be

  • Cost planning-overall tab

    Dear Friend, I am doing cost planning for my project using t-code CJ40.I am not getting the period tab for OVERALL Valus. please suggest. Regards Prashant

  • Problem Related to ME23N?

    Hi All, I want to know the use of GR-Bsd IV check box in invoice tab in ME23N? where it will effect if I click on it?

  • Transport of queries from production to developement

    Hello BI Community, We allow ad-hoc query development in our production system. Yet certain queries are critical and must be "certified" so that they cannot be overwritten in an ad-hoc manner. The method for certifying a query is to transport it from