Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Docking toolbars
Message
De
04/03/2004 10:32:00
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
04/03/2004 10:23:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00883059
Message ID:
00883105
Vues:
14
Hi Terry,

I don't know if VFP is storing the locations of the toolbars. I suppose I could eliminate the Dock() methods, put the toolbars in the "proper" locations then run the form again to see where VFP decides to put them.

BTW, I don't have any code in my app to do anything with the resource file so whatever happens is entirely VFP's default behavior.

Mike


>Hi Mike
>
>Isn't this a case of user preferences? If the user wants the toolbars like that, and has them like that when he quits, won't FoxUser put them back there next time? On the other hand, if he prefers them floating, then they'll be floating, etc.
>
>Just my two penn'orth
>
>Terry
>
>>Hi
>>
>>I have two toolbars that I'd like docked at the top of my VFP application window. The toolbars are associated with a Top-Level Form. I want the two toolbars to dock and look like one large horizontal toolbar.
>>
>>If I issue
>>
>>
this.Dock(0)
>>
>>from the Init() of the first toolbar, it docks at the top left as I expected. Next I create the second toolbar and try to dock it along the top and immediately adjacent to the first using:
>>
>>
>>oToolBar2 = CREATEOBJECT("myToolBar2")
>>oToolBar2.Dock(0)
>>
>>
>>I want to have both toolbars inline on the same "row". However, the second one is adjacent to the first but always on a second "row", i.e. it doesn't look like one continuous horizontal toolbar like I want it to. Anyone have any ideas what I am doing wrong or how I go about coding this to work correctly?
>>
>>The frustrating thing is that it works exactly as I want from the command window when I type
>>
>>
>>oToolBar1 = CREATEOBJECT("myToolBar1")
>>
>>
>>TIA
>>
>>Regards,
>>
>>Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform