Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Focus issues with GLwMDrawingArea widget

  1. #1
    Intern Contributor
    Join Date
    Aug 2000
    Location
    Webster, Ma 01570
    Posts
    64

    Focus issues with GLwMDrawingArea widget

    Hi gang,
    I have an interesting problem. I am running on a SOLARIS (Sun) system and am using XMotif and OpenGL for this GUI I am working with (so not Glut )

    The problem that I am having is with the GLwMDrawingArea Widget losing it's focus boder whenever I do a redraw. Now - I still have focus after the redraw (if I do a XmGetFocus call - I return the GLwMDrawingArea widget, plus I still accept keyboard input) - it's just that the border that tells the user that he has focus that goes around the widget disappears for some reason.

    Now I am using doube buffering, and using the command GLwDrawingAreaSwapBuffers(widget) to swap the buffers. My Keyboard Focus policy is set to EXPLISIT - so I can either click on the drawing area, or tab into it to get focus.

    Like I said - if I go in and click on the drawing area - I will see the focus boder - it's only after a redraw that the border disapears.

    Any ideas/comments?

    Roach

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    680

    Re: Focus issues with GLwMDrawingArea widget

    you better post this question in the linux forum, the app i am working on also uses motif and not glut and I have also already heard of that widget (although I can't answer your question). but at least, the program runs fine (openmotif).

Posting Permissions

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