Using Child Panels - cannot FOCUS events are lost?

Hi all,
I am working with some legacy code that my boss would like updated.  We have a background (parent) panel with many child panels that can come and go.  Typically, we have two panels - one with controls and one with a graph - visible almost all the time.  I have been trying to use FOCUS events to do some things, but one child panel (the control) appears to constantly get and lose focus.  I'm seeing this in debug mode with the breakpoints at the event code for the panel callback.  I'm careful to move the code windows away from this panel so the mouse isn't over it, but that seems to make no difference.  Do child panels get the events of the parent panels?  Also, the child panels do not appear to have max/min or close buttons in the title bar like standard windows.  Is there some way to put them there without taking the child panel out of the parent panel?
Other things:
1.  The boss would like to be able to resize a panel down to the point where clipping occurs, then automatically rearrange the controls so they line up vertically on one side of the panel and stop the resizing when they begin to be clipped.  I have seen this done in Java with the Layout Manager, but never in C. Any suggestions?  I know we can set a minimum resize value for a panel, but are there any easy ways to move the controls the way he wants? 
2.  An alternative is to make a toolbar with the controls inside, but he likes the windows icon tool buttons which I don't believe we have access to in CVI.  I know we can make a command button and import an image to it, but is there a package that has the standard windows tool buttons that we can use?
Thank you for any and all help.
Judy Harrigan

Hi Roberto Bozzolo
     For the parent panels and the children panels,I have some questiones to ask you ,could you tell me how I should do? Monthes ago ,I have asked the same question in NI.COM ,you  cansee the uir:http://forums.ni.com/t5/LabWindows-CVI/menubar-and-toolbar-enveloped-by-the-childpanel/m-p/1112563,
I use :GetPanelAttribute (mainPanel, ATTR_SYSTEM_WINDOW_HANDLE, &parent);
          GetPanelAttribute (mlsPanel, ATTR_SYSTEM_WINDOW_HANDLE, &child);
          oldparent = SetParent((HWND)child, (HWND)parent); to create an mainPanel and a childPanel.
For the mainPanel ,it contain the menubar and the toolbar,when I load the childPanel and move it,or
click the maximize,the menubar and toolbar for mainPanel enveloped by the childpanel.I want the
menubar and toolbar on top of the childPanel,can you tell  me  what I shoud do?
    you can see ,when I maximize the child panel,the menubar and the toolbar for the parent panel are enveloped by the child panel,also the title for child panel display under the parent title,this are very inaesthetic.and how I should do to make the child panel and the parent panel works as the windows style like the under-side example? 
    When click the maximize button for the child panel,the title for child panel disappeared and the "minimize button","renert button",and "close button" for the child panel display on the top right of the parent menubar.To all of this,how I should do,could you please help me?
Attachments:
result.JPG ‏91 KB

