Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 10:58

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Background image / Insert Code onto assigned tabs

Discussion on Background image / Insert Code onto assigned tabs within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2014
Posts: 14
Received Thanks: 0
Background image / Insert Code onto assigned tabs

I got a background image to work on the program I am writing. It shows up on all backgrounds of all of the tabs. I would just like to have the image to apply to only the first tab of the program.


GUICreate("Chronos", 650, 650) ; will create a dialog box that when displayed is centered

GUISetBkColor(0xffffff)
GUISetFont(9, 300)
$hPic_background = GUICtrlCreatePic("bg.jpg", 35,35, 540, 560)
;; create more controls here
GUICtrlSetState($hPic_background, $GUI_DISABLE)

Code above is for background image.

Also, was wondering if there is a way to anchor part of the codes that I wrote to a specific tab?
Purge75 is offline  
Old 07/23/2014, 12:16   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
I hope I understood it correctly. The background is on the gui and should show up if the first tab is selected? With this snippet you can read out the current selected tab, simply add the GUICtrlSetState(Enable, Disable) inside the While-Loop to display/hide the picture.

Code:
$Form1 = GUICreate("Form1", 309, 219, 192, 124)
$Tab1 = GUICtrlCreateTab(8, 8, 289, 193)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")
GUISetState(@SW_SHOW)

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case -3
			Exit

		Case $Tab1
			MsgBox(64, "GUICtrlRead($Tab1)", GUICtrlRead($Tab1))

	EndSwitch
WEnd
alpines is offline  
Old 07/24/2014, 01:59   #3
 
elite*gold: 0
Join Date: Jul 2014
Posts: 14
Received Thanks: 0
Here is my current code of where I am at. Where would I put your code into as to the position of it?

;#include <GUIConstants.au3>

#cs Chonos
Notes here.

#ce

#include <GUIConstantsEx.au3>
#Include <GuiButton.au3>
#include <GuiTab.au3>
#include <array.au3>
#include <windowsconstants.au3>
#include <file.au3>
#include <winapi.au3>
#include <gdiplus.au3>
#include <misc.au3>

$dll=dllopen("user32.dll")

dim $cardname [99]
dim $cardset [99]
dim $cardqty [99]
dim $cardprice [99]
dim $update
dim $run
dim $stop
dim $fcursor
dim $guismg
dim $qtyval [10]
dim $price
dim $player
dim $playerarray [9999]
dim $checksum
const $milang_english = 9
dim $i
dim $j
dim $midoc, $doc
dim $str
dim $oword
dim $sarray [99]
dim $count
dim $tickettaken
dim $bg
dim $goto
dim $temp
dim $credit

$maxtime = 600000

Tabs()

Func tabs()
GUICreate("Chronos", 650, 650) ; will create a dialog box that when displayed is centered

GUISetBkColor(0xffffff)
GUISetFont(9, 300)
$hPic_background = GUICtrlCreatePic("bg.jpg", 35,35, 540, 560)
;; create more controls here
GUICtrlSetState($hPic_background, $GUI_DISABLE)


GUICtrlCreateTab(10, 10, 600, 600)
GUICtrlCreateTabItem("Main")
GUICtrlCreateTabItem("Controls")
GUICtrlCreateTabItem("Sets")
Guictrlcreatetabitem("Admin")
GUICtrlCreateTabItem("Prices")
GUICtrlCreateTabItem("Adjustments")
GUICtrlCreateTabItem("Messages")
GUICtrlCreateTabItem("Your Account")
GUICtrlCreateTabItem("") ; end tabitem definition

GUISetState(@SW_SHOW)
Local $idMsg
; Loop until the user exits.
While 1
$idMsg = GUIGetMsg()

If $idMsg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Tabs

Sets()

Func Sets()
; create a gui with multiple controls.
Local $hGUI = GUICreate("Sets", 800, 700)


