OGLControlPanel inside a tab window?

Hi,
I'm trying to get a working OGL panel inside a tab, but I keep getting errors. According to http://forums.ni.com/t5/LabWindows-CVI/CVI-OpenGL-control-on-child-panel/m-p/98192/highlight/true#M7... it's just how it works, but there are ways around it.I've downloaded example http://sine.ni.com/devzone/cda/epd/p/id/1061 , but its not exactly what I need - it creates a child panel window inside main window.
So, my question is - is there a way to put a OGL panel inside a tab window?
Regards, Benji.

Dear BenjiF!
Sorry for the late reply, I tried to insert the OGL control on a tabpanel in CVI built in OGL example: Ogldemo.
I got the following error: 
NON-FATAL RUN-TIME ERROR: "ogldemo.c", line 259, col 5, thread id 0x00002478: Function OGLConvertCtrl: (return value == -1003 [0xfffffc15]). Only a canvas or picture can be converted into an OGL control
If you have a look on the help of OGLConvertCtrl >> Panelhandleparameter, you will see the following:
The panel has to be a parent panel and should not be the child of any other panel. The panel cannot be scrollable or resizable.
Maybe this restriction  is the reason, why is it not working.
3D Graph custom control could be an alternative, if it is suitable for your application. An example for this: https://decibel.ni.com/content/docs/DOC-6452
In the linked topic I found a useable workaround:
"The fact that the OGL control is only available on parent panels is not necessarily a problem with CVI. Instead, it is simply a limitation of the OGL control. Likewise, a limitation of the easy tab control is that it takes in child panels. I would suggest copying the final image to the tab panel (as mentioned by PaoloB), or possible use a separate panel to display your 3D images."
Some material related to OpenGL.
Please go through this KB: http://digital.ni.com/public.nsf/allkb/D369558F34AA3264862565FC007CBB33?OpenDocument
You can find built in examples in the folder: 
C:\Users\Public\Documents\National Instruments\CVI"version"\samples\userint\custctrl\cviogl
Best Regards,
Balazs Nagy

