TheDcoder Posted July 19, 2015 Share Posted July 19, 2015 (edited) Hello, I am trying to figure out what is the problem but I am can't seem to find it , Here is the GUI:Local $hGUI = GUICreate("Magic Number Calculator", 528, 287) GUISetBkColor(0xFFFFFF, $hGUI) GUICtrlCreateGroup("Control Panel", 7, 2, 514, 110) GUICtrlCreateLabel("Function:", 14, 21, 98, 15) GUICtrlCreateLabel("Corrected Function:", 14, 44, 98, 15) GUICtrlCreateLabel("Status:", 14, 67, 50, 15) Local $idFunctionInput = GUICtrlCreateInput("", 113, 16, 325, 20) Local $idCorrectedFunctionInput = GUICtrlCreateInput("", 113, 38, 325, 20, $ES_READONLY) Local $idPasteButton = GUICtrlCreateButton("Paste", 442, 15, 74, 22, $BS_BITMAP) Local $idCopyButton = GUICtrlCreateButton("Copy", 442, 37, 74, 22, $BS_BITMAP) Local $idHelpAndAboutButton = GUICtrlCreateButton("Help && About", 442, 60, 74, 22, $BS_BITMAP) Global $idStatusBar = GUICtrlCreateLabel("Idle", 113, 61, 325, 20, $SS_CENTER) Local $idCalculateButton = GUICtrlCreateButton("Calculate!", 221, 83, 100, 26, $BS_BITMAP) Local $idStyleList = GUICtrlCreateListView("Style|Value", 7, 117, 253, 164) Local $idExStyleList = GUICtrlCreateListView("Ex-Style|Value", 268, 117, 253, 164) GUICtrlSetImage($idPasteButton, @ScriptDir & '\Media\Icons\page_copy.png') GUICtrlSetImage($idCopyButton, @ScriptDir & '\Media\Icons\page.png') GUICtrlSetImage($idCalculateButton, @ScriptDir & '\Media\Icons\calculator.png')GUISetState()Icons: Thanks in advance, TD Edited July 19, 2015 by TheDcoder EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
LarsJ Posted July 19, 2015 Share Posted July 19, 2015 PNG images are not directly supported by GUICtrlSetImage. But it's possible to use PNG images with GDIPlus. Search helpfile and forum for examples. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
TheDcoder Posted July 19, 2015 Author Share Posted July 19, 2015 @LarsJ Oh, thanks! EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Xandy Posted July 19, 2015 Share Posted July 19, 2015 (edited) guisetstate()You need that to show your window Edited July 19, 2015 by Xandy Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now