Sign in to follow this  
Followers 0

Custom PNG MsgBox -example

17 posts in this topic

#1 ·  Posted (edited)

Hi, guys!

This is just an example of something I've been working on the last few days. Now, this wouldn't be special if there wasn't for one cool feature - GUI is completely built from PNG images. And when I say built, I mean built! Entire GUI is built from tiny PNG parts and it's size depends from the length of the longest line of text. You might ask: why from tiny PNG parts? - Well, my ultimate goal is to make the compiled size as small as possible. And I can only achieve that by reducing size of the required resources...

I hope someone will find it useful.

Preview:

post-51444-0-42382100-1323207238_thumb.p

Download (v1.1):

MsgBoxWithExamples.zip

Previous downloads: 6

As always, I would like to know what you think about it :D

P.S.

It's not a complete msgbox replacement since there are only 'OK' and 'Yes/No' buttons. Like I said, it's only an example.

Edited by playlet
2 people like this

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Look very nice !

But i don't see any text ! :D

Posted Image

Edit : i'm on Xp

Edited by wakillon

AutoIt 3.3.14.0 X86 - SciTE 3.5.4WIN 8.1 X64

Share this post


Link to post
Share on other sites

#5 ·  Posted

What about this one?

No text too ! :D

AutoIt 3.3.14.0 X86 - SciTE 3.5.4WIN 8.1 X64

Share this post


Link to post
Share on other sites

#6 ·  Posted

In both examples I get this error on Windows 7 x64 >> (Note: I haven't tried to debug the problem.)

C:UsersUserDesktopTestTestMsgBox with Examples.au3 (114) : ==> Subscript used with non-Array variable.:

If $pos[4] = $PosLab[$i][0] Then

If $pos^ ERROR


UDF List:

 

_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

 

 

Updated: 02/04/2015

Share this post


Link to post
Share on other sites

#7 ·  Posted

In both examples I get this error on Windows 7 x64 >> (Note: I haven't tried to debug the problem.)

Me too. But on WinXP!


Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

@wakillon

What about my Launcher - can you see the text on the left side of the initial splash GUI saying: "Ultimate Launcher" and just below that "v1.3.0.x"? - it uses the same function to draw the text.

@everyone

I'll have to suspend working on the script until I install Windows 7 in dual boot. I can't fix scripts this way, it's the only option...

By the way, what service pack are you using on Windows 7?

Edited by playlet

Share this post


Link to post
Share on other sites

#9 ·  Posted

@wakillon

What about my Launcher - can you see the text on the left side of the initial splash GUI saying: "Ultimate Launcher" and just below that "v1.3.0.x"? - it uses the same function to draw the text.

I see no text at all ! :D


AutoIt 3.3.14.0 X86 - SciTE 3.5.4WIN 8.1 X64

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

I can't believe it's not working, you have the exact same configuration as I do (your signature)

One minute, i will try with another computer...

Edit : it works well with my netbook on XP

Sorry, may be an incompatibility with WindowBlinds i use on my desktop Computer !

Edited by wakillon

AutoIt 3.3.14.0 X86 - SciTE 3.5.4WIN 8.1 X64

Share this post


Link to post
Share on other sites

#13 ·  Posted

It runs for me on Win7-X64 in 32-Bit-Mode but not in 64-Bit-Mode.

Looks very nice btw.


Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Share this post


Link to post
Share on other sites

#14 ·  Posted

hi

very nice

as ınputbox, maybe can use

Share this post


Link to post
Share on other sites

#16 ·  Posted

Im going to give this a try, will include you in the credits if used


-ThaReverand"http://numerous-silhouettes.com/"

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0