Hey Guys,
Quickie!
How using any language can when i click an image have it insert some text in a text area?
thanks for any help
b :)
Printable View
Hey Guys,
Quickie!
How using any language can when i click an image have it insert some text in a text area?
thanks for any help
b :)
In VB, it's:
VB Code:
Private Sub Image1_Click() Text1.Text = Text1.Text & " plus my custom text" Ed Sub
In Visual C++:
Code:LRESULT CALLBACK WndProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)
switch(Msg)
{
case STN_CLICKED:
switch(lParam)
{
case hwndImage:
SetWindowText(hwndEdit1, "My Text");
}
return 0;
// OTHER MESSAGES HERE
}
return DefWindowProc(hwnd, Msg, wParam, lParam);
}
Sorry dude i was talking Web languages hence the subject Web Development!
Oops, MicroBasic Is Nothing. Anyways,
Code:<TEXTAREA ROWS=20 COLS=10 id=txtMe>
This is my text
</TEXTAREA>
<IMG SRC="/somepic.gif" ... onClick="txtMe.value = txtMe.value + ' plus my text'">
Code:<HTML>
<HEAD>
<script>
function addtext(){
document.theform.textarea1.value = 'added it';
}
</script>
</HEAD>
<BODY>
<form name="theform">
<IMG SRC="images/tpaint.gif" onclick="addtext();">
<TEXTAREA rows=2 cols=20 id=textarea1 name=textarea1></TEXTAREA>
</form>
</BODY>
</HTML>
thanks guys! :D