CompuServe Thread

Forum unknown · Programming

KS 1.2 Beta 4!!!

1 messages in this thread
#27373From: Mark Skapinker (BatterieJul 21, 1986 7:34 AM
As far as the font goes, I'm already supplying a value for the Intuitext.TextAttr field and this is working fine. My problem is that String gadgets don't have any such field in the StringInfo structure. All you can do is supply a pointer to the text to be contained in the buffer, but no attributes. The Intuitext structure in the Gadget structure is a different animal; it is the text that can be displayed near the gadget, not inside it. Apparently the String gadget "inherits" the font of the window or screen (words from the manual). It sure doesn't seem to inherit anything from my window! My description of the SetPointer problem was too vague, sorry about that. I can change the mouse form successfully using the SetPointer function, but the previously displayed forms sometimes reappear when another of my custom forms is displayed. This never happens immediately when the new form is displayed but after the new form has moved at least 2 or more pixels. Sometimes I can get two extra mouse forms displayed. The strange thing is that it's not the last 2 displayed and it's almost always the same forms that appear as phantoms! The phantoms appear in the position that they would last have been displayed before changing to another form. For example, I can move the mouse and cause the following series of mouse forms to be displayed: form1, form2, form3, default, form4. After form4 is displayed and moved a little, form1 and form3 re-appear in their last displayed position. Form1 is furthest down on the display (greatest y value), and form4 closest to the top of the display. The distance between the top of one form and the bottom of the next form is only a few pixels. This suggested to me a timing problem related to the sprites, but it seems to happen regardless of how slowly the mouse is moved across the display.