-
Mar 7th, 2024, 08:08 AM
#41
Addicted Member
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
Last edited by Mojtaba; Mar 7th, 2024 at 08:11 AM.
-
Mar 8th, 2024, 06:58 AM
#42
Re: [VB6] FIRENZE LABEL - label control with so many functions
 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
-
Mar 8th, 2024, 07:09 AM
#43
Addicted Member
Re: [VB6] FIRENZE LABEL - label control with so many functions
 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


Isn't this method better with fewer labels?
Last edited by Mojtaba; Mar 8th, 2024 at 07:19 AM.
-
Mar 8th, 2024, 07:22 AM
#44
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
-
Mar 8th, 2024, 07:33 AM
#45
Addicted Member
Re: [VB6] FIRENZE LABEL - label control with so many functions
 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
Last edited by Mojtaba; Mar 8th, 2024 at 08:46 AM.
-
Apr 20th, 2024, 04:35 PM
#46
Addicted Member
Re: [VB6] FIRENZE LABEL - label control with so many functions
Is there an easy way to change the color of SVG icons?
-
Apr 23rd, 2024, 02:29 AM
#47
Re: [VB6] FIRENZE LABEL - label control with so many functions
 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
-
Apr 23rd, 2024, 03:03 PM
#48
Addicted Member
Re: [VB6] FIRENZE LABEL - label control with so many functions
 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
Last edited by Mojtaba; Apr 27th, 2024 at 12:23 AM.
-
Apr 23rd, 2024, 03:40 PM
#49
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:
Last edited by jpbro; Apr 23rd, 2024 at 04:14 PM.
-
Apr 23rd, 2024, 04:25 PM
#50
Addicted Member
Re: [VB6] FIRENZE LABEL - label control with so many functions
 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:

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?
Last edited by Mojtaba; Apr 23rd, 2024 at 04:29 PM.
-
Apr 23rd, 2024, 04:39 PM
#51
Re: [VB6] FIRENZE LABEL - label control with so many functions
 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.
Last edited by jpbro; Apr 23rd, 2024 at 04:42 PM.
-
Apr 26th, 2024, 07:49 AM
#52
Addicted Member
Re: [VB6] FIRENZE LABEL - label control with so many functions
 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
Last edited by Mojtaba; Apr 27th, 2024 at 12:23 AM.
-
Apr 26th, 2024, 09:09 AM
#53
Re: [VB6] FIRENZE LABEL - label control with so many functions
 Originally Posted by Mojtaba
I added an SVGColor property, but I can't set it to change the color of the icon

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).
-
Apr 26th, 2024, 10:56 AM
#54
Addicted Member
-
Apr 26th, 2024, 02:09 PM
#55
Re: [VB6] FIRENZE LABEL - label control with so many functions
 Originally Posted by Mojtaba
Thanks jpbro
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
-
Apr 26th, 2024, 04:22 PM
#56
Addicted Member
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
Last edited by Mojtaba; Apr 27th, 2024 at 02:14 AM.
-
Apr 27th, 2024, 03:09 AM
#57
Re: [VB6] FIRENZE LABEL - New Update
 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
-
Apr 27th, 2024, 03:37 AM
#58
Addicted Member
Re: [VB6] FIRENZE LABEL - New Update
 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)
Last edited by Mojtaba; Apr 27th, 2024 at 03:49 AM.
-
Apr 27th, 2024, 07:58 AM
#59
-
Apr 29th, 2024, 04:18 AM
#60
Addicted Member
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.

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
-
May 1st, 2024, 07:03 AM
#61
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).

Olaf
-
May 1st, 2024, 11:54 AM
#62
Addicted Member
Re: [VB6] FIRENZE LABEL - label control with so many functions
 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 :
Last edited by Mojtaba; May 1st, 2024 at 11:59 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|