Forum > Beginners
open file
JuhaManninen:
--- Quote from: scons on February 07, 2016, 11:45:45 am ---I can confirm this solution works also without any errors.
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- WS := WideString(ListBox1.Items[I]); //or UTF8ToUTF16(ListBox1.Items[I]) from LazUTF8
--- End quote ---
If you need a typecast there then FPC has a bug.
In fact the whole ShellExecute discussion is useless. Instead of ShellExecute you should use the cross-platform
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---function OpenDocument(APath: String): Boolean;defined in LCLIntf.
Navigation
[0] Message Index
[*] Previous page