Recent

Author Topic: can i make control panel cpl with Lazarus  (Read 10141 times)

Lazarususer6789

  • New Member
  • *
  • Posts: 15
can i make control panel cpl with Lazarus
« on: April 27, 2010, 06:11:27 pm »
can i or can i not make a windows control panel cpl with Lazarus
and if so how
if anyone knows how to make one tell me or send it to me(upload some where and give me the link)
i want to use a vb5/6 ocx in the window sort of like my last post http://www.lazarus.freepascal.org/index.php/topic,9263.0.html
and can i use them on a windows pc without internet explorer or does Lazarus need ie for Active X support

i have never used  Lazarus before but i heard its like and looks like Delphi which  has activex support i tried a free trial once 

thank you if you help :)
_______________________________________________________________
I want to know what The Lazarus equivalent of vb6 clicking
Project > components >Browse >"using common dialog to get ocx or dll" >ok >click the new icon on the left draw a box with cursor Its done

What do I click to do the same thing in Lazarus?
If I have to edit it in note pad tell me what I need to edit

where do i put this info
Example http://ff24eva.0adz.com/vbp.7z
where do i put this information
classid="CLSID:920DFF5F-2EE6-4867-93A5-7BCF15B0F1C2"
Filename="Activex1.ocx"
id=Activex2
width whatever the window size is minus window border
height what ever the window size is minus window border

After I have made this I will look for a cpl applet example and put the form I have made in the cpl example and install it


btw if you think all activex is bad its not true some is because its just an exe that can not launch itself
« Last Edit: May 09, 2010, 01:18:22 pm by Lazarususer6789 »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11448
  • FPC developer.
Re: can i make control panel cpl with Lazarus
« Reply #1 on: April 27, 2010, 08:20:25 pm »
can i or can i not make a windows control panel cpl with Lazarus
and if so how

Best is try to find a Delphi example, and try with an as up to date lazarus (with FPC 2.5.1) as possible, since many COM/ActiveX bugs have been fixed recently.

Quote
i want to use a vb5/6 ocx in the window sort of like my last post http://www.lazarus.freepascal.org/index.php/topic,9263.0.html
and can i use them on a windows pc without internet explorer or does Lazarus need ie for Active X support

Active X and Active X applets in browsers are slightly different things. Lazarus does not need IE for activex.


marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11448
  • FPC developer.
Re: can i make control panel cpl with Lazarus
« Reply #2 on: April 29, 2010, 09:35:13 pm »
i am glad Lazarus does not use ie for Active X i will update Lazarus and look for a Delphi cpl example but how do i embed the Active X ocx in a Lazarus window what do i click to put in the Active X in the window
i a using  the example in http://ff24eva.0adz.com/vbp.7z for the ocx
will it be drag and drop point and click or do i need to put some code in to have the Active X in the form

Find out how to do it in e.g. C++ (on MSDN), and then translate that into FPC/Delphi (which should be pretty much 1:1 if you find a winapi, not MFC example)

 

TinyPortal © 2005-2018