Menu

#41 TEXTAREA: Auto-complete isn't at cursor on Macos or Linux

open
nobody
1
2007-04-09
2007-02-09
No

The code for positioning the auto-complete window is win32 only at the moment - there is no (known) way to get at the caret position on macos or linux.

Discussion

  • grable

    grable - 2007-02-13

    Logged In: YES
    user_id=1397929
    Originator: NO

    Interesting =) i started looking into the linux side, looks straight forward.

     
  • grable

    grable - 2007-02-13

    Logged In: YES
    user_id=1397929
    Originator: NO

    Well, ive made a TextAreaCursorXY and made it work in win32 atleast.
    The code for linux is mostly done, but untested (coding in linux in a vm isnt fun ;)

    But i was wonder what would be best to return, Screen or Client coordinates?

     
  • Mark Tiffany

    Mark Tiffany - 2007-02-13

    Logged In: YES
    user_id=102488
    Originator: YES

    I reckon client co-ordinates are probably best (and probably what you'll be given by most OS's / GUI's). The user can easily work out the screen position by adding the gadget x,y.

     
  • grable

    grable - 2007-02-13

    Logged In: YES
    user_id=1397929
    Originator: NO

    hmm.. but arent gadget X,Y client coords?
    If so youd have to trace each parent.

    Anyway, i posted the Win32 tweak to the blitz forum.
    and im working on the linux one now, but it seems the position_to_xy is protected :/
    which means FLTK itself has to be modified.

     
  • Mark Tiffany

    Mark Tiffany - 2007-03-09
    • priority: 5 --> 3
     
  • Mark Tiffany

    Mark Tiffany - 2007-04-09
    • priority: 3 --> 1
     
  • Mark Tiffany

    Mark Tiffany - 2007-04-09

    Logged In: YES
    user_id=102488
    Originator: YES

    Priority dropped as we will have our own codearea soon which will be able to provide x,y of cursor across all platforms

     
  • Mark Tiffany

    Mark Tiffany - 2007-04-09
    • summary: Auto-complete isn't at cursor on Macos or Linux --> TEXTAREA: Auto-complete isn't at cursor on Macos or Linux
     

Log in to post a comment.