Similar Messages

  • Not able to extract performance data from .ETL file using xperf commands. getting error "Events were lost in this trace. Data may be unreliable ..."

    Not able to extract  performance data from .ETL file using xperf commands.
    Xperf Commands:
    xperf –i C:\TempFolder\Test.etl -o C:\TempFolder\BootData.csv  –a process
    Getting following error after executing above command:
    "33288636 Events were lost
    in this trace. 
    Data may be unreliable
    This is usually caused
    by insufficient disk bandwidth for ETW lo
    gging.
    Please try increasing the minimum
    and maximum number of buffers
    and/or
                    the buffer size. 
    Doubling these values would be a good first at
    tempt.
    Please note, though, that
    this action increases the amount of me
    mory
                    reserved
    for ETW buffers, increasing memory pressure on your sce
    nario.
    See "xperf -help start"
    for the associated command line options."
    I changed page size file but its does not work for me.
    Any one have idea, how to solve this problem and extract ETL file data.

    I want to mention one point here. I have total 4 machines out of these 3 machines above
    commands working properly. Only one machine has this problem.<o:p></o:p>
    Hi,
    I consider that you can try to use xperf to collect the trace etl file and see if it can be extracted on this computer:
    Refer to following articles:
    start
    http://msdn.microsoft.com/en-us/library/windows/hardware/hh162977.aspx
    Using Xperf to take a Trace (updated)
    http://blogs.msdn.com/b/pigscanfly/archive/2008/02/16/using-xperf-to-take-a-trace.aspx
    Kate Li
    TechNet Community Support

  • Events are lost when ical is quit

    When events are added to or deleted from iCal the changes disappear when the program is quit and restarted. When events are entered or deleted from a MobileMe Sync they stay. Any ideas?
    I first deleted the ical.plist file, and finally completely reinstalled and updated Snow Leopard.

    Could be a permissions issue or could be a sync services issue.
    Troubleshooting:
    1.) Backup all your data:
    Backup your computer Addressbook: http://docs.info.apple.com/article.html?path=AddressBook/4.0/en/ad961.html
    Backup your computer iCal: http://support.apple.com/kb/HT2966
    Backup your calendars on MobileMe.
    Follow http://support.apple.com/kb/HT4226
    Go to "backing up data" and then "Backing up from me.com/calendar"
    2.) Reset the computer's sync services and then restart the computer: http://support.apple.com/kb/TS1627
    3.) Test iCal  -- if the issue persists keep going
    4.) Download the Combo update: http://support.apple.com/kb/DL1361
    5.) SafeBoot the computer: http://support.apple.com/kb/HT1455
    6.) Install the Combo update while in SafeBoot
    7.) Test iCal

  • Focus events-Help

    What would cause focus events(gain, lost) or an _inputMethodTextChanged method not to fire. I have attached these methods to both combobox controls and a text field control, put break points in the event handlers, but the events were never executed as the fields were entered or exited. Other events such as rowset populated or action events associated with a button fired.
    Thanks,
    Peter

    Laura,
    Thanks for quick replies. I tried to set the breakpoints you suggested when the addFocusListener code was called and brought me into the oracle.dacf.control.swing.comboBoxControl code, but they appeared to be ignored.
    I did find something out though. There seems to be some position dependency in the source file for the event handling method. I have been building a Frame that is divided into master-detail sections. However, I have implemented several detail panels on top of a tabbedPane control. The code has become quite long and JDev intermixes new code with old code. In trying to find out why I was not getting focus gained or lost events on a couple of comboBox controls, I also added a focus gained event handler to an existing text field.
    JDev put the event handler for the text field at the bottom of the file. I put a break point in it but it never executed. However, a separate textfield that I had earlier in the develoment process attached a focus lost event handler too was still functioning. This event handler was in the middle of the file. I decided to move the new handler to the same position. Now it too started working.
    I tried to do the same thing for the combobox handlers but they still did not work.
    Finally I added a textfield tied to the same attribute as one of the comboboxes. I also added a focus gain handler for it. JDev put the handler at the end of the file and it worked.
    So I am not sure that I am any better off than I was because I still am unsure of the real diagnosis.
    Are there any limitations on name lengths for the handlers?
    Where should the handler be relative to the declaration of the combobox?
    Out of curiosity, I just added focus-lost handlers for an old combobox and for another old textfield. The handler for the combobox did not execute but the one for the textfield did. Both were added at the end of the file.
    I am running Jdev 3.1.1.2
    Thanks,
    Peter

  • ItemEvent - Event Type - Lost Focus Event

    Hi,
    Just want to ask whether what eventtype i should use for this situation.
    I want to do something when the itemcode in marketing document been key in correctly.
    At first i use the lost focus event. but i after i find that the lost focus event will keep on check where the itemcode is key in correct or not when it lost focus. Actually I want this effect but this will caurse the scoll bar cannot move.
    For example. when i put the cursor in item code column. then i go and scoll the bar. it will keep on fire the lost focus event make me cannot scoll the bar or the matrix become wrong disappeared. Any idea on it?
    Sorry i maybe not explain well. But i don know how to explain on it. Hope you all understand what I mean la.
    Regards
    Wong

    Hi Wong
    1st Try to split them
    2nd use beforeAction=true and ItemChanged = True
    If you have 2005/2007 version on the item code et_choose_from_list and validate are similar...
    If pVal.ItemUID = "38" then
    if pVal.ColUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE then
      if pVal.ItemChanged=True And pVal.BeforeAction = True then
      **** do something
      end if
    end if
    end if
    or
    If pVal.ItemUID = "38" then
    if pVal.ColUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_choose_from_list then
      if pVal.BeforeAction = True then
      **** do something
      end if
    end if
    end if
    Regards,
    J.

  • HT4410 I have just installed Windows 7 64-bit full version Home Premium using Bootcamp and cannot get access to the internet. I installed on a Macbook Air Mid 2012 with Mountain Lion. Are there some drivers that are missing from the Windows 7

    Dear Apple. I have just installed Windows 7 64-bit full version Home Premium using Bootcamp and cannot get access to the internet. I installed on a Macbook Air Mid 2012 with Mountain Lion. Are there some drivers that are missing from the Windows 7 bootcamp install download from Apple

    It is a Total Misconception that the Support files are installed when you are installing Windows, even if the USB drive that holds them is inserted in the system when doing the Windows install.
    You must always Run the Setup.exe files from the support files or run the drivers individually once Windows has finished installing and booted to the desktop.
    Also you really need to run the Boot Camp Control Panel Applet and check for updates as not all the newest drivers for full function of all the hardware is included with the original support download. That download is basically a generic version to get the system working and without doing the updates not everything will work properly.

  • How to catch cell lost focuse event of matrix

    Dear all
    can you tell me how to catch the cell lost fouc event of matrix.
    i want to check the value is entered the that cell, which is not greter than the extising value..
    thanks in advance......

    Hi
    For that you can use either validate or lost focus event
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            ' BubbleEvent sets the behavior of SAP Business One.
            ' False means that the application will not continue processing this event.
            ' Validate event
            If (pVal.FormType = 133) And (pVal.ItemUID = 38) And (pVal.ColUID = 1) And _
              (pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE) Then
                If (pVal.Before_Action) Then
                    'write your code
                End If
            End If
            'Lost focus event
            If (pVal.FormType = 133) And (pVal.ItemUID = 38) And (pVal.ColUID = 1) And _
             (pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS) Then
                If (pVal.Before_Action) Then
                    'write your code
                End If
            End If
        End Sub
    Hope this helps
    Regards
    Arun

  • Re:Lost focus event

    Hi all,
    I have written some code in lost focus event.But the lost focus event is not firing.i didn't set any filters.please help me to sollve my problem.
    Regards
    Mohana

    Hi,
    try this
    If pVal.ItemUid = "Uid" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS And pVal.BeforeAction = False  and pval.charpressed=9 Then
    end if
    '9'  is the item which gets fired when tab is pressed
    it's better to write keydown if ur using tab
    and coming to firing a event i gave the code before._refere to ur previous replie's_

  • My Panel cannot get focus

    Hi! I created a panel with Adobe Configurator2.0. Within the panel I used a HTML widget. But when I run the panel in Photoshop, the webpage in the panel cannot get the focus. Is it the way or I did something wrong? Thanks!
    James

    Do you mean the web page displays but you can't navigate in the page or.....?
    Have you enable allow extensions to connect to the internet under plug-ins in the photoshop preferences?
    Here's a test panel of this web page so it can work.
    ,MTSTUNER

  • Could someone please advise on my current problem? Apparantly I can no longer download tones to my phone or account to be used as such since the tones are being downloaded as songs that cannot be transferred or placed in the tones area for the phone...

    Could someone please advise on my current problem? Apparantly I can no longer download tones to my phone or account to be used as such since the tones are being downloaded as songs that cannot be transferred or placed in the tones area for the phone or in iTunes. Prior to the last update, this was always an option. I have also noticed that the Ringtones and Alert Tones are not showing up in my recent purchases as well to allow for me to place them back on my phone and there for require for them to be purchased again... Any help would be greatly appreciated!

    I've discovered that all tones purchased will be downloaded as ringtones, BUT they can be utilized as tones and assigned as alert tones on the iPhone...

  • Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.

    Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.
    Solutions?

    No, I never really found an easy solution.  I believe it is an issue with some corruption in the iTunes database on the specific device.  In my case, both my iPad and iPhone now show duplicate stream songs if viewed through iTunes on my Mac, but they show different songs.  A couple years ago I had a similar issue on my iPhone, and Apple support suggested I back up the phone, completely reset it, and then restore it from the backup.  It did work, so I imagine it would probably work for my current issues with the iPhone and iPad.  But resetting and restoring an iPad or iPhone always makes me a little nervous that something will get lost.  When I did reset/restore the iPhone, I do have to say, the restore process was 100% perfect and I did not lose any data at all even though Apple support said I might.  If you try to go that route, I would suggest backing the device up both to a computer through iTunes, and to the iCloud so that you have a double backup.
    None of this really resolves the issue with how the iTunes databases are becoming corrupted on the apple devices though, so it is very likely to happen again until they fix it.  I have been unable to determine if there were any specific actions or conditions which caused the corruption to happen in the first place.
    Might be worth another call to Apple support, or dropping in the local Apple store if you have one near by.

  • Child DC cannot Replicate to Parent DC, because of connection errors. MS PortQryUI shows that ports 3268 and 3269 are not listening,

    I started a support case with Microsoft to help me with raising the our domain Forest level because i received a message stating that there were Windows 2000 PDC still listed in the database. These PDCs were removed years ago. The tech saw all of the problems
    i was having with domain replication so that is where he started. running the MS PortQryUI shows that ports 3268 and 3269 are not listening, (TCP port 3268 (unknown service): NOT LISTENING) when run FROM a Child domain controller against the Parent
    Domain controller. Between the 2 Child domain controllers these ports are listening.
    The Windows firewall is not running on any of the controllers, i removed a virus protect client from all of the servers, although i didn't enable the firewall there either, but these ports are still not listening on the Parent DC.
    I need help debugging this. I am not very familiar with network sniffers so if i need to run one i'll need some guidance. This DC only has one NIC, all IP addresses are static, all servers are setup like this. All servers are in the same subnet, on the same
    lan, on the same cisco switch, there shouldn't be anything blocking this port from starting.
    I looked over other post that show this same problem, but they don't give a solution. If i am not using the Windows firewall why wouldn't these ports be open?
    Any ideas? web searches are all over the map on trying to find the reason for this.
    Bobby

    Try running the below command on the DCs that you think have the ports blocked or all the DCs.
    netdiag /test:ipsec /debug > c:\dcname-ipseclog.log
    Open that from the C drive and see if there is anything saying block or filters. 
    Also, just for kicks have you disabled the firewall service on the DCs? 
    And just for kicks have you tried enabling firewalls ports on all the DCs?  The KB is below
    http://support.microsoft.com/kb/555381/en-us
    Step 1 - netdiag results
    Step 2 - disable the firewall service on all DCs if step 1 was negative
    Step 3 - enable the firewalls on all DCs per KB 555381 if step 2 doesn't work
    Let us know how it goes!
    If it answered your question, remember to “Mark as Answer”.
    If you found this post helpful, please “Vote as Helpful”.
    Postings are provided “AS IS” with no warranties, and confers no rights.
    Active Directory: Ultimate Reading Collection

  • I am on a MAC OSX 10.9.5, and using LR 5.7.  I have lost the "Develop" Basic Panel (white balance & color saturation).  How do I get it back?  Every thing else seems to be in place.

    I am on a MAC OSX 10.9.5, and using LR 5.7.  I have lost the "Develop" Basic Panel (white balance & color saturation).  Every thing else seems to be in place.  How do I get it back?

    This is one of the most commonly asked questions in this forum. See this.

  • How to use getAncestor(n),getdescendant(child,child) in sql why they are use please give me example

    how to use getAncestor(n),getdescendant(child,child) in sql why they are use please give me example
    jitendra

    Below are a few examples that demonstrate these hierarchyid data type methods.  See the hierarchyid reference in the SQL Server Books Online for more examples of these and other methods (http://technet.microsoft.com/en-us/library/bb677193.aspx).
    --return a child of this node ('/1/')
    SELECT CAST('/' AS hierarchyid).GetDescendant(NULL, NULL).ToString();
    --returns a child of this node greater than child node '/1/' ('/2/')
    SELECT CAST('/' AS hierarchyid).GetDescendant(CAST('/1/' AS hierarchyid), NULL).ToString();
    --returns a child of this node less than chold node '/1/' ('/0/')
    SELECT CAST('/' AS hierarchyid).GetDescendant(NULL, CAST('/1/' AS hierarchyid)).ToString();
    --returns a child of this node greater than child node '/1/' and less than child node '/2/' ('/1.1/')
    SELECT CAST('/' AS hierarchyid).GetDescendant(CAST('/1/' AS hierarchyid), CAST('/2/' AS hierarchyid)).ToString();
    --return ancestor of node 1 level up from this node ('/1/2/')
    SELECT CAST('/1/2/3/' AS hierarchyid).GetAncestor(1).ToString();
    --return ancestor of node 2 levels up from this node ('/1/')
    SELECT CAST('/1/2/3/' AS hierarchyid).GetAncestor(2).ToString();
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • I used time machine, now my drive has failed and all my files are lost.

    i used time machine, now my drive has failed and all my files are lost. any one know how to get the max osx to see the drive again so i can retrive my files

    kabb30 wrote:
    i used time machine,
    Ok, check
    now my drive has failed
    Which one, the TM drive or the internal boot drive?
    all my files are lost.
    Where? on both drives or just TM or the internal drive?
    any one know how to get the max osx
    yea, if we knew more details of your machine and what you had before and later
    to see the drive again so i can retrive my files
    I don't know what drive failed.
    I'm thinking here your internal drive failed? Was it replaced?
    You have a blank internal drive and a TimeMachine drive and your asking how to reinstall OS X so you can restore from the TimeMachine drive?
    How are you getting here? Another machine or device and what is it?
    We need more details of your situation please.

Maybe you are looking for

  • The option "Show my windows and tabs from last time" no longer works and reloading Firefox does not fix it.

    I have been using this for as long as the feature has been available along with App tabs. All of a sudden it no longer works. I have tried resetting the option to something else and then back again. I've also tried reloading and reinstalling Firefox.

  • HP LaserJet Professional P1606dn Embedded Web Server Admin Settings

    Hello, I need help with my HP Laserjet Professional p1606dn. We have about 13 of these machines I can access the HP Embedded Web Server by putting in the IP address into a web browser. I have all of the printers set with a static IP address. I have s

  • Problem in sending mail with PDF attachment

    Hi all, Kindly check this code.. I neeed to send the smartform as a PDF attachment.. PDF generated form of smartform is generated successfully.. <b>but PDF  going as attachment is showing errors in opening</b> . Please help me to solve this issue as

  • On-Demand TV Download Service in the UK

    Apple users in the UK are now LOCKED OUT of the On-Demand band wagon which is under way! Here's part of an email I received from Channel 4, which is along the lines of a similar one to the one I received from BT: "Unfortunately we cannot say when the

  • PDF forms filled with IOS device

    Hi, we usually distribute pdf forms to be used via iPad. Actually we manually collect forms with Adobe X pro; Could we use formcentral to collect automatically forms which has been completed and sent via iPad? Thank you very much in advance Best rega