Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Oct 2014, 03:22
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
How to set gtkdialog window position? (Solved)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 1836
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 04 May 2014, 14:28    Post subject:  How to set gtkdialog window position? (Solved)  

Bonjour,
How to set only window position using the option --geometry (i.e. without taking window size into account)?
Thank you.

Cordialement.

_________________


Last edited by Argolance on Tue 06 May 2014, 05:10; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
SFR


Joined: 26 Oct 2011
Posts: 1078

PostPosted: Sun 04 May 2014, 16:17    Post subject:  

Hey Argolance

Check this out:
Code:
echo '<button ok></button>' | gtkdialog -s -G +300+300

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1836
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Tue 06 May 2014, 05:09    Post subject:  

Bonjour,
Thank you SFR!
Questions:
What is this option -s used for? (--stdin? Get the GUI description from standard input?)
I found here Arrow GtkDialog - tips this:
Code:
gtkdialog -p GUI -G ${1-${WIDTH}x${HEIGHT}+${RIGHT}+${DOWN}}

What is 1 (sometimes 2) used for?
Then:
Quote:
# gtkdialog --help
Utilisation :
gtkdialog [OPTION...]
Create dialog boxes and windows according to the given dialog description.
For more information try 'info gtkdialog'.

Options de l'aide :
-h, --help Affiche les options de l'aide
--help-all Affiche toutes les options de l'aide
--help-gtk Affiche les options GTK+

Options de l'application :
-v, --version Print version information and exit.
-d, --debug Debug mode prints the processed characters.
-p, --program=variable Get the GUI description from the environment.
-g, --glade-xml=filename Get the GUI description from this Glade file.
-f, --file=filename Get the GUI description from a regular file.
-i, --include=filename Include the given file when executing.
-e, --event-driven=filename Execute the file as an event driven program.
-s, --stdin Get the GUI description from standard input.
-w, --no-warning Suppress warning messages.
-G, --geometry=[XxY][+W+H] The placement and the size of the window.
-c, --center Center the windows on the screen.
--print-ir Print the internal representation and exit.
--space-expand=state The "expand" state for packing all widgets.
--space-fill=state The "fill" state for packing all widgets.
--display=AFFICHAGE Affichage X à utiliser

So, I tried --geometry=[XxY]!
... I was bogging down Wink

Cordialement.

_________________

Back to top
View user's profile Send private message Visit poster's website 
SFR


Joined: 26 Oct 2011
Posts: 1078

PostPosted: Tue 06 May 2014, 13:35    Post subject:  

Quote:
What is this option -s used for?

Nah, '-s' was used only to make the example as a short one-liner, without exporting the GUI description in a variable. Could be also:
Code:
export GUI='
<button ok>
</button>'

gtkdialog -p GUI --geometry=+300+300


Quote:
Code:
gtkdialog -p GUI -G ${1-${WIDTH}x${HEIGHT}+${RIGHT}+${DOWN}}

What is 1 (sometimes 2) used for?

Honestly - no idea. Only Zigbert would know. Wink

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1836
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Wed 07 May 2014, 12:56    Post subject:  

Thanks! Wink
_________________

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0545s ][ Queries: 12 (0.0061s) ][ GZIP on ]