Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically activating the Layout Toolbar
Message
 
To
15/12/2005 14:49:32
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01078240
Message ID:
01078448
Views:
18
Yes, I did before I posted the response and it worked fine. I just tried it again (after releasing the Layout toolbar) and I get the error you describe. Apparently, the Layout toolbar was already defined and just hidden when I tried it the first time. The help file says that you do:
SHOW WINDOW 'Layout'
But it goes on to say that the toolbar must be active first. I currently have a program that activates and docks the document view, data view, and properties windows without problem. I hadn't tried it on a toolbar until today and on first attempts all seemed well. But after playing with it more, I don't see what is needed to make it work in all circumstances.

Once it is activated, you can use SHOW WINDOW and HIDE WINDOW to make appear and disappear at will. Also, you can issue DEACTIVATE WINDOW and ACTIVATE WINDOW to make it appear and disappear. The only time it fails is when you manually uncheck the toolbar. That is all very odd indeed.

Sorry,
Chad

>Have you tried this? It doesn't work for me, I get a Window "Layout" not defined.
>
>bob
>
>>Bob,
>>
>>Put:
>>
>>ACTIVATE WINDOW Layout
>>
>>just before the DOCK WINDOW to make sure it's active.
>>
>>HTH,
>>Chad
>>
>>>I want to programatically activate and dock the Layout toolbar. I'm using the following code to open a report window and gain access to the Report Controls and Designer toolbars, but I get an error on the last line when I try to doc the layout toolbar...
>>>
>>>set resource off
>>>CREATE REPORT myreport NOWAIT
>>>DOCK WINDOW ("report designer") POSITION 0
>>>DOCK WINDOW ("report controls") POSITION 1
>>>
>>>DOCK WINDOW ("layout") POSITION 1
>>>
>>>Does anyone know how to get this to work? I get a "Window LAYOUT not defined error".
>>>
>>>Thanks.
>>>
>>>Bob
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Reply
Map
View

Click here to load this message in the networking platform