| View previous topic :: View next topic |
| Author |
Message |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Thu Dec 30, 2004 4:12 am Post subject: Browser stuff... |
|
|
Hi Guys,
Just a quick question -- as well as a few browser-related techniques...
First, would anyone happen know how to send a tab key to the VDS Browser element? I have a custom browser I created with VDS, but I am unable to get the tab key on my keyboard to work within the Browser element.
Second, just in case anyone wants to know, here is some VDS code for disabling the right click menu in Internet Explorer via the registry.
To disable:
| Code: | | REGISTRY WRITE,CURUSER,Software\Policies\Microsoft\Internet Explorer\Restrictions,NoBrowserContextMenu,1,DWORD |
To enable:
| Code: | | REGISTRY WRITE,CURUSER,Software\Policies\Microsoft\Internet Explorer\Restrictions,NoBrowserContextMenu,0,DWORD |
Note: Internet Explorer must be closed and restarted for each change to take effect. Also, I am not sure what versions of IE this will work with. (Seems to work fine with IE 6. )
Finally, a simple way to disable and enable the right-click menu within the VDS Browser element (i.e. without having to implement the above and then remove/add the element each time then reload) is to use an ANIICON element. After the initial Browser element is set:
i.e.
| Code: | | DIALOG ADD,BROWSER,Browser1,112,189,576,355,,,OFFLINE,NONEWWINDOWS |
Note: The NONEWWINDOWS style prevents annoying popups!
... all you have to do is add (and remove) an invisible (i.e. no file listed ) ANIICON element of the same size when you want the browser element to be disabled (and enabled) for right-click menus:
| Code: | | DIALOG ADD,ANIICON,ANIICON1,112,189,576,355 |
<my program code>
| Code: | | DIALOG REMOVE, ANIICON1 |
Cheers,
- Boo |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Thu Dec 30, 2004 5:14 am Post subject: |
|
|
| The keyboard keys seem not to work, this appears to be a problem with the implementation of the activex control and delphi. I don't think the keys CTRL+C, or CTRL+V, CTRL+A work either. |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Thu Dec 30, 2004 5:20 am Post subject: |
|
|
Hi PGWARE,
You are correct. However, it is possible to use the Windows API in order to determine when CTRL+C is pressed, then use the Browser Copy command to copy any selected text in the browser element...
Cheers,
- Boo |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Thu Dec 30, 2004 5:26 am Post subject: |
|
|
| I suspect your using the GetAsyncKeyState api? If so you might be able to ge the VK_TAB key as well? |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Thu Dec 30, 2004 2:40 pm Post subject: |
|
|
| Yeppers. However, I have been unable to implement the TAB key the way it would normally work in IE... I can simulate CTRL+C, but not the TAB key (i.e. tabbing from field to field on a Web form, for example). |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Mar 20, 2005 7:10 pm Post subject: |
|
|
Hey Boo,
Just had a thought. Have you tried sending the @tab() to the browsers parent
window? Even the VDS Browser element has two parent items above it, view
with Windows Spy. I know that resizing the browser with API's you cannot
use the browsers window handle to resize it you have to use the window
handle of the "Shell Embedding" object above it to resize the browser.
Make any sense? _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
Boo Valued Contributor


Joined: 31 Oct 2003 Posts: 599 Location: Gulf Breeze, Florida USA
|
Posted: Sun Mar 20, 2005 7:19 pm Post subject: |
|
|
Hi Bill,
Nopers, I have not tried that. Will give it a shot soon. (Have to run some errands at the moment.)
Thanks for the input!
Cheers,
- Boo |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|