Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menu Problems

Status
Not open for further replies.

Donquick

Programmer
Aug 13, 2007
14
GB
Hello all,

In a pickle again ! I am working within the applications builder for an application and have managed to cause an error.

I was getting very strange behaviousr with the menu builder where certain menu items were appearing inactive. After trying a variety of things without success I thought i would delete some of the default menu items generated by the application builder to see what would happen.

Now i have upset (the oh so delicate) application object.

I now have an error every time i run my app. It goes like this :

"Subscript is outside defined range" 1234 ,309 c:\appname\appname_app.fxp

I have spoiled the app object (is that the correct term) so many times before and had to start my application from new. I am soooo frustrated with all of this.

My questions are :

1) How can i rebuild the menu, or get the application to regenerate a standard one or do anything to get me out of this fix. I am more than happy to start with a standard menu and redo the particular menu items i need for my app if necessary to get the thing working again.

2) I am beginning to realise that using the application builder is really a mistake as it creates a fragile structure and programmes that are far too complex for me to understand. Does anybody know - Is there a resource anywhere which tells you how to set up a simple application framework with a main.prg that calls a menu system and that is it. From there i can start writing code rather than fighting the interface day in day out.

3) By the way, anybody know how to start an application maximised. I have tried a) ticking 'start maximised' in the windows icon to the exe (doesn't work) b) Window State = 2 on the properties of _screen (doesn't work) c) "zoom window screen max" in the main prg (doesn't work), and d) "_screen.windowstate = 2" in the main prg (doesn't work)

Thanks to all who can put me out of my increasing misery.

All the best,

Magnus
 
1) To create a new menu, type CREATE MENU in the Command Window. Then choose Menu | Quick Menu from the menu. That'll give you a new standard menu.

2) Get the book "The Fundamentals" by Whil Hentzen (
Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top