dear all,
anyone knows if for lazarus there is a component similar to the delphi tbuttonededit? It is similar to the search edit in mozilla thunderbird. thanks,
andrea
Mailing lists / lazarus / 2010-02
TButtonedEdit
10 messages · 5 people · –
- GGraeme Geldenhuys 4
- AAndrea Mauri 2
- MMattias Gaertner 2
- HHans-Peter Diettrich 1
- Zzeljko 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Andrea Mauri wrotedear all, anyone knows if for lazarus there is a component similar to the delphi tbuttonededit? It is similar to the search edit in mozilla thunderbird.
TEditButton ? (on misc component palette)
TEditButton ? (on misc component palette)
not exactly, it is a TEdit that can include two glyphs/buttons, one on the right and one on the left, both inside the Tedit.
anyone knows if for lazarus there is a component similar to the delphi tbuttonededit? It…
Andrea Mauri wrotedear all, anyone knows if for lazarus there is a component similar to the delphi tbuttonededit?
I seriously doubt it, because there will not be a "native" component like that on each platform LCL supports.
So your only option is to implement it from scratch using pure Object Pascal (all custom drawn), or use a external custom drawn GUI toolkit like fpGUI or MSEgui which probably supports that feature already.
Regards,
- Graeme -
not exactly, it is a TEdit that can include two glyphs/buttons, one on the right and one…
Show quoted text 7 lines
If you want just an edit with two buttons, descend from TCustomControl and create the edit and speedbuttons in its constructor. You can set BorderStyle to bsNone for the edit, but I'm not sure if this works on all widgetsets.
Mattias
I seriously doubt it, because there will not be a "native" component like that on each…
fpGUI which probably supports that feature already
Graeme, has your fpGUI now probabilility features?
Mattias
Mattias Gaertner wroteGraeme, has your fpGUI now probabilility features?
I'm not sure I understand the question. If you mean does fpGUI have something like a TButtonedEdit, then the answer is yes. Is it included in the fpGUI repository, then the answer is no. I have designed a few specialised components and themes for our company products, but I haven't included all of the in the fpGUI repository. I will probably merge most of those with the fpGUI repository in the coming weeks - time permitting.
Regards,
- Graeme -
On Thu, 11 Feb 2010 11:19:27 +0100 If you want just an edit with two buttons, descend from
Mattias Gaertner wroteIf you want just an edit with two buttons, descend from TCustomControl and create the edit and speedbuttons in its constructor.
Composite components only work up to a point, and Lazarus was never very good with composite components. Both Bogus?aw and myself tried to port the tiOPF GUI components (they are all composite) to LCL. It was a nightmare. Focus was often incorrect, Form Designer couldn't handle them correctly, and platform (widgetset) differences.
So no, I would not recommend composite components under Lazurus - even to my enemy. :)
You can set BorderStyle to bsNone for the edit, but I'm not sure if this works on all widgetsets.
One of many complications. That's why I suggested a custom drawn component, implemented in only Object Pascal.
Regards,
- Graeme -
Show quoted text 5 lines
I found frames working quite well. There exist some problems with event handlers and inheritance, but these may have been cured already. The refactored layout management also may have increased the stability of such composite components.
DoDi
Hans-Peter Diettrich wroteI found frames working quite well. There exist some problems with event
I'm pretty sure things will be better now, but at the time when we tried to port the tiOPF GUI components, it was long before Frames existed in the Lazarus IDE. I'm sure with TFrame support, the Lazarus Forms Designer was improved too - which should help composite components.
Anyway, for tiOPF I introduced a whole new way of making standard components "object-aware" without the need for descendant/custom components. I implemented the Model-GUI-Mediator design pattern in tiOPF. So my problems have been solved this way.
Regards,
- Graeme -
