> Is there a way to add strings or set the starting value in the
> constructor options? For instance right now I'm doing this:
> $Verified_ComboBox = $Main_Window->AddCombobox(
> -name => "Verified_ComboBox",
> -left => 100,
> -top => 178,
> -width => 149,
> -height => 400,
> -style => WS_VISIBLE | 2 | WS_NOTIFY,
> );
> $Verified_ComboBox->AddString("Yes");
> $Verified_ComboBox->AddString("No");
> $Verified_ComboBox->Select(1);
>
> When what I'd like to be doing is putting those last three lines in the
> options as something like:
> -AddString => "Yes",
> -AddString => "No",
> -select => 1,
I think it is better to have things non-order dependent at least when
it comes to defining parameters to new widgets.
> So far I haven't found anything that will do that. It isn't a big deal
> doing it the other way, I just think it would keep my code looking a bit
> cleaner. Also I noticed that in the html documantation it says to use
> Addstring() but in combobox.pl in the samples it uses InsertItem() to do
> the same thing. Are these 2 identical. I don't see InsertItem in the
> documentation. Is it's use depreciated?
I think aldo said once that one is more efficient than the other.
> I've also found that in combobox.pl in the sample files, and also in
> David Hiltz's GUI Builder program the style of a drop down combo box is
> always set to "-style => WS_VISIBLE | 2 | WS_NOTIFY,"
I copied the code from combobox.pl ;)
-dhiltz