Page 1 of 1

hideFromPainterControlPalette property of Control, where is

Posted: Fri Aug 07, 2009 2:59 pm
by ConvertFromOldNGs
by jim.evas >> Mon, 28 Jul 2008 5:21:35 GMT

hi, been looking to find a way to write a jadescript to go through all controls and set the hideFromPainterControlPalette property (?) to true (default is false). Not sure where this property exists (and if!), however looking at the ddb file created when extracting the control, it shows this as a Boolean with a value of either a 1 or 0. Any ideas ?

Re: hideFromPainterControlPalette property of Control, where is

Posted: Fri Aug 07, 2009 2:59 pm
by ConvertFromOldNGs
by Allistar >> Mon, 28 Jul 2008 20:56:29 GMT

vars
cls : Class;
clsColl : ClassColl;begin

clsColl := currentSchema.allClasses();
beginTransaction;
foreach cls in clsColl where cls.inheritsFrom(Control) and cls.rootType.schema = currentSchema.superschema do
if (cls.name[1:1] = "B") then
continue;
endif;
if cls.getDevControlTypes <> null then
write cls.name;
cls.getDevControlTypes.hideFromPainterControlPalette := true; endif;
endforeach;
commitTransaction;
end;
--
A.

Re: hideFromPainterControlPalette property of Control, where is

Posted: Fri Aug 07, 2009 2:59 pm
by ConvertFromOldNGs
by jim.evas >> Mon, 4 Aug 2008 8:18:11 GMT

Awesome, thanks Allistar
Cheers