guanjl 发表于 2009-7-8 09:35:55

如何建一个白底背景的闪屏?

用SplashTextOn 做的闪屏背景都是如下图样子。

怎么样把背景改成白色的呢?

sanmoking 发表于 2009-7-8 15:04:17

不会,同顶我一直想改变
SplashTextOn("安全卸载", "宝宝,我找不到你的优盘啊", @DesktopWidth/2, @DesktopHeight/20, -1, -1, 33, "", @DesktopHeight/60)的背景颜色,它默认的颜色是系统外观色彩方案里面的三维物体的颜色来控制的。。

guanjl 发表于 2009-7-9 14:12:18

不知道能否实现。

lynfr8 发表于 2009-7-9 14:44:29

$destination = "..\GUI\mslogo.jpg"
SplashImageOn("Splash Screen", $destination,250,50)
Sleep(3000)
SplashOff()如果非要实现就用SplashImageOn加载白底图片咯

kn007 发表于 2009-7-9 17:55:32

。。。。。。。。学习先

cnsnc 发表于 2009-7-9 21:15:32

本帖最后由 cnsnc 于 2009-7-9 21:17 编辑

如果觉得加图片麻烦那就直接建个无标题置顶窗口,设置底色为白色应试可以了
用GUI里的函数就可以了

sanmoking 发表于 2009-7-23 18:17:02

gui是否比闪屏占资源大?

lynfr8 发表于 2009-7-24 02:06:59

楼上自己写一个然后看看进程不就知道答案咯

sanmoking 发表于 2009-7-31 11:02:25

楼上直接告诉答案吧。。。。
测试中看到的只是表象。。有理论依据的才能让人信服啊。。

sanmoking 发表于 2009-7-31 11:21:29

算了自己试了一下,验证了我的看法。。
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("Form1", 313, 102, 192, 124)
$Label1 = GUICtrlCreateLabel("hello world", 16, 16, 54, 70)
GUISetState(@SW_SHOW)
While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
SplashTextOn("Form1", "hello world", @DesktopWidth/2, @DesktopHeight/20, -1, -1, 33, "", @DesktopHeight/60)


While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd

上面分别是一个gui的例子和一个闪屏的例子。都是编译成exe后运行的。如图:
页: [1]
查看完整版本: 如何建一个白底背景的闪屏?