Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.09.12;
Скачать: CL | DM;

Вниз

Люди! Помогите! Очень прошу! (img to TWebBrowser from resourses)   Найти похожие ветки 

 
lipskiy ©   (2002-08-17 02:45) [0]

Вставка в TWebBrowser картинки из ресурсов. Как???
http://delphi.mastak.ru/cgi-bin/forum.pl?look=1&id=1029177033&n=0


 
int64 ©   (2002-08-17 02:56) [1]

Q: How do I use the "res:" protocol?

A: The "res:" protocol will let you Navigate to an HTML file stored as a resource. More informations is available from the Microsoft site:

procedure TForm1.LoadHTMLResource;
var
Flags, TargetFrameName, PostData, Headers: OleVariant;
begin
WebBrowser1.Navigate("res://" + Application.ExeName + "/myhtml", Flags, TargetFrameName, PostData, Headers)
end;

Create a resource file (*.rc) with the following code and compile it with brcc32.exe:

MYHTML 23 ".\html\myhtml.htm"

MOREHTML 23 ".\html\morehtml.htm"

Edit your project file so that it looks like this:

{$R *.RES}
{$R HTML.RES} //where html.rc was compiled into html.res


P.S. Во всех факах по TWebBrowser есть.


 
int64 ©   (2002-08-17 03:19) [2]

Я у себя проверил. Протокол res не грузит битмапы из ресурсов. Так что мимо. :(

Хотя если включишь эту фичу, напиши - интересно.


 
lipskiy ©   (2002-08-17 23:53) [3]

Черт, жаль. Но все равно спасибо.
Сам я вряд ли напишу - не тот уровень. Хотя попробовать - попробую.



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

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

Наверх




Память: 0.47 MB
Время: 0.02 c
14-35851
AL2002
2002-08-16 11:08
2002.09.12
Это много?..


14-35907
Agent Smith
2002-08-19 20:00
2002.09.12
ASUS GF3 Ti200 Deluxe - как писать с TV на комп?


3-35608
Vovchik_A
2002-08-21 13:58
2002.09.12
Хочется поработать с дбф без БДЕ


1-35758
Landgraph
2002-08-30 09:50
2002.09.12
Cpp DLL и Delphi App...


4-35971
Ruf
2002-07-20 16:39
2002.09.12
Использование Rundll32