Results 1 to 10 of 11
hi all
we are moving the mouse,it will move in deferent coardinates in the desktop.
how to get these coardinate, while moving mouse.
can you please help me..
c language ...
- 10-13-2007 #1Linux Newbie
- Join Date
- Feb 2007
- Location
- hyderabad, india
- Posts
- 247
to get coardinates
hi all
we are moving the mouse,it will move in deferent coardinates in the desktop.
how to get these coardinate, while moving mouse.
can you please help me..
c language or any linux scripts
thank you in advance"Relationships are built on trust and communication"
- 10-13-2007 #2
Wow.
Your other question about "Alt F7" now makes a little more sense.
If you are intent on pursuing this, you are about to embark on a long, fascinating journey. You will be doing what is called "X programming".
Google this:
to get you started.Code:"X window" tutorial
The yellow brick road you are about to follow is a long, hard yellow brick road, but worth the journey.
Come back with specific questions. We may be able to assist you.
Good luck!
Hope this helps.
- 10-15-2007 #3Linux Newbie
- Join Date
- Feb 2007
- Location
- hyderabad, india
- Posts
- 247
yes exactly this is
X WIndow/Motif Programming
in this i want to excute Move (Meta+F7)
have to do this by programatically or any command to excute this..
please help me
thank you in advance
"Relationships are built on trust and communication"
- 10-15-2007 #4
Are you writing a Motif application, and you want to make sure that the window manager will move the window when the user selects the Move item?
Or
Are you writing a Motif application, and you want your application to move one of its windows to a particular place on the screen, without the user doing anything with the mouse or the keyboard to make this happen?
Or
Are you writing a Motif application, and you want your application to move a window belonging to some other application?
Or
What?
- 10-15-2007 #5Linux Newbie
- Join Date
- Feb 2007
- Location
- hyderabad, india
- Posts
- 247
if the i selected a window (gtk gui based window) in the middle...( i know there is an option that Alt+f7 will make move the window)
and drag (or move the cursor) the window have to move...
simply by clicking the window and drag it has to be moved..
when i click on the window the Meta+F7 function has to execute...
please help me
thank you in advance"Relationships are built on trust and communication"
- 10-15-2007 #6
I fail completely to understand your answer to my question. So let's do this in small steps.
FIrst:
Are you writing a Motif application? Yes or no?
- 10-15-2007 #7Linux Newbie
- Join Date
- Feb 2007
- Location
- hyderabad, india
- Posts
- 247
- 10-15-2007 #8Good.am writing gtk c based gui application.
Suppose the user uses his mouse to move your application's window from one place on the desktop to another. Is it your desire that your application know where that new place is? Is this your question?
- 10-15-2007 #9Linux Newbie
- Join Date
- Feb 2007
- Location
- hyderabad, india
- Posts
- 247
yes exactly,,
how to move application to other place ( flash window appication or the window without titlebar)?
ok.. i will explain it clearly ...
I am new to GTK+ programming and have had very little luck in answering this question. I hope someone here can help.
Okay, this is what I am trying to do:
I am starting by making a simple calendar program using the calendar widget.
I am currently using: gtk_window_set_decorated(window, FALSE)
This correctly makes the window borderless. However, the compiled and running app can not be moved. Normally I can use <ALT>+Click to drag windows around.
My question is ?
?
?
Is there a way to get around this, or create a handle in the window container to move the window? I have not been able to determine what code is used to do this. How can I make a borderless window movable?
Any and all suggestions, code snips or random statements are welcome.
Thanks,"Relationships are built on trust and communication"
- 10-15-2007 #10
It's the window manager that actually causes the window to be moved.
The window manager uses events involving the window decoration (mouse down, etc.) to help determine where the window should be relocated.
If you were to be able to figure out where the user wanted the window to go, you would have to tell the window manager what you want. You'll have to go outside GTK to do that. I'm guessing that no one here knows the answer, but I know these things:
- You'll need to learn much about X Window programming outside of GTK to make this happen.
- For a start in that direction, go here and here.
Sorry I couldn't be of more help.


Reply With Quote
