Ticket #90 (closed enhancement: duplicate)

Opened 7 months ago

Last modified 5 months ago

Cursor position in an edit_box

Reported by: tcp Owned by: why
Milestone: Murder Keywords: edit_box
Cc:

Description

It would be useful to be able to get and set the current position of the cursor in an edit_box.

Suggested name:

  @editbox.cursor_position
  @editbox.cursor_position=

Attachments

edit_box_curpos.patch (2.3 kB) - added by tcp 6 months ago.
patch to add curpos/curpos= to edit boxes (GTK only)

Change History

Changed 6 months ago by tcp

patch to add curpos/curpos= to edit boxes (GTK only)

Changed 6 months ago by tcp

Above patch is a partial implementation; only works on GTK (sorry I don't have windows or OSX). I named the methods curpos/curpos= since shoes seems to like short method names.

PS I don't know GTK, so forgive me if this code is crap, but it seems to work. Tested on ubuntu gutsy with shoes r429.

Changed 6 months ago by why

  • owner set to why
  • milestone set to Murder

I'm still trying to plan out how I want this to work. (Since I need to do similar things for selecting text.)

Changed 5 months ago by why

  • status changed from new to closed
  • resolution set to duplicate

Ticket has moved to ditz #shoes-2.

Note: See TracTickets for help on using tickets.