Re: FORMS 5 and OCX Controls
Date: Thu, 01 Oct 1998 19:57:52 +0300
Message-ID: <3613B490.D71F46BE_at_dd.ru>
[Quoted] Here my answer to Venkatesh Malepati, I hope it will helps you too.
If you use Forms 5.0 instead Forms 4.5 try to do next steps:
- Add new OCX item (in the Layout editor click the ActiveX Control tool and drag out the area where you want to display Slider)
- In the Layout editor click right mouse button for pop-up menu and select Insert Object, click Create Control, select control you want (Microsoft Slide Control for example), click Ok
- Set OLE Class property of item to COMCTL.Slider
- In pop-up menu select Slider_Object->Property and set any properties as you want
- Select menu Program->OLE Importer and select Event Package (ISliderEvents) and MethodPackage (ISlider), click Ok. PL/SQL packages to interface to the methods (COMCTL_ISlider) and events (COMCTL_Slider_1_EVENTS) of the control will be created
- Edit COMCTL_Slider_1_EVENTS.EVENT2 procedure (/* Change */) like this: :Block.Item := COMCTL_ISlider.Value(:item('Ctrl_Block.OCX_Item').interface); where Block.Item is your text box for show changed value of slider and Ctrl_Block.OCX_Item is your OCX item
- Enjoy.
I hope this will helps everybody who want use OCX with Forms 5.0
Good Luck.
Venkatesh Malepati wrote:
>
> Hai Everybody,
>
> Please help me, how to work with slider control in forms4.5. I have
> imported slider control into the forms with OcX control, now I need to
> show its value in a text box , when the user slides through the
> slider. Manuals from Oracle does n't giving me much information. Please
> if any body know how to work with OCX controls, email me at
> venkatesh_at_teamqsi.com
>
> Thanks in advance,
>
> regards,
> Venkatesh Malepati
fwibble_at_my-dejanews.com wrote:
>
> I am converting a forms 4.5 application which uses the outline VBX to forms 5
>
> I want to use MSOUTL32.OCX but cannot get it to work. I can get a handle to
> it
> but cannot add any items during runtime. Whatever I try just results in
> unhandled
> exceptions but I cannot work out what is causing them..
>
> I'd be
> gratefulfor any help it anyone has any experience using this OCX, or
> OCX's in
> general within forms 5
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
-- Valery A. Sorokin ProSoft, Russia, Moscow, Information Systems Division Phone: +7 (095) 234 0636 (6 lines) FAX: +7 (095) 234 0640 E-mail: vsorokin_at_dd.ru OR vsorokin_at_prosoftmpc.msk.su http://www.dd.ruReceived on Thu Oct 01 1998 - 18:57:52 CEST