|
-
Aug 14th, 2015, 02:39 PM
#1
Thread Starter
Lively Member
Classes -- Project message boxes
Hi guys
I'm trying to improve my class-making skills... so humor me if you think this is the wrong approach. I have a project that uses several message boxes. Currently, i have these message boxes written into modules and have duplicate instances dotted around. What i want to do is write a class or set of classes that will make my project more efficients and easier to maintain - essentially one message box class (or set of classes) which would replace all my seperate module-level instances.
Ok so a typical message box comprises (excuse the terminology) the body of text, the title, the click type (ie OK, yes/no, etc), and the alert message (ie 'Warning!', 'Question', etc.).
Within my project, lets say i use the following text as the body:
"This is the end of the list"
"This is the start of the list"
i have the following titles:
"Ooops!"
"Argh!"
I use the following click types:
OK
Yes/No
And finally, the following alerts:
Warning!
Stop!
Could anyone give me an example of a class/classes that would alow me to call the desired message box from a module based on the combination in need?
Please give me a shout if i'm not making sense - any and all help appreciated.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|