Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TComboBox : flat border but 3d button...

Status
Not open for further replies.

rcloutie

Programmer
May 26, 2005
164
CA
Hi all,

How to display a ComboBox with a flat border (but keep 3d button). I have found a way to hide the 3d border but it's not want I want :
-----------------------
SetWindowRgn(cbo.Handle, CreateRectRgn(2,2,cbo.Width-2, cbo.Height-2), True);
-----------------------
All this to fit a TComboBox within a cell of a TStringGrid without the effect of a lower combobox...

Thanks in advance,

Rej Cloutier
 
Can you not set the TComboBox height to something smaller instead? I think the minimum via the Object Inspector is 21 pixels. However, this can be overridden at run-time - see for example.

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
No, the effect of a lower combobox will still there.
The border is 2 pixels thick. Just want to make it 1 pixel thick...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top