Images in OCX controls

Hi,
I have a custom made button control (OCX) which can contain images and text.
"LoadPicture" method is used in vb for setting the image.
Eg:-
Private Sub Command1_Click()
CommonDialog1.ShowOpen
Set CoolButton1.Picture = LoadPicture(CommonDialog1.FileName)
End Sub
How can i do this in forms6i?
If u have sample forms using ocx controls with images pleaaaase forward..
Its very urgent. I have already spend lot of time on it.
Fahad

Its just a matter of using ActiveX control on Forms. Steps:
1. Go Main menu Programs -> OLE Importer. It shows the list of registered ActiveX controls. Select the class of your Button control. The wizard generates the Interface packages for Events and Properties.
2. AS u are saying, U want to use LoadPicture(), it is a Method. Syntax for using it is:
Interface_name.Method_name(:ITEM('Item_name').INTERFACE, parameter1, parameter2, ... ) ;
Here ITEM and INTERFACE are PL/SQL keywords.
U can get the Interface_name of your OCX from the Ole Importer generated package. It also has the interface declaration for all the methods supported by the control. Parameter1, ... are the different parameters required by the Method, if any!
Hope it helps U...
Regards,
Ritesh
null

Similar Messages

  • How to use "imgplot" to display image on a Control in VC++?

    I want to show a image on a static picture control on dialog by vc++, the function I used was a NI-IMAQ "imgPlot" to draw image on the control, beacuse it is easier and faster with capture card.
    imgPlot ((GUIHNDL)hFrameWnd, pImg, 0, 0, src->width, src->height,0, 0, IMGPLOT_MONO_8);
    I get the control's HWND by GetSafeHWnd() to set the first paprameter and set the second parameter with a buffer pointer, since I just want to test, so buffer data is not obtained by capture card, but from a file. No image display on the control, no errors display either, why

    I want to show a image on a static picture control on dialog by vc++, the function I used was a NI-IMAQ "imgPlot" to draw image on the control, beacuse it is easier and faster with capture card.
    imgPlot ((GUIHNDL)hFrameWnd, pImg, 0, 0, src->width, src->height,0, 0, IMGPLOT_MONO_8);
    I get the control's HWND by GetSafeHWnd() to set the first paprameter and set the second parameter with a buffer pointer, since I just want to test, so buffer data is not obtained by capture card, but from a file. No image display on the control, no errors display either, why

  • TabSheets using OCX Control

    Hi,
    I am trying to create a multirow tabsheet control using OCX. I am using "tabctl32.ocx" file to create the tab control.
    Can anyone give me where to start with:
    --I have registered the OCX control using REGSVR32.
    --Created the container in forms
    --Imported the associated methods and events using OLE importer.
    Now what should I do?
    Or Is there any way to create "Multirow tab sheets" using Form's deafault tab canvas
    Thanks in advance for the help.
    null

    Help me!!!

  • Using ocx controls on form6i (Crystal report 7 control)

    I want to call reports developed in crystal report 7.0 (oracle as a backend)
    I putted a ocx control on form and called now i want to call different reports from different push buttons.
    vinod

    Hi Ibai,
       Thank you for your interest in CrystalWave. I tried sending this info to the email address you gave but got an undeliverable message.
    The links are as follows:
    (please use Internet Explorer while accessing the download link)
    1. CrystalWave info: http://www.twbs.com/CrystalWave.html
    2. CrystalWave download: http://www.twbs.com/cwrfiv2004.asp (You need to fill in your info and the download will start.)
    Please do let me know if you are not able to access these links and I can setup a temporary link for you to download the program.
    Thanks,
    Gopal Viswanathan

  • Using OCX controls in oracle forms 6

    Hi,
    I wanted to use the ocx control (filenet idmviewer control) in my forms. I imported the control using the ole importer. But i dont know how to reference it or so to say, how to use it to access my documents in the repository.
    Any help would be very much appreciated.
    Thanks

    Hi,
    Thanks for your info. I tried that. But i could not complete. It gives me compilation errors.
    If you have any sample apps. can u forward it to me?
    Balaji

  • How to implement ActiveX (OCX) Controls

    Hi All,
    Please help me. I want to call a OCX control in forms 6i. Please let me know how to do it or any documentation is available.
    Thanks
    srini.

    1. You have to create ActiveX control item on your
    canvas.
    2. Use Program / Import library interfaces ... menu in your form builder to import the OLE interfaces to your application. this creates a package in you form where you can sepcify your PL/SQL code for OCX events.
    With Dev 6i we could not make Forms to automatically load the OCX control, the user has to do it by using the context menu. At least this is the case for Winddows 2000.
    Be carefull: OCX / ActiveX is not supported on the Web forms wether it is Forms 6i or 9i.

  • HOW TO use OCX controls with Java application

    hi
    Is it possible to use microsoft Ocx controls in java applications.

    Anything is possible. You might want to ask if it's a good idea, but look at some of the people who have asked before. It looks like there are products out there to help.
    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Btitle%3Aocx&col=javaforums&x=19&y=13

  • Third party ocx controls with oracle 6i forms

         I would appreciate if anyone can get the solution on how to work with the ocx controls on the oracle forms.i am doing the same thing and when I embed the ocx control on the form during design time and then execute it then the ocx control is lost during run time as I have to insert the object on the oracle form during the run time again and then how do I call the functions of the ocx ?please guide me at the earliest.thank you.

    Firstly upgrade to the latest patch of 6i, early version of 6i have a bug where OCX licence information is not correctly stored with the container, so in some cases the control will not instanciate at runtime.
    To call functions in the control, the simplest thing to do is to use the OLE Importer (MENU: Program -> Import OLE Library Interfaces). Choose the class of your control and Forms will generate you a PL/SQL package to call all the functions in the control.
    The rest is up to you - you have to know the API of the control you are using.

  • How to add external images onto a control and still be able to resize

    Hello,
    I'm a LabVIEW newbie.  I'm trying to customize the appearance of my VIs, and one of the things I like to do is to import external image and paste it onto the faceplate of the gauge indicator.  I've followed the instruction in the Labview application note using the control editor and was able to paste the picture into indicator.  But when I use it in the front panel and resize the gauge indicator, the image (added as a decoration) doesn't resize together with the indicator.  My questions are:
    1. How to add external images onto a control/indicator and still be able to resize the image automatically when I resize the control/indicator?
    2. How to "add" a new part to an existing control/indicator?  It looks like I can only customize/modify the existing parts of the control/indicator in the control editor. 
    Any help is appreciated.  Thanks.

    1/ Do not use the image as an added decoration. Instead replace part of the control with the image. Tis is illustrated in the attached vi : the arrow was pasted as a decoration, and also used to replace the slide cursor. Changing the control size do not affect the decoration, but changes the cursor.
    2/ What do you mean by adding new parts to a control. We have just seen that it was possible to modify a control. Now, if you want to include additionnal functionnality, that's another story. You can replace parts of the control, and this can give interesting results.  You can edit a slide control, and replace the numeric indicator by another control, including a numeric indicator, that you can replace with etc...
    But there, it still the same info displayed under different forms. If you want to have several independant functions on the same control, such as a string display and a boolean and a numeric indicator, then that's a job for a cluster...
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Slide with Arrow.vi ‏13 KB

  • I just bought a Dell Precision M3800 laptop - screen res 3840 x 2160  when I open photoshop the task bar and tools and layers etc are in 4pts size   I changed my % in my image in my control panel and if I go to open file the drop down boxes are in good pt

    I just bought a Dell Precision M3800 laptop - screen res 3840 x 2160  when I open photoshop the task bar and tools and layers etc are in 4pts size   I changed my % in my image in my control panel and if I go to open file the drop down boxes are in good pt sizes  how do I make the layers and tool bars bigger?  Please help@

    Windows will scale applications display or windows will not scale application display depending on how the application is coded.  Photoshop is coded in a way that its display is not scaled by windows.  Photoshop knows about your displays high pixel count not its resolution  so it uses its pixels  however it does not scale its UI to make it usable on your display.  Other application let Windows  scale their display output.   For example Microsoft default for is Surface Pro 3, 216 ppi display is to scale applications display up 150% so the surface pro 3 display which has 2160x1440 pixels a 216 ppi resolution look like at display with the user is using with 1440x960 pixels.  The Application works like the display is 1440x960 and Windows scale those pixels to the displays using the displays  2160x1440 pixels the effectively changing it resolution to 144ppi rather than the actual 216ppi.
    The reg update  and external manifest file  effectively tells photoshop its working on such a size display display some number of pixel wide and some number photoshop uses that as the display size  in turn Windows scale those pixels to use the displays 2160x1440 pixels efector lowing its 216ppi resolution.  Photoshop CC 2014 2X UI would be like using windows 200% option applications would be shown the are working on a display 1080x720 instead of the Surface Pro 3 2160x1440. Note that 1080x720 does not meet PS requirement of 1024x768.  Photoshop UI would not fit on the Surface Pro 3 display..
    Since you have a 4k display if you have CC 2014 you can use its 2x UI effectively Photoshop will be running on a 1920x1080 display and have half the resolution of you 4K display  3840x2160 pixels four native pixels are use as a single pixel.   1920x1080 pixels exceed PS requirement.

  • OCX controls in JDeveloper

    Hi,
    I am trying to find some information on using OCX controls from within Java/JDeveloper. Is it possible to do this and if so how? Are there any good reference sites that could help me?
    Thanks
    Dave

    I don't know offhand, but try searching on http://java.sun.com They may have something on there.
    Take Care,
    Rob
    null

  • Trouble with OCX Controls

    I place an OCX container in my form and follow the steps to create an OCX control as explained in the help files. When I execute this form the layout of the selected control dissapears (there is only the frame of the container) and any call to the imported class methods fails, but the "OLE class" property still remains the same.
    I'm using Forms 6i version 6.0.8.11.3.
    Has anyone the same problem?
    Thanks
    (and sorry for my english!)
    null

    Yes it seems like a bug. On a duplicated Track, you can change parameters, but when you start playback, they will be reset. THe only work around is to "force" them with an Automation Curve.
    THe ony other option is, as léonie pointed out, create a Track from scratch.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • Image display reference control still not working

    Has anyone looked at the Image Display referece control bug? I still can't pass an image display reference to a sub VI since the front panel control in the subVI generates this error:
    "The control requires an external library for its operation. This library is not installed, is not installed to the correct location, or is not loadable, or the library's version is not high enough."
    I know there's some cludgy ways around it (passing panel reference, demoting reference class to 'control' and back), but it seems like such a simple thing to fix that would already have been fixed unless no one's working on it.
    Attachments:
    ImageRefError.vi ‏37 KB

    Hello eaolson,
    Unfortunately, this bug (CAR# 3R1F8KRJ) has not been fixed in LabVIEW 8.5.  The attached VIs, however, do provide a workaround.  The main VI contains an Image control.  The sub VI has a Generic Control Reference Input to which the Image Control Reference is wired.  In the sub VI, a "to more specific class" function is used to get the full properties list for an Imagecontrol. 
    Please note that, according to R&D, this workaround is ineffective when built into an executable.
    I apologize for the inconvenience this bug may cause.  We are aware of the issue and working to resolve the problem.
    Best Regards,
    T. McCarty
    Attachments:
    Main.vi ‏40 KB
    sub.vi ‏10 KB

  • SAP OCX control

    Hi
    I have some in-house applications which is developed on Oracle Developer 6i. I want to connect my applications from SAP ERP and while doing so I am using the OCX control.
    I have generated the code and now able to establish the connection with the SAP. The connection has been establish and I have checked it through SM04 TCode. The established connection are coming over there. Now the problem is to extract data through some RFC.
    I want to know the steps which I need to follow for extracting data. My current research tells me that first I have to add the function module in the OLE argument list then set the export and import parameter, call the function and then retrieve the data.
    I have written the following code:
    vFuncControl      := ole2.Create_Obj('SAP.Functions');
    vFuncMdl          := SAP_ISAPFunctions.ole_Add(vFuncControl,'BAPI_MATERIAL_GET_DETAIL');
    vMatExp           := SAP_IFunction.exports(vFuncMdl,vOla_Var);
    vMatImp           := SAP_IFunction.imports(vFuncMdl,TO_VARIANT('RM225'));
    I am getting stuck in the export, import, calling and retrieving. I don't know what to pass and to which package. If anyone has any idea then please kindly share it.
    Thanks
    Imran

    Hello Imran,
    Whatever variables you want to pass to SAP system will go in export and wherever variables you are expecting from SAP system will go in import and also there will be tables option to exchange tables between calling program and SAP.
    So,
    vMatExp := SAP_IFunction.exports(vFuncMdl,vOla_Var);
    Means, you are setting value vOla_Var  to vMatExp of vFuncMdl.
    whereas,
    vMatImp := SAP_IFunction.imports(vFuncMdl,TO_VARIANT('RM225'));
    Means you are reading values into vMatImp.
    To work everything correct your import export & table values should match with the parameters defined in SAP for given function module.
    Hope this helps!
    Thanks,
    Augustin.

  • Replication OCX control

    I'm trying to use the Replication OCX control, but having run the "deploy" batch file, I still get the error
    "POLITE Replication Server"
    repcb8.dll - could not be loaded (126)
    Does anyone know where I can find this dll ?
    Thanks
    Kevin Fries
    null

    Hi I also have the same problem with oracle 9i lite. Did you have any solutions yet?
    My Configuration:
    Oracle 9i lite 5.0.2
    Mobile Server : configured as a Module on Apache 1.3.27
    Regards,
    Ravi Chand. Hi! Ravi,
    I am trying to get the
    Mobile Server : configured as a Module on Apache 1.3.27
    on Linux 7.2.
    Have you got it working , if so what Platform ? Please let me know.
    ajith
    [email protected]

Maybe you are looking for