|
-
Sep 16th, 2006, 12:37 PM
#1
Thread Starter
Addicted Member
Some issues regarding setup files.
Firstly is it possible for me to modify the setup files so I can add custom backgrounds, change form and button colors etc...
Secondly how can I introduce a registeration system where they have to put in their name, email. When they send their details it adds it MySQL database so I can inform them with further updates. And also adds it to the registery so that it can fill this form in. Here is a screenshot from it.

Thank you in advance.
Abdul
-
Sep 16th, 2006, 06:34 PM
#2
Re: Some issues regarding setup files.
-
Sep 17th, 2006, 04:48 AM
#3
Re: Some issues regarding setup files.
Try Inno Setup and the third party tools. They can do most of what you want if not everything.
-
Sep 17th, 2006, 09:54 AM
#4
Thread Starter
Addicted Member
Re: Some issues regarding setup files.
Do you recomment any?
I found this function in setup.vbp.
How can I change the background color?
VB Code:
Private Sub DrawBackGround()
Const intBLUESTART% = 255
Const intBLUEEND% = 0
Const intBANDHEIGHT% = 2
Const intSHADOWSTART% = 8
Const intSHADOWCOLOR% = 0
Const intTEXTSTART% = 4
Const intTEXTCOLOR% = 15
Const intRed% = 1
Const intGreen% = 2
Const intBlue% = 4
Const intBackRed% = 8
Const intBackGreen% = 16
Const intBackBlue% = 32
Dim sngBlueCur As Single
Dim sngBlueStep As Single
Dim intFormHeight As Integer
Dim intFormWidth As Integer
Dim intY As Integer
Dim iColor As Integer
Dim iRed As Single, iBlue As Single, iGreen As Single
'
'Get system values for height and width
'
intFormHeight = ScaleHeight
intFormWidth = ScaleWidth
If Len(ReadIniFile(gstrSetupInfoFile, gstrINI_SETUP, gstrINI_COLOR)) = 0 Then
iColor = intBlue
Else
iColor = CInt(ReadIniFile(gstrSetupInfoFile, gstrINI_SETUP, gstrINI_COLOR))
End If
'Calculate step size and blue start value
'
sngBlueStep = intBANDHEIGHT * (intBLUEEND - intBLUESTART) / intFormHeight
sngBlueCur = intBLUESTART
'
'Paint blue screen
'
For intY = 0 To intFormHeight Step intBANDHEIGHT
If iColor And intBlue Then iBlue = sngBlueCur
If iColor And intRed Then iRed = sngBlueCur
If iColor And intGreen Then iGreen = sngBlueCur
If iColor And intBackBlue Then iBlue = 255 - sngBlueCur
If iColor And intBackRed Then iRed = 255 - sngBlueCur
If iColor And intBackGreen Then iGreen = 255 - sngBlueCur
Line (-1, intY - 1)-(intFormWidth, intY + intBANDHEIGHT), RGB(iRed, iGreen, iBlue), BF
sngBlueCur = sngBlueCur + sngBlueStep
Next intY
'
'Print 'shadowed' appname
'
CurrentX = intSHADOWSTART
CurrentY = intSHADOWSTART
ForeColor = QBColor(intSHADOWCOLOR)
Print Caption
CurrentX = intTEXTSTART
CurrentY = intTEXTSTART
ForeColor = QBColor(intTEXTCOLOR)
Print Caption
End Sub
Last edited by asgsoft; Sep 17th, 2006 at 10:22 AM.
-
Sep 17th, 2006, 03:26 PM
#5
Re: Some issues regarding setup files.
 Originally Posted by asgsoft
Do you recomment any?
I thought I just Did...
BTW: The are where the comment says "Paint blue screen' would probably be a good starting place.
There is someone on the forum who would know. You might want to ask RobDog888 or RhinoBull.
Last edited by randem; Sep 17th, 2006 at 07:18 PM.
-
Sep 17th, 2006, 04:05 PM
#6
Thread Starter
Addicted Member
Re: Some issues regarding setup files.
I tried Inno Setup as you recommended and I found it great. But I would love to change the way it looks, colors etc
-
Sep 17th, 2006, 04:14 PM
#7
Re: Some issues regarding setup files.
For me its easier to modify the setup's background gadint color by editing the setupo.lst file.
Find the section named "[Setup]" and add an entry for "Color".
Ex:
[Setup]
Color=8
There are only the standard 16 color support for this. I forget which numbers relate to each color but shouldnt be hard to test out.
For the registration I would suggest looking at MartinLiss' example - http://vbforums.com/showthread.php?t=232146
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 17th, 2006, 07:19 PM
#8
Re: Some issues regarding setup files.
You can change the way Inno looks. You have to look in the help documentation. It is there...
Last edited by randem; Sep 17th, 2006 at 07:22 PM.
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
|