; Create a checkbox control.
Local $idCheckbox1 = GUICtrlCreateCheckbox("5DN", 1, 25, 185, 25)
Local $idCheckbox2 = GUICtrlCreateCheckbox("7E", 1, 50, 185, 25)
Local $idCheckbox3 = GUICtrlCreateCheckbox("8ED", 1, 75, 185, 25)
Local $idCheckbox4 = GUICtrlCreateCheckbox("9ED", 1, 100, 185, 25)
Local $idCheckbox5 = GUICtrlCreateCheckbox("BOK", 1, 125, 185, 25)
Local $idCheckbox6 = GUICtrlCreateCheckbox("AP", 1, 150, 185, 25)
Local $idCheckbox7 = GUICtrlCreateCheckbox("IN", 1, 175, 185, 25)
Local $idCheckbox8 = GUICtrlCreateCheckbox("PS", 1, 200, 185, 25)
Local $idCheckbox9 = GUICtrlCreateCheckbox("OD", 1, 225, 185, 25)
Local $idCheckbox10 = GUICtrlCreateCheckbox("TOR", 1, 250, 185, 25)
Local $idCheckbox11 = GUICtrlCreateCheckbox("JUD", 1, 275, 185, 25)
Local $idCheckbox12 = GUICtrlCreateCheckbox("ONS", 1, 300, 185, 25)
Local $idCheckbox13 = GUICtrlCreateCheckbox("LGN", 1, 325, 185, 25)
Local $idCheckbox14 = GUICtrlCreateCheckbox("SCG", 1, 350, 185, 25)
Local $idCheckbox15 = GUICtrlCreateCheckbox("MRD", 1, 375, 185, 25)
Local $idCheckbox16 = GUICtrlCreateCheckbox("DST", 1, 400, 185, 25)
Local $idCheckbox17 = GUICtrlCreateCheckbox("CHK", 1, 425, 185, 25)
Local $idCheckbox18 = GUICtrlCreateCheckbox("SOK", 1, 450, 185, 25)
Local $idCheckbox19 = GUICtrlCreateCheckbox("RAV", 1, 475, 185, 25)
Local $idCheckbox20 = GUICtrlCreateCheckbox("GPT", 1, 500, 185, 25)
Local $idCheckbox21 = GUICtrlCreateCheckbox("DIS", 50, 25, 185, 25)
Local $idCheckbox22 = GUICtrlCreateCheckbox("ICE", 50, 50, 185, 25)
Local $idCheckbox23 = GUICtrlCreateCheckbox("CSP", 50, 75, 185, 25)
Local $idCheckbox24 = GUICtrlCreateCheckbox("TSB", 50, 100, 185, 25)
Local $idCheckbox25 = GUICtrlCreateCheckbox("TSP", 50, 125, 185, 25)
Local $idCheckbox26 = GUICtrlCreateCheckbox("PLC", 50, 150, 185, 25)
Local $idCheckbox27 = GUICtrlCreateCheckbox("PRM", 50, 175, 185, 25)
Local $idCheckbox28 = GUICtrlCreateCheckbox("MI", 50, 200, 185, 25)
Local $idCheckbox29 = GUICtrlCreateCheckbox("VI", 50, 225, 185, 25)
Local $idCheckbox30 = GUICtrlCreateCheckbox("WL", 50, 250, 185, 25)
Local $idCheckbox31 = GUICtrlCreateCheckbox("ST", 50, 275, 185, 25)
Local $idCheckbox32 = GUICtrlCreateCheckbox("UZ", 50, 300, 185, 25)
Local $idCheckbox33 = GUICtrlCreateCheckbox("BOO", 50, 325, 185, 25)
Local $idCheckbox34 = GUICtrlCreateCheckbox("FUT", 50, 350, 185, 25)
Local $idCheckbox35 = GUICtrlCreateCheckbox("10E", 50, 375, 185, 25)
Local $idCheckbox36 = GUICtrlCreateCheckbox("MED", 50, 400, 185, 25)
Local $idCheckbox37 = GUICtrlCreateCheckbox("LRW", 50, 425, 185, 25)
Local $idCheckbox38 = GUICtrlCreateCheckbox("EVG", 50, 450, 185, 25)
Local $idCheckbox39 = GUICtrlCreateCheckbox("MOR", 50, 475, 185, 25)
Local $idCheckbox40 = GUICtrlCreateCheckbox("VAN", 50, 500, 185, 25)
Local $idCheckbox41 = GUICtrlCreateCheckbox("SMH", 100, 25, 185, 25)
Local $idCheckbox42 = GUICtrlCreateCheckbox("EVE", 100, 50, 185, 25)
Local $idCheckbox43 = GUICtrlCreateCheckbox("ME2", 100, 75, 185, 25)
Local $idCheckbox44 = GUICtrlCreateCheckbox("ALA", 100, 100, 185, 25)
Local $idCheckbox45 = GUICtrlCreateCheckbox("TE", 100, 125, 185, 25)
Local $idCheckbox46 = GUICtrlCreateCheckbox("CON", 100, 150, 185, 25)
Local $idCheckbox47 = GUICtrlCreateCheckbox("DDC", 100, 175, 185, 25)
Local $idCheckbox48 = GUICtrlCreateCheckbox("ARB", 100, 200, 185, 25)
Local $idCheckbox49 = GUICtrlCreateCheckbox("M10", 100, 225, 185, 25)
Local $idCheckbox50 = GUICtrlCreateCheckbox("ME3", 100, 250, 185, 25)
Local $idCheckbox51 = GUICtrlCreateCheckbox("TDO", 100, 275, 185, 25)
Local $idCheckbox52 = GUICtrlCreateCheckbox("ZEN", 100, 300, 185, 25)
Local $idCheckbox53 = GUICtrlCreateCheckbox("V09", 100, 325, 185, 25)
Local $idCheckbox54 = GUICtrlCreateCheckbox("EX", 100, 350, 185, 25)
Local $idCheckbox55 = GUICtrlCreateCheckbox("WWK", 100, 375, 185, 25)
Local $idCheckbox56 = GUICtrlCreateCheckbox("ROE", 100, 400, 185, 25)
Local $idCheckbox57 = GUICtrlCreateCheckbox("DDE", 100, 425, 185, 25)
Local $idCheckbox58 = GUICtrlCreateCheckbox("H09", 100, 450, 185, 25)
Local $idCheckbox59 = GUICtrlCreateCheckbox("UL", 100, 475, 185, 25)
Local $idCheckbox60 = GUICtrlCreateCheckbox("M11", 100, 500, 185, 25)
Local $idCheckbox61 = GUICtrlCreateCheckbox("V10", 150, 25, 185, 25)
Local $idCheckbox62 = GUICtrlCreateCheckbox("DDF", 150, 50, 185, 25)
Local $idCheckbox63 = GUICtrlCreateCheckbox("SOM", 150, 75, 185, 25)
Local $idCheckbox64 = GUICtrlCreateCheckbox("ME4", 150, 100, 185, 25)
Local $idCheckbox65 = GUICtrlCreateCheckbox("PD2", 150, 125, 185, 25)
Local $idCheckbox66 = GUICtrlCreateCheckbox("MBS", 150, 150, 185, 25)
Local $idCheckbox67 = GUICtrlCreateCheckbox("UD", 150, 175, 185, 25)
Local $idCheckbox68 = GUICtrlCreateCheckbox("NPH", 150, 200, 185, 25)
Local $idCheckbox69 = GUICtrlCreateCheckbox("CMD", 150, 225, 185, 25)
Local $idCheckbox70 = GUICtrlCreateCheckbox("DDG", 150, 250, 185, 25)
Local $idCheckbox71 = GUICtrlCreateCheckbox("M12", 150, 275, 185, 25)
Local $idCheckbox72 = GUICtrlCreateCheckbox("DDH", 150, 300, 185, 25)
Local $idCheckbox73 = GUICtrlCreateCheckbox("TD2", 150, 325, 185, 25)
Local $idCheckbox74 = GUICtrlCreateCheckbox("ISD", 150, 350, 185, 25)
Local $idCheckbox75 = GUICtrlCreateCheckbox("V11", 150, 375, 185, 25)
Local $idCheckbox76 = GUICtrlCreateCheckbox("MM", 150, 400, 185, 25)
Local $idCheckbox77 = GUICtrlCreateCheckbox("NE", 150, 425, 185, 25)
Local $idCheckbox78 = GUICtrlCreateCheckbox("PR", 150, 450, 185, 25)
Local $idCheckbox79 = GUICtrlCreateCheckbox("DKA", 150, 475, 185, 25)
Local $idCheckbox80 = GUICtrlCreateCheckbox("DDI", 150, 500, 185, 25)
Local $idCheckbox81 = GUICtrlCreateCheckbox("AVR", 200, 25, 185, 25)
Local $idCheckbox82 = GUICtrlCreateCheckbox("PD3", 200, 50, 185, 25)
Local $idCheckbox83 = GUICtrlCreateCheckbox("M13", 200, 75, 185, 25)
Local $idCheckbox84 = GUICtrlCreateCheckbox("V12", 200, 100, 185, 25)
Local $idCheckbox85 = GUICtrlCreateCheckbox("PC1", 200, 125, 185, 25)
Local $idCheckbox86 = GUICtrlCreateCheckbox("PC2", 200, 150, 185, 25)
Local $idCheckbox87 = GUICtrlCreateCheckbox("RTR", 200, 175, 185, 25)
Local $idCheckbox88 = GUICtrlCreateCheckbox("DDJ", 200, 200, 185, 25)
Local $idCheckbox89 = GUICtrlCreateCheckbox("GTC", 200, 225, 185, 25)
Local $idCheckbox90 = GUICtrlCreateCheckbox("DDK", 200, 250, 185, 25)
Local $idCheckbox91 = GUICtrlCreateCheckbox("DGM", 200, 275, 185, 25)
Local $idCheckbox92 = GUICtrlCreateCheckbox("MMA", 200, 300, 185, 25)
Local $idCheckbox93 = GUICtrlCreateCheckbox("M14", 200, 325, 185, 25)
Local $idCheckbox94 = GUICtrlCreateCheckbox("THS", 200, 350, 185, 25)
Local $idCheckbox95 = GUICtrlCreateCheckbox("V13", 200, 375, 185, 25)
Local $idCheckbox96 = GUICtrlCreateCheckbox("DDL", 200, 400, 185, 25)
Local $idCheckbox97 = GUICtrlCreateCheckbox("C13", 200, 425, 185, 25)
Local $idCheckbox98 = GUICtrlCreateCheckbox("BNG", 200, 450, 185, 25)
Local $idCheckbox99 = GUICtrlCreateCheckbox("JOU", 200, 475, 185, 25)
Local $idCheckbox100 = GUICtrlCreateCheckbox("DDM", 200, 500, 185, 25)
Local $idCheckbox101 = GUICtrlCreateCheckbox("VMA", 259, 25, 185, 25)
Local $idCheckbox102 = GUICtrlCreateCheckbox("M15", 250, 25, 185, 25)
Local $idClose = GUICtrlCreateButton("Close", 75, 550, 85, 25)

