Recent

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

pixelink

  • Hero Member
  • *****
  • Posts: 1171
    • Pixelink Software
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!

Pixelink Software
VB.NET 2019 • LAZ 2.02 •  Win10 • 16G RAM • Nivida GForce RTX 2060

Handoko

  • Hero Member
  • *****
  • Posts: 3188
  • 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: 1080
    • 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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7503
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: 3278
    • Lainz
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: 27
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: 9183
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 »
also related to equus asinus.

lainz

  • Hero Member
  • *****
  • Posts: 3278
    • Lainz
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.