Message box class

Discussion in 'PHP' started by Lafaso870, May 13, 2011.

  1. #1
    Hello,

    I am fairly new to PHP and I am trying to mimic some of the win32 functions that I feel will be useful. One function that I would like to mimic is the MessageBox function. I feel that it would be extremely useful.

    I have seen examples all over the web and some are okay...but most are limited. Others require inclusion of GTK libraries which I really do not want to do.

    Does anybody know of any existing code or code that I could easily modfy to give me all the functionality that I need. Or is there some existing out on the web that would fit the bill.

    Thanks in advance!
     
    Lafaso870, May 13, 2011 IP
  2. JoelLarson

    JoelLarson Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Any of your design functionality is going to be HTML/CSS/Javascript unless you're referring to PHP's GTK library. But if you're using the GTK library, that's only going to work for the local machine and if you have PHP-GTK installed.

    So the easiest way to mimic it would be to design it and make it in HTML/CSS, then add the functionality of dragging, minimize, maximize, close, and resize with Javascript.
     
    JoelLarson, May 13, 2011 IP
  3. hyperboards

    hyperboards Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Check out the jQuery UI library's modal:
    http://jqueryui.com/demos/dialog/#modal-message

    Is this the sort of MessageBox you were looking for? Keep in mind that you can change the way it looks through CSS or their ThemeRoller.
     
    hyperboards, May 13, 2011 IP