Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a ComboBox to AToolBar
Message
De
09/02/1999 10:28:16
 
 
À
09/02/1999 09:58:04
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00185202
Message ID:
00185511
Vues:
17
>>>All,
>>>
>>>Has anyone tried to add a combobox (I'm trying to use ComboBoxL) to the aToolBar for an application. I have taken a ComboBoxL and a business object and enclosed them in a cContainer. The problem lies in registering the business object. Is there an easier way to do this in MM??
>>>
>>>TIA
>>>
>>>Rex
>>
>>I assume the combo box would really be displaying data related to the form. So, there is no need to put a bizobj on the toolbar.
>>
>>BOb
>
>Guys,
>
>What I am trying to do is keep some information globally (in this case a clinic id number) which could be changed regardless of the form I am currently viewing. Wouldn't I need a bizobj to populate the combo?
>
>TIA
>
>Rex

Sure, you can do that... (are you in 4.1). The bizobj code was modified in 4.1 so that you don't need a form to host the BizObj, so you could put it on a toolbar... but, what may be better is to create the bizobj in goApp.BeforeReadEvents so it would really be global. do something like..

goApp.AddObject('oMainBizObj','YourBizObjClass')

then, you can refer to it as goApp.oMainBizObj anytime you wanted to. This would be easier than putting the bizObj in the ToolBar, IMNSHO.

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform