Recent

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

iannak

  • Newbie
  • Posts: 5
Re: BGRAControls
« Reply #660 on: September 01, 2013, 12:56:14 am »
I tryed your suggestion, but nothing. It's not working. I think the problem is after the dropdown menu closes, not before popup. It looks like some  kind of locking on popup which should be unlocked after dropdown closes.

iannak

  • Newbie
  • Posts: 5
Re: BGRAControls
« Reply #661 on: September 03, 2013, 09:55:46 am »
Hi, Dibo!
Any other idea? I have noticed that this is happened only with groupbox as parent of Dateedit. For excample with Panel as parent it's workkiing fine. Also if you open the dropdown and then close it with a second click on Bcbutton, then it's working. Even if you don't do the second click on BCButton, but click on the title bar of the window > drag the mouse over the BCButton > Mouse Up on the BCButton. Then the Dateedit also works.

MaxM74

  • Newbie
  • Posts: 6
TBGRAImageManipulation multiple crop areas
« Reply #662 on: October 13, 2013, 10:33:50 pm »
Hi i've done the multiple crop areas support in TBGRAImageManipulation,
see the attachment for details.

Thanks.

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: BGRAControls
« Reply #663 on: October 20, 2013, 02:23:23 pm »
Sorry for delay. I'm not in home. I'll comit your changes tomorrow. Thanks

MaxM74

  • Newbie
  • Posts: 6
Re: BGRAControls
« Reply #664 on: October 28, 2013, 09:10:16 pm »
not yet posted on sourceforge.

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: BGRAControls
« Reply #665 on: October 29, 2013, 10:29:25 am »
I added your patch. Thanks! Can you check if everything is ok?

BTW: Lainz do you still have write permissions on SVN? Sourceforge changed sources paths and I can't understand new permission manager

MaxM74

  • Newbie
  • Posts: 6
Re: BGRAControls
« Reply #666 on: October 31, 2013, 01:54:34 pm »
All OK.
if i have other patchs in the future i will send to you.

Thanks

Deepaak

  • Sr. Member
  • ****
  • Posts: 454
Re: BGRAControls
« Reply #667 on: January 19, 2014, 07:54:39 am »
Is development of BGRA Controls is still active.
Holiday season is online now. :-)

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: BGRAControls
« Reply #668 on: January 19, 2014, 01:57:55 pm »
Well, I don't have enough time now to develop new features  :(

exdatis

  • Hero Member
  • *****
  • Posts: 668
    • exdatis
Re: BGRAControls
« Reply #669 on: January 19, 2014, 03:30:10 pm »
Take it easy and don't worry. Best regards and thank you very much for an amazing graphic library, to the team.
« Last Edit: January 19, 2014, 03:31:54 pm by exdatis »

freeman35

  • Jr. Member
  • **
  • Posts: 92
Re: BGRAControls
« Reply #670 on: February 18, 2014, 03:18:43 pm »
Is svn down? or what is svn link?

exdatis

  • Hero Member
  • *****
  • Posts: 668
    • exdatis

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: BGRAControls
« Reply #672 on: March 27, 2014, 06:22:41 pm »
Hi, I'll try to add streaming, 'LoadFromFile' and 'SaveToFile' with LResources for BCButton, and maybe other component that benefit from that..

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: BGRAControls
« Reply #673 on: March 28, 2014, 10:46:38 pm »
I added your patch. Thanks! Can you check if everything is ok?

BTW: Lainz do you still have write permissions on SVN? Sourceforge changed sources paths and I can't understand new permission manager

I don't have access, sourceforge and his changes..

---

Here it is, well I've not touched nothing and only I've added the methods LoadFromFile, SaveToFile and OnFindClass. Patch file attached.

The output is something like the '.bcbtn' but with less information.

I think it's ok to just store the 'style' and nothing more that that, but i don't know how to limit the data that will be streamed only in the saved file without touching the published things that works inside the object inspector on the ide.

As is it streams position, size, the StateClicked, StateHover, StateNormal, DropDown settings, Opacity.. Caption and some others..

By the other hand if something is missing the way to fix:

if it's a SubComponent set TheComponent.SetSubComponent(True) after creating.
if it's a custom property: http://forum.lazarus.freepascal.org/index.php/topic,24011.msg144123.html#msg144123

I think that Dibo used something like this when he added the 'DummyProperty' that's used to load and save from file but that only works in the object inspector.

