String Gadget
Posted: Wed Jun 18, 2003 4:05 pm
				
				I'm using the code below to create a multi string gadget.
Just two things i'm stuck with are . . .
How do you determine the end of the gadget because at the moment you can type and type and carry on typing in my gadget, what I want is when the user types and gets to the end of the gadget it automatically drops down a line.
and also . . .
Using the code below.
which I use to print to my printer, now if the user presses return in the multi string gadget its not recognised, message$ is printed all on one line, how do I make the gadget print out its contents in the way the user has typed it in.
Any help would be greatly appreciated.
Kind regards
Andy ( aka Large )
			Code: Select all
StringGadget(7,8,205,306,60,"",PB_String_Multiline)How do you determine the end of the gadget because at the moment you can type and type and carry on typing in my gadget, what I want is when the user types and gets to the end of the gadget it automatically drops down a line.
and also . . .
Using the code below.
Code: Select all
message$   = GetGadgetText(0)
Locate(625, 2450) : DrawText(message$)Any help would be greatly appreciated.
Kind regards
Andy ( aka Large )