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

  • Introducing Dokkio, a new service from the creators of PBworks. Find and manage the files you've stored in Dropbox, Google Drive, Gmail, Slack, and more. Try it for free today.

View
 

Lablgtk2 tricks

Page history last edited by b8_zoggy 13 years, 5 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.