Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


HTML dialog and Askfilename problem

Keywords: 	HTML browse and Askfilename

Question:

When I run my HTML dialog code, it loads the page just fine. Once I click on the Submit button, control is returned to the WinBatch file (at least that is the way I understand it). The next function in the Winbatch script file is AskFileName. I have noticed the AskFilename dialog box doesn't come to the front (become active) I have to click on the WBT icon the is minimized in the taskbar. Once I click on the task bar icon, the AskFileName dialog box is displayed. Can you see if you can recreate this?

Answer:

I passed this problem on the the developer, this is considered a bug in the askfilename function in this version (2000C). We will attempt to add a fix in the next version release.

In the meanwhile, we can offer a couple of workarounds....

Just before the AskFileName line

1) add the lines
   WinActivate("")
   WinIconize("")

Note this will activate the default WinBatch Window then reiconize it.

2) add the lines....
   prevstate=IntControl (1003, 0, 0, 0, 0)
   WinActivate("")
   IntControl (1003, prevstate, 0, 0, 0)

Note this doesn't bring up the default WinBatch Window at all, and I think is a cleaner solution.....



Article ID:   W14530
Filename:   HTML dialog and Askfilename.txt