Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

iam not getting entire Explorer use Win32-GUI

by veeruch (Sexton)
on Mar 13, 2007 at 06:13 UTC ( [id://604479]=perlquestion: print w/replies, xml ) Need Help??

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

Hi Perl Monks,
I instlled Win32-GUI using ppm
Iam not getting tool bar and address bar in explorer.
How can I get it?.
please advice me.below is my code
use Win32::GUI(); use Win32::GUI::AxWindow; # Main Window $Window = new Win32::GUI::Window( -name => "Window", -title => "SCM Wrapper", -pos => [100, 100], -size => [400, 400], ); # Add a WebBrowser AxtiveX $Control = new Win32::GUI::AxWindow ( -parent => $Window, -name => "Control", -control => "Shell.Explorer", -pos => [0, 0], -size => [400, 400], ); # Register some event $Control->RegisterEvent("StatusTextChange", sub { $self = shift; $eventid = shift; print "Event : ", @_, "\n"; } ); # Call Method $Control->CallMethod("Navigate", 'C:'); # Event loop $Window->Show(); Win32::GUI::Dialog(); # Main window event handler sub Window_Resize { if (defined $Window) { ($width, $height) = ($Window->GetClientRect)[2..3]; $Control->Move (0, 0); $Control->Resize ($width, $height); } }

Replies are listed 'Best First'.
Re: iam not getting entire Explorer use Win32-GUI
by MonkE (Hermit) on Mar 13, 2007 at 13:12 UTC
    When I embed IE, I've always created my own toolbar and status bar controls and updated them with code in my application. You seem to have made a start with the "StatusTextChange" event, but you need to have that event update the displayed text of a status bar control (of your own making).
      Hi MonkE
      I couldn't get.Please suggest me.
Re: iam not getting entire Explorer use Win32-GUI
by Anonymous Monk on Mar 13, 2007 at 08:23 UTC
    use strict; use warnings; use diagnostics; #Iam not getting tool bar and address bar in explorer. use Win32::GUI(); use Win32::GUI::AxWindow; # Main Window my $Window = new Win32::GUI::Window( -name => "Window", -title => "SCM Wrapper", -pos => [100, 100], -size => [400, 400], ); # Add a WebBrowser AxtiveX my $Control = new Win32::GUI::AxWindow ( -parent => $Window, -name => "Control", -control => "Shell.Explorer", -pos => [0, 0], -size => [400, 400], ); # Register some event $Control->RegisterEvent("StatusTextChange", sub { my $self = shift; my $eventid = shift; print "Event : ", @_, "\n"; } ); # Call Method $Control->CallMethod("Navigate", 'C:'); # Event loop $Window->Show(); warn "GetPropertyInfo \n\t", join "\n\t", $Control->GetPropertyInfo($_ +) for $Control->EnumPropertyName(); Win32::GUI::Dialog(); # Main window event handler sub Window_Resize { if (defined $Window) { my ($width, $height) = ($Window->GetClientRect)[2..3]; $Control->Move (0, 0); $Control->Resize ($width, $height); } } #Comment on iam not getting entire Explorer use Win32-GUI __DATA__

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://604479]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-18 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found