Dim $content[102] = ["5DN","7E","8ED","9ED","BOK","AP","IN","PS","OD"," TOR","JUD","ONS","LGN","SCG","MRD","DST","CHK","SO K","RAV","GPT","DIS","ICE","CSP","TSB","TSP","PLC" ,"PRM","MI","VI","WL","ST","UZ","BOO","FUT","10E", "MED","LRW","EVG","MOR","VAN","SMH","EVE","ME2","A LA","TE","CON","DDC","ARB","M10","ME3","TDO","ZEN" ,"V09","EX","WWK","ROE","DDE","H09","UL","M11","V1 0","DDF","SOM","ME4","PD2","MBS","UD","NPH","CMD", "DDG","M12","DDH","TD2","ISD","V11","MM","NE","PR" ,"DKA","DDI","AVR","PD3","M13","V12","PC1","PC2"," RTR","DDJ","GTC","DDK","DGM","MMA","M14","THS","V1 3","DDL","C13","BNG","JOU","DDM","VMA","M15"]
Dim $checkbox[UBound($content)]
GUICreate("Sets", 300, 530, Default, Default, 0x10C80000)
For $y=0 To 19
For $x=0 To 5
If 20*$x+$y>=UBound($content) Then ExitLoop
$checkbox[20*$x+$y] = GUICtrlCreateCheckbox($content[20*$x+$y], $x*50, $y*25, 49, 25)
Next
Next
Local $close = GUICtrlCreateButton("Close", 107, 500, 85, 25)

