找回密码
 加入
搜索
查看: 2199|回复: 8

[GUI管理] 求助:关于进度条被压到背景图片之下

  [复制链接]
发表于 2016-9-13 13:59:43 | 显示全部楼层 |阅读模式
请求各位大神不吝赐教:
    为什么给程序添加背景图片之后,进度条就无法显示了?之前是按钮都不可用,后来参考论坛里大神们的指导把图片设成disable后可以正常,但进度条还是无法显示,请大神来把把脉啊!
#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.14.2
 Author:         myName

 Script Function:
        Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
#include <ButtonConstants.au3>                ;按钮头文件
#include <EditConstants.au3>                ;编辑框头文件
#include <GUIConstantsEx.au3>
#include <ComboConstants.au3>                ;下拉列表框头文件
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <GuiRichEdit.au3>
#include <Constants.au3>                        ;读取计算机出厂序列号所需头文件
#include <Timers.au3>                                ;计时器所需头文件
#include <file.au3>                                        ;文本读写头文件

#Region ### START Koda GUI section ### Form=c:\程序装机软件1.kxf
$Form1_1 = GUICreate("装机软件", 534, 534, 151, 126)
$Pic1 = GUICtrlCreatePic(".\picture\background.jpg", 0, -8, 532, 540)
GUICtrlSetState($Pic1, $GUI_DISABLE)

$Progress1 = GUICtrlCreateProgress(32, 72, 470, 17, BitOR($WS_BORDER,$WS_CLIPSIBLINGS,$WS_VISIBLE))
$Group1 = GUICtrlCreateGroup("详细步骤",  32, 104, 473, 169)
$Edit_output = _GUICtrlRichEdit_Create($Form1_1,"", 40, 120, 457, 145, BitOR($Es_READONLY, $WS_VSCROLL, $ES_MULTILINE, $ES_AUTOVSCROLL))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button_exit = GUICtrlCreateButton("退出", 424, 352, 75, 25)
$Button_setup = GUICtrlCreateButton("一键安装", 328, 312, 75, 25)
$Button_info = GUICtrlCreateButton("版本信息", 424, 312, 75, 25)

;设置下拉列表框
Global $pot = ""                                        ;存储下拉列表内容
$Combo1 = GUICtrlCreateCombo("", 32, 312, 201, 21,BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
$var = IniReadSection(@ScriptDir&'\info\SoftConfig.ini',"安装套餐")
        If @error Then
        Else
                For $i = 1 To $var[0][0]
                        $pot = $pot & "|" & $var[$i][1]
                Next
    GUICtrlSetData($Combo1, StringTrimLeft ($pot, 1), $var[1][1])
        EndIf

GUISetState(@SW_SHOW)

MsgBox(0, "为啥啊","为啥啊")
发表于 2016-9-13 14:25:14 | 显示全部楼层
回复 1# 寒冰冷雪

$Progress1 = GUICtrlCreateProgress(32, 72, 470, 17, BitOR($WS_BORDER,$WS_CLIPSIBLINGS,$WS_VISIBLE))
改为:
$Progress1 = GUICtrlCreateProgress(32, 72, 470, 17, $PBS_SMOOTH)
发表于 2016-9-13 14:28:21 | 显示全部楼层
回复 1# 寒冰冷雪

本帖子中包含更多资源

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

×
发表于 2016-9-13 14:47:25 | 显示全部楼层
恩哼?  愣是没看明白
发表于 2016-9-13 14:48:29 | 显示全部楼层
你可以调整控件排列顺序!   把图标置于底层
发表于 2016-9-13 14:48:59 | 显示全部楼层
用AU3自带的GUI工具画也行!  画完看参数!
 楼主| 发表于 2016-9-13 15:53:03 | 显示全部楼层
@chzj589 太酷了
发表于 2016-9-13 16:07:37 | 显示全部楼层
留个脚印学习。
发表于 2016-9-18 01:42:57 | 显示全部楼层
这个进度条 怎么弄
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-24 06:47 , Processed in 0.080082 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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