Recent

Author Topic: Is there any style manager for Lazarus  (Read 11850 times)

tr_escape

  • Sr. Member
  • ****
  • Posts: 435
  • sector name toys | respect to spectre
    • Github:
Is there any style manager for Lazarus
« on: April 26, 2013, 08:11:36 am »
Hello everyone,

I wondering is there any component style changer for Lazarus?
In delphi xe2 and above you can change your form style in runtime.

I am looking for a component pack or library for this operation

I added a sample created with xe3 in attachment

Thank you
« Last Edit: April 26, 2013, 08:44:04 am by tr_escape »

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Is there any style manager for Lazarus
« Reply #1 on: April 26, 2013, 09:49:17 am »
The closest the LCL comes to this that I am aware of is offered in the (beta status) Custom Drawn control package which is incomplete but slowly growing.
See http://wiki.lazarus.freepascal.org/Lazarus_Custom_Drawn_Controls
This offers DrawStyles such as Android, MacOSX, WinCE etc. Contributions to help flesh out the missing parts would be welcomed.
Otherwise the LCL is based on native OS widgets which restricts style changes largely to OS-controlled visual alterations such as themes.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12262
  • FPC developer.
Re: Is there any style manager for Lazarus
« Reply #2 on: April 26, 2013, 10:21:33 am »
I'm not sure that this is customdrawing. It might be Windows theming.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Is there any style manager for Lazarus
« Reply #3 on: April 26, 2013, 10:42:58 am »
XE2 and above have the code from ksdev buy out so it is a bitmap based theme engine so yeah you can say it is custom drawn at this point.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: Is there any style manager for Lazarus
« Reply #4 on: April 26, 2013, 11:33:15 am »
I wondering is there any component style changer for Lazarus?
In delphi xe2 and above you can change your form style in runtime.
The general consensus in Lazarus is that it is frowned upon to change your applications to suit your needs. They want you to always adhere to the OS theme. So what you want is probably not possible with LCL. I consider that mentality crazy, and why I started fpGUI years ago!

Your alternative would be to take your chances with the LCL-CustomDrawn widgetset, but that is still years away from being usable in the real-world.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

vfclists

  • Hero Member
  • *****
  • Posts: 1147
    • HowTos Considered Harmful?
Re: Is there any style manager for Lazarus
« Reply #5 on: April 26, 2013, 02:23:08 pm »
Are you drawing/tempting Felipe into this thread? :D I've ordered 2 big bags of popcorn!!
Your alternative would be to take your chances with the LCL-CustomDrawn widgetset, but that is still years away from being usable in the real-world.
Lazarus 3.0/FPC 3.2.2

tr_escape

  • Sr. Member
  • ****
  • Posts: 435
  • sector name toys | respect to spectre
    • Github:
Re: Is there any style manager for Lazarus
« Reply #6 on: April 26, 2013, 02:40:26 pm »
I wondering is there any component style changer for Lazarus?
In delphi xe2 and above you can change your form style in runtime.
The general consensus in Lazarus is that it is frowned upon to change your applications to suit your needs. They want you to always adhere to the OS theme. So what you want is probably not possible with LCL. I consider that mentality crazy, and why I started fpGUI years ago!

Your alternative would be to take your chances with the LCL-CustomDrawn widgetset, but that is still years away from being usable in the real-world.


Actually i installed the fpgui yet and i tried it with udesigner project. It is ok working and there nice components in it but you we have got console screen on the background.

Maybe you should change to like as kol-ce pack because generaly develeopers are likes the component movements on the form.

Also i'll try custom drawn pack in windows.

Thank you all your answers



cybermonkey342

  • New Member
  • *
  • Posts: 42
    • Home of EGSL interpreter
Re: Is there any style manager for Lazarus
« Reply #7 on: April 26, 2013, 03:22:36 pm »
Actually i installed the fpgui yet and i tried it with udesigner project. It is ok working and there nice components in it but you we have got console screen on the background.

Maybe you should change to like as kol-ce pack because generaly develeopers are likes the component movements on the form.

Also i'll try custom drawn pack in windows.

Thank you all your answers
Try adding
Code: [Select]
{$apptype gui} into your code and the console vanishes.
--
Best regards

cybermonkey342

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12262
  • FPC developer.
Re: Is there any style manager for Lazarus
« Reply #8 on: April 26, 2013, 03:50:22 pm »
XE2 and above have the code from ksdev buy out so it is a bitmap based theme engine so yeah you can say it is custom drawn at this point.

XE2 and above support both the VCL AND the customdrawn monkeybusiness.

Skinning also changed for VCL with XE3, due to VCL styles: http://docwiki.embarcadero.com/RADStudio/XE3/en/VCL_Styles_Overview

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: Is there any style manager for Lazarus
« Reply #9 on: April 26, 2013, 06:40:54 pm »
It is ok working and there nice components in it but you we have got console screen on the background.
As cybermonkey34 said. It is not a fpGUI issue, but rather you compiling a Windows application, but you didn't tell the compiler it is a GUI application - thus the console is created for you [which is handy for debugging ;)].

To get rid of the console, compile your project with -WG compiler option, or add {$apptype gui} in your program unit.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

 

TinyPortal © 2005-2018