Similar Messages

  • How do I add photos to a tabbed window?

    If I add a tabbed window using the "Widgets" tab, I will want to place multiple photos within any of the tabbed windows I created.  HOWEVER, I am unable to find a way to upload/add photos to any of the tabbed windows.
    Typically, I should be able to find a way to "Import" a photo or image into each tabbed window.  However, I am not seeing that option anywhere?  I have hovered my mouse over the blue circled arrows and NOTHING shows up that allows me to import or upload an image.
    Can someone please help me.

    Hi,
    Are you referring to the Tabbed Panels widget in Muse Widget Library?
    If yes, you may just use the place option to add an image within any panel.
    From the File menu, select Place; and then click anywhere inside the panel to add the image.
    Hope it helps,
    Sonam

  • Just upgraded to lateste verison of Firefox and started using the Tab groups. Like them, but noticed that Save all bookmarks is now gone. How do I save all my bookmark stored inside the tab groups?

    I am using Firefox 6.0 (and still using windows XP ). I have a habit of opening tons of tabs and the new Tab group feature seems perfect for me. But I couldn't find anywhere to save all my tabs as the Save all bookmarks is now gone. How do I save all my bookmarks stored inside the tab groups?
    thanks

    I had to restart firefox because of an update and I saved all my tabs and when I restarted firefox it has lost all of my saved bookmarks...won't be using the new tab groups again..very disappointed

  • Scale Object with Panel, but what about inside a Tab control?

    The Scale Object with Panel option works very well for simple UI
    objects.  I like to use it for VIs that display tables or
    multicolumn listboxes, etc.  I am finding a limitation when I use
    the Tab control.  If I have a table or listbox in each tab, I
    would like them to scale with the panel.  I would also like the
    tab to scale.  It should look like an Excel workbook where all
    sheets scale with the window even though they are each on their own
    tab.  If I could only Group the various tables / lists with the
    Tab itself....
    This wouldn't be such an issue if the Bounds property of the
    multicolumn listbox was writable.  I can set the number of rows
    and columns, but column size can be variable and not uniform across all
    columns.  Also, that solution looks and behaves much different
    from the Scale Object with Panel approach.... not to mention the extra
    coding required.
    I'm guessing that this amounts to a feature request, but if anyone has a present-version workaround, I'd love to hear about it.
    See you at NI Week!
    Dan Press
    PrimeTest Automation

    Hi Kalin T,
    Thanks for your prompt reply. I am running version 8.01. My problem is that i cannot select "Scale object with pane" for the controls inside a Tab control if the Tab control "Scale object with pane" is turned on. I want both the Tab control and the controls inside to be scaled, for instance an Waveform graph or an textbox  when i resize my main window.
    Best regards,
    Mattis
    Attachments:
    Scale.vi ‏11 KB

  • Specifying items inside a tab view

    Someone please help, I can't figure this out:
    I'm building an app with Applescript Studio starting with the Table sample project. I had everything working until I messed with the interface moving things into tabs; now I don't know how to change the following line:
    set contactsDataSource to data source of table view "contacts" of scroll view "contacts" of theObject
    that's the original line that broke when I moved table into a tab (called "orders"). How do I change that line now that the table is inside a tab? I tried something like this:
    set contactsDataSource to data source of table view "contacts" of scroll view "orders" of view of tab view "orders" of theObject
    and variations of that, but no matter what I do, I can't seem to call it correctly. Any suggestions would be appreciated!

    I'm assuming that "theObject" is the window for the "will open" handler of the with.applescript.
    It may be easier to see the hierarchical structure of your user interface objects by switching the Instances tab of your nib file from icon view to outline view. To do so, click the icon for list view in the top of the right-hand scroll bar (it's the lower icon; the top is for icon view). Then disclose the various triangles for your objects.
    You almost have the right sequence. A tab view (NSTabView) consists of a series of tab view items (NSTabViewItem), one for each of the different tabs in the view. So, make sure your tab view item has an AppleScript name "tabViewItem" and then it should look like this:
    set contactDataSource to data source of table view "contacts" of scroll view "orders" of tab view item "tabViewItem" of tab view "orders" of theObject
    Hope this helps....
    Dual 2.7GHz PowerPC G5 w/ 2.5 GB RAM; 17" MacBook Pro w/ 2 GB RAM -   Mac OS X (10.4.8)  

  • Opening file in a new tab/window

    Hi,
    I have a form (HTML added through a widget) and a number of images on one page. I want each image to be a link to a file, where the images will be seen full quality. however, doing this takes visitors away from the page instead of opening a new tab/window - then clicking back means that the form data is lost - i.e. tickboxes are no longer ticked, etc.
    I cannot use the photo viewing page included in iWeb, as the pictures will then overlap with my form because the enlarged images are loaded on the same page.
    I hope this makes sense, and if anyone could help with opening files in new tab/window it would be great, or a way of opening a photo viewing platform in a separate tab/window directly from a click of one of the photos. I have seen other sites - http://www.aroundthebusch.com/Folio/London%20to%20Istanbul.html
    (this is not mine) where the photo viewing "platform" is IDEAL. I would love something just like this if someone could advise.
    i do not want the photos to link to an external page (which can be opened in a new window) as it would mean me creating separate pages for each picture, and linking them all... no way!
    Also, it would obviously be preferable to be quick to set up, but also to change. I would need to have multiple pages of many photos, each with the viewing facilities so it could not take a long time to set up. I may also need to add/delete some photos, so if all the linking work was done automatically it would be fantastic.
    Any help much appreciated,
    Thanks in advance, James

    If you open it in javascript and specify a height/width or location it should open in a new window.
    window.open("http://www.adobe.com", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400");

  • When I click on links in websites the links don't work unless I right click and choose open website in another tab/window. This is even a problem on the Firefox page.

    When I try to open a link on any page/website Firefox does not open the link. It doesn't even "work" at opening the link, it just sits idling. I have to right click and choose "open link in new tab/window" in order for Firefox to open the link. It doesn't happen 100% of the time but happens especially if there is a button or picture that must be clicked. Simple text links seem to work more often then button or picture links. One example provided below. When you click on the "launch Jumpstart" button it will not open unless you right click & open new. This also happens from my Yahoo! Email account, on Facebook, Cructhfield.com and other websites with "button" related links.

    I have the same problem but it appears that an add-on I'm using is causing the problem. Try opening Firefox in safe mode (which disables add-ons) Then try it. If that solves the problem, you need to disable all your add ons and enable them one by one to figure out which one(s) is causing the problem.
    [http://www.chowins.com David Chowins]

  • How to open my Ireport in new browser tab window

    hi
    I'm using Jdev v 11.1.2.3.0
    Isucced in conneting and calling (ireport) generated report from my adf application in pdf file format
    All what I want to do now is to call or open the report in browser tab window
    I can call it in the same tab window
    using this line code
    response.setHeader("Cache-Control", "max-age=0");
    or
    make attachment download
    using this line code
    response.setHeader("Content-Disposition", "attachment; filename=\"report.pdf\"");
    please help me in this last setp
    here is my code to call ireport
    after adding nessesary jar files and Datasource in wedlojic
    maybe it help others
    ============
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.sql.Connection;
    import java.util.HashMap;
    import java.util.Map;
    import javax.faces.context.FacesContext;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServletResponse;
    import javax.sql.DataSource;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.type.WhenNoDataTypeEnum;
    import net.sf.jasperreports.engine.util.JRLoader;
    import oracle.adf.model.BindingContext;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import oracle.binding.BindingContainer;
    //import oracle.adf.model.binding.DCIteratorBinding;
    public class mainNew {
    private RichInputText copyFrom;
    private RichInputText copyTo;
    public mainNew() {
    public void setCopyFrom(RichInputText copyFrom) {
    this.copyFrom = copyFrom;
    public RichInputText getCopyFrom() {
    return copyFrom;
    public void setCopyTo(RichInputText copyTo) {
    this.copyTo = copyTo;
    public RichInputText getCopyTo() {
    return copyTo;
    public String cb3_action() {
    String s =(String)copyFrom.getValue();
    String d =(String)copyTo.getValue();
    // copyTo.setValue(s);
    // DCIteratorBinding empIter = (DCIteratorBinding) getBindings().get("Employees1Iterator");
    // String empId = empIter.getCurrentRow().getAttribute("DepartmentId").toString();
    Map m = new HashMap();
    System.out.println(s) ;
    System.out.println(d) ;
    // m.put("eployeeId", copyFrom.getValue() );
    if (s!=null) {
    m.put("whr", "Where department_id ="+s); }
    if (d!=null) {
    m.put("whr", "Where employee_id= "+d);}
    if (s != null & d==null)
    { m.put("whr", "Where department_id ="+s);
    if (s==null & d!=null) {
    m.put("whr", "Where employee_id= "+d);}
    if (s!=null & d!=null) {
    m.put("whr", "Where department_id ="+s +" and employee_id="+d);}
    if (s==null & d==null) {
    m.put("whr", "Where 1=2");}
    try
    // runReport("empRep2.jasper", m);
    runReport("empsDyn.jasper", m);
    catch (Exception e)
    return null;
    public BindingContainer getBindings()
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    public Connection getDataSourceConnection(String dataSourceName)
    throws Exception
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup(dataSourceName);
    return ds.getConnection();
    private Connection getConnection() throws Exception
    return getDataSourceConnection("hrDS");
    public ServletContext getContext()
    return (ServletContext)getFacesContext().getExternalContext().getContext();
    public HttpServletResponse getResponse()
    return (HttpServletResponse)getFacesContext().getExternalContext().getResponse();
    public static FacesContext getFacesContext()
    return FacesContext.getCurrentInstance();
    public void runReport(String repPath, java.util.Map param) throws Exception
    Connection conn = null;
    try
    HttpServletResponse response = getResponse();
    ServletOutputStream out = response.getOutputStream();
    /// response.setHeader("Cache-Control", "max-age=0"); // opens in same page
    response.setHeader("Content-Disposition", "attachment; filename=\"report.pdf\""); // genreat adownload file
    // response.setHeader("Content-Disposition", "inline; filename=\"" + "Report.pdf\"");//opens in same page
    response.setContentType("application/pdf");
    ServletContext context = getContext();
    InputStream fs = context.getResourceAsStream("/reports/" + repPath);
    JasperReport template = (JasperReport) JRLoader.loadObject(fs);
    template.setWhenNoDataType(WhenNoDataTypeEnum.ALL_SECTIONS_NO_DETAIL);
    conn = getConnection();
    JasperPrint print = JasperFillManager.fillReport(template, param, conn);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    JasperExportManager.exportReportToPdfStream(print, baos);
    out.write(baos.toByteArray());
    out.flush();
    out.close();
    FacesContext.getCurrentInstance().responseComplete();
    catch (Exception jex)
    jex.printStackTrace();
    finally
    close(conn);
    public void close(Connection con)
    if (con != null)
    try
    con.close();
    catch (Exception e)
    }

    One solution would be to generate the report via an servlet which you then call with an af:golink with an target frame set to blank.
    For a sample how to do this check out http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/
    Timo

  • If I have several tabs/windows open and I go to a new page, it hijack several of my current windows with that same URL. How to stop?

    I frequently have a couple of windows with several tabs in each window open. For example, I always have a small window open in the corner of my screen with a time tracking program set up. Sometimes when I open a new tab or window and go to a URL (not thru a search engine, but just directly), it will "hijack" one or more of my other tabs/windows and plug in that same URL, losing whatever I had previously open. I've checked through all the prefs and I don't see why or how this problem is happening. What gives? I'm on an iMac using OS X Yosemite 10.10.1 using Firefox 34.0.5. HELP!

    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/viruses/disinfection/5350 Anti-Rootkit Utility - TDSSKiller]
    * [http://general-changelog-team.fr/en/downloads/viewdownload/20-outils-de-xplode/2-adwcleaner AdwCleaner] (for more info, see this [http://www.bleepingcomputer.com/download/adwcleaner/ alternate AdwCleaner download page])
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • I just updated to 4.0.1 and I get the "We're sorry. Firefox had a problem and crashed. We will try to open your tabs/windows when Firefox restarts" However, it just keeps popping back up, firefox never restarts!!!

    This morning I had a popup on my Windows XP PC stating that the 4.0.1 update was available. I upgraded. now, i receive the following error: We're sorry. Firefox had a problem and crashed. We will try to open your tabs/windows when Firefox restarts. You can submit crash report data, blah blah blah (which i have submitted several)
    But, firefox DOES NOT ever open. It just pops back up with that same report window, over and over.

    It is possible that there is a problem with the files [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    Deleting sessionstore.js will cause App Tabs and Tab Groups to get lost, so you will have to create them again (make a note).
    See:
    * http://kb.mozillazine.org/Session_Restore

  • In iTunes on my windows 7 PC, the Edit/Preferences dropdown window,some of the tab windows are not large enough to see all options that are available.  The borders of the window cannot be draged larger.  As a result, I can not uncheck or check some box's.

    In iTunes on my windows 7 PC, in the Edit/Preferences dropdown window,some of the tab windows are not large enough to see all options that are available.  The borders of the window cannot be draged larger.  As a result, I can not uncheck or check some box's on several of the preferences pages.  The Apple people at the store did not help.  I have lownloaded the latest version of iTunes and this is still an issue.  HELP.

    Is there really nobody else with this problem? Really?

  • How can i create a filechooser button inside the plugin window?

    Hi
    i'd like to create a filechooser button to load/save but inside the plugin window. Is it possible ? if yes how can i do that ?
    and i need the algorithm to be Mac/Windows compatible if possible
    thanks a lot
    *best regards*
    Jeff

    If by the "plugin window" you mean the dialog an automation or a filter plugin from the SDK sample code opens for you, you have to write platform-specific code using either Cocoa on Mac or regular WinAPI on Windows (e.g. by hooking GetOpenFileName()/GetSaveFileName() functions to a button you will add to the resource file or create dynamically). Take a look at any plugin that has a GUI (e.g. the Dissolve plugin) and you'll see that the GUI code is entirely platform-specific as there is no platform-independed GUI framework bundled with Photoshop anymore.
    Another option is to use some third-party cross-platform library such as Qt, but if you just need a couple of buttons and file selection dialogs it's probably not worth the trouble,.

  • Options Startup Show my Windows & Tabs from last time,but upon exit FF doesn't ask to save tabs & windows. When restarting FF I have a home pape,but no Bookmark tabs show. Why

    Upon starting FF and going to my Home Page, I have no Bookmarks or Tabs showing. I have to Re-load the Bookmark Tabs. My options at Startup are "Show my Windows & Tabs from last time" Also using the Firefox exit,it does not ask to save tabs & windows on Exit. I'm getting tired of adding Bookmark Tabs each time I want to use FF.

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/sessionstore.js
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.<br />
    Deleting sessionstore.js will cause App Tabs and Tab Groups to get lost, so you will have to create them again (make a note).
    See:
    * http://kb.mozillazine.org/Session_Restore

  • How do I always open email messages as "view message in new tab window"?

    Hi, right now my email displays all my messages in a small top window, and the viewed message in a small bottom window.  Then when this happens if I click the "view message in a new tab window" button on the displayed email, it will get rid of all my messages and just display the main message in a larger window.  I like that.  Problem is I have to click that button for each email that I open, and that can be a hassle when I have to open and read hundreds of email messages.
    Is there any way I can set the default settings of the email to always open email, by default, as "view message in a new tab window"?

    Ok, I looked through the help files and found that if I double click on a message in the main email window (and also click the upper left and upper right arrows to close those windows in the email folder), I almost get to read that entire message in a full window.  That's a lot better to know that.

  • How do I change the data used by a Waveform graph dependent upon which tab window is active?

    Hi,
    First I want to say thank you in advanced!!  Let me describe the situation a little bit.  My front panel VI (see attachment) has a tab control and on each tab window I have an intensity chart with a free-drag cursor.  Below the tab control window I am trying to display either the row or the column of data where the cursor is located, I can do this for each intensity chart individually.  I am trying to clean the block diagram up a little bit and instead of using 4 Waveform Graphs, I want to use only one, can the data that is displayed in the wave form graph is associated with which page is active on the Tab Control.  Can this be done?  And how can I do it?
    Thank you again,
    ~Daniel DeWitte
    Solved!
    Go to Solution.
    Attachments:
    Changing Waveform graph data.JPG ‏123 KB

    Simply wire the tab terminal to a case structure that switches the data going to the graph terminal
    (sorry,posting by phone, cannot look at your code...)
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Transporter Field in GR

    Dear Experts I want to input Transporter name in GR Screen at the time of MIGO. Is there any field in GR Screen to capture the Transporter name? Thanks

  • Integartion with ERP and SRM

    Hi, We are looking for integration of E-sourcing 6.0 with ERP 4.6C and SRM 3.0 with Extended classic scenarion. Is it possible to do the integration, if not can you suggest how the above scenario can be acheived? Is it possible to integrate the MDM 2

  • E-mails in waiting status

    Hi, We are testing for receiving e-mails in the CRM system(5.0,SP8) through telnet. The telnet test is successful. But are unable to see the mails in the SAP inbox.When we see the trace for incoming mails in se38 and run RSBCSIN report, the report sh

  • Active tab styles not loading

    Currently using the nightly 39.0a2 (2015-04-07) and my active tab styles are gone. I have no idea which tab is the currently opened one. I have tried with two different themes and same issue on both. Now tab mix plus offers active tab style but they

  • Have anyone seen this exception before??? setNull() feature not implemented

    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented Have anyone seen this exception before????? I see this exception when I use the "setNull()" function in the preparedstatement class.