merz@kivax.UUCP (Bruno Merz) (04/23/91)
We'r looking for a widget based on motif toolkit. The widget should provide the following functionality: A region, like a virtual screen segment, which can be addressed by row and column to display any characters with different attributes (colors, reverse, underline etc.). The widget should provide something like a cursor. That means, the widget can have the focus, but keyboard input has to be processed by application callbacks or translations. Several functions like scrolling/clearing parts of the region or borders to protect parts from scrolling would simplify the implementation of our functions. In order to give you an impression of the functions which we are going to implement on top of this widget, here a short list of these functions: Display_Character(Row, Colum); Display_String(Row, Colum); Position_Cursor(Row, Colum); Clear_Region(Upper_Left_Corner, Lower_Right_Corner); Scroll_Block(Upper_Left_Corner,Lower_Right_Corner,Number_of_Lines,Direction) Set_Attribute(Attribute); /* Each character which is displayed after this function should occur with this attribute */ Set_Attribute_Block(Upper_Left_Corner, Lower_Right_Corner, Attribute); Set_Border(Left_Border,Right_Border,Top_Border,Bottom_Border); Up to now we use the text widget with XmNeditMode set to XmMULTI_LINE_EDIT. We initialize this widget with Rows x Columns spaces to get the correct size displayed and we keep the screen contens in an internal memory structure. With this more or less good construction we get our functions running without attributes, scrolling and borders. Therefore we are looking for somthing different. Can anybody help us with a good idea or super widget? Thanks, Bruno ------------------------------------------------------------------------ Bruno Merz Tel.: +49 7721 867690 Digital Kienzle Computersysteme Abt. 011.2 e-mail: merz@kivax.UUCP Postfach 1640 ..!mcsun!unido!kivax!merz D-7730 VS-Villingen ..!uunet!unido!kivax!merz