Any chance that the clock & gauge controls from http://forum.lazarus.freepascal.org/index.php/topic,19700.msg118916.html#msg118916 (http://forum.lazarus.freepascal.org/index.php/topic,19700.msg118916.html#msg118916) will be included?
Just a hint about rgba: the last parameter is a single from 0 to 1. I did it like that to follow CSS spec. 8-)
procedure FilterRGB(Bitmap: TBGRABitmap; R, G, B: byte);
procedure RBG(Bitmap: TBGRABitmap);
procedure GRB(Bitmap: TBGRABitmap);
procedure GBR(Bitmap: TBGRABitmap);
procedure BRG(Bitmap: TBGRABitmap);
procedure BGR(Bitmap: TBGRABitmap);
procedure RRG(Bitmap: TBGRABitmap);
procedure RGR(Bitmap: TBGRABitmap);
procedure GRR(Bitmap: TBGRABitmap);
procedure RRB(Bitmap: TBGRABitmap);
procedure RBR(Bitmap: TBGRABitmap);
procedure BRR(Bitmap: TBGRABitmap);
procedure GGR(Bitmap: TBGRABitmap);
procedure GRG(Bitmap: TBGRABitmap);
procedure RGG(Bitmap: TBGRABitmap);
procedure GGB(Bitmap: TBGRABitmap);
procedure GBG(Bitmap: TBGRABitmap);
procedure BGG(Bitmap: TBGRABitmap);
procedure BBR(Bitmap: TBGRABitmap);
procedure BRB(Bitmap: TBGRABitmap);
procedure RBB(Bitmap: TBGRABitmap);
procedure BBG(Bitmap: TBGRABitmap);
procedure BGB(Bitmap: TBGRABitmap);
procedure GBB(Bitmap: TBGRABitmap);
procedure RRR(Bitmap: TBGRABitmap);
procedure GGG(Bitmap: TBGRABitmap);
procedure BBB(Bitmap: TBGRABitmap);
let mynumber 1234
let mynumber 5678
let mynumber "hello there!"
let mode1 boTransparent
let mode2 dmDrawWithTransparency
// "store some values"
let oneh 100
// "Draw rectangles, lines and bitmap"
Rectangle 0,0,oneh,oneh,"rgba(0,0,0,0.6)","rgba(250,250,250,1)","dmDrawWithTransparency"
Ok. We can change the code because the controls are open source so I think there's no problem.There won't be a problem to change the names, I already did change to something else, I will switch them to BGRA.
paskal try to change all names to bc or bgra, for all if possible, and then we can upload it. If you need it we can give you svn access if is more easy for you.
Edit: Any hint for the easiest way to extract an image from a LRS is welcome.http://sourceforge.net/projects/lrsexplorer/ (http://sourceforge.net/projects/lrsexplorer/) my second installation after lazarus was this tool. It manages an lrs file by importing and exporting resources to/from it. I still install it in all my workstations even though I haven't used after I converted everything to rc files.
http://sourceforge.net/projects/lrsexplorer/ (http://sourceforge.net/projects/lrsexplorer/) my second installation after lazarus was this tool. It manages an lrs file by importing and exporting resources to/from it.That is the answer I was looking for. I added a link to the app in the Lazarus Resources wiki.
Enhanced versions of LED and Knob are attached.
Knob is named BGRARKnob, where R stand for "raster", because there is always a scalable knob in the package.
http://sourceforge.net/projects/lrsexplorer/ (http://sourceforge.net/projects/lrsexplorer/) my second installation after lazarus was this tool. It manages an lrs file by importing and exporting resources to/from it.That is the answer I was looking for. I added a link to the app in the Lazarus Resources wiki.
I wonder why TDTAnalogGauge and two more widgets have no icons in the Lazarus toolbar?
About the multiplication by 3, to do this, simply remove the "div 3", and then when checking the value, use the values multiplied by 3. So if it was 128, then it becomes 128*3.
About dithering, I always thought it was too complicated for me. However now that I read the Floyd-Steinberg dithering page on wikipedia, it seems to be rather simple. Well, when I have got some time, I might implement dithering in BGRABitmap.
Hi guys :-) This has nothing to do with BGRA-Controls, but everyone in here seems to be graphics savvy :-)
Any chance one of you guys can check the TCanvas.AngleArc patch in http://bugs.freepascal.org/view.php?id=7290 and let us know if it's good?
Looks good to me, but I don't really know what I'm looking at :-)
HI,
About bgra controls.
I create an instance of this library.
the question is what should I do and what I should not do?
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
procedure TBCCustomImageButton.DoMouseUp;
var
Ctrl : TControl;
begin
FFade.Mode := fmFadeIn;
if Animation then
FFade.Step := 20
else
FFade.Step := 255;
Ctrl := Application.GetControlAtMouse;
if Ctrl = Self then
DoMouseEnter
else
DoMouseLeave;
inherited DoMouseUp;
end;
Yappss,
Means I may make a derived class.
and I could use the library derived for commercial and non-commercial? :)
If I change the library I'll tell you. Thank you ..
May i request?
add property in bcbutton.
glyph position and caption position.. :)
@007
Take a look to this post,with this package can do really interesting jobs.
@007 Also take look at this post and test it with delphi >=2010,BGRAControls with some animations:
http://forum.lazarus.freepascal.org/index.php?topic=26193.msg160564 (http://forum.lazarus.freepascal.org/index.php?topic=26193.msg160564)
{ Save all published settings to file }
procedure SaveToFile(AFileName: string);
{ Load and assign all published settings from file }
procedure LoadFromFile(AFileName: string);
{ Assign the properties from AFileName to this instance }
procedure AssignFromFile(AFileName: string);
using BGRABitmapLibrary;
// Create a new bitmap and save to file
BGRABitmap.bgraCreateWithSize(0,100,100);
BGRABitmap.bgraSaveToFile(0,"file.png");
// Create another bitmap
BGRABitmap.bgraCreate(1);
// Get Highest ID available
int id = BGRABitmap.bgraGetHighestID();
// Display highest ID (1)
MessageBox.Show(id.ToString());
// Destroy bitmaps
BGRABitmap.bgraDestroy(1);
BGRABitmap.bgraDestroy(0);
// Create a new bitmap from file
BGRABitmap.bgraCreateFromFile(0, @"C:\lazarus\images\LazarusSource.bmp");
// Get bitmap 0 pixel at 19 37 (somewhat brown)
// Is getting the pixel
uint pixel = BGRABitmap.bgraGetPixel(0, 19, 37);
// Is setting the pixel
BGRABitmap.bgraSetPixel(0, 1, 1, pixel);
// and saving a modified copy
BGRABitmap.bgraSaveToFile(0, "file2.png");
// Destroy bitmap
BGRABitmap.bgraDestroy(0);
Wow that's impressive.
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?
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.
Hello,hi, fpcup is using lazarus and fpc trunk right? so i cant really help you because im using lazarus 1.4 release.
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.
property ParentColor: Boolean default False;
intoproperty ParentColor;
Yes, currently I use fpc trunk and Lazarus trunk.Thankyou i will add this to svn repo asap.
But fpcup can install any version you want.
However, if you just changeCode: [Select]property ParentColor: Boolean default False;
intoCode: [Select]property ParentColor;
all is ok !
Thank you for your changes !
bgra-controls now installs out-of-the-box with fpcup on all systems !!
Thanks for your quick response.
I cant remember. If it is not in the settings you cant.Hi,
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-
Hi! Here is a patch with:
- InnerMargin property for label and button (so that it is possible to make it look as before by using value 0.5 for InnerMargin)
- for sprite animation, when loading a gif, to use the speed of the gif file
- for sprite animation, fixed some resource variable
r9
Added uEcontrols
- From http://sourceforge.net/projects/uecontrols/ version 5.14. Author Miguel Alberto Risco Castillo.
- Changes: changed icon folder and components tab in register procedure, removed package units to add all the units in the bgracontrols package.
r9
Added uEcontrols
- From http://sourceforge.net/projects/uecontrols/ version 5.14. Author Miguel Alberto Risco Castillo.
- Changes: changed icon folder and components tab in register procedure, removed package units to add all the units in the bgracontrols package.
Please remove uEControls and related units and files (ue*.pas) from BGRAControls, it conflicts with uEControls installations.
You cannot have two packages with equally named components in Lazarus (I had a similar issue with TAChart and a demo version of TeeChart for Lazarus).
If the author would like to take control over its controls, of course that is fair. I suppose also it was a little help to promote the controls through BGRAControls. I suppose that was the intention in the first place.
One need also to take into consideration the users of BGRAControls. What would be the transition for a project using those controls in BGRAControls package? After the controls are removed, is it as simple adding in the projects the dependency to the specific package for uecontrols? As they have the same name, I suppose there is no need to modify the LFM files.
007, what would prevent you from removing the controls? Are there modifications that have been done on those controls? In that case, you could suggest them as patches to ueControls to mrisco.
So component names are "Global" maybe I must say that? Not "BGRAControls.SomeComponent"I am not sure. Maybe in Lazarus code there isn't the unit name. Also LFM files that describe forms do not mention unit names, so there is no way to know in which unit to look for them.
Ok so the transition will probably be easy for users.QuoteSo component names are "Global" maybe I must say that? Not "BGRAControls.SomeComponent"I am not sure. Maybe in Lazarus code there isn't the unit name. Also LFM files that describe forms do not mention unit names, so there is no way to know in which unit to look for them.
It is a bit a result of the principle of Pascal that has simple unit names, and not composed ones like in .NET, like System.Windows.Forms. Well except the .NET version of Pascal of course.
property picture deprecated use bitmap.Maybe can you expand on that?
Done :)This user was me (my user name is Paskal). You can return my contributions back, they should not have problems with the original UEControls.
It was some unit left that was using uE, I think that unit was contributed some time ago by an user.
Done :)This user was me. You can return my contributions back, they should not have problems with the original UEControls.
It was some unit left that was using uE, I think that unit was contributed some time ago by an user.
In fact, he refused to accept cooperation, that is why I forked some of the components.
I suppose that uerotimage.pas rotate is the only dependency? Maybe it can be renamed and added to BGRA- Controls, so my components will work again.
Apologize for my delayed response.
First, thank you for remove uE controls.
We need to admin our package because it is used for our students in ours projects and also some of them like to use BGRAcontrols.
Best regards.
uE Group.
Project > Project Options > Resources > Add
uses
... LCLType;
BCImageButton1.LoadFromBitmapResource('BITMAP1', RT_RCDATA);
Cool. :)
How does this button handle transparency?
Unit uresize.pas contains a copyright and license text which could cause problems. The unit doesn't look too complicated. Can't you replace it with a unit written by yourself?
Here you are... ;)
...but couldn't upload an executable as file size is limited to 250kb..?
That is beautiful. Well done! Does it render the same on Linux? I can't test it myself right now.
JD
Thanks, now it's added to SVN under test folder.
Amazing work!
I've added a copy of the boost license into docs folder too, for uresize.pas (anyone can check the license and see if can use it or not, BTW license is very permissive).
Hi Lainz,
Went to try Version 4 ( Laz 1.3, fpc 2.7.1 on Windows)
and I get
bgracontrols-4.0\bgracustomdrawn.pas(61,15) Error: There is no method in an ancestor class to be overridden: "DrawButton(TFPCustomCanvas;POINT;SIZE;TCDControlState;TCDButtonStateEx);"
Same error using Laz 1.4.4 on OSX
Is the update only for FPC 3 and above?
Josh
Hi Lainz,
I can't compile the package to install it.
Is it now only for Laz 1.6/1.7 with FPC 3.0.0 or above?
BGRA Controls v4.0
Download:
https://github.com/bgrabitmap/bgracontrols/releases
Changelog:
* Added BGRA Custom Drawn controls, see here: http://forum.lazarus-ide.org/index.php/topic,33887.msg220730/topicseen.html
We have about 33 different controls now!
@Lainz,@circular, i just want to write to thank you for the time, effort and a lot of knowledge you put into FPC. And give us new tools to developers.
Many others thanks.
Theme manager that's great. That will allow easily to have the same style for one form.
Ok so a control can take control of the repaint process. :)
What glitch?
I will have to check,
I mainly use these controls; I will try with others and report back
procedure TForm1.FormDblClick(Sender: TObject);
begin
if fnt='Eurostile' then FNT:='Gill SANS MT'
else if fnt='Gill SANS MT' then FNT:='Century Gothic'
else if fnt='Century Gothic' then FNT:='Eurostile'
end;
procedure DrawEllipseHello(bmp: TBGRABitmap);
var br: TBGRACustomBitmap;
begin
bmp.FontName:=fnt;
I tried:
1) Select button on the form + rightclick/Assign style/Create new style from..
2) Select button on the form + in Object inspector/AssignStyle property/Create new style from ..
Both have same problems.
Sorry for crashing this thread.
These controls - is there any way to use this for skinning without you have to remove all your old controls and place the new ones. Is there some way these controls can be applied runtime upon startup?
Imitates the Windows 7 look, and also can be used to imitate Windows XP and Windows 8 look, and most msstyles or Windows skins. Currently is available only with BGRABitmap graphic library, and you can get this drawer in the BGRAControls package: BGRAControls
You can try to get this working if you convert the slicescaling.pas unit. The technique used to draw the images is 9-slice scaling.
Some working code to create 9-slice scaling is available here: http://sourceforge.net/p/bmpthemeutils/home/Home/
Great - then it sounds like Lazarus actually supports a very powerful skinning and styling solution :)
Hi, i just wanted to add the running-Lazarus-Cheeta (the logo.gif), an an animation, is there an easy way to add an Animated-gif ? e.G. in a TBGRASpriteAnimation ?
Great - then it sounds like Lazarus actually supports a very powerful skinning and styling solution :)
Try it then tell us how works for you.
I did my best on it.
Great - then it sounds like Lazarus actually supports a very powerful skinning and styling solution :)
Try it then tell us how works for you.
I did my best on it.
Will do - returning to it now.
Hi
I am having a problem where BCLabel and BCButton is not displaying Russian, all I get is [][][][]....
A standard TLabel is displaying correctly when I select Eurostile or Gill San Font ( these are the 2 main ones I use), when i change fontex to same font; i get the above.
Hi Lainz,
Done some testing with other bgracontrols
Image attached
BCLabel
BCMaterialsDesignButton
BCImageButton.
So far BCImage Button is the only one which is showing the font and language correctly.
Hi Lainz,
ANy update on thie issue, or were you waiting for some tests from me?
Josh
Hi lainz,
Thanks for confirming and reporting the issue on GitHub!
I've added a new control called ColorSpeedButton in BGRAControls. It uses BGRABitmap only for the Glyph on Linux. For all the drawings it uses normal Canvas, that works fine on retina display.
It has only a border and a body color, but is something you can use, not to replace all stuff that is handled in BCButton, but is fast and nice.
Ok, I send some support (2 months) because I'm using it BGRABitmap and Controls long time.
Hi , my name is Ramiro ,
I want install package BGRA Control v4.4 , and found one error , please can you help me ??
This is error
lazarus 1.8
bcbutton.pas(407,4) Fatal: Cannot open include file "icons\bcbutton_icon.lrs"
Thanks in advance
Sorry my english
Hi , my name is Ramiro ,
I want install package BGRA Control v4.4 , and found one error , please can you help me ??
This is error
lazarus 1.8
bcbutton.pas(407,4) Fatal: Cannot open include file "icons\bcbutton_icon.lrs"
Thanks in advance
Sorry my english
Hi, try using Online Package Manager to get BGRABitmap and BGRAControls.
Hi again.. What's your OS and your Lazarus version?
Hi again.. What's your OS and your Lazarus version?
Hi , thanks for you response , my OS is w7 64 bits , lazarus is 1,8 new installation 32 bits (lazarus-1.8.0-fpc-3.0.4-win32.exe) , this package is the only whats have one error ,I dont know whats happened
Thanks
Hi again.. What's your OS and your Lazarus version?
Hi , thanks for you response , my OS is w7 64 bits , lazarus is 1,8 new installation 32 bits (lazarus-1.8.0-fpc-3.0.4-win32.exe) , this package is the only whats have one error ,I dont know whats happened
Thanks
Estoy instalando esa versión de Lazarus para probarlo. Pero tengo Windows 10 y el antivirus de Windows. Eso tambien puede ser que afecte, igualmente lo pruebo.
Edito: Instale la misma versión de Lazarus 1.8 32bit Windows, instale Online Package Manager de la carpeta de componentes y después instale BGRABitmap y BGRAControls, se puede instalar sin problemas.
Quizas hay algo con tu instalación o quizás tengas algún otro programa que hace conflicto con el programa que compila los recursos?
Antivirus?
Hi again.. What's your OS and your Lazarus version?
Hi , thanks for you response , my OS is w7 64 bits , lazarus is 1,8 new installation 32 bits (lazarus-1.8.0-fpc-3.0.4-win32.exe) , this package is the only whats have one error ,I dont know whats happened
Thanks
Estoy instalando esa versión de Lazarus para probarlo. Pero tengo Windows 10 y el antivirus de Windows. Eso tambien puede ser que afecte, igualmente lo pruebo.
Edito: Instale la misma versión de Lazarus 1.8 32bit Windows, instale Online Package Manager de la carpeta de componentes y después instale BGRABitmap y BGRAControls, se puede instalar sin problemas.
Quizas hay algo con tu instalación o quizás tengas algún otro programa que hace conflicto con el programa que compila los recursos?
Antivirus?
Hola Lainz , recien termino de poner en condiciones mi maquina ...al fin pude instalar sin problemas todo ...no se que habra pasado pero ahora anda todo
Mil gracias por tu apoyo ...y consejos
Muchisimas gracias
Saludos
procedure TForm1.BGRASpeedButton1DblClick(Sender: TObject); begin if colordialog1.Execute then ChangeToolColor( colordialog1.Color ); end;
BGRASpeedButton have doubleclick event but it looks like it's not working.
Hello,
I am trying to left menu with bgracontrols and I have a question about button text style.
Is it possible to use button's text style as Tpanel's text style?
I mean bgracontrols has centered text style but I need left , right and of course center too.
In attach you can see what I mean.
Hi
I am having a problem where BCLabel and BCButton is not displaying Russian, all I get is [][][][]....
A standard TLabel is displaying correctly when I select Eurostile or Gill San Font ( these are the 2 main ones I use), when i change fontex to same font; i get the above.
Just tested on mac mini that has 1.8 installed, and the issue is still there.
The Russian shows when the default font is used, but when font name is changed to Eurostile then i get the boxes.
Using standard TLabel, Tmemo, etc then the russian is displayed ok when font is changed to Eurostile.
Hope it helps
The Odd thing is that it is not all fontsI guess the fonts that work have the needed glyphs. Check the fonts that don't work, do they have the missing glyphs?
See pic using century gothic font all is ok.
So, in fact, we can't fix it if that is not fixed on Lazarus first.There is nothing to fix, if the font does not include needed glyphs.
So, in fact, we can't fix it if that is not fixed on Lazarus first.There is nothing to fix, if the font does not include needed glyphs.
bcimagebutton.pas(48,32) Fatal: Cannot find BGRASliceScaling used by BCImageButton, incompatible ppu=C:\Components\bgrabitmap-9.6.1\bgrabitmap\lib\i386-win32\3.1.1\bgraslicescaling.ppu, package BGRABitmapPack
Hi Lainz.
Just done another fresh install of Trunk on Windows SVN57273 and getting a probloem trying to install latest bgracontrols.
Downloaded and installed bgrabitmap 9.6.1 all ok, and appear in list of packages.
Downloaded bgracontrols 4.5 and when I try to install package I get.Code: [Select]bcimagebutton.pas(48,32) Fatal: Cannot find BGRASliceScaling used by BCImageButton, incompatible ppu=C:\Components\bgrabitmap-9.6.1\bgrabitmap\lib\i386-win32\3.1.1\bgraslicescaling.ppu, package BGRABitmapPack
Has something changed with the installation ?
Yes, but as I can see, the system when draws text uses a fallback font if the font you provide does not have the glyphs. That's the reason why TLabel and TButton works fine.
Yes, but as I can see, the system when draws text uses a fallback font if the font you provide does not have the glyphs. That's the reason why TLabel and TButton works fine.
On Windows, TextOutW (and its variations) uses the supplied font, while DrawTextW does font substitution for missing glyphs.
Hi
I have removed Lazarus completely, re-insatlled latest trunk, download latest 9.6.1 installed, re-downloaded bgracontrol 4.5 and am getting the same error.
I think the lates trunk from the last few days is causing issues, with lazarus, as when you install a component the ide rebuilds, but when lazarus auto-starts it does not open as normal, you have to click the icon in the task bar to see it. Even tools build lazarus exhibits the same behaviour
Hi
I managed to get it to finally install, for some reason I had to install BGABitmap and BGRACOntrols in the same session before a rebuild of IDE, previously I installed bgrabitmap then my own components (that use bgrabitmap); then rebuilt the ide, then tried bgracontrols which failed. So something is odd in trunk.
Unfortunatly I do not use OPM, as I find that it oftens leaves multiple mis-installed components, ie if a component failed to install I have to go manually into packaged installed packages and remove them, its as though OPM is updating component list even if it fails to install them. Also I prefer to have my own set of used components with known versions that work, across different pc and platforms. I have used it though to get some latest components but do not install them from OPM, I just use OPM to download them and then I move them to my component folder. This is not negative of OPM as I think it is a very good utility to get access to components, and I do use it but not in its 'intended way'. :)
Unfortunatly I do not use OPM, as I find that it oftens leaves multiple mis-installed components, ie if a component failed to install I have to go manually into packaged installed packages and remove them, its as though OPM is updating component list even if it fails to install them. Also I prefer to have my own set of used components with known versions that work, across different pc and platforms. I have used it though to get some latest components but do not install them from OPM, I just use OPM to download them and then I move them to my component folder. This is not negative of OPM as I think it is a very good utility to get access to components, and I do use it but not in its 'intended way'.It's perfectly fine if you don't want to use OPM, you can even criticize it, I don't mind. :) In fact I don't think there is a tool that fits everyone needs. About multiple "mis-installed components" there is a "Cleanup" button(see attached image), which will automatically remove every non-installed package from the local repository. The "Open" button will open the local repository in a separate filemanager/explorer window.
I seemed to have problems on the latest install as I was adding packages for my development on the version 64-bit version but not the 32-bit version. I have a 32-bit and a 64-bit Lazarus install on my Win10 64-bit machine. Download was from source forge. I tried a download from a mirror site and no problem on the 64-bit install and adding packages on both 64 and 32 some BRGA controls in the mix. Wondering if there is some variance on the installers from mirror sites and the source forge site? 8)
@lainz
I updated BGRAControls.
Hi Lainz.
Just done another fresh install of Trunk on Windows SVN57273 and getting a probloem trying to install latest bgracontrols.
Downloaded and installed bgrabitmap 9.6.1 all ok, and appear in list of packages.
Downloaded bgracontrols 4.5 and when I try to install package I get.Code: [Select]bcimagebutton.pas(48,32) Fatal: Cannot find BGRASliceScaling used by BCImageButton, incompatible ppu=C:\Components\bgrabitmap-9.6.1\bgrabitmap\lib\i386-win32\3.1.1\bgraslicescaling.ppu, package BGRABitmapPack
Has something changed with the installation ?
Hi
Using the TFXMaterialButton control,
how can I disable the Animation. If I have multiple Buttons and then click these rapidly, my cpu uage goes from 0% to 21%
would it be possible to add some properties
down (true/false),
NomalColor,HoverColor,ClickColor,DownColor (TMaterialColors)
Hi
Using the TFXMaterialButton control,
how can I disable the Animation. If I have multiple Buttons and then click these rapidly, my cpu uage goes from 0% to 21%
would it be possible to add some properties
down (true/false),
NomalColor,HoverColor,ClickColor,DownColor (TMaterialColors)
Hi Lainz,
Thanks for getting Back to me, not the answer I was hoping for.
I will have to experiment with other Graphics Libraries to see if they display unicode text correctly with installed fonts, and possibly overtime refrain from using bgrabitmap and bgracontrols.
A shame as its a very good library.
More screenshots. Where I run into some bugs.
In BCToolbar, when I hover a button or click it, its background becomes uniform gray.
In BCXButton, the background of Button 4 is half black. Maybe related to rendering of transparent pixels.
In BGRARibbon, the some icons are not displayed and the text is written twice. The text written twice comes from the fact that the ShowCaption is set to False only after the first render. I would suggest to set it to False in the designer or in FormCreate. About the icon not displayed, I am not sure why.
Progressbars are ok.
I think that's the normal way of these buttons on Linux and mac, on Windows these are semi transparent, but I did not paint them, these are painted by the OS.Hmm ok so that would be in BGRAControls then.
Maybe we can override the paintbutton event and paint these by ourselves to have a consistent look.
I've seen that bug on Windows as well in normal buttons not BGRA ones, is due to how LCL handles transparency, nothing to do with BGRABitmap.Alright.
Hi, things get lost in time. Is good that you can remember that "style". But I also don't have it anymore.
Hi, things get lost in time. Is good that you can remember that "style". But I also don't have it anymore.
It's alright, i found it anyway, it was in the BGRAControls 1.4.0.1 Release, (the last version which includes it) found in the old BGRAControls Sourceforge project (http://"https://sourceforge.net/projects/bgracontrols/files/") (REALLY OLD, 6 years ago), and doesn't work anymore, it needs some good porting work since BGRAControls changed a lot.
Hi, is a bug but not in the control, the solution is that you need to recompile BGRABitmap and BGRAControls with clean option.I even cleaned all lazarus and all lib\*.o , lib\*.ppu and recompiled lazarus, but still buggy.
Btw, is there any chance for created TBCEdit or something like that in the future version? Hehe... It would be nice if we have that :DI think that would not be too much work use BGRATextBidi unit. Look for example at bgrabitmap/test/testbiditext2.
Cool that will make LazPaint beautiful :)
So that's an improvement only for lucky Windows users. :D
Hello!
I cannot compile BGRAControls 6.7:
bcpanel.pas(98,15) Error: There is no method in an ancestor class to be overridden: "SetParentBackground(const Boolean);"
Linux, Lazarus 1.8.4.
Maybe I made something wrong...
I'm not at the PC right now, but you can try on a more recent version of Lazarus?
I'm not at the PC right now, but you can try on a more recent version of Lazarus?
Thank you for your answer. OK, I will try.
Thanks for reporting I will try to make it compatible with older versions.
@Lainz
Is there LCLVersion in uses clause?
Oh indeed.
I think it is a bug in the source editor.
But in fact when it compiles, it is checked correctly.
You can try by adding an unknown identifier in the gray code to check that it is compiled.
There seems to be a bug in control "BcRadialProgressbar".
Changing property "Color" in editor does not change Preview until I also change "FontShadowColor".
I think I found the problem.Cool.
If I use OPM and I select only bgrabitmappack and bgracontrols with nothing more, it works.Yes. I can confirm this, BGRABitmap with BGRAControls can be installed without any issues. :)
Say that next I want to install BGLControls, then I get a similar problem:This is also confirmed.
lainz, having the packages in several repositories has no effect on the compilation issues when you merge both repositiories to the same folder on the compiling machine.Repositories are not merged into a single folder.
I also separated the output folders, i.e. package 1 compiles to lib/package1, package 2 to lib/package2 etc. This way the compilation issues could be solved. There is still a "duplicate unit" message sometimes.I get "ambiguous unit" if I only change the output folder.
Hello Lainz,
I did some modifications to the original BCMDButtons.pas file.
For example, I implemented the feature to specify the color of a checked TabButton and the feature to specify the position of the colored check mark of an checked TabButton.
See the screenshot of my test-file here: https://www.screencast.com/t/aRIXUtnB
I am not familar with GitHub, pull-requests and so on.
Are you willing to put my modifications to the offical source code?
Attached you will find my bcmdbutton.pas file and a ZIP Archive with the test-project
Fritz
#0 DELETEOBJECT(738529576) at .\include\winapi.inc:180 #1 TCUSTOMBITMAP__FREEMASKHANDLE(<error reading variable>) at .\include\custombitmap.inc:110 #2 TCUSTOMBITMAP__DESTROY(<incomplete type>, <error reading variable>) at .\include\custombitmap.inc:56 #3 SYSTEM$_$TOBJECT_$__$$_FREE at :0 #4 FINALIZE$_$BGRATEXT at :0 #5 SYSTEM_$$_FINALIZEUNITS at :0 #6 SYSTEM_$$_SYSFLUSHSTDIO at :0 #7 VMT_$FORMS_$$_TSCREEN$indirect at :0 #8 ?? at :0 #9 SYSINITPAS_$$__FPC_DLLMAINCRTSTARTUP$LONGINT$LONGWORD$POINTER at :0 #10 wcsncmp at :0 #11 ntdll!RtlGetDaclSecurityDescriptor at :0 #12 ntdll!LdrUnloadDll at :0 #13 ?? at :0 #14 KERNELBASE!FreeLibrary at :0 |
Can you provide a project we can compile and debug? And some kind of instruction on how to test that.
I never coded such a thing like a form on a dll so I have no idea.
That's great 8)
Vector power :-*
Basically it is a bit like Anchors (akLeft, akTop etc.) but you can specify a control instead of the form border.
There is small memory leak with some XML functions, maybe that's not so important.
There is small memory leak with some XML functions, maybe that's not so important.
Thanks for maintaining those beautiful controls :)
I've tried TBCMaterialProgressBarMarquee. That works well on MacOS. An interesting way of showing progression when we don't know how much time it is going to take. :)
...yes
Is it as simple as copying all the flies and directories from the latest and doing an IDE rebiuld....
Thanks for the reply paweld, that sounds like just what I need. Many thanks :D
Hi.Hi lainz, I'm sure there's nothing wrong with the newest version, it's just that I use Lazarus in various OS VM's to check and compile projects (Windows, Linux x64, x32 etc), I know it's not ideal, but there you go. I've just added another Linux flavour VM, so it's to keep the consistency across all VM's. I've since found the easiest way is to copy an existing Linux .lazarus folder to the new VM.
What's wrong with the newest version that you need to get back to old version?
Just to see if we can do something.
;)
Hallo @Lainz,
Thanks for keep updating both BGRABitmap and BGRAControls.
Your last improvement by adding a Color property of BCPanel was great!
I'd have four suggestions to TBCComboBox component (numbering below in order of increasing effort, more or less):
- adding a color property to set "original" component backgroud (see attached pic)
- adding a horizontal line between the items in combo box with width and color property
- Drop Down menu as one class -> one property like TBCButtonState
- separated class for triangle to set parameters like color, width, proportion, etc. Maybe it will be enough to add one of the buttons on the triangle's place? As design idea please see attached pic.
Please consider above suggestions while updating the components next time!
Best wishes,
Ernest
Hi all.
I have developed a small ProgressRing (like WinUI3 ProgressRing).
There are two modes: Determinate and Indeterminate.
Honestly, I'm not sure if I used Canvas2D correctly for drawing or should I choose CanvasBGRA?