TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Paul Sidorsky
date: 1995-11-11 23:32:12
subject: Selectable lines in a window

Hello All!

I am wondering if there is a way to make lines of text within an entire
window easily selectable?  I have a list of items, displayed one on each
line, and I'd like to have the user right, left, or double click on a line
and have it either display as "selected" or display a popup menu.

Right now I'm storing the area of displayed text as a kind of logical mouse
region and manually checking for clicks.  It works, but I thought there
might be an easier way, because when I look at things like the Project
window in the Borland C++/2 IDE it seems like they use a better method for
handling this kind of thing.  Are they just being more thorough or are they
using a feature of OS/2 that I am unaware of?

 -- PaulS
    sidorskp{at}cadvision.com

--- FMail/2 1.02
* Origin: ISMWare Support, Calgary AB, (403)686-0449, 28800 V.FC (1:134/31)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809
@PATH: 134/31 17 3615/50 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.