Solved

Making ComboBox Sizable

Posted on 2002-05-10
3
330 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

732 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