|
-
Jan 10th, 2007, 10:47 PM
#1
Thread Starter
New Member
Please I need Help with this....
Hello, I was wondering if someone can help me?
I have created a skinnable Advanced Notepad application, I am using the DirectSkin OCX for the skinning... My Question is How can My Application load the last chosen skin on startup?
For example: I would like to use savesettings / getsettings to load the last used DirectSkin skin when my program is lauched lets say for an example I loaded a New DirectSkin theme (newtheme.uis) how can my program start with that theme? any help would be appreciated I am using VB 6.0 and DirectSkin ocx by stardock... If neccessary I will Zip all source files and email them to you if you can help me... I am completing this text editor for my college course and need this load last skin on startup feature implemented...
-
Jan 11th, 2007, 07:03 AM
#2
Re: Please I need Help with this....
-
Jan 11th, 2007, 07:41 AM
#3
Frenzied Member
Re: Please I need Help with this....
Just store (textf file, ini file, registry) the name of the skin or file when you choose it and load it when the program starts.
-
Jan 11th, 2007, 08:23 AM
#4
Re: Please I need Help with this....
Since you know that you would like to use GetSetting / SaveSetting, have you tried looking them up in the VB help? There are explanations and code examples for each.
zaza
-
Jan 11th, 2007, 08:28 AM
#5
Re: Please I need Help with this....
VB Code:
Option Explicit
Private skin As String
Private Sub Form_Load()
'change "default" so it will suite your default skin name
skin = GetSetting(App.EXEName, "Settings", "skin", "default")
End Sub
Private Sub changeSkin()
'change it here
skin = '...
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
SaveSetting App.EXEName, "Settings", "skin", skin
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|