While True
$msg = GUIGetMsg()
Switch $msg
Case 0, -11, -7, -8
Case -3, $close
Exit
Case Else
For $i=0 To UBound($checkbox)-1
If $checkbox[$i] = $msg Then ConsoleWrite("$checkbox["&$i&"] = "&GUICtrlRead($checkbox[$i]) & @CRLF)
Next
EndSwitch
WEnd

EndFunc ;==>Sets
Purge75 is offline  
Old 07/26/2014, 01:24   #4
 
elite*gold: 0
Join Date: Jul 2014
Posts: 14
Received Thanks: 0
Ok, with the editing of the first, I was able to get the image to appear only on the first tab. All I did was insert text between tab 1 and tab 2. When I tried to do the same thing with the script for the sets, and try to run it, only the sets box comes up and does not show all tabs.
Working script with image on front page
;#include <GUIConstants.au3>

#cs Chonos


#ce

#include <GUIConstantsEx.au3>
#Include <GuiButton.au3>
#include <GuiTab.au3>
#include <array.au3>
#include <windowsconstants.au3>
#include <file.au3>
#include <winapi.au3>
#include <gdiplus.au3>
#include <misc.au3>

$dll=dllopen("user32.dll")

dim $cardname [99]
dim $cardset [99]
dim $cardqty [99]
dim $cardprice [99]
dim $update
dim $run
dim $stop
dim $fcursor
dim $guismg
dim $qtyval [10]
dim $price
dim $player
dim $playerarray [9999]
dim $checksum
const $milang_english = 9
dim $i
dim $j
dim $midoc, $doc
dim $str
dim $oword
dim $sarray [99]
dim $count
dim $tickettaken
dim $bg
dim $goto
dim $temp
dim $credit

