Hi, I’m new here and new to programming. I am, at present, going through some tutorials. I have built some small apps in the tutorials and am presently building a Calculator application but cannot get the About screen to work using the following Menu Handler MsgBox (“Written by Runedog - 2007”)
Why does this not work please?
Any help appreciated, thank you
Can you describe “can’t get to work” with a bit more detail? Is the menu item not enabled. Does the message box not show up?
You could upload your project somewhere and we could have a look.
Add the “About myGreatApp” in the menu. In Windows, the menu help. In Mac, any menu will do.
In Mac, click the item’s super, and select “Application Menu Item”
To App, add a menu handler called like your menu (“HelpMyGreatApp”)
In the menu handler :
MsgBox ("Written by Runedog - 2007")
Many thanks for getting back folks, really appreciated.
I tried Michel’s,suggestion (even copied his text) but receive a message saying MsgBox string?
The app seems to compile fist though?
Graham
325339:@Graham J Hadlington:
I tried Michel’s,suggestion (even copied his text) but receive a message saying MsgBox string?
Sorry, but what you say means nothing if you don’t spell out the exact error message.
Sorry:
(1,35) RealBasic.(MsgBox As String)
Many thanks
Graham
This is a reminder of the syntax that you get at the bottom of the code editor. It is not an error.
Try to run the app, it should work fine.
Morning,
The Menu is now not showing after compilation? I would upload the zipped app here but not sure how to do this here?
Thanks again for your help
Graham
Graham:
have you read this:
http://developer.xojo.com/userguide/desktop-menus
What OS are-you using ?
Hi Graham. Have you seen the tutorial video here on Menus?
http://developer.xojo.com/webinar-menus
If not, have a watch and see if that helps. Look around about 8:18 onwards for a “how to” implement a message box on the About menu.
If you are still stuck, let us know.
Many thanks Julian, I will take a look thanks.
BTW, I’m working in Windows 10
Graham
Does it show when you run in the IDE ?
No need for the compiled app. The most important is the project. You can share a public link from Google Drive, OneDrive, DropBox, etc. and simply paste the link in the forum.
You need a DefaultWindow under App on the main navigation, it should work fine from there.
Many thanks Julian and Michel That has fixed it.
Brilliant forum and so fast replies.
Graham