UTF8 & GTK lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- Onjahyr-BR · 2006-10-07 05:28 Accented characters are a problem. I intend to write in a TEdit and to send for a TLabel and a TPanel. For a TLabel it is horrible  :lol: already for a TPanel, no problem does not occur. I could place TPanel instead of TLabel, however, I do not have the property wordwrap, somebody could create a descending component of TPanel with this property?  :wink: ---------------------------------------------------------------------- Onjahyr-BR · 2006-10-08 22:05 how create component? help me, please. They write unit here in forum now Tks. ---------------------------------------------------------------------- felipemdc · 2006-10-09 00:20 To create a new component, just create a new unit, and put a class on that unit, like this: type   TMyComponent = class(TCustomControl)   public     constructor Create(Parent: TComponent);   end; First you need to understand that we have two kinds of visual controls: * TCustomControl descendents These controls do not have a Handle. They are painted directly on the Canvas of the form, and thus automatically work for all platform that Lazarus support. You can learn how to create a TCustomControl descendent here: http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Create_a_c ustom_control_which_draws_itself Note that this page has portuguese translation You can do anything that TCanvas allows + use any painting function from LCLIntf and your app will work on all platforms. These, however, may not be enougth for what you want, or there may be a much easier way to do what you want by accessing the underlying widgetset directly. * Windowed controls, or controls with a Handle A Handle is a connection to the underlying widgetset. If you create a control with a handle, you will need to implement part of it differently on each widgetset. This, however will give you access to the most powerful features of each OS. A example of TCustomControl descendent is TLabel. Examples of windowed controls are: TStaticText and TPanel. Why accents work better on TPanel? Because it is a windowed control, and the text is sent directly to Gtk. I think that using TStaticText will solve your problem. If not, you can create your own Windowed control.