DwtScrollBarGetSlider(3Dwt)DwtScrollBarGetSlider(3Dwt)Name
DwtScrollBarGetSlider - Retrieves the current size and position parameters of the slider in the scroll bar widget.
Syntax
void DwtScrollBarGetSlider(widget, value_return, shown_return,
inc_return, pageinc_return)
Widget widget;
int *value_return;
int *shown_return;
int *inc_return;
int *pageinc_return;
Arguments
widget Specifies the scroll bar widget ID.
value_return
Returns the scroll bar's top thumb (slider) position between the DwtNminValue and DwtNmaxValue attributes to the scroll bar wid-
get.
shown_return
Returns the size of the slider as a value between zero and the absolute value of DwtNmaxValue minus DwtNminValue. The size of
the slider varies, depending on how much of the slider scroll area it represents.
inc_return
Returns the amount of button increment and decrement.
pageinc_return
Returns the amount of page increment and decrement.
Description
The DwtScrollBarGetSlider function returns the currently displayed size/position values of the slider in the scroll bar widget. The scroll
region is overlaid with a slider bar that is adjusted in size and position using the main scroll bar or set slider function attributes.
The stepping arrows and the slider are the scroll activator objects providing the user interface syntax ``feel.''
See AlsoDwtScrollBarSetSlider(3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtScrollBarGetSlider(3Dwt)
Check Out this Related Man Page
XmScrollBarGetValues(library call) XmScrollBarGetValues(library call)
NAME
XmScrollBarGetValues -- A ScrollBar function that returns the ScrollBar's increment values
SYNOPSIS
#include <Xm/ScrollBar.h>
void XmScrollBarGetValues (widget, value_return, slider_size_return,
increment_return, page_increment_return)
Widget widget;
int * value_return;
int * slider_size_return;
int * increment_return;
int * page_increment_return;
(void)
DESCRIPTION
XmScrollBarGetValues returns the the ScrollBar's increment values. The scroll region is overlaid with a slider bar that is adjusted in
size and position using the main ScrollBar or set slider function attributes.
widget Specifies the ScrollBar widget ID.
value_return
Returns the ScrollBar's slider position between the XmNminimum and XmNmaximum resources. Specify NULL to prevent the return of a
particular value.
slider_size_return
Returns the size of the slider as a value between 0 (zero) and the absolute value of XmNmaximum minus XmNminimum. The size of the
slider varies, depending on how much of the slider scroll area it represents.
increment_return
Returns the amount of increment and decrement.
page_increment_return
Returns the amount of page increment and decrement.
For a complete definition of ScrollBar and its associated resources, see XmScrollBar(3).
RETURN
Returns the ScrollBar's increment values.
RELATED XmScrollBar(3).
XmScrollBarGetValues(library call)
Is there a way to slowly scroll the output of a file instead of page or cat ?
Instead of one page at a time, I would like to slowly scroll the displayed output of the file. (12 Replies)
I have a very simple script that reads in the contents of a file (_open.txt) into an array "lyrics":
#!/bin/sh
# read in the text
lyrics=( `cat _open.txt` | tr '\n' ' ')
exit 0
It gives the following error message:
./lyrics.sh: 1: Syntax error: word unexpected (expecting ")")
I have... (9 Replies)
Hi,
I would like to have script that can do below,
position words in the lines in a file, from below format
firstname, lastname B200000
.
.
.
into this format -
<5 spaces>first name, lastname<29 spaces from extreme left>B200000
.
.
.
Any idea how I can do this?
:b: (8 Replies)
hi,
I have a file which consists of some records:
2010_06_4010093_001_001|10|ABCDEFGH|9|4010093||0040400||31.12.2009|S|O|X||||20100602093851-31.12.2009|XXBBFC|EFG||||00001|
2010_06_4010162_001_001|11|ABCDEFGH|9|4010162||0040400||31.12.2009|S|O|X||||20100602093851-31.12.2009|XXBBFC|EFG||||00002|... (11 Replies)
I tried with
find . -maxdepth 1 -type f -size 0 | xargs rm -f
but, getting the error
find: bad option -maxdepth
seems maxdepth is not there in my system. m using HP-UX
Please help. (7 Replies)
Hi,
Syntax 1:
/usr/bin/svcs -a |grep apache22 | wc -l
2
Syntax 2:
ps -ef | grep wlsdmin | grep -v "grep" | wc -l
3
I need to combine both the above syntax and get 2+3 i.e. 5 as the resultant output.
What's the simplest way to achieve this ? (7 Replies)
I'm new to all this and I've been fiddling with this problem for HOURS and feel silly that I can't work it out!
I have a .log file that VERY long and looks like this:
2011-08-31 10:03:34 SUESTART AG Amndmnt Client WebRequest DNU SUEEND Sequence: 600,
2011-08-31 10:03:34 SUESTART... (11 Replies)
Hi guys,
Can anyone help me please, I have a code which will retain number of files maximum of 3 and will remove the one on top (using head -1 command). See code below:
#!/usr/bin/sh
num_of_files=`ls /home/user/USER_LOGS/ | grep UserActivity | grep UMB00 | wc -l`
if
then
remove=`ls... (13 Replies)
Our used size is 83 gb. Total of the folders and documents size is46,2 gb. 83-46=37 gb.
Where is my space. Where was lost?
Could you please I need your opinions?
{root}/space>du -s -h *
308K alaerrm-jprof
1K argerela
20G baerckup_in
1.8G cererm
28M ecerlipselink
... (8 Replies)
Hello There,
I have been trying to increment the value of variable to 1, 2, 3 etc. but, it displays
1
1+1
1+1+1
.....
:wall:
Could anyone help out with this?
for i in *.*
do
s=`expr $s+1`
echo $s
j=$i$j
mv $i $j
done
Any help is appreciated? (24 Replies)
Hi all,
I am working with a huge amount of files in a Linux environment and I was trying to filter my data. Here's what my data looks like
Name............................Size
OLUSDN.gf.gif-1.JPEG.......5 kb
LKJFDA01.gf.gif-1.JPEG.....3 kb
LKJFDA01.gf.gif-2.JPEG.....1 kb... (7 Replies)
Hi ,
I wants to create the bash script for deleting the specified 2gb file and wants to take the backup before doing that.
please help me how to do the same,I use RHEL5 server (22 Replies)
I created script (sh shell) to generate vlc playlist based on some data files. All works fine so far except one string I do not know how to handle with.
VLCSTART='<vlc:id>'
VLCV=0
VLCEND='</vlc:id>'
echo -e $'\n'$'\t'$'\t'$'\t'$'\t'\$VLCSTART$VLCV$VLCENDOutput file contains several occurences... (10 Replies)
i want to extract specific region of interest from big file. i have only start position, end position and seq id, see my query is:
I have file1 is this
>GL3482.1
GAACTTGAGATCCGGGGA
GCAGTGGATCTCCACCAG
CGGCCAGAACTGGTGCAC
CTCCAGGCCAGCCTCGTC
CTGCGTGTC
>GL3550.1... (14 Replies)
Hi Guys,
i am writng a script to check if the file size is lessthan limit say 10KB then exit
i need to check in hadoop file system , can someone advise
Minsize=10
for file in `hadoop fs -ls path/*`
do
Actualsize=$(du -k "$file" | cut -f 1)
if ; then
echo "File generated... (7 Replies)