View Full Version : Newbie Registry probs..
Silo_97
03-01-2005, 12:04 PM
Ok .. have this kind of setup .. (gonna try to explain)
[x] Main files
[x]Sub category with a few packages
[] Package1
[x] Package2
[] Package3
[x]another sub with afew more packages
[x] Package1
[] Package2
[x] Package3
Ok .. how shall i do to get this together...
The packages all require a couple of Registry values..
and to get the setup to add them accordingly..
rather than adding All regvalues when not all packs are added ...
:huh
Silo,
You could use a script like this:
Properties1 = DlgSelectPackages.GetCategoryProperties(CTRL_SELEC T_PACKAGE_TREE, CTRL_CATEGORY_001);
Properties2 = DlgSelectPackages.GetCategoryProperties(CTRL_SELEC T_PACKAGE_TREE, CTRL_CATEGORY_002);
if Properties1.State == CB_CHECKED then
-- create the registry entries for this package
elseif Properties2.Checked == CB_CHECKED then
-- create the registry entries for this package
end
Adam Kapilik
Silo_97
03-02-2005, 12:25 AM
Ok.,. lets se if i got this right..
ctrl_select_package_tree, ctrl_category_001
this would be if an entire branch of packages is selected.. in my example
the first with a few sub packages.. .. ?? right..
Properties1 = DlgSelectPackages.GetCategoryProperties (CTRL_SELECT_PACKAGE_TREE, CTRL_CATEGORY_001);
--above would be for entire branch.. ADDONS1 ..??--
for addons2 / package4 is below correct..? ?
Properties2 = DlgCheckBox.GetProperties(CTRL_CHECK_BOX_07);
if Properties1.State == CB_CHECKED then
-- create the registry entries for this package
elseif Properties2.Checked == CB_CHECKED then
-- create the registry entries for this package
end
(packagetree)
[x] mainprog (required not changeable)
[x] ADDONS 1
[x] pack_001
[x] pack_002
[x] pack_003
[x] ADDONS 2
[x] pack_004
[] pack_005
[] pack_006
Silo_97
03-02-2005, 10:44 AM
ok.. gon nutz here..
been trying just to get the hang of this..
but no success..
In Select packages, screen. (on next tab)
i have
Properties2 = DlgSelectPackages.GetCategoryProperties(CTRL_SELEC T_PACKAGE_TREE, CTRL_CATEGORY_002);
if Properties2.State == CB_CHECKED then
Dialog.Message("","Cat2 selected")
else
Dialog.Message("","Cat2 not selected")
end
shouldnt this promph me with diffrent
messages depending on Categorys selected .. .
i get the same message, , no matter what is selected,..,
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.