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


Reply via email to