Вниз
Скачать: CL | DM;

TWebBrowser и anchor ....   Найти похожие ветки 

 
XobBIT ©   (2003-05-19 20:55) [0]

Не подскажет кто-нибудь, как програмно перейти на якорь...


 
Ihor Osov'yak ©   (2003-05-19 21:19) [1]

Это в зависимости от того, что понимать под "перейти". Посмотри, может я угадал


IHTMLElement.Click
IHTMLElement.scrollIntoView


 
XobBIT ©   (2003-05-19 23:06) [2]

2 Ihor Osov"yak я имею ввиду сделать скрол на нужный якорь(как это делают броузеры file.html#anchor)


 
Ihor Osov'yak ©   (2003-05-19 23:10) [3]

IHTMLElement.scrollIntoView

если проблемы с получением IHTMLElement - delphi.vitpc.com/mastering/tweb.htm



 
XobBIT ©   (2003-05-20 15:27) [4]

2 Ihor Osov"yak Благодарю за ссылочку, но пару вопросов возникло:

iElement.getAttribute("name",0) - для чего второй параметр
iElement.scrollIntoView() - как используется параметр этой функции


 
Ihor Osov'yak ©   (2003-05-20 16:29) [5]

из msdn:

HRESULT scrollIntoView(
VARIANT varargStart
);

Parameters

varargStart
VARIANT structure that contains a Boolean value that specifies whether to place the object at the top of the window or at the bottom. If TRUE, the method scrolls the object so that its top is visible at the top of the window. If FALSE, the bottom of the object is visible at the bottom of the window. If no value is given, the object scrolls to the top by default.

Можно писать просто
iElem.scrollIntoView(true); или iElem.scrollIntoView(false);

>iElement.getAttribute("name",0) - для чего второй параметр

Из того же msdn
fFlags
Reserved. Long integer value that is set to zero.


Как говорится в таком случае, RTFM





 
XobBIT ©   (2003-05-20 17:10) [6]

2 Ihor Osov"yak
Огромное спасибо теперь все рабоет как надо...



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.46 MB
Время: 0.013 c
7-13492
alexsc
2003-03-31 14:13
2003.06.05
выключение компьютера


1-13231
кондратий
2003-05-26 18:35
2003.06.05
Enter > Tab


7-13487
zirus
2003-04-03 06:38
2003.06.05
Как проиграть звук через sound blaster


1-13217
odyssey
2003-05-27 11:44
2003.06.05
Перемещение файла


1-13302
Sandman25
2003-05-22 18:12
2003.06.05
Утечка памяти




   Наверх