Page 1 of 1

HTML link in a dialog

PostPosted: Tue Jan 20, 2009 8:25 am
by liqmysaq
is there a way to put a link in my LSS trainer so when its clicked it will send them to an internet address (the post i released it in) via their browser? i've looked through the help file and around the forum but i havent seen anything about doing that. I imagine i can code a button to send them but i have no clue what the coding would be, though i would rather have a normal link like in a web page.

Also, is there a way to put a picture in a trainer? ok, im sure there is a way.. could u spoon feed me plz lol. looking through the helpfile i find stuff about making rectangles, lines, and pixels color but nothing about adding in a picture.

PostPosted: Thu Jan 22, 2009 1:06 am
by lxcid
In C/C++, to open an url in default browser, we used this...

Code: Select all
if ( PathIsURL( url ) )
{
    ShellExecute(NULL, "open", url, NULL, NULL, SW_SHOWNORMAL);
}


But I checked, lss doesn't support ShellExecute function. I guess you could request it from L. Spiro. :)

As for image, i'm not sure. I did some research and seems like there isn't any direct support for it.

If you are desperate, there's i/o functions and setpixel.
You will then have to write your own image parser.

Though I suspect you might face with problem when the image you drew have being invalidated.

PostPosted: Thu Jan 22, 2009 7:26 am
by L. Spiro
You can expect both functions in the next release.


L. Spiro

PostPosted: Thu Jan 22, 2009 9:48 am
by lxcid
That's great to hear. :D

PostPosted: Thu Jan 22, 2009 10:58 am
by liqmysaq
awesome, thx guys. :D