OrangeRobot
10-15-2004, 08:39 PM
Hello,
I am trying to make a chat client in MX 2004. (I have to use MX 2004, because I need the DataGrid component).
Problem:
I need a text box that displays chat messages. This text box must have a scrollbar that will auto-scroll to the bottom when new chat messages arrive in the text box.
Solution #1:
Paste the old MX ScrollBar component into the MX 2004 IDE. This scrollbar works perfectly with a simple dynamic text field. The problem is that it is skinned in the old gray style, and does not match the new DataGrid skin.
Solution #2:
Use a dynamic text field and the new UIScrollBar. This doesn't work because UIScrollBar will not auto-scroll to the bottom properly. (This is a documented bug, I believe).
Solution #3:
Use a TextArea with built-in scroll bar. This works by circumventing the above bug via doLater(). The problem with this is that the chat message text is too close to the left side of the TextArea, and I can not find a margin parameter.
Does anyone have any suggestions?
I am trying to make a chat client in MX 2004. (I have to use MX 2004, because I need the DataGrid component).
Problem:
I need a text box that displays chat messages. This text box must have a scrollbar that will auto-scroll to the bottom when new chat messages arrive in the text box.
Solution #1:
Paste the old MX ScrollBar component into the MX 2004 IDE. This scrollbar works perfectly with a simple dynamic text field. The problem is that it is skinned in the old gray style, and does not match the new DataGrid skin.
Solution #2:
Use a dynamic text field and the new UIScrollBar. This doesn't work because UIScrollBar will not auto-scroll to the bottom properly. (This is a documented bug, I believe).
Solution #3:
Use a TextArea with built-in scroll bar. This works by circumventing the above bug via doLater(). The problem with this is that the chat message text is too close to the left side of the TextArea, and I can not find a margin parameter.
Does anyone have any suggestions?