Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically activating the Layout Toolbar
Message
 
To
15/12/2005 16:19:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01078240
Message ID:
01078485
Views:
16
You could probably just put a DOEVENTS FORCE in between the KEYBOARD command and the DOCK command. That should make VFP process the waiting keystrokes. And no, I didn't test this one.

HTH,
Chad

>This works pretty good, but it still doesn't dock it, and it leaves the layout toolbar floating. If you attempt to dock it on the next line of code, the keyboard cludge hasn't executed yet and you have the same error.
>
>Probably have to use a timer? Or do you have any other ideas for a workaround?
>
>Bob
>
>
>>In the case when the Layout toolbar is not open yet, you can use a kludge
>>IF WEXIST("Layout")
>>  ACTIVATE WINDOW Layout
>>ELSE
>>  KEYBOARD "{ALT+V}T{DNARROW}{DNARROW}{DNARROW}{DNARROW}{SPACEBAR}{CTRL+W}"
>>ENDIF	
>>
>>>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