$maxtime = 360000

$Form1 = GUICreate("Chronos", 650, 650)
$Tab1 = GUICtrlCreateTab(10, 10, 600, 600)
$TabSheet1 = GUICtrlCreateTabItem("Main")
GUISetBkColor(0xffffff)
GUISetFont(9, 300)
;$bg=guictrlcreatepic("bg.jpeg",540,560)
$hPic_background = GUICtrlCreatePic("bg.jpg", 35,35, 540, 560)
;; create more controls here
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")

$TabSheet2 = GUICtrlCreateTabItem("Controls")
$TabSheet3 = GUICtrlCreateTabItem("Sets")
$TabSheet4 = GUICtrlCreateTabItem("Admin")
$TabSheet5 = GUICtrlCreateTabItem("Prices")
$TabSheet6 = GUICtrlCreateTabItem("Adjustments")
$TabSheet7 = GUICtrlCreateTabItem("Messages")
$TabSheet8 = GUICtrlCreateTabItem("Your Account")
$TabSheet9 = GUICtrlCreateTabItem("")
$TabSheet10 = GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit

Case $Tab1

EndSwitch
WEnd



Second copy of script when trying to get scripts to appear on their tabs. It opened up only the sets box, with no tabs shown or the outside box. (which is in error of not showing everything as in first script as to working right on the correct tab)

;#include <GUIConstants.au3>

#cs Chonos


#ce

#include <GUIConstantsEx.au3>
#Include <GuiButton.au3>
#include <GuiTab.au3>
#include <array.au3>
#include <windowsconstants.au3>
#include <file.au3>
#include <winapi.au3>
#include <gdiplus.au3>
#include <misc.au3>

$dll=dllopen("user32.dll")

dim $cardname [99]
dim $cardset [99]
dim $cardqty [99]
dim $cardprice [99]
dim $update
dim $run
dim $stop
dim $fcursor
dim $guismg
dim $qtyval [10]
dim $price
dim $player
dim $playerarray [9999]
dim $checksum
const $milang_english = 9
dim $i
dim $j
dim $midoc, $doc
dim $str
dim $oword
dim $sarray [99]
dim $count
dim $tickettaken
dim $bg
dim $goto
dim $temp
dim $credit

$maxtime = 360000

$Form1 = GUICreate("Chronos", 650, 650)
$Tab1 = GUICtrlCreateTab(10, 10, 600, 600)
$TabSheet1 = GUICtrlCreateTabItem("Main")
GUISetBkColor(0xffffff)
GUISetFont(9, 300)
;$bg=guictrlcreatepic("bg.jpeg",540,560)
$hPic_background = GUICtrlCreatePic("bg.jpg", 35,35, 540, 560)
;; create more controls here
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")

