1 Attachment(s)
Re: [VB6] FIRENZE LABEL - label control with so many functions
How to add some features for better control
I use the 3D Active Button Magic control and it has very good features.
If it can be added to the Firenze Label control, it would be great.
For example, you can control multiple captions
in all directions by changing the color and font of each title
Attachment 190660
Re: [VB6] FIRENZE LABEL - label control with so many functions
Quote:
Originally Posted by
Mojtaba
How to add some features for better control
...
For example, you can control multiple captions
in all directions by changing the color and font of each title
Since the Firence-Label is windowless (using relatively few resources) -
why not solve this problem via:
- multiple Label-Controls
- instead of multiple Captions per Label-Control
IMO such cases should be relatively rare - adding a few more Labels should not be overly complicated.
Olaf
2 Attachment(s)
Re: [VB6] FIRENZE LABEL - label control with so many functions
Quote:
Originally Posted by
Schmidt
Since the Firence-Label is windowless (using relatively few resources) -
why not solve this problem via:
- multiple Label-Controls
- instead of multiple Captions per Label-Control
IMO such cases should be relatively rare - adding a few more Labels should not be overly complicated.
Olaf
I am making a lunar, solar and Gregorian calendar and I need a lot of stickers
Attachment 190676
Attachment 190677
Isn't this method better with fewer labels?
Re: [VB6] FIRENZE LABEL - label control with so many functions
What about writing your own (windowless) "ucLunarCell.ctl",
which incorporates 3 of the FirenceLabel-Controls on its "Control-Rectangle"...?
Olaf
Re: [VB6] FIRENZE LABEL - label control with so many functions
Quote:
Originally Posted by
Schmidt
What about writing your own (windowless) "ucLunarCell.ctl",
which incorporates 3 of the FirenceLabel-Controls on its "Control-Rectangle"...?
Olaf
Olaf, can you explain more, or you give me a sample?
In my opinion in these cases
It is better to have a label with multiple titles
It also takes less time to set up in terms of sorting and does not require multiple tags
Re: [VB6] FIRENZE LABEL - label control with so many functions
Is there an easy way to change the color of SVG icons?
Re: [VB6] FIRENZE LABEL - label control with so many functions
Quote:
Originally Posted by
Mojtaba
Is there an easy way to change the color of SVG icons?
The following Demo shows exactly, how this can be done...
https://www.vbforums.com/showthread....vbRichClient5)
Olaf
1 Attachment(s)
Re: [VB6] FIRENZE LABEL - label control with so many functions
Quote:
Originally Posted by
Schmidt
Thanks Olaf, the problem is that I call the SVG images outside _FontAwesomeSVGs.wac and I can't change the color of the icons.
I think there is a problem with karo1 control
Can you test it? I have 3 karo1 controls on the form, each of which has an SVG image, and I want to change the color of the icons with a button.
I prepared the project and added all the resources
Attachment 191290
1 Attachment(s)
Re: [VB6] FIRENZE LABEL - label control with so many functions
The .ParseContent method of cSVG has a second CSS parameter where you can supply CSS to change the fill colour of the path. e.g. in the karo/firenze label .Draw method:
Code:
SVG.ParseContent m_Picture, "path { fill: yellow; }"
Produces the following:
Attachment 191292
Re: [VB6] FIRENZE LABEL - label control with so many functions
Quote:
Originally Posted by
jpbro
The .ParseContent method of cSVG has a second CSS parameter where you can supply CSS to change the fill colour of the path. e.g. in the karo/firenze label .Draw method:
Code:
SVG.ParseContent m_Picture, "path { fill: yellow; }"
Produces the following:
Attachment 191292
Thanks, jpbro, what should I do if I want to change the color from inside the form?
And another point is that all icons change color and it is not possible to consider a specific color for each icon?
Re: [VB6] FIRENZE LABEL - label control with so many functions
Quote:
Originally Posted by
Mojtaba
Thanks, jpbro, what should I do if I want to change the color from inside the form?
And another point is that all icons change color and it is not possible to consider a specific color for each icon?
I don't think the label is being developed by the original author any more, so I can't think of any downsides to extending it with your own code as needed at this point. You could add a FillColor property and then you could set the colour for any specific instance to any colour you need. If the .Draw method, add the CSS for the defined FillColor.
1 Attachment(s)
Re: [VB6] FIRENZE LABEL - label control with so many functions
Quote:
Originally Posted by
jpbro
I don't think the label is being developed by the original author any more, so I can't think of any downsides to extending it with your own code as needed at this point. You could add a FillColor property and then you could set the colour for any specific instance to any colour you need. If the .Draw method, add the CSS for the defined FillColor.
I added an SVGColor property, but I can't set it to change the color of the icon
Attachment 191335
Re: [VB6] FIRENZE LABEL - label control with so many functions
Quote:
Originally Posted by
Mojtaba
I added an SVGColor property, but I can't set it to change the color of the icon
Attachment 191335
You're most of the way there - the problem is that you aren't using your SVGColor value in the SVG CSS. You currently have this line in your Draw method:
Code:
CC.SetSourceColor m_SVGColor, m_BackColorOpacity / 100
and this one when you load/parse the SVG data:
Code:
SVG.ParseContent m_Picture, "path { fill: red; }"
You need to get rid of the first line and change the second one to use the SVGColor value (converted to RGB Hex).
1 Attachment(s)
Re: [VB6] FIRENZE LABEL - label control with so many functions
Thanks jpbro :wave:
I have Done it
Re: [VB6] FIRENZE LABEL - label control with so many functions
Quote:
Originally Posted by
Mojtaba
Thanks jpbro :wave:
I have Done it
I put the code for friends to use, a feature to change the color of the SVG icon
Nice! Thank you for sharing the code :)
1 Attachment(s)
Re: [VB6] FIRENZE LABEL - New Update
FIRENZE LABEL - New Update
+ New Property
• SVGColor : Change The Color of The SVG icon
• SVGOpacity : Change Transparency of SVG icon A number between 0.1 and 1
• SVGRotation : Rotation SVG icon A number between 0 and 360
To Change the color of svg symbols, it is better to have black SVG images
Attachment 191350
Re: [VB6] FIRENZE LABEL - New Update
Quote:
Originally Posted by
Mojtaba
FIRENZE LABEL - New Update
+ New Property
• SVGColor : Change The Color of The SVG icon
• SVGOpacity : Change Transparency of SVG icon A number between 0.1 and 1
• SVGRotation : Rotation SVG icon A number between 0 and 360
Nice, ... I see you're getting "the hang of it"... :)
Olaf
Re: [VB6] FIRENZE LABEL - New Update
Quote:
Originally Posted by
Schmidt
Nice, ... I see you're getting "the hang of it"... :)Olaf
Thanks Olaf, these controls would not have been created without your efforts :)
Your great work (vbRichClient)
2 Attachment(s)
Re: [VB6] FIRENZE LABEL - label control with so many functions
Olaf, I want to add Blur mode
I added the BackBlur feature
Please guide me in this regard
This image is related to the LabelPlus control
Gdiplus is used, I want to use Cairo
Attachment 191362
Only the more optimized the code, the better
I saw this article but could not apply it to the control
New Property BackBlur
Attachment 191361
1 Attachment(s)
Re: [VB6] FIRENZE LABEL - label control with so many functions
I did this with the help of the widget and the GaussianBlur effect, the only problem is that the control should be captured and called inside itself.
Attachment 191396
Code:
Set Blr = BackBuf.GaussianBlur(8, Offs)
CC.RoundedRect m_BorderWidth - 1, m_BorderWidth - 1, UserControl.ScaleWidth - (m_BorderWidth * 2) + 2, UserControl.ScaleHeight - (m_BorderWidth * 2) + 2, 0, True, cmAll, False
CC.Clip True: CC.RenderSurfaceContent Blr, -Offs, -Offs: CC.ResetClip
Re: [VB6] FIRENZE LABEL - label control with so many functions
Here's your latest Firenze-Label-Zip - now with BGPicture-Property
(which allows a simplified way to set Image-Backgrounds with arbitrary opacities, as e.g. "frosted-window.jpg")
https://vbRichClient.com/Downloads/B...ithBGImage.zip
Here is, what it looks like... (have choosen the first best "frosted window jpg" which came up in google).
https://www.vbforums.com/images/ieimages/2024/05/1.png
Olaf
Re: [VB6] FIRENZE LABEL - label control with so many functions
Quote:
Originally Posted by
Schmidt
Here's your latest Firenze-Label-Zip - now with BGPicture-Property
(which allows a simplified way to set Image-Backgrounds with arbitrary opacities, as e.g. "frosted-window.jpg")
Here is, what it looks like... (have choosen the first best "frosted window jpg" which came up in google).
Olaf
Hello, this image does not give crystal, it can be used as a pattern
I went most of the way, just need to take a picture from under the control and link it to m_picture
The blur effect is done on the photo
Just tell me how to take a picture below the control
I put the code, add an image to the control, and if BackBlur=true, the image will be blurred
Reference vbWidgets.dll or RC6Widgets.dll
New sample :