VDC menues and toolbars

W

wade polk

Apparrently, negotiatemenus and negotiatetoolbars have to be set the same.

If negotiatemenus=T and negotiatetoolbars=T
-obvious
If negotiatemenus=F and negotiatetoolbars=F
-obvious
If negotiatemenus=T and negotiatetoolbars=F
-nothing happens
If negotiatemenus=F and negotiatetoolbars=T
-both menues and toolbars are displayed

So, it appears the code behind the control is set up so that negotiatetoolbars is actually negotiatetoolbars&menues, but I would still set both to be safe.

Also, you have to do this before the VDC is "in place activated" according to the documentation. Took me a long time but I found out that the "enabled" properties is what they really were talking about. Here is my codefor use with a single toggle button on an access 2003 form with VDC 2003:
Private Sub Toggle9_Click()
If Toggle9 = True Then
DrawingControl0.Enabled = False
DrawingControl0.NegotiateToolbars = True
DrawingControl0.NegotiateMenus = True
DrawingControl0.Enabled = True
DrawingControl0.SetFocus
Else
DrawingControl0.Enabled = False
DrawingControl0.NegotiateToolbars = False
DrawingControl0.NegotiateMenus = False
DrawingControl0.Enabled = True
DrawingControl0.SetFocus

End If
End Sub

Tata


EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
J

JuneTheSecond

Hi,

I think Drawing Control has not Enabled property nor SetFocus property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top