POV-Ray : Newsgroups : povray.off-topic : Logic Simulator - Another version : Re: Logic Simulator - Another version Server Time
4 Sep 2024 01:16:02 EDT (-0400)
  Re: Logic Simulator - Another version  
From: Mike Raiford
Date: 22 Jun 2010 08:32:27
Message: <4c20ad5b$1@news.povray.org>
On 6/22/2010 7:20 AM, scott wrote:

>
>> I'm curious about which items you want to know more about.
>
> Mainly the property panel on the right, I suspect there is a
> ridiculously easy way to implement this in C#. My C# book only has a
> couple of chapters on the GUI stuff and only covers the basics.
>

Somewhat, .NET 2.0 added a lot of nice stuff, such as display names for 
properties and the like.

Most of what you see is done with TypeConverters, which allow you to 
manipulate how items are represented, and how items are edited.

Other items, such as the expansion of the property list when you change 
the number of inputs on the gates is a service provider implementing the 
ITypeDescriptorFilterService interface, which allows manipulation of the 
property lists and such.

The less simple one is dealing with the enum classes to display 
friendlier names for their values, but is still rather simple.

about 90% of what happens in the property grid is controlled by 
attributes. Its an amazingly flexible control.

-- 
~Mike


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.