找回密码
 加入
搜索
查看: 11225|回复: 4

[图形处理] 关于GUICtrlCreateLabel文字的背景

[复制链接]
发表于 2013-10-2 08:16:56 | 显示全部楼层 |阅读模式
今天写一个用户登录时发现GUICtrlCreateLabel文字的背景是白色的,感觉跟背景颜色不一样很难看,还有按钮的边缘的能不能修一下的,还有最下面的那个输入条能不能透明化跟背景一样的颜色。各位大侠有没有办法解决。感谢指导![attachimg]25626[/attachi
$Label1 = GUICtrlCreateLabel("用户名:", 340, 330, 55, 20)
GUICtrlSetFont(-1, 12, 400, 0, "微软雅黑")
$Label2 = GUICtrlCreateLabel("密  码:", 340, 380, 55, 20)
GUICtrlSetFont(-1, 12, 400, 0, "微软雅黑")
$input_name = GUICtrlCreateInput("", 410, 330, 121, 21)
$input_pass = GUICtrlCreateInput("", 410, 380, 121, 21)
$Button1 = GUICtrlCreateButton("登录", 370, 420, 70, 25)
GUICtrlSetFont(-1, 12, 400, 0, "微软雅黑")
$Button2 = GUICtrlCreateButton("退出", 460, 420, 70, 25)
GUICtrlSetFont(-1, 12, 400, 0, "微软雅黑")
$Label3 = GUICtrlCreateLabel("", 370, 460, 150, 20)
GUICtrlSetColor(-1, 0xFF0000)
mg]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2013-10-2 18:12:55 | 显示全部楼层
小白表示可能还是跟瘟七的透明主题不完全兼容导致...
发表于 2013-10-2 21:53:20 | 显示全部楼层
本帖最后由 Ycxw2008 于 2013-10-2 21:55 编辑

好吧,你的问题我用Koda1分钟帮你做好了
建议你多看看帮助。这些问题 帮助文件上写的明明白白

还有修边缘 和 底下的那个透明的问题  
只要你 善于搜索+仔细研究帮助文件 就OK了

#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("窗体1", 313, 188, 302, 218)
GUISetFont(12, 400, 0, "微软雅黑")
GUISetBkColor(0x3399FF)
$Label1 = GUICtrlCreateLabel("用户名:", 64, 32, 68, 25)
$Label2 = GUICtrlCreateLabel("密 码:", 64, 80, 68, 25)
GUICtrlCreateInput("", 136, 32, 121, 29)
GUICtrlCreateInput("", 136, 80, 121, 29)
$Label3 = GUICtrlCreateLabel("", 64, 128, 196, 22)
GUICtrlSetBkColor(-1, 0xFFFFFF)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

        EndSwitch
WEnd
发表于 2013-10-5 18:28:05 | 显示全部楼层
不觉得“微软雅黑”好看的飘过
发表于 2013-10-5 20:00:23 | 显示全部楼层
不觉得“微软雅黑”好看的飘过
seniors 发表于 2013-10-5 18:28



    同感...
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-7 03:23 , Processed in 0.075487 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表