move window

This is a discussion on move window within the Linux Programming forums, part of the Platform Specific Boards category; hi all we know that click on the tittlebar we can move the window, but is there any widget(window) that ...

  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    136

    move window

    hi all
    we know that click on the tittlebar we can move the window, but
    is there any widget(window) that is movable(means we have to click the mouse button in the middle of the window , and move the window)
    by programatically(c or any script)

    am using gtk c.

    please help me with an example

    thank you in advance

  2. #2
    Registered User
    Join Date
    Dec 2006
    Posts
    136
    hi
    if we click on the tittlebar and drag the window will move..

    how can it will be moving?
    if we click on the middle of the window it doesnt move
    how to move like this

    please help me

    thank you in advance

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    The title bar doesn't belong to your window, it belongs to the window manager. Thus, it can easily move your window.
    If you want the middle of your window to move it, you have either got to implement this yourself (by capturing the mouse, capturing move events and moving your window accordingly) or find a way to tell the window manager that it now has your window in its grip.

    I don't know the exact way to do either.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    136
    hi

    thank you for ur help..

    i got it..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 07:57 PM
  2. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  3. Button positioning
    By Lionmane in forum Windows Programming
    Replies: 76
    Last Post: 10-21-2005, 06:22 AM
  4. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01:34 PM
  5. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 05:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21