PS
Prakash S
Syncfusion Team
August 12, 2002 03:09 PM UTC
Hi Mikael,
One approach that I can think of is to use a custom control that draws the marker triangle and parent this custom-control to your control (textbox/combo etc.,) requiring the mandatory marker. Setting the custom control's backcolor to be red and the window region to be equal to the marker triangle will ensure that painting is clipped to the triangular section and the parent control is visible in the remaining non-clipped regions.
I have attached a sample with a UserControl that shows a bare-bones implementation. For the ComboBox control, you might have to access the constitutent Win32 TextBox control and parent the UserControl to it, rather than directly to the ComboBox.
An added convenience feature would be to implement the custom-control as an extension-provider. This would make it a cinch to use within the designer.
Prakash
Syncfusion, Inc.
ME
Mikael Ericsson
August 29, 2002 10:58 AM UTC
Prakash,
many thanks!!!
Looking at your examples and improvising a bit,
we now have a set of controls that actually does
what we want!!!!
Best regards,
Mikael
> Hi Mikael,
> I have attached a sample with a UserControl that shows a bare-bones implementation. For the ComboBox control, you might have to access the constitutent Win32 TextBox control and parent the UserControl to it, rather than directly to the ComboBox.
> ...