James Hunkins wrote: >Does anyone know of a way for qptr to display more than one line of >text per menu entry without manually writing it to the menu location >in the window? > >Currently if a line is wider that the menu location, it simply >truncates the line, even though I have enough room for three lines >and have everything left, top centered. I tried putting manual line >returns (0x0a) into the line and they were ignored. > >Thanks, >jim > >_______________________________________________ >QL-Users Mailing List >http://www.q-v-d.demon.co.uk/smsqe.htm > > > I can think of three ways of producing more than one line of text in a menu item.
1. Use a sprite. I have programs for example which will capture part of a screen and turn it into a sprite. In this way more than one line of text can be used. Unfortunately there was in the past, and may still be, a limit to the size of sprite. 2. Make each line of text a separate menu item. When one of the lines is "selected" you must mark all lines as selected. The action routine for all lines must of course be the same. The trouble is that this looks silly when the pointer moves over the lines because each separate line is given a border. 3. Just use the part of the text that will fit into the application window but arrange for an "explanatory" window to appear if the pointer rests on the truncated line for more than a few seconds. This means reading the pointer with timeout and detecting when the pointer is on the truncated line if timeout occurs. The explanatory window can, of course, contain the full text. George _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
