Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Opening .pdf or .doc files in Toolbar with WebBrowser
#3
Hi Gintaras,
I am not sure I understand your solution
Do I add the potential pdf locations to the ToolbarExProc_TWWB function or is this a new function?

The way I have this set up is that there are toolbar items across the top of the popup toolbar. Each one calls up a webpage or a pdf item within the toolbar window (which then acts like a browser between them). TO make this happen, I have appended


Code:
Copy      Help
win("TOOLBAR WITH WEB BROWSER" "QM_toolbar")

to each menu item, like this:

Code:
Copy      Help
/hook ToolbarExProc_TWWB /siz 800 220 /set 2
Lifehacker, the Productivity and Software Guide :web "http://www.lifehacker.com/" win("TOOLBAR WITH WEB BROWSER" "QM_toolbar")
Google :web "http://www.google.com/" win("TOOLBAR WITH WEB BROWSER" "QM_toolbar")
Sample.pdf :web "$personal$\neuroimaging.pdf" win("TOOLBAR WITH WEB BROWSER" "QM_toolbar")
Back :web "Back" 0 TriggerWindow **

How Do I modify the hook function to allow this.

Will each menu item have to call up a separate ToolbarExProc_TWWB function to make this work?

By the way, what is the purpose of multiple website/file listings in the function?
Code:
Copy      Help
sel message
    case WM_CREATE
    int h=CreateControl(0 "ActiveX" "SHDocVw.WebBrowser" 0 0 20 200 200 hWnd 1)
    SHDocVw.WebBrowser b._getcontrol(h)
    b.Navigate("about:blank")
    b.Navigate("http://www.google.com")
    case WM_DESTROY



Maybe more step-by-step explanation. I have come a long way in QM but sometimes need a little bit more help.


Thanks!!,
Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)