Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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 ...
  1. #1
    Linux 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"

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    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:
    Code:
    "X window" tutorial
    to get you started.

    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.

  3. #3
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247
    Quote Originally Posted by wje_lf View Post
    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:
    Code:
    "X window" tutorial
    to get you started.

    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.
    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"

  4. #4
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    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?

  5. #5
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247
    Quote Originally Posted by wje_lf View Post
    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?
    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"

  6. #6
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    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?

  7. #7
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247
    Quote Originally Posted by wje_lf View Post
    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?
    no...
    am writing gtk c based gui application.
    "Relationships are built on trust and communication"

  8. #8
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    am writing gtk c based gui application.
    Good.

    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?

  9. #9
    Linux Newbie
    Join Date
    Feb 2007
    Location
    hyderabad, india
    Posts
    247
    Quote Originally Posted by wje_lf View Post
    Good.

    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?
    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. #10
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    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:

    1. You'll need to learn much about X Window programming outside of GTK to make this happen.
    2. For a start in that direction, go here and here.

    Sorry I couldn't be of more help.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...