Solved

Making ComboBox Sizable

Posted on 2002-05-10
3
329 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

761 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