求助:关于进度条被压到背景图片之下
请求各位大神不吝赐教:为什么给程序添加背景图片之后,进度条就无法显示了?之前是按钮都不可用,后来参考论坛里大神们的指导把图片设成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
$pot = $pot & "|" & $var[$i]
Next
GUICtrlSetData($Combo1, StringTrimLeft ($pot, 1), $var)
EndIf
GUISetState(@SW_SHOW)
MsgBox(0, "为啥啊","为啥啊") 回复 1# 寒冰冷雪
$Progress1 = GUICtrlCreateProgress(32, 72, 470, 17, BitOR($WS_BORDER,$WS_CLIPSIBLINGS,$WS_VISIBLE))
改为:
$Progress1 = GUICtrlCreateProgress(32, 72, 470, 17, $PBS_SMOOTH) 回复 1# 寒冰冷雪
恩哼?愣是没看明白 你可以调整控件排列顺序! 把图标置于底层 用AU3自带的GUI工具画也行!画完看参数! @chzj589 太酷了 留个脚印学习。 这个进度条 怎么弄
页:
[1]