Solved

Property page of ActiveX control in runtime

Posted on 2002-07-29
7
619 Views
Last Modified: 2010-04-16
How can I show the property page of activex control in runtime?
And the component editor of a component in runtime?

Thanks in advance.
0
Comment
Question by:joblato
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 200 total points
ID: 7186493
you need to query the object for the IID_ISpecifyPropertyPages interface
then get the Pages element
finally call the OleCreatePropertyFrame

an example :


 
const
    IID_ISpecifyPropertyPages : TGUID = '{B196B28B-BAB4-101A-B69C-00AA00341D07}';

var
    SpecifyPropertyPages : ISpecifyPropertyPages;
    CAGUID: TCAGUID;
    Code: Integer;
begin
          // filter is your COM object (activex control cast as IUnknown or sumtin)
          result := Filter.QueryInterface(IID_ISpecifyPropertyPages, SpecifyPropertyPages);
          if result <> S_OK then exit;
          result := SpecifyPropertyPages.GetPages(CAGUID);
          if result <> S_OK then exit;
          result := OleCreatePropertyFrame(0, 0, 0, FilterInfo.achName, 1, @Filter, CAGUID.cElems, CAGUID.pElems, 0, 0, nil)


should work
0
 

Author Comment

by:joblato
ID: 7195412
Lee Nover, thank you for your answer.
But do you know how i can show the component editor of a component in runtime?

And another question about activex.
How can i get the list of the properties and the values of these properties of any activex in runtime?.
0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 7195505
I haven't dealt with activex that much
an ActiveXs component editor is the property sheet (at least it should be)
to manually get the properties .. sorry I don't know that
amybe you should check out borlands pages http://community.borland.com/delphi
maybe someone posted an article on that
or the tlb import procedure of Delphi (when you import an ActiveX component Delphi creates a wrapper automatically)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:joblato
ID: 7196450
Lee Nover, Thank you very much for your help.
0
 

Author Comment

by:joblato
ID: 7196453
Lee Nover, Thank you very much for your help.
0
 

Expert Comment

by:CleanupPing
ID: 9342972
joblato:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 9966098
Hi!
No comment has been added lately and this question is therefore classified abandoned.

If asker wishes to close the question, then refer to
http://www.experts-exchange.com/help/closing.jsp

Otherwise, I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: Lee_Nover

Please leave any comments here within the next seven days. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

...Snehanshu
EE Cleanup Volunteer
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Suggested Courses
Course of the Month10 days, 13 hours left to enroll

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question