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 - add splitting horizontal line in window

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,

In Win32::GUI - how can I add a splitting horizontal line in window to visualy separate between 2 parts of this window ?
thanks

Long live king Moshiach !
 
[0] Add some onPaint handling to the window, draw() say, like this.
[tt]
my $win=Win32::GUI::Window->new(
#etc etc...
-onPaint=>\&draw,
);
[/tt]
[1] The handling draws a rectangle of small height, controllable at designated position. (I use rectangle for convenience only. You can elaborate.)
[tt]
sub draw {
my @size=($win->Width(), $win->Height());
$win->GetDC()->Rectangle(0, 0.5*$size[1]-0.1,$size[0],0.5*$size[1]+0.1);
return 1;
}
[/tt]
ps: Graphic rendering can be very code-intensive that could need quite a bit of api's and library supports. The above is only a bare-bone skeleton.
 
thanks,

ended up with :

my $label41 = $main->AddLabel(-text => '--------------------------------',-pos => [ 500, $y1+20 ]);


Long live king Moshiach !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top