Recent

Author Topic: BGRA Controls  (Read 224470 times)

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #105 on: April 30, 2015, 06:45:57 pm »
Hi,

Is it possible to add mousewheel events to BCButton, BCPanel and BCLabel ? (and other button if it's possible)

Thanks for your very good work !

@+

Added. Please test if works. Added also OnClick and other events to BCLabel.
In which other button you need the event?

Mukatai

  • New Member
  • *
  • Posts: 28
Re: BGRA-Controls
« Reply #106 on: April 30, 2015, 08:53:10 pm »
Thanks for your reactivity!

When i compile a program with a function in all MouseWheel event i have an error message and program won't start.

For OnMouseWheel/OnMouseWheelDown/OnMouseWheelUp with BCButton and BCPanel :
Unknown Property
Adress 43BDC1
Adress 43D512

For OnMouseWheel/OnMouseWheelDown/OnMouseWheelUp with BCLabel :
Unknown Property
Adress 43BD91
Adress 43D4E2

BGRAControls : Snapshot r88
Lazraus : 1.4.0/FPC 2.6.4 32Bit
OS : Windows 7 Pro 64Bit

@+

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #107 on: April 30, 2015, 09:05:21 pm »
It works for me. You rebuild lazarus?

Mukatai

  • New Member
  • *
  • Posts: 28
Re: BGRA-Controls
« Reply #108 on: April 30, 2015, 09:10:09 pm »
Yes uninstall lastest stable version (rebuild) and install snapshot (rebuild).

Mukatai

  • New Member
  • *
  • Posts: 28
Re: BGRA-Controls
« Reply #109 on: April 30, 2015, 09:33:58 pm »
For my test, I use a new program without save it and I have some error. But if i save the program it work fine !

Added. Please test if works. Added also OnClick and other events to BCLabel.
In which other button you need the event?

BCImageButton and BGRASpeedButton.

Thanks for your work.

@+

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #110 on: May 01, 2015, 12:20:14 am »
For my test, I use a new program without save it and I have some error. But if i save the program it work fine !

Added. Please test if works. Added also OnClick and other events to BCLabel.
In which other button you need the event?

BCImageButton and BGRASpeedButton.

Thanks for your work.

@+

BCImageButton and BGRASpeedButton already had the event.
« Last Edit: May 01, 2015, 12:41:07 am by 007 »

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #111 on: May 02, 2015, 11:10:49 pm »
Hi, there is a new version of bgra-controls 3.6
https://sourceforge.net/projects/bgra-controls/files/bgra-controls-3.0/

It contains new stuff and bug fixes, improvements and so on:
- BGRABitmap Library is now working and its tested. And it compiles as Java library too (thanks to Fred vS for helping in the making of the library)
- Added new control BCToolBar (A TToolBar with style)
- Added new control BCTrackBarUpDown (A nice scalable trackbar component)
- Added OnMouseWheel event for some controls.
- Added comments on BCButton, now you can see information of what are you changing in the object inspector.
- Added a missing icon for a clock control.
- BCButton works now with less memory if you configure it :)
- Bug Fix in resizing bgravirtualscreen
- Added new event for flashprogressbar
- A lot of bug fixes for rectangles coordinates in controls thanks to circular
- Something maybe i'm missing, but if you see it there of course we did it :)

And now you can check also the new BGRABitmap that has nogui and fpgui features. Nogui is actually beign used for the bgrabitmap library project to save memory and file size of the compiled .dll.

Thanks to all that contributes to this!

Mukatai

  • New Member
  • *
  • Posts: 28
Re: BGRA-Controls
« Reply #112 on: May 03, 2015, 12:04:42 am »
BCImageButton and BGRASpeedButton already had the event.

Ok i not use it now but in future yes...

Another request, with BCButton it's possible to align image to left with marge ? (You can see an exemple in attachment)

I think you need add these properties : Glyph align (center, right or left), Glyph Marge Left and Glyph Marge Right .

Thanks

@+

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #113 on: May 03, 2015, 05:04:49 am »
I cant remember. If it is not in the settings you cant.

Edit: if you know how you can try to add that feature. Or you can use the event OnAfterRenderBCButton that allows put your own drawing code to the already rendered button-
« Last Edit: May 03, 2015, 01:31:11 pm by 007 »

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: BGRA-Controls
« Reply #114 on: May 03, 2015, 05:14:11 pm »
Hello,

I have incorporated bgra-controls into fpcup.
But unfortunately, compilation fails in:

bgraled.pas @ property ParentColor: boolean default False

If I comment this property out, bgra-controls installs well !!
See included pictures (Linux i386 and OSX).

Thanks.

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #115 on: May 03, 2015, 06:00:36 pm »
Hello,

I have incorporated bgra-controls into fpcup.
But unfortunately, compilation fails in:

bgraled.pas @ property ParentColor: boolean default False

If I comment this property out, bgra-controls installs well !!
See included pictures (Linux i386 and OSX).

Thanks.
hi, fpcup is using lazarus and fpc trunk right? so i cant really help you because im using lazarus 1.4 release.
try to fix it

maybe add the complete syntax
ParentColor:boolean read ... write ... default...
« Last Edit: May 03, 2015, 06:03:37 pm by 007 »

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: BGRA-Controls
« Reply #116 on: May 03, 2015, 06:18:08 pm »
Yes, currently I use fpc trunk and Lazarus trunk.

But fpcup can install any version you want.

However, if you just change
Code: [Select]
property ParentColor: Boolean default False;into
Code: [Select]
property ParentColor;
all is ok !

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #117 on: May 03, 2015, 06:26:39 pm »
Yes, currently I use fpc trunk and Lazarus trunk.

But fpcup can install any version you want.

However, if you just change
Code: [Select]
property ParentColor: Boolean default False;into
Code: [Select]
property ParentColor;
all is ok !
Thankyou i will add this to svn repo asap.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: BGRA-Controls
« Reply #118 on: May 03, 2015, 06:55:28 pm »
Thank you for your changes !
bgra-controls now installs out-of-the-box with fpcup on all systems !!
Thanks for your quick response.

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: BGRA-Controls
« Reply #119 on: May 03, 2015, 07:26:16 pm »
Thank you for your changes !
bgra-controls now installs out-of-the-box with fpcup on all systems !!
Thanks for your quick response.

Amazing!

 

TinyPortal © 2005-2018