Prima::ScrollWidget(3) User Contributed Perl Documentation Prima::ScrollWidget(3)NAME
Prima::ScrollWidget - scrollable generic document widget.
DESCRIPTION
"Prima::ScrollWidget" is a simple class that declares two pairs of properties, delta and limit for vertical and horizontal axes, which
define a a virtual document. limit is the document dimension, and delta is the current offset.
"Prima::ScrollWidget" is a descendant of "Prima::GroupScroller", and, as well as its ascendant, provides same user navigation by two
scrollbars. The scrollbars' "partial" and "whole" properties are maintained if the document or widget extensions change.
API
Properties
deltas X, Y
Selects horizontal and vertical document offsets.
deltaX INTEGER
Selects horizontal document offset.
deltaY INTEGER
Selects vertical document offset.
limits X, Y
Selects horizontal and vertical document extensions.
limitX INTEGER
Selects horizontal document extension.
limitY INTEGER
Selects vertical document extension.
Events
Scroll DX, DY
Called whenever the client area is to be scrolled. The default action calls "Widget::scroll" .
AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>.
SEE ALSO
Prima, Prima::ImageViewer, Prima::IntUtils, Prima::ScrollBar, examples/e.pl.
perl v5.14.2 2009-02-24 Prima::ScrollWidget(3)
Check Out this Related Man Page
Prima::noX11(3) User Contributed Perl Documentation Prima::noX11(3)NAME
Prima::noX11 - Use Prima without X11
SYNOPSIS
use Prima::noX11;
use Prima;
my $error = Prima::XOpenDisplay();
if ( defined $error) {
print "not connected to display: $error
";
} else {
print "connected to display
";
}
DESCRIPTION
Prima will by default connect to X11 server on unix. To use Prima functionality in modules or programs where this default behavior is
undesired, please follow the guidelines below.
No connection
In the beginning of a script or a module that is never intended to connect to X11 display, add this:
use Prima::noX11;
use Prima;
It will be possible to connect to X11 server later on manually.
Manual connect to X11
If connection to X11 is optional, use this code after "use Prima::noX11" was invoked:
my $error = Prima::XOpenDisplay();
if ( defined $error) {
print "not connected to display: $error
";
} else {
print "connected to display
";
}
Checking if GUI functionality is accesiible.
Without X11 connection, no GUI functionality such as screen grabbing will be accessible. In addition to that functionality, windowing
functions will only become accessible after Prima::Application creates a single instance $::application.
Therefore, if $::application is defined, then all GUI functions can be safely used. If, on the contrary, it is not defined, initiate it as
this:
unless ( $::application) {
my $error = Prima::XOpenDisplay();
die $error if defined $error;
require Prima::Application;
import Prima::Application;
}
AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>.
SEE ALSO
Prima::X11
perl v5.14.2 2009-02-24 Prima::noX11(3)
how to use "tr" command to display horizontal line to vertical line
for vertical to horizontal, the command is tr '\n' '\t' <inputfile
but what is the command for horizontal to vertical
Thanks
Vasikaran (3 Replies)
Hello,
I want to know the use of the here document with the << operator.
Tried to go through some books but the concept was not clear.
Please can any1 expalin me this with a simple example.
Thanks,
Rahul. (6 Replies)
Say I have the word:
zinger
I want to change it to print
z
i
n
g
e
r
This is for a sorting algorithm that I am testing out. I will then use sort on the vertical and change it back to horizontal printing using tr. Once it is horizontal again, I can compare that sorted jumble... (6 Replies)
i have one scenario
i want to convert horizontal rows into vertical rows.
For eg
Input file contains:
1001,34.7,43.7,34.99|1002,34,243,34|1003,34,43,34|1004,34,43,34|1005,34,43,34
Output file contains
1001,34.7,43.7,34.99
1002,34,243,34
1003,34,43,34
1004,34,43,34
1005,34,43,34
Here... (3 Replies)
Hi
I am formatting informix isql output(vertical) to horizontal format. Suppose I have the following content in the flat file from isql output -
item_nbr 0
usfn_label Subscriber Class
usfn_name SBCLASS
usfn_value bl5
item_nbr 1
usfn_label Switch Name
usfn_name switchName... (2 Replies)
Can we use a here document inside a here document?
Something like this
ssh user@remotehost << REMOTE
sudo vserver vsernamename enter << VSERVER
perform actions on vserver.
VSERVER
REMOTE (6 Replies)
dear all,
i'm new to unix and i try to figure out the best case for making list of vertical text to become horizontal and skip the line 1 and 2.
example text :
Data DATE XXXXX
MAX
47
53
49
51
48
48
7
46
51
8
25 (6 Replies)
Hi
I am new to perl, i need to write a program to convert horizontal words to vertical
eg: cat, dog, cow,.....(text file)
this should be written as
1.cat
2.dog
like this. can u pls help me to work out.. (4 Replies)
Need perl or shell script to sort vertical lines to horizontal line in csv format
My file like below
-------------------------
================================================================================
PATH PINKY1000#I1-1-ZENTA1000-2#I7-1-ASON-SBR-UP-943113845 ... (4 Replies)
Hi,
I need some help in getting extracting the specific horizontal and vertical texts in a single line. I am trying to extract few of the parameters from a config file. Your help is appreciated.
Desired Output
----------------
Pool members members ... (4 Replies)
I need a way to remove all the file names with they are extension from a line of a document. For example:
I have doc named "gara" with the following content:
/media/gogo/6651-FEAB/Desktop/Desktop.jpg
/media/gogo/6651-FEAB/Desktop.pdf
/media/gogo/6651-FEAB/linux/logo1.jpg... (4 Replies)
Hi,
I am looking for perfect document.which is covered all the admin role with examples.....
--> Please say that "search in google"......
Can you please help on this....
Thanks & Regards,
Mani (3 Replies)
Hi,
I am creating a script that will pull data from database. The only thing missing now is that i have to transform the lines into horizontal list.
EXAMPLE
2015-07-15 09:00:00.0 |TCSERVER01 |5354
2015-07-15 09:01:00.0 |TCSERVER01 |6899 ... (5 Replies)
I require Hpux 11iv3 administration document if anyone could assist with the same it would be a great help. The Hp site does not have any consolidated document that could be referred to. I require something in line that could assist with network configuration and more. I require the same for Build... (3 Replies)