Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change color of a substring of a caption
Message
From
06/03/2019 06:29:04
 
 
To
06/03/2019 01:04:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01666960
Message ID:
01667010
Views:
66
Hi Christian,

>Would you have some examples to share how that looks like?

I can alas - not allowed - not share our production online. Our productions are not really hi-end anyway! But well it's easy to guess that you can produce whatever is required. What you have to keep in mind when building these resources is that you need to choose an image-building library that you are comfortable with. I use chartdirector (https://www.advsofteng.com/) - but if you are comfy with GDI, Cairo (https://www.cairocanvasx.com/) or whatever, go this way !

The only issues then:
1) make sure the resource you build "on the fly" are PNGs,
2) better have them in memory than in temp files (chartdirector will do that - not aware for other libs),
3) handle the alpha-layer explicitly,
4) beware of the background coloring when imposing your png-based picture,
5) anti-aliasing and the like - it will be raster bitmaps but only this,
6) creativity and artistic talent. Mine are pretty limited. But smart people can and will deliver smart albeit conventional UIs this way.

Chartdirector is a splending chart-building tool. We use it from VFP. Hence the decision to use it as a limited widget-building. It is limited when it comes to building text and arbitrary graphic primitives- but its CDML does the color-text string in a snap (https://www.advsofteng.com/doc/cdpydoc/cdml.htm).

Should I have the time for more, I'd certainly try to check VFP-or-COM-based GDI or CAIRO-based alternatives as well.

Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform