PDA

View Full Version : adding a toolbar to explorer


murphys
01-16-2006, 04:29 AM
hi

i have done the following
1)downloaded ie5tools.pas
2) added it to my project and in OnButtonClick, type:
S:=AddExplorerBar('Sample Explorer Bar', 'http://www.cnn.com', 200,FALSE);

AddToolbarBtn(TRUE,EXPLORER_BAR,'Explorer Bar','','',S);


AddToolbarbtn - worked and i do have another button
AddExplorerBar r - seems to do nothing

questions:
1) what is wrong with the Explorerbar?
2) how can i control what will happen when clicking the toolbar button?
3) how can i put controls on a toolbar (like yahoo or google for example)

10x
Amos

Norrit
01-16-2006, 05:40 AM
This only works for IE5 ...
My guess is that you have another IE version ...

MvG
Peter

Objective reality is a delirium caused by lack of alcohol in blood.
There is no place like 127.0.0.1

murphys
01-16-2006, 05:55 AM
i have ie6 - the latest build
i was hoping it will b the same

it is half working :)
is it really bcoz of IE version
or mayb im missing something

10x
Amos

Norrit
01-16-2006, 05:59 AM
Sorry, it explicitely tells it works for IE5 ...

Otherwise it would state: IE5 and higher ...

MvG
Peter

Objective reality is a delirium caused by lack of alcohol in blood.
There is no place like 127.0.0.1

MrBaseball34
01-16-2006, 06:10 AM
What is exactly the problem? I was able to select the
Explorer Bar from the View->Explorer Bar->Sample Explorer
Bar menu item.

It opened at the bottom of IE and navigated to CNN.com, just like it was supposed to.

I have IE version 6.0.2900.2180.xpsp_sp2_gdr.050301-1519CO


MrBaseball34
Hook'Em Horns!
http://www.austinmetrobaseball.com/texas.gif

MrBaseball34
01-16-2006, 06:12 AM
I don't know why you say that it only works for IE5 just
because it doesn't say IE5 and higher?

I was able to get the Explorerbar working in
IE version 6.0.2900.2180.xpsp_sp2_gdr.050301-1519CO.


MrBaseball34
Hook'Em Horns!
http://www.austinmetrobaseball.com/texas.gif

MrBaseball34
01-16-2006, 06:14 AM
[quote]
1) what is wrong with the Explorerbar?
2) how can i control what will happen when clicking the toolbar button?
3) how can i put controls on a toolbar (like yahoo or google for example)
[\quote]

1) Nothing as far as I can see. What are you expecting?
2), 3) See:
http://euromind.com/iedelphi/ie5tools/bandobjects.htm


MrBaseball34
Hook'Em Horns!
http://www.austinmetrobaseball.com/texas.gif

Norrit
01-16-2006, 06:14 AM
Oops, I tested it with IE6, but forgot to display the explorer bar ...
Stupid me (perhaps it's time to go home now) ...

Objective reality is a delirium caused by lack of alcohol in blood.
There is no place like 127.0.0.1

murphys
01-16-2006, 06:37 AM
i didnt know i also need to select it from the view :)

so in this case i need to run my app only once (in order to create the explorer bar + button and that's it?
coz after all my tests here, i have LOTS of explorer bars in the view menu :)

10x
Amos

MrBaseball34
01-16-2006, 06:38 AM
You need to use the RemoveExplorerBar function to get rid
of the ones you don't want.

MrBaseball34
Hook'Em Horns!
http://www.austinmetrobaseball.com/texas.gif

murphys
01-16-2006, 11:30 AM
i meant that each time i do:
S:=AddExplorerBar('Sample Explorer Bar', 'http://www.cnn.com', 200,FALSE);
AddToolbarBtn(TRUE,EXPLORER_BAR,'Explorer Bar','','',S);

a new explorer bar is created, even if the app itself does not exists

so it means, my app should be run once just to create this toolbar and explorer bar and that's it


10x
Amos

MrBaseball34
01-16-2006, 12:52 PM
check to see if it's there in the registry first...

MrBaseball34
Hook'Em Horns!
http://www.austinmetrobaseball.com/texas.gif