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

  • Finally, you can manage your Google Docs, uploads, and email attachments (plus Dropbox and Slack files) in one convenient place. Claim a free account, and in less than 2 minutes, Dokkio (from the makers of PBworks) can automatically organize your content for you.

View
 

Lablgtk2 tricks

Page history last edited by b8_zoggy 14 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.