From: Kevin A. <al...@se...> - 2002-11-23 18:16:34
|
Are you saying that with a TextField or TextArea component that as you type a character the field contents get selected? Does that happen with all the samples such as widgets too or just your program? Can you send some code? If something is happening while typing that implies that you've created a keyDown, keyUp, or keyPress handler, so maybe something is wrong in there. If you need to change the default behavior of a fields contents being selected when the field gets focus from the user pressing the Tab key then that could be done in a gainFocus handler. ka > -----Original Message----- > From: Sergio Campitelli > Subject: Auto select all - when entering a TextField > > > I'm not quit sure how to Auto Select ... that is ... when I > tab/point&click > to a field it will select all the contents in that field. > All that has to be done is key new contents ... tab out ... and your done > entering. > > I noticed #event.TextEnterEvent has been commented out because I could use > event.KeyPressEvent instead so I'm told. > > self.events.extend([event.KeyPressEvent, > event.KeyDownEvent, > event.KeyUpEvent, > #event.TextEnterEvent, > event.TextUpdateEvent, > event.CloseFieldEvent > ]) > > But I would like to auto select once not continually (that is as > I'm typing > information in the field it continues to select the entire field.) > I must be doing something wrong > Can somebody help me? > > Serg |