| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Selectable lines in a window |
Hey Paul! > 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. With the risk to make a fool of myself, might I suggest the IListBox control, and the Cursor class as the browser through the text lines. By inheriting the ISelectHandler and ICommandHandler and overriding the command operation for both, you will recieve the information about what happened - this is eventdriven. You can read double-click, right mousebutton, left mousebutton, enter etc. etc. etc. in the IListBox control. Was this what you wanted, or? > 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? We are hopefully talking PM, or? Hope this sorts you out! Yours, Morten T. Jensen ---* Origin: Warning: Objects in mirror are closer than they may seem! (2:236/100.77) 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: 236/100 235/47 236/9 235/50 240/5500 24/24 396/1 270/101 712/515 @PATH: 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™.