Jump to content



Photo

Custom PNG MsgBox -example


  • Please log in to reply
16 replies to this topic

#1 playlet

playlet

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 467 posts

Posted 06 December 2011 - 09:53 PM

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:
MB-Preview.png

Download (v1.1):
Attached File  MsgBoxWithExamples.zip   16.49KB   709 downloads
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, 07 December 2011 - 01:39 AM.








#2 playlet

playlet

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 467 posts

Posted 07 December 2011 - 01:40 AM

Update: v1.1
  • added Yes/No buttons


#3 wakillon

wakillon

    Je suis Charlie

  • Active Members
  • PipPipPipPipPipPip
  • 3,012 posts

Posted 07 December 2011 - 09:34 AM

Look very nice !

But i don't see any text ! :D

Posted Image
Edit : i'm on Xp

Edited by wakillon, 07 December 2011 - 09:45 AM.


#4 playlet

playlet

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 467 posts

Posted 07 December 2011 - 11:52 AM

What about this one?

<attachment removed>

Edited by playlet, 31 December 2011 - 12:22 AM.


#5 wakillon

wakillon

    Je suis Charlie

  • Active Members
  • PipPipPipPipPipPip
  • 3,012 posts

Posted 07 December 2011 - 12:07 PM

What about this one?


No text too ! :D

#6 guinness

guinness

    all-consuming swarm in inconspicuous disguise

  • Developers
  • 18,232 posts

Posted 07 December 2011 - 12:10 PM

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:
Spoiler
Updated: 02/04/2015

#7 funkey

funkey

    New Dad

  • Active Members
  • PipPipPipPipPipPip
  • 716 posts

Posted 07 December 2011 - 12:48 PM

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.


#8 playlet

playlet

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 467 posts

Posted 07 December 2011 - 12:54 PM

@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, 07 December 2011 - 12:57 PM.


#9 wakillon

wakillon

    Je suis Charlie

  • Active Members
  • PipPipPipPipPipPip
  • 3,012 posts

Posted 07 December 2011 - 12:57 PM

@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

#10 playlet

playlet

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 467 posts

Posted 07 December 2011 - 01:18 PM

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

#11 wakillon

wakillon

    Je suis Charlie

  • Active Members
  • PipPipPipPipPipPip
  • 3,012 posts

Posted 07 December 2011 - 01:20 PM

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, 07 December 2011 - 01:26 PM.


#12 playlet

playlet

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 467 posts

Posted 07 December 2011 - 01:21 PM

What about the example from the help file for _GDIPlus_GraphicsDrawString - does this work on your computer?

#13 funkey

funkey

    New Dad

  • Active Members
  • PipPipPipPipPipPip
  • 716 posts

Posted 07 December 2011 - 02:16 PM

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.


#14 mesale0077

mesale0077

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 501 posts

Posted 07 December 2011 - 05:44 PM

hi
very nice
as ınputbox, maybe can use

#15 JohnOne

JohnOne

    Number #1

  • Active Members
  • PipPipPipPipPipPip
  • 14,508 posts

Posted 07 December 2011 - 06:13 PM

Win 7 32 bit, all works fine, nice work.

AutoIt Absolute Beginners    Require a serial    Pause Script    

 

Monkey's are, like, natures humans.


#16 ThaReverand

ThaReverand

    Seeker

  • Active Members
  • 14 posts

Posted 07 December 2011 - 10:51 PM

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

#17 JScript

JScript

    I'm back ... I miss, why not!

  • Active Members
  • PipPipPipPipPipPip
  • 1,232 posts

Posted 07 December 2011 - 10:59 PM

Very nice!!! Thanks...

João Carlos.
http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)
Spoiler


dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users