Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwvax!dogie.macc.wisc.edu!csd4.milw.wisc.edu!bbn!mit-eddie!uw-beaver!rice!sun-spots-request From: aviad%BIMACS.BITNET@rutgers.edu (aviad adiel) Newsgroups: comp.sys.sun Subject: SunView / Suntools Keywords: Windows Message-ID: <3754@kalliope.rice.edu> Date: 4 Jun 89 09:59:39 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 36 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 22, message 6 of 10 Hello SunView experts ! I have three questions about SunView: 1. In a program that creates & treats Textsw, I have to branch to my own function AFTER a scrolling (asked by the user) has been done. How can I take controll right after the standard scrolling has been executed ? How does the filemerge utility do that ? 2. In menu_create, I use the "MENU_NOTIFY_PROC, menu_return_item" parametr, in order to get the selected item itself (not its number), as described in the SunView Programer's Guide. It doesn't seem working ! Is that a bug, or am I using it wrong ? 3. About the SELECTION SERVICE: In a program that creates & treats Textsw, I have to know where a selection ends. So I call: char pos[15]; Seln_holder holder; Seln_request *buffer; Attr_union attribute; holder = seln_inquire(SELN_PRIMARY); buffer = seln_ask(&holder, SELN_REQ_LAST, 0, 0); But I DON'T get the last position of the selection ! Is that a bug, or am I using it wrong ? Partial answers are welcome, too. Adi Aviad ( aviad@bimacs ) Bar-Ilan University Israel