Recent

Author Topic: [CLOSED] BGRAControls  (Read 549775 times)

lainz

  • Guest
Re: BGRAControls
« Reply #285 on: September 13, 2011, 11:12:27 pm »
* Fixed Glass Menu: now is HighDPI compatible, sizable.
* Minor form change in MetroUI.

ToDo: create functions for Glass Menu to be reusable.
« Last Edit: September 14, 2011, 08:27:24 pm by lainz »

lainz

  • Guest
Re: BGRAControls
« Reply #286 on: September 14, 2011, 08:26:48 pm »
* New procedure 'Glass' in Glass Menu.
* New option 'ShowBkg': the result is like a shadow for the opaque buttons and a texture for transparent buttons.

It's really nice see the attached shot.

arbelest

  • New Member
  • *
  • Posts: 15
Re: BGRAControls
« Reply #287 on: September 15, 2011, 06:55:32 am »
Y
- Added Metro UI color button in 'testbgracontrols'.

By default the button has an opacity of 180 and mouse enter and pressed stages has 255, it's the only difference. If you want to look the same this requires Segoe WP font.

Today I watch Windows 8 demo and I think Metro UI is very interesting. Your Metro UI button color sample is best, but is there any way to make multiline caption, or add multiple image inside ?

NB. sorry for my bad english

lainz

  • Guest
Re: BGRAControls
« Reply #288 on: September 16, 2011, 05:04:34 am »
Y
- Added Metro UI color button in 'testbgracontrols'.

By default the button has an opacity of 180 and mouse enter and pressed stages has 255, it's the only difference. If you want to look the same this requires Segoe WP font.

Today I watch Windows 8 demo and I think Metro UI is very interesting. Your Metro UI button color sample is best, but is there any way to make multiline caption, or add multiple image inside ?

NB. sorry for my bad english

Maybe using the same behavior that has BGRALabel. About multiple image I've no idea.

But you can create your own control based on TBGRAImageButton (that's easy to understand) or TButton and add the features you want. Or better create a new control (not graphic control if you doesn't need alpha, just an opaque rectangle) and add inside a BGRALabel.

arbelest

  • New Member
  • *
  • Posts: 15
Re: BGRAControls
« Reply #289 on: September 16, 2011, 06:08:03 am »
Maybe using the same behavior that has BGRALabel. About multiple image I've no idea.

