Recent

Author Topic: Are KMemo and fpGUI compatible?  (Read 1788 times)

derox

  • Jr. Member
  • **
  • Posts: 51
Are KMemo and fpGUI compatible?
« on: July 03, 2017, 05:39:51 pm »
I've tried creating a KMemo control inside a fpGUI form, without success. I suppose that means they are not compatible?

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Are KMemo and fpGUI compatible?
« Reply #1 on: July 03, 2017, 05:53:19 pm »
Basically yes they are not compatible. FPGUI has a different widgetset model.
The long answer is probably that, provided you give up on the advantages of FPGUI, it should be possible to hack it into your application, but that would also mean you have to include  lot of code, if not all, from the widgetset your version of Kmemo was built with. So a complete GTK2 dependency, lcl dependency, lcl components dependency....Get it?.
Your application then becomes huge and very hard to maintain.

So yes, it is not compatible and no, with sufficient skills you can hack away to your liking.

Just don't do that. Use a standard Lazarus widgetset if you need kmemo.
« Last Edit: July 03, 2017, 05:55:37 pm by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

derox

  • Jr. Member
  • **
  • Posts: 51
Re: Are KMemo and fpGUI compatible?
« Reply #2 on: July 03, 2017, 06:09:27 pm »
Right  :) Thank you!

 

TinyPortal © 2005-2018