• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Social distancing? Try a better way to work remotely on your online files. Dokkio, a new product from PBworks, can help your team find, organize, and collaborate on your Drive, Gmail, Dropbox, Box, and Slack files. Sign up for free.


Lablgtk2 tricks

Page history last edited by b8_zoggy 13 years, 9 months ago

Lablgtk2 tricks

Here are some tricks useful when developing LAblgtk2 applications.


How to be aware when the cursor of a GText.buffer moved ?

You can connect a callback to the mark_set event of the buffer, and check that the mark set corresponds to the iter at position `INSERT.

Here is as example:

let f it _ = if it#equal (buffer#get_iter `INSERT) then do_something in

ignore(buffer#connect#mark_set f);

Comments (0)

You don't have permission to comment on this page.