From: Bunch, James <jabunch@fi...> - 2004-03-19 18:27:33
Fantastic! This works perfectly, thanks.
From: Laurent ROCHER [mailto:rocherl@...]
Sent: Friday, March 19, 2004 10:01 AM
Cc: Bunch, James
Subject: Re: [perl-win32-gui-users] Setting Maximum Text Entry For A
Actually, no Win32::GUI::ComboBox method do that, but you can limit text
using a SendMessage.
Something like that :
use constant CB_LIMITTEXT => 0x0141;
$combobox->SendMessage(CB_LIMITTEXT, $limit, 0);
> Hi there - I've used "AddComboBox" to create a nice, functional combo
> box and it is working great for the most part now that I've sorted out
> "addstyle" values to use to replace the old deprecated -style=> values. I
> wondering if there is any way to set a limit on the number a characters a
> user can enter into the box. Basically I want something like the
> setting used for a textfield. Currently, I'm using a poor workaround for
> this by disabling the horizontal scroll and limiting the actual width of
> combobox, but this allows a different number of characters in depending on
> which characters are used (it lets in more "I"s than "M"s for example).