Using TipOfTheDay with .ini file |
Post Reply |
Author | |
Zookeeper
Newbie Joined: 03 April 2008 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 28 May 2008 at 5:35pm |
According to http://www.codejock.com/products/controls/tour_6.asp the Tip of the Day dialog allows you to use either the Registry or an .ini file for storing settings. The help file (which I'm finding almost always doesn't give enough information) only talks about using a Registry entry. I want to be able to use an .ini file. Is http://www.codejock.com/products/controls/tour_6.asp incorrect or is there an undocumented way to do this?
|
|
nighthawk
Senior Member Joined: 11 June 2004 Status: Offline Points: 167 |
Post Options
Thanks(0)
|
The Suite Controls sample project shows the tip of the day using an ini file. It essentially just uses the following:
CommonDialog.HelpFile = App.Path & "\Help\Tips.txt" CommonDialog.ShowTipOfTheDay False The Tips.txt file is just a text file with a single tip listed on each line. |
|
Zookeeper
Newbie Joined: 03 April 2008 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
|
How is that an example of using an .ini file? The Tips.txt file isn't an .ini file. The sample application is still using the Registry to store information on whether the to display the dialog on program start and which tip was last displayed. It's stored at HKEY_CURRENT_USER\Software\CodeJock Software Applications\CODEJO~2\Tip.
According to http://www.codejock.com/products/controls/tour_6.asp "The control reads a simple tips.txt file that you create and display messages to your end users and stores its settings in your systems registry or .ini file." But the documentation says nothing about being able to store settings in an .ini file. |
|
Lodep59
Senior Member Joined: 03 April 2008 Status: Offline Points: 203 |
Post Options
Thanks(0)
|
Still no answer about this ?
I'm wondering how to use this control... I don't want to use the CodeJock registry key, so i need :
- A way to use my own registry key
- A way to use an ini file as presented in the link in the previous post
Can someone help me please ?
|
|
Product: Xtreme SuitePro (ActiveX) last version
Platform: Windows 7 Ultimate Language: VB6 SP6 (FR) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
What difference in ini and simple txt with lines ? You can specify all tips in code in HelpFile string
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Lodep59
Senior Member Joined: 03 April 2008 Status: Offline Points: 203 |
Post Options
Thanks(0)
|
You dont understand, i don't want to put my tips in an ini file !
I want to set the settings in the ini file (for example, the last tip shown, the "startup status" etc...).
For the moment these settings are set in the registry, not the easiest way to access it.
For example if i want to let the user change the "show at startup" setting, i need to change the key value in registry. It'll be easier to change an ini file...
|
|
Product: Xtreme SuitePro (ActiveX) last version
Platform: Windows 7 Ultimate Language: VB6 SP6 (FR) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Thanks, I see. We will consider it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |