Setting the Zorder of ActiveX Controls

Hi All,
Is there a way to change the Zorder of ActiveX Controls on a Vi's Front Panel? Some ActiveX Controls do not allow their Zorder to be changed, like the MSFlexGrid Control.
Thanks,
Ron

At the moment, you cannot move to the front or to the back activex containers on the front panel. The only workaround I can think of is to place the containers on a tab control. You will not be able to see both containers at the same time but you get the flexability of changing the order of the containers programatically.
Jeremy Braden
National Instruments

Similar Messages

  • I need a little help help with the Spreadsheet 9 ActiveX control

    Here's the situation: I want to import data from an Excel file to the MS Office Spreadsheet 9.0 ActiveX control on the LV front page. I can retrieve the data just fine but I can't get it to display in the control on the front page. I can select a range and when I try to write to the Value property I find that I cannot. The problem seems to be the Value property itself cannot handle 2-D data arrays. I can select a 2D range and write a single value which gets written to every cell in the range but when I read the data I get only the first cell in the range and an error if I try to caste the Variant output to a 2D array.
    I've noticed a Value2 property for the range when actually working with Excel but I haven't been able to determine where or if it exists for the Spreadsheet 9 control. I've attached a little test program to better show what I'm experiencing/talking about. Anyone have any suggestions on this? It seems like it would be possible or else why have the control there but I haven't found a way around it. Thanks in advance.
    Gary D
    Attachments:
    spreadsheet 9 test.vi ‏41 KB

    Jack J. wrote:
    Hey Gary,
    What version of MS Office does the 9.0 ActiveX control come with. I have version 11.0 here. I could get your program working on my computer but I had to reinitialize the activex control to the 11.0 control. I also had to reselect the properties. All the properties are essentially the same except Value. In this ActiveX version, I see the Value2 property (the Value property does not exist). And your method of reading and writing to the Value2 property handles 2D arrays.
    If you can tell me what version of Office you are using, I will try to find a computer with that version and try your program.
    Jack J.
    Applications Engineer
    National Instruments
    Most of the computers have Office 2000 which uses the Value property and the Spreadsheet 9.0 control. I too have been able to duplicate it ona computer with Office 2000 (Spreadsheet 11.0). I think it may just be a functionality of the Excel version though for some reason if I use Excel and go through the song and dance with the methods and properties, I get to the Value2 property.
    After writing that it seems weird that using Excel properties and methods gets me to the point where I can select the Value2 method and read/write accordigly, but with the Spreadsheet 9.0 control (which, I assume is simply embedding Excel in the app) I get to a different set of properties. Perhps Spreadsheet 10 (or 11) is on the computer but not showing up? That's the only sensible conclusion I can come to, though it seems weird for it to not show up on multiple computers which effectively kills that idea anyway.
    Anyway. thanks for any help you can provide.

  • What are the Alternatives to ActiveX Control

     I want to know the alternatives to ActiveX control as it is only limited to Internet Explorer. Is there any other method by which we can make a browser independent control. I want to embed a control into webpage which is to be executed on the client
    side(as it should interact with the server via FTP ). I want this functionality to be done by some embedded control in Webpage. I have C# code and I want to create a web based FTP client . And i have no interest of changing the entire code into Java so that
    applet can be created which is Browser independent.Tell me some other means of doing this at client side or guide me with some reference

    If you want to use C# code, then basically your only alternative is to write a
    Silverlight application. This will run in many browsers, but not ALL of them.
    Since you asked in the Training and Certification forum, let me suggest a training course that can prepare you for writing Silverlight: Course 10554:
    http://www.microsoft.com/learning/en-us/course.aspx?id=10554a

  • Programmat​ically set the default of a control

    Hi, I am working on an application where in one part of the program the user can apply a waveform, then in a different subvi is this waveform is applied/not applied the default value of a certain control will be either digital trigger or no trigger. 
    In short I want to know how I can set the default of a control based on the t/f of a boolean control.  I have attached a vi where I set the value, but in this vi, the value is permanent, I want to set the default but still allow the user to change the value if so desired.  Any help would be greatly appreciated. 
    Attachments:
    Programatically set value of control.vi ‏9 KB

    In short I want to know how I can set the default of a control based on the t/f of a boolean control.  I have attached a vi where I set the value, but in this vi, the value is permanent, I want to set the default but still allow the user to change the value if so desired.  Any help would be greatly appreciated. 
    DEFAULT values cannot be set at run time period- the default value is contained in the compiled code so changing a default value forces a re-compile obviously something that the Run Time Engine can't handle.  It is possible to load values from a file and apply those values to the control.  You can even make a decision at run time what value to load based on your boolean.
    Look through the help for the configuration file operation palatte you'll get some ideas.
    Jeff

  • SAPUI5: How to set the appearance of Table control?

    Hi there,
    I have a table on my app UI. Now I want simply show the table grid lines (currently, the vertical lines between columns are not shown). Any idea?
    Furthermore, how to set the width of the bord lines or even teh color of the lines?
    Thanks very much in advance!
    Dong Zhu

    Hi,
    The demo link provided by Chandra uses Blue Crystal theme, hence it shows the vertical lines between the columns of the table. If you are using Gold Reflection theme, then to get the vertical lines, you need to play with CSS. Add the below snippet of CSS between <head></head> of your html file.
    <style>
    .sapUiTableTr>td {
                  border-right: 1px solid #cccccc !important;
    </style>
    Thanks & Regards,
    Vishwa

  • Set the cursor on table control

    Hi All,
    I am trying to create a table control.
    Creation of table control is fine and i can update and save the records..But i am facing some strange problems.
    When i close my program and rerun it, the Cursor will be position on the default field of last run.
    How can we position the cursor on table control..Say to a particular row or columns?
    Also i am not able to interpret the meaning of
    Loop at itab with control control name cursor top_line/current_line.
    Does this means that if you use top_line, cursor will be placed at the top line and when you use current_line , it will be placed at current line?
    Regards
    Miesh

    Hi,
    Check this link for sample code for Table Control
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/library/webas/abap/abapCodeSamples/TableControlin+ABAP.pdf
    http://members.aol.com/_ht_a/skarkada/sap/table_control/table_control.htm
    Re: Table Control
    Thanks & Regards,
    Judith.
    Message was edited by: Judith Jessie Selvi

  • How to set the size of a control with the mouse ?

    hi all,
    i am writing a sort of ide (editor which creates applets very easy....) - for this purpose i need some hints from you guys:
    of course i need to create some controls like buttons...
    no prob - i am able to create buttons and place them at any place.
    BUT WHAT ABOUT THE SIZE ?
    ok, i have some ideas to realize this but what i want is a thick border arround the control with spots at each corner - when i place the cursor at one of these spots, my mouse cursor should change and it must be able to change the size of the control (while pressing and moving the mouse - you all know that from any ide).
    so how to do that?
    go on brains!!!
    THANX,
    andi

    I thought about creating dynamically resizable components, but gave it up as the effort seems too much for the benefit. I did a search for info on it and found a lot of people who wanted to do it, but not any who had actually done it completely. Here's some of my thoughts on the subject. You are right on about creating 'sizing handles', it seems to me the way to do this is to create your own container for any component (extend JPanel?) which can switch between no border and your new sizing border at some event. You will need to respond to mouse clicks on this border and follow the 'drag' event to find out where it was dropped. The java drag/drop events probably won't be of any use to you because each component will need an event handler. You need to catch them all.
    Finally, you need to figure out how to interact with some LayoutManager or write your own. Most LayoutManagers want to do their own resizing and you will have to deal with this. For example, GridBagLayout will not only resize all of the other components on the affected row and column, but unless you resize the other components, you won't be able to drag the top higher or the left lefter?

  • Cannot contact Windows Help and Support Centre as I receive the message "An ActiveX control on this page is not safe, your current settings prohibit running unsafe controls on this page". My ISP says this is a Mozilla incompatibility?

    I run Windows XPSP2, my ISP is BT Broadband, security suite is BT NetProtect Plus which is essentially a McAfee product. I am having trouble with a printer connection - when I turn it on I receive a message "USB Device not recognised". I have done usual things turned off, unplugged, replugged with identical lead that is known to be OK, uninstalled software and tried to reinstall from CD (cannot complete as message recived again as oon as I turn on printer). Final solution is to click on this message as it advises to obtain USB troubleshooting advice from Microsoft Help and Support Centre. This is when I get message in my original question which prevents me going further. I have accessed Windows/Contol Panel/Internet/Security and set level to medium but this makes no difference. Contacting my ISP, I was told this was an incompatibility issue with Mozilla. If so I have no way of finding out what my connection problem is.

    ActiveX is an Internet Explorer plugin system and will not work on Firefox or many other browsers. To use ActiveX you will need to use Internet Explorer.

  • I keep getting a system error. I have set all of my activex controls. I am using Internet Explorer 8

    I keep getting a system error. I have done everything the website said to do. I even tried to call at pay $39 for help. The website states they are open on Saturdays, the customer service rep just told me otherwise. I am a teacher that music have the flashplayer. Help, please.

    What is your Windows version?  32-bit or 64-bit?
    Internet Explorer: you must use the 32-bit version, regardless of your OS version.
    What is the exact error you get, and what are you doing when you get that error?

  • How to set Print...More Options...Current View in ActiveX control?

    I am using Visual Studio 2012 to develop an application that will open large PDFs (24" x 36") and allow the user to zoom to a particular part of the document. I want to give them a Print button on my application to simply print the Current View of the document to the default printer. I want limited customer options, so no showing the Print Dialog, etc... This will be for general customer use. I am trying to do this with the Acrobat Reader ActiveX control. If this cannot be done with the ActiveX control, I thins something I could do with the full Acrobat SDK? Thanks!

    The Reader control actually does what I want pretty well. I set the mouse wheel to allow zooming, the hand tool to drag the document around works easy and fast. I just need to turn off some of the Acrobat Toolbar options and set this Print Current View option.
    This is frustrating as back in Acrobat Reader 7 or 8 I think, you could set the Current View in the Print Dialog and the setting would stay until it was specifically changed. Now it reverts per print job, thus I now having to code against the Reader control, or other, to get around it, to keep the user from having to set this option each time (and the user will change frequently as they are walk-in customers)
    Anyway with this additional list of requirements, do you thihnk I still cannot do it with the Reader ActiveX control? If not, and I need to use the SDK, do you mean I would have to buy a full copy of Adobe Acrobat and install on that system for the application to work? If so, do I also need to buy another full copy of Adobe Acrobat for my development system so I can write code and test the application? If I need a full copy for the Dev computer, does Adobe have any kind of reduced pricing for a Dev version?
    Thanks!

  • What is the difference between Com Addin and Activex control

    When I searched about them individually, both are described as same.
    Could any one please explain what are they and what is the difference between them exactly.
    Thanks and Regards, Uday Kiran Reddy Project Engineer Technology Infrastructure Services, Wipro Technologies ____________________________________________ Mob: +91-900-061-2578 | Email: [email protected]

    Hello,
    Here is what Wikipedia states for ActiveX:
    ActiveX is a software framework created by Microsoft that
    adapts its earlier Component Object Model (COM) and Object
    Linking and Embedding (OLE) technologies for content downloaded from a network, particularly in the context of the World
    Wide Web.<sup class="reference" id="cite_ref-msdn1_1-0" style="line-height:1;font-size:11.19px;font-style:normal;font-weight:normal;">[1]</sup> It
    was introduced in 1996 and is commonly used in its Windows operating system.
    In principle it is not dependent on Microsoft Windows, but in practice, most ActiveX controls require either Microsoft Windows or a Windows emulator. Most also require the client to be running on Intel x86 hardware, because they contain compiled code.<sup
    class="reference" id="cite_ref-2" style="line-height:1;font-size:11.19px;font-style:normal;font-weight:normal;">[2]</sup>
    Many Microsoft Windows applications — including many of those from Microsoft itself, such as Internet
    Explorer, Microsoft Office, Microsoft
    Visual Studio, and Windows Media Player — use ActiveX controls
    to build their feature-set and also encapsulate their own functionality as ActiveX controls which can then be embedded into other applications. Internet Explorer also allows the embedding of ActiveX controls in web
    pages.
    And for COM:
    Component Object Model (COM) is a binary-interface standard
    for software components introduced by Microsoft in
    1993. It is used to enable inter-process communication and dynamic object creation
    in a large range of programming languages. COM is the basis for several other Microsoft technologies and frameworks,
    including OLE, OLE
    Automation, ActiveX, COM+, DCOM,
    the Windows shell, DirectX, UMDF and Windows
    Runtime.
    Office add-in is an assembly which implement the
    IDTExtensibility2  interface (COM).

  • Setting up and using an ActiveX control

    Trying to use an ActiveX control I added to my CVI project.  I use the ActiveX Controller Wizard to create an ActiveX control.  Then I tried using one of the ActiveX control functions but it requires I get an Object Handle.  The ActiveX Control Help says I can get the Object Handle by using GetObjHandleFromActiveXCtrl or an ActiveX method or property.  I looked through all the functions my ActiveX control has and could not find anything that would get an Object Handle.  The GetObjHandleFromActiveXCtrl function requires a panel handle which my project does not have or use.  Any suggestions on what to do next?
    The ActiveX control I am using is Mint Controls Build 5708 from ABB. 

    Hi
    New in ActiveX controls...I cannot help to recreate examples like Media Player (which works perfectly on my PC).
    Well I take the first method of"Programming with ActiveX Controls" topic:
    From the Tools menu of any LabWindows/CVI window, select Create ActiveX Controller. When you run the wizard in this manner, you need to select the ActiveX server that corresponds to your control.
    First I find two "Windows Media Player", which one ? Some trials lead me to the second one, where I retrieve functions names of the example (?).
    Next window : I let Instrument Prefix as "MediaPlayer", I browse a target fp file as "wmp" in my project directory, let the default compatibility options.
    Next window : I don't change any "Advanced Options", success...
    I find a new intrument "Windows Media Player", and 5 files wmp.fp/c/h/sub/obj. OK.
    But I want to see the control on a panel : I open my uir, go to "Create/ActiveX", select "create control".
    But what about "Validate servers" check box ? Il let it unchecked.
    I find "Windows Media Player" (only one) in the list, and the control appears on the panel, but the aspect is different from the example (some property changed?):
    If I edit the control, I find a property list that seems different from the example (even if I expand all) :
    Well it seems that controls are different ?
    I insert some lines in my code ("hello.mp3" is in the project directory):
    GetObjHandleFromActiveXCtrl (PanelHandle, PANEL_WINDOWSMEDIAPLAYER,&mediaHandle);
    MediaPlayer_IMediaPlayer2SetFileName (mediaHandle, NULL, "Hello.mp3");
    MediaPlayer_IMediaPlayer2Play (mediaHandle, NULL);
    Build OK. But nothing played. Error code from "SetFileName" function = -2147467262, error text : "Cette interface n'est pas prise en charge" something like "this interface is not supported" :
    Any idea ?
    Thanks in advance !
    JP
    (Windows XP/CVI2010)

  • How do I take a picture from usb camera using the Windows Image Acquisition Automation activex control in LabWindows?

    Hy!
    I have a faculty project in wich I
    have to acquire image from a webcam in Labwindows
    8.1 and to take a picture and save it in a file and to display it.I managed to acquire
    image from the webcam using the WIA automation activex controll but I
    haven't been able to take a picture and save it and display it .So i ask of you to
    post a tutorial or something that would help me to take a picture and save it and display it using the WIA automation activex controll in
    LabWindows.
    OS: Windows XP Professional X86
    Please help me!!

    Unfortunetly I do not have any experience with Activex.This is one of the codes I tried so far:#include "wiaaut.h"
    #include <cvirte.h>        
    #include <userint.h>
    #include "camm.h"
    static int panelHandle;
       int cid,eroare;
       CAObjHandle objh;
       WIAObj_IImageFile result;
       ERRORINFO eror;
    int main (int argc, char *argv[])
        if (InitCVIRTE (0, argv, 0) == 0)
            return -1;    /* out of memory */
        if ((panelHandle = LoadPanel (0, "camm.uir", PANEL)) < 0)
            return -1;
        DisplayPanel (panelHandle);
        RunUserInterface ();
        DiscardPanel (panelHandle);
        return 0;
    int CVICALLBACK OkCallback (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2)
        switch (event)
            case EVENT_COMMIT:
               WIA_NewIVideoPreview(panelHandle,"Video",45,45,&cid,&eroare);
               GetObjHandleFromActiveXCtrl(panelHandle,cid,&objh) ;
                break;
        return 0;
    int CVICALLBACK QuitCallback (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2)
        switch (event)
            case EVENT_COMMIT:
                QuitUserInterface (0);
                break;
        return 0;
    int CVICALLBACK pozaCallback (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2)
        switch (event)
            case EVENT_COMMIT:
               WIA_NewICommonDialog(panelHandle,"poza",45,400,&cid,&eroare);
               WIA_ICommonDialogShowAcquireImage(objh,&eror,2,1,131072,"{B96B3CAB-0728-11D3-9D7B-0000F81EF32E}",VTRUE,VTRUE,VTRUE,&result);
                break;
        return 0;

  • Can I set the size of a GUI control in centimeters?

    Hi,
        I know that I can get the resolution of the monitor, and with that set the display size of a control in a GUI. However, the real size (in centimeters) depends actually on the sizes (in centimeters) of the screen. Can I get that, programatically?
    Solved!
    Go to Solution.

    After writing #include <windows.h> at the beginning of the program, I wrote the following function called by the main.
    void GeometriaGUI(){
    HDC dc;
    double xPixelsPerCentimer, yPixelsPerCentimer,xPixelsPerMilimeter, yPixelsPerMilimeter;;
    dc = GetDC (NULL);
    xPixelsPerCentimer = GetDeviceCaps (dc, LOGPIXELSX) / 2.54;
    yPixelsPerCentimer = GetDeviceCaps (dc, LOGPIXELSY) / 2.54;
    xPixelsPerMilimeter= GetDeviceCaps (dc, HORZRES)/GetDeviceCaps (dc, HORZSIZE);
    yPixelsPerMilimeter= /*GetDeviceCaps (dc, VERTRES)/GetDeviceCaps (dc, VERTSIZE);
    //ReleaseDC (dc);
    SetCtrlAttribute (panelHandle, PNL_INSTR_2, ATTR_HEIGHT, (int)(40.0*yPixelsPerMilimeter));
    SetCtrlAttribute (panelHandle, PNL_INSTR_2, ATTR_WIDTH, (int)(40.0*yPixelsPerMilimeter));
     First, I eliminated the ReleaseDC line because it caused an error "Type error in argument 1 to `ReleaseDC'; found 'HDC' expected 'HWND'." at compile time.
    If I use xPixelsPerCentimeter to set the size of a control in the GUI, and set a value of 4*xPixelsPerCentimeter, I get, after measuring with a ruler, only 3.5 cm.
    If I use 40*xPixelsPerMilimeter,  I get a size of 1.8 cm. In both cases, 4 cm are expected.
    If I look at the values given the Windows sdk functions, the ones given by the resolution are atribute are fine (1280 x 800). However, the ones given by HORZSIZE and VERTSIZE attributes don't match what I measure physically. The sizes given are larger than the computer itself (a notebook with only 1 monitor).
    The idea is that the size of certain controls are constant across any monitor used. But the function, unfortunately, is not giving the expected results.

  • How can I set the time in Time-based Access control ??

    I live in Denmark, where we use the 24 hour system.
    So I want to set the time-based access control to from 7.00 in the morning to 2.00 at night, but every time the Timecapsule says wrong time format, I can use the night time 23.59, but thats not late enough.

    Set two controls.. 7 to 23.59 and 00.01 to 00.20
    This is common as the control cannot handle times longer than 1day.

Maybe you are looking for

  • KM Scheduler Task Cache issue

    We have created couple of custom schedulers in Enterprise Portal. These schedulers are worked fine in our QA and DEV environment. But when we move the same transport to Production the scheduleru2019s tasks are not showing up in KM scheduler list. But

  • Batch Determination issue -reg

    hi friends, while doing order confirmation at header level , when i went to goods movement  , inside that  i have selected  the material to be issued to production which should undergo 261 movement which is batch managed - and clicked on batch determ

  • Script to insert new master on every other page

    I've got an indesign document with 131 pages (front side of postcards). I need to add the back side of the postcard (Master) to every other page. I don't want to manually do this due to the time and that I will need to do this again and again. Does a

  • How can i get ical invitations to work with outlook users?

    how can i get ical invitations to work with outlook users? I can send ical meeting invitations but outlook users are having problems having the meeting show up in their calendar-.

  • Add Role  to a business partner

    Hello, I'm trying to add the role to a business partner using the BAPI_BUPA_ROLE_ADD_2. but it does not work. more precisely, the following happens . fill the required parameters, run the function BAPI_BUPA_ROLE_ADD_2.  it does not give errors, see t