一些文本具有100%透明背景,作为启动画面 [英] Some Text with 100% transparent background, as a splash screen

查看:54
本文介绍了一些文本具有100%透明背景,作为启动画面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用透明背景作为启动画面使用文本(使用整个真实状态屏幕)。

背景是屏幕上的任何内容,当时我的(漂亮)MFC应用程序实例化。

完成它的最佳/最简单的方法是什么?





改进,如所要求的一些成员:



我不明白上面的问题中哪些不清楚。启动屏幕是一种众所周知的技术,用于向用户显示应用程序已启动,但需要一些时间才能完全正常运行。通常,启动画面会显示一些图像。在我的情况下,我想显示一个特定的文本(取决于特定用户,基于存储在数据库中的数据)将显示在整个屏幕上,并且必须具有透明背景。这意味着用户将体验到与屏幕中显示的文本不同的视觉效果。我希望这可以解决任何不理解(为什么没有人要求澄清?)。



P.S。:我不明白为什么在没有任何要求澄清的成员的情况下关闭这个职位。顺便说一句,关于*** SPLASH SCREEN ***有什么神秘之处?

I want to use as a splash screen a text (that uses the whole real state screen) with transparent background.
The background is whatever is on screen, at the time my (nice) MFC application is instantiated.
What's the best/simplest method to accomplish it?


Improvement, as asked by some members:

I don't understand what's not clear in the question above. A splash screen is a very well known technique to show the user that the application is started, but it takes some time to be fully functional. In general, a splash screen shows some image. In my case, I want to show a specific text (that is dependent on the specific user, based on data stored in a DB) that will be shown on the whole screen, and must have transparent background. This means the user will experience a visual effect that just differs on the text displayed in the screen. I hope this clears out any incomprehension (why didn't anyone asked for clarifications?).

P.S.: I don't understand why the post was closed without any of the memebers having asked for clarifications. By the way, what's so mysterious about ***SPLASH SCREEN***?

推荐答案

基于你的评论
引用:

在实现一些代码之前,我想收集有关解决问题的技术的建议。

Before implementing some code, I want to gather suggestions about a technique to solve the problem.

我可能会尝试类似的东西......



创建一个由透明文本框组成的复合用户控件 - 示例这里 [ ^ ] - 显然不可编辑。



我可能会在控件初始化时处理所有相对定位,z顺序等,并暴露出一个属性允许我更新图像和文字。



我将它放在我的泼水形式上改变不透明度形式也让它变得透明。



实际上,* I *只会使用带有动态生成文本的普通闪屏 - 这样你就能更好地控制是否或并非用户实际上可以在任何背景上阅读文本。并且不要指望通过占用整个屏幕空间来赢得很多朋友 - 当你的应用程序加载时,你会让用户更难以做其他事情

I would probably try something like...

Create a composite user control consisting of a transparent Text Box - example here[^] - obviously not editable.

I'd probably handle all of the relative positioning, z-order etc on the initialisation of the control and expose a property that would allow me to update the image and the text.

I'd place that on my splash form altering the opacity of the form to make it transparent also.

Actually, *I* would just use a normal splash screen with dynamically generated text - that way you have more control on whether or not the user can actually read the text on whatever background is present. And don't expect to win many friends by using up the entire screen real estate - you're making it more difficult for the user to "do something else" while your application is loading


这篇关于一些文本具有100%透明背景,作为启动画面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