monsieur le frenchy,
for some reason, if the -style parameter is the last line of the listbox
declaration, things go haywire.  just change your declaration to have the style
as the second last param, instead of the last, and you should have much
satisfaction ;)

    $mainWin->AddListbox(
         -name => "listBox",
         -left => 500,
         -top => 100,
         -width => 150,
         -style => WS_VSCROLL,
         -height => 80,
    );

anyone have any insight into the reason for this anomaly?





Patrick RENAUD <[EMAIL PROTECTED]> on 04/20/99 12:08:43 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:    (Sundar Raman/MW/US/3Com)
Subject:  [perl-win32-gui] ListBox and Scrollbars




Hi folks,

I try to add a scrollbar in a ListBox by using the "-style" option with
value "WS_VSCROLL" but the result is that my ListBox doesn't appears in
the window (it appears normally when I don't use this option).

How can I have vertical scrollbar for a ListBox ?

My code is :
    $mainWin->AddListbox(
         -name => "listBox",
         -left => 500,
         -top => 100,
         -width => 150,
         -height => 80,
         -style => WS_VSCROLL,
    );

Thanks for your help.

Best regards from a damned Frenchy.
--
   _____________________________________
 /                                       \
|           Patrick RENAUD                |
|                                         |
|   [EMAIL PROTECTED]   |
 \_______________________________________/










Reply via email to