Making TButton into an ActiveX control

In order to explain the code generated by the ActiveX wizard, we first have to have an example control to examine. In the following sections...

In order to explain the code generated by the ActiveX wizard, we first have to have an example control to examine. In the following sections, I'll use TButton as a simple example. Applying the above steps for creating an ActiveX control to the TButton control yields the following steps:
1. Make sure TButton is installed on the palette. This is easy since it's the way Delphi comes installed.
2. Choose File|New, select the ActiveX page and choose ActiveX Control. Press OK. In the wizard dialog, choose TButton as the VCL class name. The wizard automatically fills in the ActiveX name as ButtonX, the implementation unit as ButtonImpl1.pas, and the project name as ButtonXControl.dpr. The control options are all unchecked. Accept these defaults and press the OK button.
3. The wizard informs you that since the current project is not an ActiveX project, it needs to create a new project. Answer OK. Now the wizard generates all the code for your project and control.
4. Build the project. There is now a file called "ButtonXControl.ocx" on your machine.
5. Register the control in the system, using the Run|Register ActiveX Server command. If successful, Delphi pops up a message saying "Successfully registered ActiveX server, 'c:\delphi3\ButtonXControl.ocx.'"

COMMENTS

Name

advice akhwat artikel bidadariku blogging cerpen dakwah desain diary download Ebook filsafat FKIST FLP gallery harisang ikhwan karya kegiatan Latar Belakang lirik manca mobile motivation nasyid organisasi prihatin Proposal Skripsi reviews sahabat sains sejarah SEO SEO Friendly SMA IT ABY Tips tokoh Training Dasar Falak Trik Tutorial Tutorial 2013 Pemula Website whatsapp
false
ltr
item
Akheed: Making TButton into an ActiveX control
Making TButton into an ActiveX control
Akheed
http://akheed.blogspot.com/2010/11/making-tbutton-into-activex-control.html
http://akheed.blogspot.com/
http://akheed.blogspot.com/
http://akheed.blogspot.com/2010/11/making-tbutton-into-activex-control.html
true
5893552427360672134
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy