出现键盘的时候如何自动调整了Windows Mobile应用程序? [英] How to automatically resize a Windows Mobile application when the keyboard appears?

查看:138
本文介绍了出现键盘的时候如何自动调整了Windows Mobile应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找与Windows Mobile的发展,但有一件事我还没有完全想通了呢。在所有的应用程序在设备上已经安装了(IE浏览器,配置窗口,等等),只要在屏幕上(软?)键盘的出现,用户界面​​自动调整使键盘不覆盖或遮掩用户界面(如果必要它增加了滚动条)。

I'm looking into Windows Mobile development but there is one thing which I haven't quite figured out yet. In all applications already installed on the device (Internet Explorer, configuration windows, etc) whenever the on-screen (soft?) keyboard appears, the user interface automatically resizes so the keyboard doesn't cover or obscure the user interface (and if necessary it adds scroll bars).

然而,当我只是一个文本框添加到我的Windows Mobile的形式,在某处底部附近,并测试它,它不会自动调整大小。键盘覆盖文本框,我再也不能看到我打字。

However when I simply add a text box to my Windows Mobile form, somewhere near the bottom, and test it, it's not automatically resized. The keyboard covers the text box and I can no longer see what I am typing.

有没有办法来自动做到这一点,或者我应该这样做我自己使用输入面板的控制和监听的事件?

Is there a way to automatically do this, or should I do this myself using an InputPanel control and listening for its event?

这是所有使用.NET(紧凑的框架,我相信),C#和Windows Mobile 6.1专业版,顺便说一句。

This is all with .NET (the compact framework, I believe), C# and Windows Mobile Professional 6.1, by the way.

推荐答案

使用的输入面板组件。它包含一个EnabledChanged事件。 简单地处理该事件,并调整大小/隐藏/显示您的控件。 :)

Use the InputPanel component. It contains a EnabledChanged event. Simply handle the event and resize/hide/show your controls. :)

例如code可以在找到MSDN

这篇关于出现键盘的时候如何自动调整了Windows Mobile应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