Re: how to create a label that can use mouse to select the text and ctrl-c to copy



胡正 <forlinux 263 net> writes:
gtk_label_new("aa"); will create a label,but i can't use mounse to
select the text and use ctrl-c to copy the text which can in
gtk_entry.


In GTK 2 (1.3.x right now, it's in development), use
gtk_label_set_selectable(). In GTK 1.2 there is no good solution.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]