* * *

Author Topic: SpkToolbar in metro style windows 10  (Read 1199 times)

claudio-tux

  • New member
  • *
  • Posts: 9
SpkToolbar in metro style windows 10
« on: November 08, 2016, 07:39:31 pm »
Can anyone tell me if there is a way to change the spktoolbar skin to metro style?
Or indicate some other component that gives me this option.
I thank you all.

wp

  • Hero Member
  • *****
  • Posts: 3247
Re: SpkToolbar in metro style windows 10
« Reply #1 on: November 08, 2016, 07:53:49 pm »
In property "Appearance" you have access to all colors used by SpkToolbar. It's a lengthy process to get everything right, but I don't see a reason why it should not be possible to give it a Metro look. I would be glad to add this design to the component.

Alternatively, you could look at BGRAControls (if I remember correctly), there's a template for a ribbon bar.
Lazarus trunk / fpc 3.0.0 / Win32

wp

  • Hero Member
  • *****
  • Posts: 3247
Re: SpkToolbar in metro style windows 10
« Reply #2 on: November 09, 2016, 11:25:01 pm »
I forgot to mention that the "Appearance" has a nice property editor which is easily overlooked, but is great for visual editing of the colors with immediate feedback. "OK" applies the changes to the current SpkToolbar, and the settings additionally can be saved to and loaded from an xml file. Just click at the "..." next to "Appearance" to start it.
Lazarus trunk / fpc 3.0.0 / Win32

lainz

  • Hero Member
  • *****
  • Posts: 1732
  • Nace una flor, todos los días sale el sol...
    • BGRABitmap
Re: SpkToolbar in metro style windows 10
« Reply #3 on: November 09, 2016, 11:30:53 pm »
I tried SpkToolbar today and it has a really nice editor.

You can try bgracontrols test project for ribbon. It has a disadvantage that's there's no editor. You put regular controls and theme them with code. Each tab is a panel that's shown and hidden. If you have a lot of tabs your form editor will be full of panels. So if you can theme SpkToolbar use it or if your application is very simple you can use bgracontrols.

wp

  • Hero Member
  • *****
  • Posts: 3247
Re: SpkToolbar in metro style windows 10
« Reply #4 on: November 18, 2016, 11:26:13 pm »
I spent some time in improving the Appearance Editor of SpkToolbar and finally added four preset styles/themes to the component (in addition to the old Office2007-Blue theme) -- see attached screenshot.
Lazarus trunk / fpc 3.0.0 / Win32

Mocte

  • New member
  • *
  • Posts: 7
Re: SpkToolbar in metro style windows 10
« Reply #5 on: November 19, 2016, 05:54:47 pm »
Nice !!

scons

  • Jr. Member
  • **
  • Posts: 68
Re: SpkToolbar in metro style windows 10
« Reply #6 on: March 05, 2017, 11:35:03 am »
nice +1
Windows 10 Lazarus 1.6.2 FPC 3.0.0

JD

  • Hero Member
  • *****
  • Posts: 1517
Re: SpkToolbar in metro style windows 10
« Reply #7 on: March 05, 2017, 02:15:48 pm »
Beautiful. I'm looking forward to using it.

JD
Windows (10, 7) - Lazarus 1.6.2/FPC 3.0 (also Delphi occasionally)
Linux Mint Cinnamon  - Lazarus 1.4/FPC 2.6.4
Indy 10.6 series; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

avra

  • Hero Member
  • *****
  • Posts: 839
    • Additional info
Re: SpkToolbar in metro style windows 10
« Reply #8 on: March 05, 2017, 07:31:44 pm »
I really like metro dark   ;)
ct2laz - Easily convert components and projects between Lazarus and CodeTyphon

JD

  • Hero Member
  • *****
  • Posts: 1517
Re: SpkToolbar in metro style windows 10
« Reply #9 on: March 17, 2017, 08:33:29 pm »
@wp Hi there. I was wondering if the new styles modification for SpkToolBar is available for download.

Thanks

JD
Windows (10, 7) - Lazarus 1.6.2/FPC 3.0 (also Delphi occasionally)
Linux Mint Cinnamon  - Lazarus 1.4/FPC 2.6.4
Indy 10.6 series; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

wp

  • Hero Member
  • *****
  • Posts: 3247
Re: SpkToolbar in metro style windows 10
« Reply #10 on: March 17, 2017, 10:02:37 pm »
It is included in the current ccr version which also available via Online Package Manager. Just set the new property Style or edit its parameters by clicking '...' next to Appearance - see the demo in folder demos/styles.
Lazarus trunk / fpc 3.0.0 / Win32

JD

  • Hero Member
  • *****
  • Posts: 1517
Re: SpkToolbar in metro style windows 10
« Reply #11 on: March 19, 2017, 12:08:52 am »
I've got it now. Thanks a lot for your good work.  :D
Windows (10, 7) - Lazarus 1.6.2/FPC 3.0 (also Delphi occasionally)
Linux Mint Cinnamon  - Lazarus 1.4/FPC 2.6.4
Indy 10.6 series; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus