That actually did it!  Thanks.    I have so much time spent on this
application that converting it to use GUILoft would not be an easy
option.   I am however, using GUILoft for all new projects.  By
autofill, I mean that if I have five lines in the Combo which start with
"i", if I put focus on the combobox and press "i", the combobox
populates the first entry which starts with "i".   If I press "i" again,
it populates the second entry with "i".  If, for example I am on the
last entry which starts with "i", and press it again, it populates the
first entry again.   


Anyway, Thanks for the help!

Joe Frazier, Jr
Technical Support Engineer
PeopleClick
919-645-2916
[EMAIL PROTECTED]
 


-----Original Message-----
From: Johan Lindstrom [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 4:54 PM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: Re: [perl-win32-gui-users] Combobox


At 15:52 2001-09-27 -0400, Frazier, Joe Jr wrote:
>What are the options for Combobox?  I have two applications which use a
>combobox.  One created manually and one using GuiLoft.  The one with
>GuiLoft does an an Autofill, however, the one made manually does not.

Eh... what is an Autofill?


>Example:
>
>$Window->AddCombobox(
-snip-
>    -addstyle  => WS_VISIBLE | 2 | WS_VSCROLL,
>);

This looks like it is a combo with style CBS_DROPDOWN (the 2). In The
GUI 
Loft, that is analogue to setting the Type property to "drop combo".

But from your description of how The Gui Loft version works, the Type 
property is set to "drop list". The Win32::GUI code would look like
this:

     -addstyle => 0x0003,                #CBS_DROPDOWNLIST

The third type of Combobox is Type: "simple combo", or

     -addstyle => 0x0001,                #CBS_SIMPLE


If anyone is interested, how each type of control in The GUI Loft is 
created can be viewed in the files in 
.../PPM/Loft/lib/Win32/GUI/Loft/Control/ in the source distribution:
http://www.bahnhof.se/~johanl/perl/Loft/

In some situations it may be helpful just to be able to see the relevant

constants and stuff, even if you don't put any effort into understanding

the rest of the code.


/J

------ ---- --- -- -- -- -  -   -    -        -
Johan Lindström                    Boss Casinos
Sourcerer                     [EMAIL PROTECTED]
                  http://www.bahnhof.se/~johanl/
If the only tool you have is a hammer,
everything tends to look
like a nail 



_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users

Reply via email to