« Return to Thread: Access control in a child

Re: Access control in a child

by dwinkjr :: Rate this Message:

| View in Thread

Can anyone help me here???
dwinkjr wrote:
ok I am new to the whole Win32::Gui stuff.. But here is my problem.  I am trying to load a combobox with ODBC datasources.  The problem I am having is that the combobox is a child.  I cant seem to address it correctly.  Here is my code.
my $GB3 = Win32::GUI::Groupbox->new($Win,
       -text    => "Database Parameters:",
       -name    => "GroupBox_3",
       -left    => 12,
       -top     => 151,
       -width   => 349,
       -height  => 174,
      );
my $CB= $Win->AddCombobox(
       -name    => "CBox1",
       -dropdown => 0,
       -left    => 5,
       -top     => 41,
       -width   => 93,
       -height  => 400,
       -parent => $GB3,
      );
my %DataSources = Win32::ODBC::DataSources();
foreach $DSNo ( keys( %DataSources ) )
        {
        my %Config = Win32::ODBC::GetDSN( $DSNo );
        $Win->CBox1->Add($DSNo);
        }

$Win->CBox1->SetCurSel(0);

Can someone help me out here?
Thanks in advance.
Dave W.

 « Return to Thread: Access control in a child