awatkins@lager.UVic.CA (Andrew Watkins) (03/06/91)
Hi! Can anyone tell me if it's possible to embed OLIT widgets in an XView application. I have written an XView program and I want to add a text editor to it. However, XView's text subwindows don't offer any of the features that I want (underlining, boxing text). My question is: can I create a canvas using guide and then use the OLIT TEXTEDIT widget to manipulate text in that canvas? I don't want to write a custom text editor from scratch? Any respones at all would be appreciated. Andrew Watkins Dept of Electical and Computer Engineering University of Victoria, BC CANADA
aim@Corp.Sun.COM (Amy) (03/07/91)
>> >>Can anyone tell me if it's possible to embed OLIT widgets in an XView application. >>I have written an XView program and I want to add a text editor to it. However, XView's >>text subwindows don't offer any of the features that I want (underlining, boxing text). >>My question is: can I create a canvas using guide and then use the OLIT TEXTEDIT widget >>to manipulate text in that canvas? I don't want to write a custom text editor from >>scratch? ` Well, unfortunately you're talking about mixing apples with oranges... OLIT is an Intrinsics toolkit - therefore the widgets require the "Intrinsics Glue" in order to work together. XView has no concept of a "widget" or its data structures, etc. and would have no idea how to manipulate the OLIT TextEdit widget. The bottom line is that you cannot mix objects in these 2 toolkits because of the significant differences in their architecture. If you are using XView, then you'll probably have to implement that Text functionality yourself via a canvas....(yes, A LOT of work!). Regards, Amy Moore Member of Technical Staff Market Development Group Sun Microsystems, Inc.