Karger78 has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I am trying to make the combo box as a readonly, for somereason it's not working, can anyone help me pin point what i am doing wrong?
$main->AddCombobox( -name => "combo", -width => 200, -height => 110, -pos => [250,270], -dropdown=>0, -GetExtendedUI=>0, -vscroll => 1, -readonly => 1, -diabled=>1, -readonly=>1, );

Replies are listed 'Best First'.
Re: combo box readonly
by tbone1 (Monsignor) on Sep 03, 2009 at 18:57 UTC
    Well, for one thing, you have -readonly=1, in there twice. Mr. Pedantic Code Guy (me) twitches at this aesthetics of this.

    All seriousness aside, I don't see why that would be the reason, but remove the second readonly line and see if it works. Afterall, what could possibly go wrong?

    --
    tbone1, YAPS (Yet Another Perl Schlub)
    And remember, if he succeeds, so what.
    - Chick McGee

      I removed it, but still, i can type in the combo box. This is really odd.
      So I reviewed the Win32::GUI doc's. It seems like it should disable the combo box. I wonder if this is a bug.
Re: combo box readonly
by Anonymous Monk on Sep 04, 2009 at 00:24 UTC
    There is no combobox in perl/tk, so what are you talking about?
      if you use use Win32::GUI(); you can make all sorts of gui's