Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Property page of ActiveX control in runtime

Posted on 2002-07-29
7
Medium Priority
?
625 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 600 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

722 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