| 
View
 

Lablgtk2 tricks

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