> > var > > Obj: TControl; > > PropInfo: PPropInfo; > > > > begin > > PropInfo := GetPropInfo(Obj.ClassInfo,'Parent'); > > //почему здесь PropInfo = nil? > > end; > Видимо все дело в том, что свойство Parent является public, > а не > published. > Use ClassInfo to access the RTTI table that contains > information about the object type, its ancestor type, and > all of its published properties. > а можно ли как нибудь то public добраться? очень нужно...
> var > Obj: TControl; > PropInfo: PPropInfo; > > begin > PropInfo := GetPropInfo(Obj.ClassInfo,'Parent'); > //почему здесь PropInfo = nil? > end; Видимо все дело в том, что свойство Parent является public, а не
published.
Use ClassInfo to access the RTTI table that contains information about the object type, its ancestor type, and all of its published properties.
> > var > > Obj: TControl; > > PropInfo: PPropInfo; > > > > begin > > PropInfo := GetPropInfo(Obj.ClassInfo,'Parent'); > > //почему здесь PropInfo = nil? > > end; > Видимо все дело в том, что свойство Parent является public, > а не > published. > Use ClassInfo to access the RTTI table that contains > information about the object type, its ancestor type, and > all of its published properties. > а можно ли как нибудь то public добраться? очень нужно...
[Delphil] RTTI31.10.02 19:52 Автор: Cyril <sc> Статус: Member
> > > var > > > Obj: TControl; > > > PropInfo: PPropInfo; > > > > > > begin > > > PropInfo := > GetPropInfo(Obj.ClassInfo,'Parent'); > > > //почему здесь PropInfo = nil? > > > end; > > Видимо все дело в том, что свойство Parent является > public, > > а не > > published. > > Use ClassInfo to access the RTTI table that contains > > information about the object type, its ancestor type, > and > > all of its published properties. > > > а можно ли как нибудь то public добраться? очень нужно... Как это сделать посредством RTTI я не знаю
Что значит добраться до public ???
Что собственно говоря ты хочешь получить ???
> > > > var > > > > Obj: TControl; > > > > PropInfo: PPropInfo; > > > > > > > > begin > > > > PropInfo := > > GetPropInfo(Obj.ClassInfo,'Parent'); > > > > //почему здесь PropInfo = nil? > > > > end; > > > Видимо все дело в том, что свойство Parent > является > > public, > > > а не > > > published. > > > Use ClassInfo to access the RTTI table that > contains > > > information about the object type, its ancestor > type, > > and > > > all of its published > properties. > > > > > а можно ли как нибудь то public добраться? очень > нужно... > Как это сделать посредством RTTI я не знаю > Что значит добраться до public ??? > Что собственно говоря ты хочешь получить ??? Мне надо считать DFM и показать форму, кот. там описана (конечно количество контролов ограничено и заранее известно). Но через RTTI не удается добраться до некоторых свойств, например ComboBox.Items.Text
И еще вопрос: как работать с такими свойствами, как Glyph.Data ?