ID:2251179
 
(See the best response by Maximus_Alex2003.)
Code:
mob/proc/CustomAlert(Usr=usr,text12="Sample text")
winset(src,"CustomAlert.text1","text=[text12]")
winset(src,"CustomAlert","title=\"[title]\"")
winset(src,"CustomAlert","is-visible=true")
winset(src,"CustomAlert.text1","text=[text12]")

mob/verb/TestAlert()
CustomAlert("SAMPLE TEXT")


Problem description:

I cannot get the text to popup on the window.
the window pops up but with no text
In the arguments remove Usr=usr
I did that before it didnt work thats why i added it
Best response
You'll want [text12] with escaped quotation, similar to how you're doing the title. Also, what is the function of User=usr in CustomAlert() arguments if you're just going to use the src anyways? Remove it or pass the argument along.
Also make sure CustomAlert.text1 exists and is visible.

mob/proc/CustomAlert(text12="Sample text")
winset(src,"CustomAlert.text1","text=\"[text12]\"")
winset(src,"CustomAlert","title=\"[title]\"")
winset(src,"CustomAlert","is-visible=true")

mob/verb/TestAlert()
CustomAlert("SAMPLE TEXT")
Testing.
In response to Maximus_Alex2003
Works!! Thanks alot.
In response to Maximus_Alex2003
Thank you for both of your answers this is my first time using forums for help i did not think it would be so useful and so quick to reply.. Highly appreciated.
In response to NightX123
Trust me, there are plenty of us hanging around at any given time. We're just all lurkers 99% of the time. :p
In response to Unwanted4Murder
xd
You did the right thing asking here. If you want to learn more about custom 8nterface pop ups feel free to try my library which also allows fading and more customisation!

http://www.byond.com/developer/Kidpaddle45/InterfaceCommands
In response to Unwanted4Murder
Unwanted4Murder wrote:
Trust me, there are plenty of us hanging around at any given time. We're just all lurkers 99% of the time. :p

^ This.