|
From: Jonathan S. <jso...@al...> - 2001-01-30 22:02:14
|
Erick, I don't think there is a way to do that. I would recommend that you = test what has been selected in the listbox and if the desired item is = selected, then display (or enable) a combobox based on that selection. Jonathan Southwick Technical & Network Services Allegheny College, Meadsville, PA jso...@al... ----- Original Message -----=20 From: Erick J. Bourgeois=20 To: per...@li...=20 Sent: Tuesday, January 30, 2001 4:47 PM Subject: [perl-win32-gui-users] Combobox in a listview? Is there a way to add a combobox to a listview, that is, let one of = the elements be a combobox? =20 erick never stop questioning www.jeb.ca |
|
From: David H. <dh...@wh...> - 2001-01-30 23:40:56
|
Related to this - is there a way to allow editing of a listview cell? Sort of like in spreadsheet. David Hiltz > I don't think there is a way to do that. I would recommend that you = > test what has been selected in the listbox and if the desired item is = > selected, then display (or enable) a combobox based on that selection. > > Jonathan Southwick > Technical & Network Services > Allegheny College, Meadsville, PA > jso...@al... > ----- Original Message -----=20 > From: Erick J. Bourgeois=20 > To: per...@li...=20 > Sent: Tuesday, January 30, 2001 4:47 PM > Subject: [perl-win32-gui-users] Combobox in a listview? > > > Is there a way to add a combobox to a listview, that is, let one of = > the elements be a combobox? > =20 > erick > never stop questioning > www.jeb.ca > > ------=_NextPart_000_013C_01C08ADE.108F1840 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META content=3D"text/html; charset=3Diso-8859-1" = > http-equiv=3DContent-Type> > <META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D#ffffff> > <DIV><FONT face=3DArial size=3D2>Erick,</FONT></DIV> > <DIV> </DIV> > <DIV><FONT face=3DArial size=3D2>I don't think there is a way to do=20 > that. I would recommend that you test what has been = > selected in=20 > the listbox and if the desired item is selected, then display (or = > enable) a=20 > combobox based on that selection.</FONT></DIV> > <DIV> </DIV> > <DIV><FONT face=3DArial size=3D2>Jonathan Southwick<BR>Technical & = > Network=20 > Services<BR>Allegheny College, Meadsville, PA<BR><A=20 > href=3D"mailto:jso...@al...">jso...@al...</A></FONT><= > /DIV> > <DIV><FONT face=3DArial size=3D2> > <BLOCKQUOTE=20 > style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: = > 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> > <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> > <DIV=20 > style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = > black"><B>From:</B>=20 > <A href=3D"mailto:er...@e-..." tit...@e-...>Erick J. = > Bourgeois</A>=20 > </DIV> > <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20 > href=3D"mailto:per...@li..."=20 > = > tit...@li...>perl-win32-gui-users@l= > ists.sourceforge.net</A>=20 > </DIV> > <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, January 30, 2001 = > 4:47=20 > PM</DIV> > <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [perl-win32-gui-users] = > Combobox=20 > in a listview?</DIV> > <DIV><BR></DIV> > <DIV><FONT color=3D#000080 face=3DArial size=3D2>Is there a way to add = > a combobox to=20 > a listview, that is, let one of the elements be a = > combobox?</FONT></DIV> > <DIV><FONT color=3D#000080 face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT color=3D#000080 face=3DArial size=3D2>erick<BR>never stop=20 > questioning<BR><A=20 > href=3D"http://www.jeb.ca">www.jeb.ca</A></FONT></DIV></BLOCKQUOTE></FONT= > ></DIV></BODY></HTML> > > ------=_NextPart_000_013C_01C08ADE.108F1840-- > > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |
|
From: christopher s. <chr...@ya...> - 2001-01-31 03:44:49
|
hi all
Please tell me if this question is totally off topic here .
If it is , can anyone suggest a suitable mailing list for this question
I thought since the finest win32 api minds hang out here I would post it =
here
The code is taken from the actual example
---------------------------------------------------------------------
$|=3D1;
use Win32::RASE;
print "\nI'm dialing via the first RAS entry: $first_RAS_entry\n\n";
($UserName, $Password) =3D RasGetUserPwd($first_RAS_entry)
or die Win32::RASE::FormatMessage;
print "UserName:";
!$UserName ? chomp($UserName=3D<>) : print "$UserName\n";
print "Password:";
!$Password ? chomp($Password=3D<>) : print "$Password\n";
$hrasconn =3D RasDial($first_RAS_entry, undef , $UserName, $Password)
or die Win32::RASE::FormatMessage;
#($err, $status) =3D RasDial("CLICK", "DP 110-6511" , $UserName, =
$Password,undef,undef)
# or die Win32::RASE::FormatMessage;
print "Connected, \$hrasconn=3D$hrasconn\n";
print "\n\n------next line---\n\n";
#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D don't edit under this =
line =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
sub FindOpenedFolders () {
# returns array of hwnd's of the opened folders
my $findAfter =3D 0;
my @folders;
$FindWindowEx ||=3D new Win32::API("user32", "FindWindowEx", =
[N,N,P,P], N);
while($findAfter =3D $FindWindowEx->Call(0, $findAfter, =
"CabinetWClass", 0)) {
push @folders, $findAfter;
}
$findAfter =3D 0;
while($findAfter =3D $FindWindowEx->Call(0, $findAfter, =
"ExploreWClass", 0)) {
push @folders, $findAfter;
}
@folders;
}
sub CloseWindow ($) {
# arg - hwnd
$PostMessage ||=3D new Win32::API("user32", "PostMessage", [N,N,N,N], =
I);
$WN_CLOSE =3D 0x10;
$PostMessage->Call(shift, $WN_CLOSE, 0, 0);
}
BEGIN {
require Win32::API;
unless ($hwnd =3D (FindOpenedFolders())[0]) {
system 'start explorer /n,C:\\';
$start_time =3D time;
while (!($hwnd =3D (FindOpenedFolders())[0]) && $start_time+3 < =
time) {}
$hwnd or die "Could not open C:\\ window\n";
$hwnd_opened =3D 1;
}
$first_RAS_entry =3D (RasEnumEntries())[0]
or die "No one RAS entry were found\n";
}
END { CloseWindow($hwnd) if $hwnd_opened }
The above code when run , starts dialing right away ...
but I want sample codes for=20
1) invoking the default original windows DUN dialog .
2) to check whether the user is connected to the internet
3) to disconnet from internet
any help will be greatly appreciated
or should I use any other perl module ?
chris
www.perl-resume.com
|