D
David Clegg
I need to have the ability to allow the user to change many colour
attributes of controls, including in many cases attributes that aren't
supported by the standard CF controls. While I've been able to kludge a
custom TextBox control to do what I want (don't ask, its really ugly
<g>), I'm a bit stumped as to how to do it for a ComboBox.
I gather I probably need to create my own ComboBox control by
descending from Control (basically re-inventing the ComboBox wheel then
extending from there), but all my attempts so far have been a bit off
the mark.
I guess what I'm really after is help with the code which implements
much of the standard ComboBox behaviour, so I can then extend it from
there. Otherwise I fear I'd be in a situation where I'd be doing much
unnecessary or sub-optimal coding which could've been easily avoided by
a gentle P/Invoke here or message handler there.
A custom ComboBox template would be ideal, but a push in the right
direction would be just dandy too. All my attempts so far have been not
quite right, so any suggestions would be greatfully received. And all
the examples I've found on the web are controls that extend from
ComboBox, which I don't think will work in this case as I'll have to
implement some custom painting.
--
Cheers,
David Clegg
(e-mail address removed)
Vote 1 http://cc.borland.com/codecentral/ccweb.exe/listing?id=21489
Now supports Google Groups searching with Dyna-extend(tm) technology!
QualityCentral. The best way to bug Borland about bugs.
http://qc.borland.com
"When I first heard that Marge was joining the police academy, I
thought it would be fun and zany, like that movie -- Spaceballs. But
instead it was dark and disturbing like that movie, Police Academy." -
Homer Simpson
attributes of controls, including in many cases attributes that aren't
supported by the standard CF controls. While I've been able to kludge a
custom TextBox control to do what I want (don't ask, its really ugly
<g>), I'm a bit stumped as to how to do it for a ComboBox.
I gather I probably need to create my own ComboBox control by
descending from Control (basically re-inventing the ComboBox wheel then
extending from there), but all my attempts so far have been a bit off
the mark.
I guess what I'm really after is help with the code which implements
much of the standard ComboBox behaviour, so I can then extend it from
there. Otherwise I fear I'd be in a situation where I'd be doing much
unnecessary or sub-optimal coding which could've been easily avoided by
a gentle P/Invoke here or message handler there.
A custom ComboBox template would be ideal, but a push in the right
direction would be just dandy too. All my attempts so far have been not
quite right, so any suggestions would be greatfully received. And all
the examples I've found on the web are controls that extend from
ComboBox, which I don't think will work in this case as I'll have to
implement some custom painting.
--
Cheers,
David Clegg
(e-mail address removed)
Vote 1 http://cc.borland.com/codecentral/ccweb.exe/listing?id=21489
Now supports Google Groups searching with Dyna-extend(tm) technology!
QualityCentral. The best way to bug Borland about bugs.
http://qc.borland.com
"When I first heard that Marge was joining the police academy, I
thought it would be fun and zany, like that movie -- Spaceballs. But
instead it was dark and disturbing like that movie, Police Academy." -
Homer Simpson