Вниз
Скачать: 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
14-13421
Spartak
2003-05-19 07:50
2003.06.05
Проблема с написанием сервиса


14-13433
Переяслов Григорий
2003-05-19 17:07
2003.06.05
Бинарные данные внутри bpl


1-13127
KA-87
2003-05-25 18:03
2003.06.05
Мне надо убить MessageBox....


14-13407
LOX
2003-05-11 14:25
2003.06.05
Cлепил браузер


14-13422
Holy
2003-05-19 13:07
2003.06.05
Использовать ли классы




   Наверх