Flex 聊天/远程登录应用程序在 TextArea 中发送/接收同一窗口

发布于 2024-08-30 04:38:02 字数 499 浏览 5 评论 0原文

只是想知道是否有人见过 telnet/聊天或其他控制台(如 FLEX 应用程序)的示例,您可以在其中使用相同的 TextArea 作为输入/输出区域。

我一直在尝试修改应用程序:

http://livedocs.adobe .com/flex/3/html/17_Networking_and_communications_8.html

但到目前为止,计算机说不。

我见过的所有实现都使用 TextInput 和 TextArea 的组合。

挑战在于我们将使用此应用程序远程登录到一些旧路由器,并且我们需要进行大量的复制/粘贴。根据我所看到的,似乎我需要将鼠标指向 TextInput 才能右键单击并粘贴,这不是很巧妙......

您的想法, 弗兰

Just wanting to know if anybody has seen an example of a telnet/chat or other console like FLEX application where you can use the same TextArea as input/ouput area.

I've been trying to modify the app at:

http://livedocs.adobe.com/flex/3/html/17_Networking_and_communications_8.html

but so far, computer says no.

All the implementations I've seen use a combination of TextInput and TextArea.

The challenge is that we'll be using this app to telnet into some old routers and we'll need to do a fair amount of copy/pasting. Based on what I've seen, it seems that I would need to point the mouse into the TextInput in order to be able to right click and paste, which is not very sleak.....

Your thoughts,
Fran

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

思慕 2024-09-06 04:38:02

编辑刚刚意识到我已经删除了与问题直接相关的内容:我无法找到任何使用 TextArea 进行输入和输出的内容;如果自定义组件建议没问题,请参阅以下建议。

TextArea 组件仅触发 change 事件每当用户添加输入时。每当您以编程方式设置文本字段时,更改事件都不会触发 - 您可以使用它作为通过查找回车符(<代码>\r)。

我不确定您是否需要将用户的输入保留在最底行(如控制台),即使在控制台以自动完成之类的方式响应之后也是如此。如果是这种情况,那么就必须采取一些更复杂的措施(例如记住用户输入的开始/结束位置),或者需要重新考虑单组件控制台的要求——光滑是不错,但不是总是必要的。

edit Just realized that I had trimmed out what was directly pertaining to the question: I was unable to find anything that used the TextArea for input and output; see the below suggestions if custom-component suggestions are ok.

The TextArea component only fires a change event whenever a user adds input. Whenever you set the text field programmatically, a change event does not fire--you could maybe use that as a way to know what is user input and console "responses" by looking for carriage-returns (\r).

I'm unsure if you have a requirement to maintain the user's input at the bottom-most line (like a console), even after the console responds with something like auto-complete. If that's the case, then something a bit more complex would have to come into play (such as remembering where the user's input started/ended) or the requirement of a single-component console needs to be reconsidered--sleek is nice, but not always necessary.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文