But you can create your own control based on TBGRAImageButton (that's easy to understand) or TButton and add the features you want. Or better create a new control (not graphic control if you doesn't need alpha, just an opaque rectangle) and add inside a BGRALabel.
Thanks for your replay, I try it now. But, i use TBGRAPanel, because TBGRAImageButton can not have child control (Correct me if i'am wrong). Unfortunately, TBGRAPanel have no alpha or transparent property, but it fine.

I already modify TBGRAPanel so it can change color on mouse over, mouse click and mouse leave. It is OK until you add other control inside (ex. button). Mouse leave is trigger when mouse enter button inside panel. So, how we make all child control inside  TBGRAPanel to ignore all of it's event (mouse over, click etc) ?.



Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
Re: BGRAControls
« Reply #290 on: September 17, 2011, 12:29:32 pm »
Hello,
  BGRAControles evolution speed is very high,
and I think about choosing a user interface (btn colors and backgrounds ...), that we all use to make lazarus applications looks unique and belongs to the same family. If course we don't oblige people to use of course :) Like MS interface which is blue and orange ...
U see what i'm talking about ?
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: BGRAControls
« Reply #291 on: September 23, 2011, 04:20:33 pm »
Hello,
  BGRAControles evolution speed is very high,
and I think about choosing a user interface (btn colors and backgrounds ...), that we all use to make lazarus applications looks unique and belongs to the same family. If course we don't oblige people to use of course :) Like MS interface which is blue and orange ...
U see what i'm talking about ?

In a nutshell, you are talking about using BGRAControls to add themes to the Lazarus IDE and maybe even Lazarus applications. I wouldn't mind having that either.  ;)
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

lainz

  • Guest
Re: BGRAControls
« Reply #292 on: September 25, 2011, 07:13:19 pm »
For those always download the release:
BGRAControls-1.1.0.4
https://sourceforge.net/projects/bgracontrols/files/

The main advantage of this release is that BGRAButton is much faster than before, is fast like the default OS buttons.

For Qt users: update to the last BGRABitmap and transparency will work. There are some issues in Qt like drop down button and bgraspriteanimation sizing, other things works fine.

- Optimalization for TBGRAButton and TBGRAPanel

TBGRAButton:
- Fix for ribbon and glass menu demo
- Added BeginUpdate and EndUpdate
- Fix: Some propertys was not refreshed after changing
- TBGRAButton: Fix for StaticButton property
- TBGRAButton: Added Down property
- Fix for refrehsing TBody propertys
- Added OnAfterPrepareBGRAButton event

TBGRAPanel:
- Added OnAfterPrepareBGRAPanel event
- Some fixes for TBGRAPanel
- Added caption alignment, layout and shadow
- Added BeginUpdate and EndUpdate

TBGRAImageList:
- uncommented ImgList unit (commented by uses cleaner)

TestBGRAControls:
- Metro UI in testbgracontrols
- Now all demo in testbgracontrols run at any High DPI setting in Windows 7.
- New procedure 'Glass' in Glass Menu with new option 'ShowBkg': the result is like a shadow for the opaque buttons and a texture for transparent buttons.

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: BGRAControls
« Reply #293 on: September 29, 2011, 09:35:31 pm »
Commit changes:

-TBGRAButton - small fix for text align

lainz

  • Guest
Re: BGRAControls
« Reply #294 on: September 30, 2011, 04:03:55 pm »
Commit changes:

- BGRAImageButton fixes and speed optimization.

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: BGRAControls
« Reply #295 on: September 30, 2011, 08:39:34 pm »
I got 2 errors in the BGRAImageButton.pas file while trying to compile BGRAControls-1.1.0.4 on Linux Mint 11.

Quote
/usr/lib/lazarus/0.9.31/components_extra/bgracontrols/bgraimagebutton.pas(170,12) Error: Incompatible types: got "TBGRACustomBitmap" expected "TBGRAGtkBitmap"
/usr/lib/lazarus/0.9.31/components_extra/bgracontrols/bgraimagebutton.pas(326,12) Error: Incompatible types: got "TBGRACustomBitmap" expected "TBGRAGtkBitmap"

It has to do with the type of the variable TBmp2.
Quote
var
  TBmp, TBmp2: TBGRABitmap;

The error occurred on the following lines

Line 170
Quote
  TBmp2 := TextShadow(Width, Height, Caption, FFont.Height,
    ColorToBGRA(FFont.Color, 255), ColorToBGRA(FShadow.Color, FShadow.Alpha),
    FShadow.OffsetX, FShadow.OffsetY, FShadow.Radius, FFont.Style, FFont.Name);

Line 326
Quote
  TBmp2 := TextShadow(Width, Height, Caption, FFont.Height,
    ColorToBGRA(FFont.Color, 255), ColorToBGRA(FShadow.Color, FShadow.Alpha),
    FShadow.OffsetX, FShadow.OffsetY, FShadow.Radius, FFont.Style, FFont.Name);

JD
« Last Edit: September 30, 2011, 08:43:34 pm by 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

lainz

  • Guest
Re: BGRAControls
« Reply #296 on: September 30, 2011, 09:10:18 pm »
That's because BGRABitmap has changed, I've solved that in the git repository of BGRAControls  ;)

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: BGRAControls
« Reply #297 on: September 30, 2011, 09:38:31 pm »
That's because BGRABitmap has changed, I've solved that in the git repository of BGRAControls  ;)

Can you send the link to the git repository please?
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

lainz

  • Guest
Re: BGRAControls
« Reply #298 on: September 30, 2011, 09:57:37 pm »
http://sourceforge.net/scm/?type=git&group_id=530771

git://bgracontrols.git.sourceforge.net/gitroot/bgracontrols/bgracontrols

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: BGRAControls
« Reply #299 on: September 30, 2011, 10:18:52 pm »
http://sourceforge.net/scm/?type=git&group_id=530771

git://bgracontrols.git.sourceforge.net/gitroot/bgracontrols/bgracontrols

This link led me to the same Sourceforge page where I downloaded the buggy zip package: bgracontrols-1.1.0.4.zip! I downloaded it again and tried to install it and the same errors show up.
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