$TabSheet2 = GUICtrlCreateTabItem("Controls")
$TabSheet3 = GUICtrlCreateTabItem("Sets")
GUISetBkColor(0xffffff)
GUISetFont(9, 300)
Local $idCheckbox1 = GUICtrlCreateCheckbox("5DN", 1, 25, 185, 25)
Local $idCheckbox2 = GUICtrlCreateCheckbox("7E", 1, 50, 185, 25)
Local $idCheckbox3 = GUICtrlCreateCheckbox("8ED", 1, 75, 185, 25)
Local $idCheckbox4 = GUICtrlCreateCheckbox("9ED", 1, 100, 185, 25)
Local $idCheckbox5 = GUICtrlCreateCheckbox("BOK", 1, 125, 185, 25)
Local $idCheckbox6 = GUICtrlCreateCheckbox("AP", 1, 150, 185, 25)
Local $idCheckbox7 = GUICtrlCreateCheckbox("IN", 1, 175, 185, 25)
Local $idCheckbox8 = GUICtrlCreateCheckbox("PS", 1, 200, 185, 25)
Local $idCheckbox9 = GUICtrlCreateCheckbox("OD", 1, 225, 185, 25)
Local $idCheckbox10 = GUICtrlCreateCheckbox("TOR", 1, 250, 185, 25)
Local $idCheckbox11 = GUICtrlCreateCheckbox("JUD", 1, 275, 185, 25)
Local $idCheckbox12 = GUICtrlCreateCheckbox("ONS", 1, 300, 185, 25)
Local $idCheckbox13 = GUICtrlCreateCheckbox("LGN", 1, 325, 185, 25)
Local $idCheckbox14 = GUICtrlCreateCheckbox("SCG", 1, 350, 185, 25)
Local $idCheckbox15 = GUICtrlCreateCheckbox("MRD", 1, 375, 185, 25)
Local $idCheckbox16 = GUICtrlCreateCheckbox("DST", 1, 400, 185, 25)
Local $idCheckbox17 = GUICtrlCreateCheckbox("CHK", 1, 425, 185, 25)
Local $idCheckbox18 = GUICtrlCreateCheckbox("SOK", 1, 450, 185, 25)
Local $idCheckbox19 = GUICtrlCreateCheckbox("RAV", 1, 475, 185, 25)
Local $idCheckbox20 = GUICtrlCreateCheckbox("GPT", 1, 500, 185, 25)
Local $idCheckbox21 = GUICtrlCreateCheckbox("DIS", 50, 25, 185, 25)
Local $idCheckbox22 = GUICtrlCreateCheckbox("ICE", 50, 50, 185, 25)
Local $idCheckbox23 = GUICtrlCreateCheckbox("CSP", 50, 75, 185, 25)
Local $idCheckbox24 = GUICtrlCreateCheckbox("TSB", 50, 100, 185, 25)
Local $idCheckbox25 = GUICtrlCreateCheckbox("TSP", 50, 125, 185, 25)
Local $idCheckbox26 = GUICtrlCreateCheckbox("PLC", 50, 150, 185, 25)
Local $idCheckbox27 = GUICtrlCreateCheckbox("PRM", 50, 175, 185, 25)
Local $idCheckbox28 = GUICtrlCreateCheckbox("MI", 50, 200, 185, 25)
Local $idCheckbox29 = GUICtrlCreateCheckbox("VI", 50, 225, 185, 25)
Local $idCheckbox30 = GUICtrlCreateCheckbox("WL", 50, 250, 185, 25)
Local $idCheckbox31 = GUICtrlCreateCheckbox("ST", 50, 275, 185, 25)
Local $idCheckbox32 = GUICtrlCreateCheckbox("UZ", 50, 300, 185, 25)
Local $idCheckbox33 = GUICtrlCreateCheckbox("BOO", 50, 325, 185, 25)
Local $idCheckbox34 = GUICtrlCreateCheckbox("FUT", 50, 350, 185, 25)
Local $idCheckbox35 = GUICtrlCreateCheckbox("10E", 50, 375, 185, 25)
Local $idCheckbox36 = GUICtrlCreateCheckbox("MED", 50, 400, 185, 25)
Local $idCheckbox37 = GUICtrlCreateCheckbox("LRW", 50, 425, 185, 25)
Local $idCheckbox38 = GUICtrlCreateCheckbox("EVG", 50, 450, 185, 25)
Local $idCheckbox39 = GUICtrlCreateCheckbox("MOR", 50, 475, 185, 25)
Local $idCheckbox40 = GUICtrlCreateCheckbox("VAN", 50, 500, 185, 25)
Local $idCheckbox41 = GUICtrlCreateCheckbox("SMH", 100, 25, 185, 25)
Local $idCheckbox42 = GUICtrlCreateCheckbox("EVE", 100, 50, 185, 25)
Local $idCheckbox43 = GUICtrlCreateCheckbox("ME2", 100, 75, 185, 25)
Local $idCheckbox44 = GUICtrlCreateCheckbox("ALA", 100, 100, 185, 25)
Local $idCheckbox45 = GUICtrlCreateCheckbox("TE", 100, 125, 185, 25)
Local $idCheckbox46 = GUICtrlCreateCheckbox("CON", 100, 150, 185, 25)
Local $idCheckbox47 = GUICtrlCreateCheckbox("DDC", 100, 175, 185, 25)
Local $idCheckbox48 = GUICtrlCreateCheckbox("ARB", 100, 200, 185, 25)
Local $idCheckbox49 = GUICtrlCreateCheckbox("M10", 100, 225, 185, 25)
Local $idCheckbox50 = GUICtrlCreateCheckbox("ME3", 100, 250, 185, 25)
Local $idCheckbox51 = GUICtrlCreateCheckbox("TDO", 100, 275, 185, 25)
Local $idCheckbox52 = GUICtrlCreateCheckbox("ZEN", 100, 300, 185, 25)
Local $idCheckbox53 = GUICtrlCreateCheckbox("V09", 100, 325, 185, 25)
Local $idCheckbox54 = GUICtrlCreateCheckbox("EX", 100, 350, 185, 25)
Local $idCheckbox55 = GUICtrlCreateCheckbox("WWK", 100, 375, 185, 25)
Local $idCheckbox56 = GUICtrlCreateCheckbox("ROE", 100, 400, 185, 25)
Local $idCheckbox57 = GUICtrlCreateCheckbox("DDE", 100, 425, 185, 25)
Local $idCheckbox58 = GUICtrlCreateCheckbox("H09", 100, 450, 185, 25)
Local $idCheckbox59 = GUICtrlCreateCheckbox("UL", 100, 475, 185, 25)
Local $idCheckbox60 = GUICtrlCreateCheckbox("M11", 100, 500, 185, 25)
Local $idCheckbox61 = GUICtrlCreateCheckbox("V10", 150, 25, 185, 25)
Local $idCheckbox62 = GUICtrlCreateCheckbox("DDF", 150, 50, 185, 25)
Local $idCheckbox63 = GUICtrlCreateCheckbox("SOM", 150, 75, 185, 25)
Local $idCheckbox64 = GUICtrlCreateCheckbox("ME4", 150, 100, 185, 25)
Local $idCheckbox65 = GUICtrlCreateCheckbox("PD2", 150, 125, 185, 25)
Local $idCheckbox66 = GUICtrlCreateCheckbox("MBS", 150, 150, 185, 25)
Local $idCheckbox67 = GUICtrlCreateCheckbox("UD", 150, 175, 185, 25)
Local $idCheckbox68 = GUICtrlCreateCheckbox("NPH", 150, 200, 185, 25)
Local $idCheckbox69 = GUICtrlCreateCheckbox("CMD", 150, 225, 185, 25)
Local $idCheckbox70 = GUICtrlCreateCheckbox("DDG", 150, 250, 185, 25)
Local $idCheckbox71 = GUICtrlCreateCheckbox("M12", 150, 275, 185, 25)
Local $idCheckbox72 = GUICtrlCreateCheckbox("DDH", 150, 300, 185, 25)
Local $idCheckbox73 = GUICtrlCreateCheckbox("TD2", 150, 325, 185, 25)
Local $idCheckbox74 = GUICtrlCreateCheckbox("ISD", 150, 350, 185, 25)
Local $idCheckbox75 = GUICtrlCreateCheckbox("V11", 150, 375, 185, 25)
Local $idCheckbox76 = GUICtrlCreateCheckbox("MM", 150, 400, 185, 25)
Local $idCheckbox77 = GUICtrlCreateCheckbox("NE", 150, 425, 185, 25)
Local $idCheckbox78 = GUICtrlCreateCheckbox("PR", 150, 450, 185, 25)
Local $idCheckbox79 = GUICtrlCreateCheckbox("DKA", 150, 475, 185, 25)
Local $idCheckbox80 = GUICtrlCreateCheckbox("DDI", 150, 500, 185, 25)
Local $idCheckbox81 = GUICtrlCreateCheckbox("AVR", 200, 25, 185, 25)
Local $idCheckbox82 = GUICtrlCreateCheckbox("PD3", 200, 50, 185, 25)
Local $idCheckbox83 = GUICtrlCreateCheckbox("M13", 200, 75, 185, 25)
Local $idCheckbox84 = GUICtrlCreateCheckbox("V12", 200, 100, 185, 25)
Local $idCheckbox85 = GUICtrlCreateCheckbox("PC1", 200, 125, 185, 25)
Local $idCheckbox86 = GUICtrlCreateCheckbox("PC2", 200, 150, 185, 25)
Local $idCheckbox87 = GUICtrlCreateCheckbox("RTR", 200, 175, 185, 25)
Local $idCheckbox88 = GUICtrlCreateCheckbox("DDJ", 200, 200, 185, 25)
Local $idCheckbox89 = GUICtrlCreateCheckbox("GTC", 200, 225, 185, 25)
Local $idCheckbox90 = GUICtrlCreateCheckbox("DDK", 200, 250, 185, 25)
Local $idCheckbox91 = GUICtrlCreateCheckbox("DGM", 200, 275, 185, 25)
Local $idCheckbox92 = GUICtrlCreateCheckbox("MMA", 200, 300, 185, 25)
Local $idCheckbox93 = GUICtrlCreateCheckbox("M14", 200, 325, 185, 25)
Local $idCheckbox94 = GUICtrlCreateCheckbox("THS", 200, 350, 185, 25)
Local $idCheckbox95 = GUICtrlCreateCheckbox("V13", 200, 375, 185, 25)
Local $idCheckbox96 = GUICtrlCreateCheckbox("DDL", 200, 400, 185, 25)
Local $idCheckbox97 = GUICtrlCreateCheckbox("C13", 200, 425, 185, 25)
Local $idCheckbox98 = GUICtrlCreateCheckbox("BNG", 200, 450, 185, 25)
Local $idCheckbox99 = GUICtrlCreateCheckbox("JOU", 200, 475, 185, 25)
Local $idCheckbox100 = GUICtrlCreateCheckbox("DDM", 200, 500, 185, 25)
Local $idCheckbox101 = GUICtrlCreateCheckbox("VMA", 259, 25, 185, 25)
Local $idCheckbox102 = GUICtrlCreateCheckbox("M15", 250, 25, 185, 25)

