Solved

Making ComboBox Sizable

Posted on 2002-05-10
3
325 Views
Last Modified: 2010-04-04
is there a way that I can make a TComboBox sizable, and also remove it's border?

<Please supply code>

Thanks
0
Comment
Question by:PPaul
3 Comments
 
LVL 9

Expert Comment

by:ginsonic
ID: 7002814
listening
0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 7003128
dunno bout that, but you check www.torry.net for compos
if you don't want the components just check the code :)
0
 
LVL 9

Accepted Solution

by:
ITugay earned 150 total points
ID: 7004228
Hi PPaul,

to remove boreder:

begin
   MakeComboFlat(Combobox1, True);
......

procedure MakeComboFlat(ABox: TWinControl; AFlat: Boolean);
var
  HR: HRgn;
  NR: HRgn;
begin
  if ABox = nil then exit;
  GetWindowRgn(ABox.Handle, HR);
  if AFlat then
    NR := CreateRectRgn(2, 2, ABox.Width - 3, ABox.Height - 3)
  else
    NR := CreateRectRgn(0, 0, ABox.Width, ABox.Height);

  SetWindowRgn(ABox.Handle, NR, True);
  DeleteObject(HR);
end;

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
A short film showing how OnPage and Connectwise integration works.

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now