Recent

Author Topic: wxForms for Lazarus  (Read 6964 times)

StEvUgnIn

  • Newbie
  • Posts: 2
wxForms for Lazarus
« on: July 31, 2014, 03:00:49 pm »
Hello there,
I discussed with the developper of wxForms for Delphi. He would agree to release the code free to the community of Free Pascal. Are the any programmer here ready to help me in this project ? For who don't know what is wxForms, it is a binding of the crossplatform toolkit wxWidgets. It allows any application to run with a native layout on any system like SWT again. The problem of LCL is doesn't look native on other platforms than Gtk+ even on Windows. LCL as VCL works as an abstracted layout.

Are there any volunteers or interested people ?

Edit : Just have look herehttp://twinforms.com/screencast/wxformsdelphi/wxforms_hello/HelloWorld.swf
« Last Edit: July 31, 2014, 03:08:55 pm by StEvUgnIn »

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: wxForms for Lazarus
« Reply #1 on: July 31, 2014, 08:45:58 pm »
I don't understand. Lazarus can be native on Windows, GTK2, Qt4 (KDE4) and Carbon. Cocoa and GTK3 are in progress. It is more plaforms than wxWidgets, so I can see no point here. AFAIR wxWidgets has already support for GTK3, so it's the only area where Lazarus losts.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: wxForms for Lazarus
« Reply #2 on: July 31, 2014, 10:34:28 pm »
Well, it's not a problem to have wxWidgets backend (2 level abstraction layer, kinda funny though), but LCL does have native look based on chosen widgetset (unless you choose custom drawn, which is indeed not native). I'm not interested however, qt has been my chosen backend since I move totally to Linux and for Windows (my clients), nothing beats native winapi widgetset.

vfclists

  • Hero Member
  • *****
  • Posts: 1013
    • HowTos Considered Harmful?
Re: wxForms for Lazarus
« Reply #3 on: August 01, 2014, 09:09:15 am »
He should just upload the code to Github and let the merry coding begin. I am sure there will be others ready to help, even it if it is only for the sake of learning how to implement another widget set.

Lazarus is sorely in need of a new generation of programmers who are willing to dive into its internals.

 Don't let the others dampen your enthusiasm for stuff like this.
Lazarus 3.0/FPC 3.2.2

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: wxForms for Lazarus
« Reply #4 on: August 01, 2014, 11:43:12 am »
LCL on Windows is as good as native. (Is treeview still owner drawn in Lazarus?).

What are your exact problems with the nativeness of LCL Windows apps?

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: wxForms for Lazarus
« Reply #5 on: August 01, 2014, 12:28:36 pm »
All standard controls (TEdit, TButton, TMemo, TListView, TCheckBox, TRadio etc) from LCL are native as well as wxForms. KDE -> Qt, GNOME -> Gtk2, Windows -> WinAPI. If you don't believe look at low level LCL source ;) . Of course there are also custom not native controls (like TSpeedButton or TTreeView) but they are drawed using theme unit and theme colors AFAIK. Maybe he has forced Gtk (or other not default) widget type in project options?
« Last Edit: August 01, 2014, 12:30:31 pm by Dibo »

StEvUgnIn

  • Newbie
  • Posts: 2
Re: wxForms for Lazarus
« Reply #6 on: August 01, 2014, 11:49:47 pm »
I see wxWidgets like an alternative to C++ Builder. It is what Lazarus tends to be to Delphi. Cocoa port doesn't work on my Mac and TButtons really look old and irrelevant on OS X. The only crossplatform toolkit usable on Mac is still wxWidgets, SWT, Swing, Qt and Cocoa. Among those, the one I enjoy the most is wxWidgets.

I also tried Qt, but it is weird with Lazarus... Is the implementation finalized yet ?

Thanks for your answers.

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: wxForms for Lazarus
« Reply #7 on: August 02, 2014, 01:06:14 am »
Quote
Cocoa port doesn't work on my Mac and TButtons really look old and irrelevant on OS X. The only crossplatform toolkit usable on Mac is still wxWidgets, SWT, Swing, Qt and Cocoa

Have you try fpGUI (https://github.com/graemeg/fpgui/tree/develop) ?

This widgetset works on osx, has lot of custom styles and does not need any external library...  ;)
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: wxForms for Lazarus
« Reply #8 on: August 02, 2014, 10:36:52 am »
I also tried Qt, but it is weird with Lazarus... Is the implementation finalized yet ?
AFAIK it's one of the most feature complete, even the only one having MDI implemented. It looks best on my KDE Linux system, compared to gtk (any version).
See: http://wiki.lazarus.freepascal.org/Roadmap
« Last Edit: August 02, 2014, 10:40:35 am by Leledumbo »

 

TinyPortal © 2005-2018