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

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Lablgtk2 tricks

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