0

I'm currently using the ShowHTMLDialog that in MSHTML.DLL to display a html document embedded in my application as a modal dialogue.

This all work OK but I would like to be able to have better looking dialogues so am trying to move to HTML5, I have found the following example of an html 5 login page but it does not display correctly when loaded form my application.

Example Login http://cssdeck.com/labs/login-form-using-html5-and-css3

My Questions are: is this is even possible and if so what's the best way to go about it.

Heres is what I am seeing Login Image I am expecting it to look like the website posted above,

Running windows 7 and IE 11

The code I am using in Delphi is

LibHandle := LoadLibrary('MSHTML.DLL');
@ShowHTMLDialog:=GetProcAddress(LibHandle,'ShowHTMLDialog');
URLStr:=StringToOleStr(AMessage);
CreateURLMoniker(nil, URLStr,pmk);
SysFreeString(URLStr);

TVarData(InParam).VType := varOleStr;
TVarData(InParam).VOleStr:=StringToOleStr(FParams);

AParams := AParams + Format('dialogHeight:%d pt;',[AHeight]);
AParams := AParams + Format('dialogWidth:%d pt;',[AWidth]);
AParams := AParams + Format('center:%s;',['no']);
AParams := AParams + Format('unadorned:%s;',['yes']);
AParams := AParams + Format('dialogTop:%d px;',[ATop]);
AParams := AParams + Format('dialogLeft:%d px;',[ALeft]);

Features := PWideChar(AParams);
// display window
ShowHTMLDialog( hwndParent, pmk, InParam, Features, OutParam);
FreeLibrary(LibHandle);
Shaun07776
  • 1,052
  • 1
  • 10
  • 16

0 Answers0