Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.06.05;
Скачать: 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 вся ветка

Текущий архив: 2003.06.05;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.018 c
4-13519
Ahmad K
2003-04-04 17:21
2003.06.05
Автозаполнение и-нет форм


3-13039
Jaxtor
2003-05-16 14:24
2003.06.05
Организация ссылочной целостности


14-13378
babun
2003-05-15 21:04
2003.06.05
Фильтр для поля типа date


1-13192
wera
2003-05-23 12:25
2003.06.05
не работает length


1-13186
AlexCool
2003-05-26 13:10
2003.06.05
Напечатать документ Word в Canvas?