Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Headings in Menus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00492587
Message ID:
00502859
Vues:
16
>Hi Nadya.
>Tell me if any enhancements are to be made to the class ..
>

Hiten,

After second thought: add ability to add Hot Key to the menu bars and ability [BTW, what whould be another useful word here - I hate to repeat the same word in the same sentence, but could not find the better one] to use system menu varialbes (for instance, cut/copy/paste - I just read another thread with this question).

IOW, add() method can accept more than 1 parameter and therefore arrOpts will have 3 (or more) dimensions.

What do you think about this idea?

Thanks again.

BTW, this class can go to download section here. It could be also an article (or tip), for example, for VFUG Newsletters.
>
>>Hiten,
>>
>>Finally I found my problem. For the cases with null lName, I tried to add NULL value, so it didn't work. I used nvl function and now the menu works just fine, thanks again.
>>
>>>>Hi Nadya
>>>>
>>>>To do so
>>>>do the following in the right click event
>>>>
>>>>oMenu.Clear
>>>>oMenu.Add("[H]Lender Options")
>>>>oMenu.Add("|")
>>>>oMenu.Add("Pick "+code+" to the current record")
>>>>oMenu.Add("Pick "+code+" to all records with lName = "+lName )
>>>>oMenu.Show
>>>>
>>>
>>>Hi Hiten,
>>>
>>>I did exactly the same, but it shows only heading, separator, and the first option. It doesn't show last option. I guess, I have to check the class code, why it doesn't work properly. Another little trick, which I found necessary:
>>>in mnuOpt respond method I should save recno and then restore it back. Otherwise the record pointer jumps to another positions.
>>>
>>>
>>>>Use the respond method of the menu to do what u want when an option is selected
>>>>
>>>>That's all
>>>>
>>>>
>>>>>>Oh Ok
>>>>>>Nice Of Wan to do so,
>>>>>>
>>>>>>If u still like to download it, its here >
>>>>>>
>>>>>>http://www.websamba.com/hitenkm/downloads/wanmenu.zip
>>>>>
>>>>>Hi Hiten,
>>>>>
>>>>>I want to implement it in a form, which has two grids. One Grid is a BldMstr table grid, another is Lender table (Lender Name +Code). If I DblClick on Lender code in a Lender grid, this code put in Highlighted row (current record) of BldMstr table. Now I want to add RightClick menu, with this look:
>>>>>
>>>>>Lender Options (heading)
>>>>>------------------------------------------------
>>>>>"Pick" +code+"to the current record"
>>>>>"Pick" +code+"to all records with lName="+lName
>>>>>
>>>>>IOW, the menu would be dynamic. What would be your advice?
>>>>>
>>>>>TIA
>>>>>
>>>>>
>>>>>>
>>>>>>I wonder. The class wan send u is it in public domain . If so could u please forward me a copy too ..
>>>>>>..
>>>>>>
>>>>>>N-Joy !
>>>>>>
>>>>>>>Hiten,
>>>>>>>
>>>>>>>Thanks for the response. In the meantime Wan already sent me this class, which I'm now going to use in my form. I created a class library, called nAdditions, and put there bunch of useful classes, which I downloaded from UT. One of them is mnOptions.
>>>>>>>
>>>>>>>Thanks again.
>>>>>>>
>>>>>>>
>>>>>>>>Ok .
>>>>>>>>Sorry for the trouble.
>>>>>>>>
>>>>>>>>I will upload it on my site again .
>>>>>>>>Will make sure it works .
>>>>>>>>
>>>>>>>>I will repost a message when it's up and working.
>>>>>>>>Please dont mind the short wait.
>>>>>>>>
>>>>>>>>>>Hello People.
>>>>>>>>>>
>>>>>>>>>>Heres a small class to encapsulate Cheang Hoong Wan #028478 function for the menus.
>>>>>>>>>>
>>>>>>>>>>Ive made it very loosley so please to scream at me for the lousy coding.
>>>>>>>>>>
>>>>>>>>>>http://www14.brinkster.com/hitenkm/WanMenu.zip
>>>>>>>>>>
>>>>>>>>>>N-Joy
>>>>>>>>>
>>>>>>>>>Hi Hiten,
>>>>>>>>>
>>>>>>>>>In this demo form you use myControls.vcx, which you didn't supply. So, then I tried to run the demo, it gives me an error. I want to implement shortcut menu on my form with the heading.
>>>>>>>>>
>>>>>>>>>Could you please check the file for download and send me working class by my e-mail, please?
>>>>>>>>>
>>>>>>>>>Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform