Recent

Author Topic: SpkToolbar in metro style windows 10  (Read 7774 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: 11916
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.

wp

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

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
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: 11916
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.

Mocte

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

scons

  • Full Member
  • ***
  • Posts: 141
Re: SpkToolbar in metro style windows 10
« Reply #6 on: March 05, 2017, 11:35:03 am »
nice +1
Windows 10-64bit Lazarus 2.0.12 + FPC 3.2.0

JD

  • Hero Member
  • *****
  • Posts: 1848
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 - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

avra

  • Hero Member
  • *****
  • Posts: 2514
    • 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 - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

JD

  • Hero Member
  • *****
  • Posts: 1848
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 - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

wp

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

JD

  • Hero Member
  • *****
  • Posts: 1848
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 - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

 

TinyPortal © 2005-2018