Recent

Author Topic: UI Toolkit  (Read 2553 times)

SaraT

  • Full Member
  • ***
  • Posts: 121
  • A little student
UI Toolkit
« on: February 16, 2020, 04:04:51 pm »
Morning guys  ;)

Does anybody have any working component/lib to change the look and feel of my apps?
I would like to change all the formStyle like image below.

Many thanks and happy weekend.
« Last Edit: February 16, 2020, 04:11:28 pm by SaraT »

AlexTP

  • Hero Member
  • *****
  • Posts: 2384
    • UVviewsoft
Re: UI Toolkit
« Reply #1 on: February 16, 2020, 04:07:09 pm »
ATFlatControls, in Online Package Manager.

wp

  • Hero Member
  • *****
  • Posts: 11853
Re: UI Toolkit
« Reply #2 on: February 16, 2020, 05:03:45 pm »
or spktoolbar (install from OPM).

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: UI Toolkit
« Reply #3 on: February 16, 2020, 10:11:39 pm »

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: UI Toolkit
« Reply #4 on: February 19, 2020, 11:47:34 am »
I am interested in this so I started to test.
But all of these examples and suggestions are form-based.


Is there a control that is Menu-based?
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

gii

  • Jr. Member
  • **
  • Posts: 53
Re: UI Toolkit
« Reply #5 on: February 20, 2020, 03:05:46 am »
Or BGRAControls too:
https://github.com/bgrabitmap/bgracontrols

Do you have plans to add a Edit with advanced options for customizing its appearance (as Combobox and Spinedit have)?

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: UI Toolkit
« Reply #6 on: February 20, 2020, 04:39:34 am »
Or BGRAControls too:
https://github.com/bgrabitmap/bgracontrols

Do you have plans to add a Edit with advanced options for customizing its appearance (as Combobox and Spinedit have)?

Yes there are several ideas like using the same text editing code that comes with lazpaint.
There are other missing controls but it usually takes some days to make a single control. I personally now take the time to rest to take care of myself health.

There's an edit control made with custom drawn package that I themed maybe to that control can be added the properties. Maybe you want to try is not that hard as it looks. But well not that easy as CSS (yet).

gii

  • Jr. Member
  • **
  • Posts: 53
Re: UI Toolkit
« Reply #7 on: February 20, 2020, 02:48:02 pm »
Or BGRAControls too:
https://github.com/bgrabitmap/bgracontrols

Do you have plans to add a Edit with advanced options for customizing its appearance (as Combobox and Spinedit have)?

Yes there are several ideas like using the same text editing code that comes with lazpaint.
There are other missing controls but it usually takes some days to make a single control. I personally now take the time to rest to take care of myself health.

There's an edit control made with custom drawn package that I themed maybe to that control can be added the properties. Maybe you want to try is not that hard as it looks. But well not that easy as CSS (yet).

Are you talking about BGRA Custom Drawn?

I never know what to use in TBCDEdit.ThemeManager (for example).

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: UI Toolkit
« Reply #8 on: February 20, 2020, 04:22:46 pm »
I mean custom drawn package, as an example only, the theme I did for bgracontrols. In Custom Drawn you must theme the control coding a full theme.

mr-highball

  • Full Member
  • ***
  • Posts: 233
    • Highball Github
Re: UI Toolkit
« Reply #9 on: February 20, 2020, 04:58:45 pm »
I don't know how "working" this library is, but it's interesting nonetheless,
https://github.com/pst2d/csscontrols/tree/dev

This forum post has some examples,
https://forum.lazarus.freepascal.org/index.php/topic,36502.msg339987.html#msg339987

but the gist is to use css to control the styling. I've only peeked at a few of the examples, and documentation doesn't exist (other than pulling different forum posts or looking at some comments) but I think it's worth looking at at least.

jomDA

  • Newbie
  • Posts: 3
Re: UI Toolkit
« Reply #10 on: February 22, 2020, 12:20:17 pm »
I tested the library csscontrols from https://github.com/pst2d/csscontrols/tree/dev on Windows 10 V1909. It looks really good but needs a lot of improvements.
1) If there are more than 10 controls on the form and the you move the mouse over than it's flicker.
2) The CSS is inside of the PAS from the TForm. That is not a good idea. So one of the of improvement must be to load from CSS file.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: UI Toolkit
« Reply #11 on: February 25, 2020, 07:19:38 pm »
Or BGRAControls too:
https://github.com/bgrabitmap/bgracontrols

Do you have plans to add a Edit with advanced options for customizing its appearance (as Combobox and Spinedit have)?

Hi, I've added a bug report, to see if we can add an edit control
https://github.com/bgrabitmap/bgracontrols/issues/63

 

TinyPortal © 2005-2018