Solved

Property page of ActiveX control in runtime

Posted on 2002-07-29
7
613 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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to open a new windows chrome resized and disabled the toolbar? 3 233
Magic Software info 18 156
enhance the following code 3 54
Firemonkey BASS_Init into a thread 17 85
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 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