Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MessageBox layout
Message
From
03/07/1999 11:24:57
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
02/07/1999 18:32:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00236346
Message ID:
00237208
Views:
12
>>Harry,
>>
>>
MessageBox( "   this is   " + chr(13) + "a test" + chr(13) + "      does it work like one would expect it to work?" )
>
>yup, sure did...
>
>>
>>Retains all spaces for me. You should note there is a finite size limit to the string that can be displayed in MessageBox().
>
>aha - I think you just hit the proverbial nail on the proverbial head? Many of my 'messages' are pretty lengthy.
>
>And what, pray, is this limit?
>
>And - to the boys and girls at Microsoft if you're looking in - why the **** isn't it mentioned in the msdn help on messageboxes! Jeez, you'd think that sort of thing would be considered pretty basic!

Download Alert.zip from Files here - the string is of unlimited size (provided you don't overrun your screen resolution), reacts on chr(13), and you have your buttons with whatever text you like. I've always hated the "if you want this, press 'yes', of you want that, press 'no' and if you don't want anything, press 'cancel'. It's used like
reply=alert("what do you want","this;that;nothing")
It returns 0 for Escape/closebox, or the ordinal number of the button. No icons, sorry. Stuff your own definition for g_fontname and g_fontsize; it should default to _screen.fontname and _screen.fontsize, but I'm not sure the version on the UT has these defaults done.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform