Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Orienteed Menus
Message
From
15/06/1999 11:42:47
 
 
To
14/06/1999 17:03:36
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00229592
Message ID:
00230002
Views:
22
I don't feel comfortable with sending you the menu classes because they communicate with other components of my framework's application object (e.g. FormManager, ToolManager). With just the menu classes, you won't be able to see how it all fits together - not alot of loose-coupling here.

Also, if I send them to you, I am compelled to post them on the UT and I am not yet able to answer any questions due to the lack of documentation in addition to the issue mentioned above.

While I am not prepared to post the entire framework at this time, I will, hopefully, be doing go by year's end as freeware complete with documentation.

Sorry I cant be of more help. However, you can begin by gaining an intimate knowledge of all of the archiac menu commands and functions (e.g. DEFINE MENU/PAD, ON POPUP/BAR, SKPBAR()) because you will need to wrap these in your classes. Also, take a look at Data Dynamics' ActiveMenu ActiveX control - it is a good model to get ideas from even if you don't use it.


>I would be very interested in seeing yours if you don't mind.
>
>>You should do it.
>>
>>Last year, I created a fairly robust OOP menu system which communicates and automatically coordinates with forms and toolbars (including a special status toolbar). I initially based it on the codebook model, but quickly saw it's limitations, so I rolled my own from scratch.
>>
>>Good Luck - I guarantee that you will learn alot.
>>
>>
>>>Actually Andrew Ross MacNeill wrote GenMenuX, but it isn't object orienteed. What I mean is being able to do something like:
>>>
>>>oMenu.File.Open.Text.Enabled(.F.)
>>>
>>>and have the pad disable. Mark Hall wrote a wrapper class for menus, but I thought I would write a builder to show the menu in a tree or something and have it generate the code for you.
>>>
>>>What do you think?
>>>
>>>
>>>
>>>>I think GenMenuX was written by Markus Egger (I know he wrote GenRepoX, I hope I am not just confusing the two).
>>>>
>>>>There is a also a good one in CodeBook, and all derivations thereof...
>>>>
>>>>>Yes, Mark Hall has a great one. But, it requires you to write code to make your menu. The idea I have is to create a menu builder or a genmenu.prg replacement to write the code for you. That makes actually using the object oriented menus much easier.
>>>>>
>>>>>>Several already exist. I don't remember who has them but you might want to look through Ken Levy's site or look around in the files section here. But, there's always the better mousetrap...code away!
>>>>>>
>>>>>>
>>>>>>>Since it doesn't look like we are ever going to get one, I am thinking about creating an object oriented menu builder. I am simply looking for feedback to see how everyone would like this. If I get enough positive feedback, I will continue. Please let me know.
- Jeff
Previous
Reply
Map
View

Click here to load this message in the networking platform