markus@csc.ti.com (Markus Richardson) (01/18/91)
I am having a problem with getting the shorter items in an XmList to be selectable with the mouse pointer. More exactly, if the pointer is located directly on top of the text in an item, it can be selected and the item is turned reverse-video as expected. But when the pointer is slightly over to the right of the word, the item cannot be selected. An obvious KLUDGE is to "pad" the item name with spaces in order to allow item selection to occur at any horizontal position on the line of the item, but this will cause problems when I want the list to grow/resize in its width (i.e., dynamically pad?). Any help would be much appreciated! Another (XmList) related question: My boss wants to duplicate the Mac's way of doing things (please no snide remarks about the Mac :-) such that a small icon in the first char location in a list is displayed to indicate what "type" of item it is (i.e., file, folder, etc). Is there any way to place an icon bitmap (e.g., as the first char) along with normal text (default font) in a single XmList item? In other words, can one mix bitmaps with fonts? I already know I could just use/define my own custom font which contains the icons I desire. But can I mix fonts? Would I need to mix fonts or could I just use/define some chars less than 0x20 to suit my purposes? Thanks in advance for your help! -- Markus R. (markus@ti.com) "If people built houses the way we write programs, the first woodpecker would wipe out civilization" The Cuckoo's Egg by Cliff Stoll