blob: f851cdb8e14cfe7499cad16ef5e1a91719a45e7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
&::PukeSendMessage($PUKE_WIDGET_LOAD,
$PUKE_CONTROLLER,
$PWIDGET_FRAME,
"pframe.so",
sub { my %ARG = %{shift()};
if($ARG{'iArg'} == 1){
print "*E* PFrame Load failed!\n";
}
}
);
package PFrame;
@ISA = qw(PWidget);
use strict;
$PFrame::NoFrame = 0;
$PFrame::Box = 0x0001;
$PFrame::Panel = 0x0002;
$PFrame::WinPanel = 0x0003;
$PFrame::HLine = 0x0004;
$PFrame::VLine = 0x0005;
$PFrame::MShape = 0x000f;
$PFrame::Plain = 0x0010;
$PFrame::Raised = 0x0020;
$PFrame::Sunken = 0x0030;
$PFrame::MShadow = 0x00f0;
sub new {
my $class = shift;
my $self = $class->SUPER::new($class, @_);
$self->{widgetType} = $::PWIDGET_FRAME;
if($class eq 'PFrame'){
$self->create();
}
return $self;
}
sub setFrameStyle {
my $self = shift;
my $frame = shift;
my $repaint = shift;
$self->sendMessage('iCommand' => $::PUKE_QFRAME_SET_FRAME,
'iArg' => $frame,
'CallBack' => sub {});
$self->repaint(1) if($repaint == 1);
}
package main;
|