[comp.windows.x] Can I use a text widget?

coltoff@PRC.Unisys.COM (Joel Coltoff) (08/26/88)

I'm plodding along with my application and ran head long into the
next hurdle. I'm not sure if I can accomplish what I want to do
with a text widget or I need to go ahead and write my own. There
will be two basic types of user interaction. They look like this.

	Make the appropriate selections.

part number	description
---------------------------------------------
1234-5678	chrome plated muffler bearings
1234-ABCD       left-handed smoke shifter
abcd-efgh	metric adjustable wrench

In this case the user marks the line or lines they desire. Ideally all
they would need to do is type some character which would cause the
whole line to be highlighted. A return would go to the next line with
wrap around. It won't be unusal to have upwards of 30 lines to choose
from so that scrollbars or automatic scrolling is mandatory. When all
the selections are made a command widget is clicked on.

The other form of input is similar and looks like this

	Choose how many of each that you need

part number	description
---------------------------------------------
[  ] 5678-1234	rubber baby buggy bumpers
[  ] ABCD-1234	6 conductor wire stretcher
[  ] efgh-abcd	opaque +1.5 diopters

In this case the cursor would only be allowed in the "[ ]" areas and
the user would enter the number of those items that are needed. As is
the case with the first example there would be wrap around and at the
end a command widget would be clicked on.

In either case after the command widget is clicked on the window will
be cleared and the next batch of data send to the application.

Does it make sense to do this with a text widget? Is there someway to
put a text widget in overstrike mode so that the "[ ]" areas are filled
in and not pushed off to the right?


Thanks in advance.
-- 
	- Joel
		{psuvax1,sdcrdcf}!burdvax!coltoff	(UUCP)
		coltoff@burdvax.prc.unisys.com		(ARPA)