Re: Msgbox window background color

donJ <[email protected]>
Newsgroups gmane.comp.lang.realbasic.user
Message-ID <[email protected]>
On 07/23/2017 05:22 PM, Jon Ogden wrote:
> It’s quite simple. Create a window that acts as your pop up. Call it MyMsgBox or whatever. Make sure it is not intrinsic.
>
> Now add a function to the window called RunDialog. Add a property to the Window called RetVal and set it to type integer or whatever you want. Here is example code for the method
>
> Public Function RunDialog(TheMessage as String) as Integer
>
>    TextField1.Text = TheMessage
>     Self.ShowModal
>     Return RetVal
>
> End Sub
>
>
> So Textfield1 is on your window. RetVal is set by whatever button is pressed to close the window. You set things up like this:
>
> Dim w as New MyMsgBox
> Dim MyVal as Integer = w.RunDialog(“This is some Text.”)
>
> It’s that simple. Now you can make the window look however you want.
>
>
>
> Sent from my iPhone
>
Hi Jon,
Thank you for your time. I'm going to have to study this for a bit, but 
it looks like just what I need.
Don


To unsubscribe, email [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.