hideFromPainterControlPalette property of Control, where is

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

hideFromPainterControlPalette property of Control, where is

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:59 pm

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 ?

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: hideFromPainterControlPalette property of Control, where is

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:59 pm

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.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: hideFromPainterControlPalette property of Control, where is

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:59 pm

by jim.evas >> Mon, 4 Aug 2008 8:18:11 GMT

Awesome, thanks Allistar
Cheers


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 6 guests