🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14175

Re: Long text as hint in ComboBox?

#14175
From: KaKe
Date: Wed, 03 Sep 2003 11:01
43 lines
2458 bytes
Thanks for response,

Hint is shown only when combo box is not dropped down. I want to show active
line of drop-down window wider if it does not fit to the window area.

I solved the problem as next way. There is class named THintWindow in
C++-Builder. By using this it is easy to show long texts wider than drop
down window width. HintWindow can also wrap long text to the multiple lines.

Other way that I may use in my application is enlarge whole drop-down width
of combobox. This is easily made by sending message to the combo box as next
way.

::SendMessage(pComboBox->Handle, CB_SETDROPPEDWIDTH, pComboBox->Width + 50,
0);

So I have solved the problem and don't need help yet.

- KaKe -

Majo Petrik wrote:
> Why don't you just set hint property in ComboBox ?
> You have to have showhint set to true.
> Hint will show automatically
>
> M. Petrik
>
>
>
> "KaKe" <kai.kamarainen@NOSPAM.ouman.fi> nap�sal v spr�ve
> news:3f548fdb@newsgroups.borland.com...
>> Hi,
>>
>> I have a combo box which contains long texts that does not fit to
>> the drop down window. So I want to show long texts as a wide hint
>> window if mouse is over the text or the text is selected by arrow
>> keys. I have been used OwnerDrawFixed as combobox style and so I am
>> able to detect which item is just "active".
>>
>> Now I need help how to create this hint window? You can also suggest
>> alternative way to solve the problem.
>>
>> - KaKe -
Technical Details
Message-ID: <3f55ca24$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f548fdb@newsgroups.borland.com> <3f549511@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,66aae620ac4033d0
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-03 04:16:00 PST
From: "KaKe" <kai.kamarainen@NOSPAM.ouman.fi>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f548fdb@newsgroups.borland.com> <3f549511@newsgroups.borland.com>
Subject: Re: Long text as hint in ComboBox?
Date: Wed, 3 Sep 2003 14:01:55 +0300
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 192.107.216.66
Message-ID: <3f55ca24$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1062586916 192.107.216.66 (3 Sep 2003 04:01:56 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail