Don't know whether some of the answers refer to my suggestion.
In my applications which now use the Arg-Software Office2007/Office2010
type Ribbon menu, I decided that the standard Message Box clashed with
my Forms. I created new Form Classes that followed the office themes.
I wanted a Message Box which would follow the themes in the title bar
and allow me to change the font and font size, give a graduated
background to the Message Box, allow me to specify the icons used both
in the title area and to the left of the message, multiple lines in the
message and allow me to customize the amount and captions of the
buttons.
I found some code which unfortunately I can't trace where I found it but
in the comments is the text below.
* 11/95 - Windows-compatible button sets copied from FoxTools by
D.Covill
* Reference FoxPro Developers Journal, November 1995,
Page 9
* Original "ALERT" by Steve Ramsower
Perhaps someone can help with this.
I can email you my code direct Kurt if you let me have your email
address. I would have to comment the customisation bits that I added a
bit better first.
I added the instructions to intellisense and it works extremely well for
me
Typeing MsgBox( gives me MsgBox(cMessageText [, cButtons][,
cTitleBarText][,nFormIcon][, nFontSize][, cForeColour][, nTheme]
Filling in the first text for the message gives me
MessageBox()nDialoBoxType Parrameter (additive):
cMessageText [, cButtons][, cTitleBarText][,nFormIcon][, nFontSize][,
cForeColour][, nTheme]
Buttons
0 - OK button Only
1 - OK and Cancel buttons
2 - Abort, Retry and Ignore buttons
3 - Yes, No and Cancel buttons
4 - Yes and No buttons
\<Yes;\<No;\<Don't care
Return Values are the Number above or if text buttons then the number of
the button counting from the left.
So if wrote MsgBox("Is a whale an animal","\<Right;\<Wrong;\:\<don't
know","Questionaire","Whale.ico","13,RGB(255,255,0)",1)
I would get a message box with the message in red font size 13, the
background a graduated blue, A picture of a whale as the Icon next to
the message, Questionaire centered in the title and the titles theme
would be office them 1
Cheers
Peter
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Jeff Johnson
Sent: 27 October 2010 18:00
To: [email protected]
Subject: Re: Messagebox & Font Sizing...
This is the approach I take. I create a modal form and make it fit my
application that serves the same purpose as messagebox. I especially
needed it for a touch screen application where I could make the buttons
big enough to click with a finger.
Jeff
---------------
Jeff Johnson
[email protected]
(623) 582-0323
www.san-dc.com
On 10/27/2010 08:14 AM, Grigore Dolghin wrote:
> Unfortunatelly there's nothing you can do about Messagebox. I would
suggest to create your own modal form to use instead of messagebox.
>
>
>> -----Original Message-----
>> From: [email protected] [mailto:profoxtech-
>> [email protected]] On Behalf Of Kurt Wendt
>> Sent: Wednesday, October 27, 2010 6:12 PM
>> To: [email protected]
>> Subject: Messagebox& Font Sizing...
>>
>> Hey folks,
>>
>>
>>
>> I'm wondering if something can be done in regards to the Font sizes
>> within the Messagebox when it is displayed. I looked around in help,
>> but, couldn't really find anything.
>>
>>
>>
>> There is this small application I built, that uses a hand scanner -
>> and it will be used in a Warehouse. And, all the stuff I built on the
screens have large text.
>> But, I use the Messagebox for one instance - and when they saw it
>> pop-up, they complained its all too Small to properly see it and
>> notice the Yes/No options! This is mostly due to the fact that the
>> user will be standing a small distance away from the Display as they
>> are scanning boxes - and that's why I need to show things in a Bigger
font!
>>
>> Thanks in advance,
>>
>> Kurt
>>
>>
>>
>> Developer
>>
>> Waitex Information System, Inc.
>>
>>
>>
>>
>>
>> --- StripMime Report -- processed MIME parts ---
multipart/alternative
>> text/plain (text body -- kept)
>> text/html
>> ---
>>
>>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/a57fa4cf19531343a2ee11b57db8e3af100...@server.peterhartcomputers.local
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.