Dim $content[102] = ["5DN","7E","8ED","9ED","BOK","AP","IN","PS","OD"," TOR","JUD","ONS","LGN","SCG","MRD","DST","CHK","SO K","RAV","GPT","DIS","ICE","CSP","TSB","TSP","PLC" ,"PRM","MI","VI","WL","ST","UZ","BOO","FUT","10E", "MED","LRW","EVG","MOR","VAN","SMH","EVE","ME2","A LA","TE","CON","DDC","ARB","M10","ME3","TDO","ZEN" ,"V09","EX","WWK","ROE","DDE","H09","UL","M11","V1 0","DDF","SOM","ME4","PD2","MBS","UD","NPH","CMD", "DDG","M12","DDH","TD2","ISD","V11","MM","NE","PR" ,"DKA","DDI","AVR","PD3","M13","V12","PC1","PC2"," RTR","DDJ","GTC","DDK","DGM","MMA","M14","THS","V1 3","DDL","C13","BNG","JOU","DDM","VMA","M15"]
Dim $checkbox[UBound($content)]
GUICreate("Sets", 300, 530, Default, Default, 0x10C80000)
For $y=0 To 19
For $x=0 To 5
If 20*$x+$y>=UBound($content) Then ExitLoop
$checkbox[20*$x+$y] = GUICtrlCreateCheckbox($content[20*$x+$y], $x*50, $y*25, 49, 25)
Next
Next
Local $close = GUICtrlCreateButton("Close", 107, 500, 85, 25)

While True
$msg = GUIGetMsg()
Switch $msg
Case 0, -11, -7, -8
Case -3, $close
Exit
Case Else
For $i=0 To UBound($checkbox)-1
If $checkbox[$i] = $msg Then ConsoleWrite("$checkbox["&$i&"] = "&GUICtrlRead($checkbox[$i]) & @CRLF)
Next
EndSwitch
WEnd
$TabSheet4 = GUICtrlCreateTabItem("Admin")
$TabSheet5 = GUICtrlCreateTabItem("Prices")
$TabSheet6 = GUICtrlCreateTabItem("Adjustments")
$TabSheet7 = GUICtrlCreateTabItem("Messages")
$TabSheet8 = GUICtrlCreateTabItem("Your Account")
$TabSheet9 = GUICtrlCreateTabItem("")
$TabSheet10 = GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit

Case $Tab1

EndSwitch
WEnd
Attached Images
File Type: jpg test2.jpg (88.1 KB, 6 views)
File Type: jpg bg.jpg (8.4 KB, 6 views)
Purge75 is offline  
Reply


Similar Threads Similar Threads
[Buying] Image Background Transparent
01/05/2014 - Artist Trading - 1 Replies
Looking for someone to make an image background transparent. Image is not very big. (~Signature Size) Please post price and Skype, if interested.
Insert image
02/09/2013 - Technical Support - 2 Replies
What are the requirements to insert an image on your thread for epvp. i heard a bunch of things and just wanted to know if anyone could help me figure this out. I'm currently trying to put one on my thread but all i get is the url in text.
Lost Crusade - Background Image ?
04/08/2012 - Flyff Private Server - 9 Replies
Hallo, ich wollte anstatt diese eintönigen Farbe ein Image im Lost Crusade Template einbauen, dazu hab ich in der Main.css bei Body das hier: body { width: 1066px; background: #2dcef0; margin: 0 auto; font-size: 12px; font-family: Verdana;
Background Image
02/12/2009 - GW Bots - 2 Replies
Hallo, ich würde gerne in meine/m/r GUI ein Hintergrundbild definieren, leider habe ich keine Funktion dafür gefunden. Weiß wer Rat? Rosemarie



All times are GMT +2. The time now is 10:58.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.