[perl-win32-gui-users] "Smart" Combobox

2007-02-16 Thread Glenn W Munroe
I've been trying to implement a "smart" combobox dropdown list. To get an idea of what I'm talking about, compare the font dropdowns in Wordpad and Word. In Wordpad, type "ar" into the control and "ar" is what you see. Tab away of the control and it gets replaced with "Arial". That is easy enoug

Re: [perl-win32-gui-users] "Smart" Combobox

2007-02-16 Thread Glenn W Munroe
I think I just answered my own question :-) The parent combobox gets a CBN_EDITCHANGE event when the text in the edit control changes. That event doesn't appear to be implemented in Win32::GUI, but it can be "hooked" with the following line: $mw->cb->Hook(CBN_EDITCHANGE,\&CB_Change); Ag