Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32::GUI - need to create a window with scroll bar , within a main window

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI, With Win32::GUI - need to create a window with scroll bar , within a main window. This second window (child of a main window) will hold different buttons/checkboxes ,etc , and will have a scroll bar . Did not find so far any package in win32::GUI that will enable me to achieve the above. Help appreciated. thanks

Code:
my $main = Win32::GUI::Window->new( -name => 'Main',-width => 860,-height => 950, ,-pos => [700,10]);
my $frame5 = $main->AddGroupbox(-width => 490,-height => 675,-vscroll =>1,-pos => [ 2, 88 ]);

..now fill this new Groupbox with different controls that exceed the bax height.
The scroll bar is there,but will not scroll (inactive)

Ideas ?
thanks



Long live king Moshiach !
 
Looks like you might need to write some code to handle the scrolling?

I found this looking around on google: [link]http://rob.themayfamily.me.uk/perl/win32-gui/scrollbars/sb3[/url]

That link is to part 3 of the tutorial which is where the scroll bars are added (I believe you said you already have that part done.) Parts 4, 5 and 6 deal with writing the scrolling code.

Good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top