Code: [Select]
object BCButton1: TBCButton
  Left = 8
  Height = 33
  Top = 8
  Width = 123
  StateClicked.Background.Color = clBlack
  StateClicked.Background.ColorOpacity = 255
  StateClicked.Background.Gradient1.StartColor = 8404992
  StateClicked.Background.Gradient1.StartColorOpacity = 255
  StateClicked.Background.Gradient1.DrawMode = dmSet
  StateClicked.Background.Gradient1.EndColor = 4194304
  StateClicked.Background.Gradient1.EndColorOpacity = 255
  StateClicked.Background.Gradient1.ColorCorrection = True
  StateClicked.Background.Gradient1.GradientType = gtRadial
  StateClicked.Background.Gradient1.Point1XPercent = 50
  StateClicked.Background.Gradient1.Point1YPercent = 100
  StateClicked.Background.Gradient1.Point2XPercent = 0
  StateClicked.Background.Gradient1.Point2YPercent = 0
  StateClicked.Background.Gradient1.Sinus = False
  StateClicked.Background.Gradient2.StartColor = clWhite
  StateClicked.Background.Gradient2.StartColorOpacity = 255
  StateClicked.Background.Gradient2.DrawMode = dmSet
  StateClicked.Background.Gradient2.EndColor = clBlack
  StateClicked.Background.Gradient2.EndColorOpacity = 255
  StateClicked.Background.Gradient2.ColorCorrection = True
  StateClicked.Background.Gradient2.GradientType = gtLinear
  StateClicked.Background.Gradient2.Point1XPercent = 0
  StateClicked.Background.Gradient2.Point1YPercent = 0
  StateClicked.Background.Gradient2.Point2XPercent = 0
  StateClicked.Background.Gradient2.Point2YPercent = 100
  StateClicked.Background.Gradient2.Sinus = False
  StateClicked.Background.Gradient1EndPercent = 100
  StateClicked.Background.Style = bbsGradient
  StateClicked.Border.Color = clBlack
  StateClicked.Border.ColorOpacity = 255
  StateClicked.Border.LightColor = clWhite
  StateClicked.Border.LightOpacity = 255
  StateClicked.Border.LightWidth = 0
  StateClicked.Border.Style = bboNone
  StateClicked.Border.Width = 1
  StateClicked.FontEx.Color = 16770790
  StateClicked.FontEx.EndEllipsis = False
  StateClicked.FontEx.FontQuality = fqSystemClearType
  StateClicked.FontEx.Height = 0
  StateClicked.FontEx.SingleLine = True
  StateClicked.FontEx.Shadow = True
  StateClicked.FontEx.ShadowColor = clBlack
  StateClicked.FontEx.ShadowColorOpacity = 255
  StateClicked.FontEx.ShadowRadius = 2
  StateClicked.FontEx.ShadowOffsetX = 1
  StateClicked.FontEx.ShadowOffsetY = 1
  StateClicked.FontEx.Style = [fsBold]
  StateClicked.FontEx.TextAlignment = bcaCenter
  StateClicked.FontEx.WordBreak = False
  StateHover.Background.Color = clBlack
  StateHover.Background.ColorOpacity = 255
  StateHover.Background.Gradient1.StartColor = 16744448
  StateHover.Background.Gradient1.StartColorOpacity = 255
  StateHover.Background.Gradient1.DrawMode = dmSet
  StateHover.Background.Gradient1.EndColor = 8404992
  StateHover.Background.Gradient1.EndColorOpacity = 255
  StateHover.Background.Gradient1.ColorCorrection = True
  StateHover.Background.Gradient1.GradientType = gtRadial
  StateHover.Background.Gradient1.Point1XPercent = 50
  StateHover.Background.Gradient1.Point1YPercent = 100
  StateHover.Background.Gradient1.Point2XPercent = 0
  StateHover.Background.Gradient1.Point2YPercent = 0
  StateHover.Background.Gradient1.Sinus = False
  StateHover.Background.Gradient2.StartColor = clWhite
  StateHover.Background.Gradient2.StartColorOpacity = 255
  StateHover.Background.Gradient2.DrawMode = dmSet
  StateHover.Background.Gradient2.EndColor = clBlack
  StateHover.Background.Gradient2.EndColorOpacity = 255
  StateHover.Background.Gradient2.ColorCorrection = True
  StateHover.Background.Gradient2.GradientType = gtLinear
  StateHover.Background.Gradient2.Point1XPercent = 0
  StateHover.Background.Gradient2.Point1YPercent = 0
  StateHover.Background.Gradient2.Point2XPercent = 0
  StateHover.Background.Gradient2.Point2YPercent = 100
  StateHover.Background.Gradient2.Sinus = False
  StateHover.Background.Gradient1EndPercent = 100
  StateHover.Background.Style = bbsGradient
  StateHover.Border.Color = clBlack
  StateHover.Border.ColorOpacity = 255
  StateHover.Border.LightColor = clWhite
  StateHover.Border.LightOpacity = 255
  StateHover.Border.LightWidth = 0
  StateHover.Border.Style = bboNone
  StateHover.Border.Width = 1
  StateHover.FontEx.Color = clWhite
  StateHover.FontEx.EndEllipsis = False
  StateHover.FontEx.FontQuality = fqSystemClearType
  StateHover.FontEx.Height = 0
  StateHover.FontEx.SingleLine = True
  StateHover.FontEx.Shadow = True
  StateHover.FontEx.ShadowColor = clBlack
  StateHover.FontEx.ShadowColorOpacity = 255
  StateHover.FontEx.ShadowRadius = 2
  StateHover.FontEx.ShadowOffsetX = 1
  StateHover.FontEx.ShadowOffsetY = 1
  StateHover.FontEx.Style = [fsBold]
  StateHover.FontEx.TextAlignment = bcaCenter
  StateHover.FontEx.WordBreak = False
  StateNormal.Background.Color = clBlack
  StateNormal.Background.ColorOpacity = 255
  StateNormal.Background.Gradient1.StartColor = 4194304
  StateNormal.Background.Gradient1.StartColorOpacity = 255
  StateNormal.Background.Gradient1.DrawMode = dmSet
  StateNormal.Background.Gradient1.EndColor = 8405056
  StateNormal.Background.Gradient1.EndColorOpacity = 255
  StateNormal.Background.Gradient1.ColorCorrection = True
  StateNormal.Background.Gradient1.GradientType = gtLinear
  StateNormal.Background.Gradient1.Point1XPercent = 0
  StateNormal.Background.Gradient1.Point1YPercent = 0
  StateNormal.Background.Gradient1.Point2XPercent = 0
  StateNormal.Background.Gradient1.Point2YPercent = 100
  StateNormal.Background.Gradient1.Sinus = False
  StateNormal.Background.Gradient2.StartColor = 8405056
  StateNormal.Background.Gradient2.StartColorOpacity = 255
  StateNormal.Background.Gradient2.DrawMode = dmSet
  StateNormal.Background.Gradient2.EndColor = 4194304
  StateNormal.Background.Gradient2.EndColorOpacity = 255
  StateNormal.Background.Gradient2.ColorCorrection = True
  StateNormal.Background.Gradient2.GradientType = gtRadial
  StateNormal.Background.Gradient2.Point1XPercent = 50
  StateNormal.Background.Gradient2.Point1YPercent = 100
  StateNormal.Background.Gradient2.Point2XPercent = 0
  StateNormal.Background.Gradient2.Point2YPercent = 0
  StateNormal.Background.Gradient2.Sinus = False
  StateNormal.Background.Gradient1EndPercent = 60
  StateNormal.Background.Style = bbsGradient
  StateNormal.Border.Color = clBlack
  StateNormal.Border.ColorOpacity = 255
  StateNormal.Border.LightColor = clWhite
  StateNormal.Border.LightOpacity = 255
  StateNormal.Border.LightWidth = 0
  StateNormal.Border.Style = bboNone
  StateNormal.Border.Width = 1
  StateNormal.FontEx.Color = 16770790
  StateNormal.FontEx.EndEllipsis = False
  StateNormal.FontEx.FontQuality = fqSystemClearType
  StateNormal.FontEx.Height = 0
  StateNormal.FontEx.SingleLine = True
  StateNormal.FontEx.Shadow = True
  StateNormal.FontEx.ShadowColor = clBlack
  StateNormal.FontEx.ShadowColorOpacity = 255
  StateNormal.FontEx.ShadowRadius = 2
  StateNormal.FontEx.ShadowOffsetX = 1
  StateNormal.FontEx.ShadowOffsetY = 1
  StateNormal.FontEx.Style = [fsBold]
  StateNormal.FontEx.TextAlignment = bcaCenter
  StateNormal.FontEx.WordBreak = False
  Caption = 'BCButton1'
  Color = clNone
  DropDownWidth = 16
  DropDownArrowSize = 8
  GlobalOpacity = 255
  ParentColor = False
  Rounding.RoundX = 12
  Rounding.RoundY = 12
  Rounding.RoundOptions = []
  RoundingDropDown.RoundX = 1
  RoundingDropDown.RoundY = 1
  RoundingDropDown.RoundOptions = []
  TextApplyGlobalOpacity = False
end

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: BGRAControls
« Reply #674 on: April 08, 2014, 04:12:29 am »
Hi Dibo and circular, since no one of us is updating this I've created a new repo
http://forum.lazarus.freepascal.org/index.php/topic,24176.0.html

 

TinyPortal © 2005-2018