?
Solved

ActiveX control properties saving/

Posted on 2002-05-23
10
Medium Priority
?
149 Views
Last Modified: 2010-04-04
Hi, I have an activeX control, and it has a few different properties that I would like to set and save at design time, i.e. when the controls are placed on the Outlook form they are being used in.

At present when I set the controls property in design time i outlook, then publish the form the property is not saved with the form, can anyone help me here?

Do i have to set the controls properties through code each time I open the form, ie in the showform code?

Jason
0
Comment
Question by:JazC
[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
  • 5
  • 3
  • 2
10 Comments
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 7030829
hum
dunno, maybe the controls are initialized differently in your library
the properties should have the values as set in the designer
what controls are you talkin about ?
you could use RxLib and its TFormStorage
you simply select the compoenents and their properties that you would like saved
so whenever you change any property it's saved to a file or in the registry (depends on your setting)
... actually the saving is done on form termination
and the loading on its creation
you can also manually save/load the settings with SaveFormPlacement and RestoreFormPlacement :)
0
 

Author Comment

by:JazC
ID: 7030875
I have a ActiveX control that I am making, the properties are added to the control by me, do the controls properties get saved by the container app or do they need to be saved by code in the contaner app

I'm not really that great with ActiveX controls.

All i want to do is to create an activeX control that has three properties.

The control is to be used in a custom Outlook Form.

One property is bound to a property on the Outlook form.

Two properties are set at design time when i drop the control onto the Outlook form, and then right click the control and set the properties dialog and set the property values. Then I save the form for use in Outlook.

The bound property works correctly, but the other two properties do not save there values as set in the form.

Jason
0
 

Author Comment

by:JazC
ID: 7030879
OK i think I may have got somewhere with it now, I set the following tags in the type library editor for the properties.

Source
Bindable
Request Edit
Default Collection Element

Question, do i need all of these.

Also, now if i have more than one of these controls on the form, they both have the same settings and I can't make it so they have different settings?

Jason
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 12

Accepted Solution

by:
Lee_Nover earned 800 total points
ID: 7031294
you asking about RxFormStorage ? then the answer is 'you can' :)
every instance of a component has it's own settings

and I don't know that much about ActiveX controls :)
0
 

Author Comment

by:JazC
ID: 7035815
No, I need information about ActiveX controls

0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 7036050
heh ...
read again :)
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9006782
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from Lee_Nover

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0
 

Author Comment

by:JazC
ID: 9007850
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9007885
Hmmm, are you trying to make me look like a fool?

That refers to my post.

"Accept answer from Lee_Nover" is my recommendation to the moderators, and the action they will take if you choose not to make your own decision in regard to the outcome of this question.

Paul (pnh73)
EE Cleanup Volunteer
0
 

Author Comment

by:JazC
ID: 9007946
ahh sorry
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

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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 this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

649 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