Recent

Author Topic: Seriously - Is there a way to truly skin a LAZ app (controls and all)??  (Read 2886 times)

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Is there a way to truly skin a LAZ app i make (controls and all)??

Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: Seriously - Is there a way to truly skin a LAZ app (controls and all)??
« Reply #1 on: October 19, 2019, 04:15:56 am »
You can try Custom Drawn Control, it has several built-in themes (drawers):
https://wiki.freepascal.org/Lazarus_Custom_Drawn_Controls#The_Drawers

Or use BGRAControls:
https://forum.lazarus.freepascal.org/index.php?topic=43724.0

zeljko

  • Hero Member
  • *****
  • Posts: 1591
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Seriously - Is there a way to truly skin a LAZ app (controls and all)??
« Reply #2 on: October 19, 2019, 09:05:19 am »
Or you can use Lazarus + Qt/Qt5 and use QStyleSheets :)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11351
  • FPC developer.
Re: Seriously - Is there a way to truly skin a LAZ app (controls and all)??
« Reply #3 on: October 19, 2019, 01:11:44 pm »
Or windows theming engine? Uxtheme is in winunits-base.

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: Seriously - Is there a way to truly skin a LAZ app (controls and all)??
« Reply #4 on: October 21, 2019, 03:59:43 am »
Use BGRAControls, we currently have

- Button
- Image Button
- SVG Button
- SVG Viewer
- CheckBox
- RadioButton
- ComboBox
- ProgressBar
- RadialProgressBar
- And many more...

Check attached screenshots, the Ribbon demo and LazPaint, with black theme, both under Windows.

fmc

  • New Member
  • *
  • Posts: 37
Re: Seriously - Is there a way to truly skin a LAZ app (controls and all)??
« Reply #5 on: October 21, 2019, 05:50:26 am »
Nice stuff, lainz
Win X Pro / Lazarus 2.0.6 / FPC 3.0.4

Thaddy

  • Hero Member
  • *****
  • Posts: 14159
  • Probably until I exterminate Putin.
Re: Seriously - Is there a way to truly skin a LAZ app (controls and all)??
« Reply #6 on: October 21, 2019, 06:48:07 am »
If I need a completely customized interface including differently shaped "controls" etc, I usually work with clickable regions and where applicable just images.
May not be as comfortable as real UI controls, but is very easy to program and gives you ultimate freedom.
I do use text input controls, though, usually set to borderless, if I need them. Borders and decoration come from the background image(s).

Most of the user interfaces for my VST audio plugins are written that way.
« Last Edit: October 21, 2019, 07:02:34 am by Thaddy »
Specialize a type, not a var.

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: Seriously - Is there a way to truly skin a LAZ app (controls and all)??
« Reply #7 on: October 21, 2019, 04:25:17 pm »
If I need a completely customized interface including differently shaped "controls" etc, I usually work with clickable regions and where applicable just images.
May not be as comfortable as real UI controls, but is very easy to program and gives you ultimate freedom.
I do use text input controls, though, usually set to borderless, if I need them. Borders and decoration come from the background image(s).

Most of the user interfaces for my VST audio plugins are written that way.

It's a good way. Is like making a game inteface.

 

TinyPortal © 2005-2018