Re: [JEDI.NET discuss] Update
Status: Pre-Alpha
Brought to you by:
jedi_mbe
From: Marcel B. <mar...@xs...> - 2004-09-24 09:20:01
|
> Trouble in paradise! The Led controls stuff does not work correctly in VS.NET: > > * The first issue is the auto-generated code for SingleLed.LedStyle. It generates 'this.SingleLed1.LedStyle = new > SingleColorNormalLedStyle ...' which results in compiler error that the property, indexer, event cannot be accessed like that. > Manually altering it to 'this.SingleLed1.set_LedStyle(new SingleColorNormalLedStyle ...)' does work. No idea what is causing this > though. There are no custom CodeDomSerializers at work in this simple case, so it is generated by VS.NET/C# CodeDom itself. Still no idea what's causing this. SingleLed.LedStyle is the only property resulting in this error. Anyone that might have an idea what is causing it? > > * Second issue: The VS.NET IDE does not show the collection items in it's PropertyGrid. It does work if I place a PropertyGrid > control on the same form, build the project (after altering the above mentioned problem) and run it; I can simply add colors to > the MultiColorNormalLedStyle from the property grid control on the form. Of course the latter I knew already since it did work > from a Delphi test app as well. Question is why the VS.NET IDE property grid doesn't get them, whereas the Delphi Object Inspector > does. My bad; I forgot to add a reference to Jedi.Core to the solution, and that apparently caused the IDE to not find the TypeConverter and UITypeEditor used for inline collections. This also brought another issue to light: if a custom attribute for a declaration can not be found or causes an error, none of the attributes are applied. It is in reference to this important to understand that the use of the DefaultValue attribute with a Double-type value causes problems (in this case the BlinkInterval property had this problem, causing the Category and Description attributes to be missing as well). -- Marcel Bestebroer (Team JEDI) http://delphi-jedi.org Project JEDI Help coordinator JEDI.NET team coordinator |