在业务系统中常常使用回车键(Enter)替代Tab键完成焦点跳转,在uniGUI下,可以不用代码,直接使用TUniForm的NavigateKeys进行设置:
其中Next和Prior决定了焦点向下一个和前一个跳转的按键
Key = 13 表示Enter
ShiftStete 表示辅助键(Shift、Alt或Ctrl)按下状态,当二者结合就可以进行判断
一般用Tab或Enter代表跳转下一个控件,Shift+Tab或Shift+Enter代表返回上一个控件,Tab和Shift+Tab是系统缺省,我们只需要定义Enter和Shift+Enter即可。
调用WebService
今天尝试用uniGUI做Web服务器,调用应用服务器的WebService,遇到些问题记录下来备忘。
1、对WebService的调用同一般App程序,只是注意如果WebService的执行时间较长,会报超时错误,此时需要处理:
(1)在DataModule上放一个THTTPRIO控件;
(2)
界面上的快捷方式
最新推荐文章于 2021-06-15 19:38:27 发布
本文介绍了如何在uniGUI中使用TUniForm的NavigateKeys设置Enter键替代Tab键进行焦点跳转,以及调用WebService的方法和解决超时问题。此外,还详细讲解了如何手动添加TUniTreeView的CheckBox功能,包括修改组件源代码和处理客户端事件。
摘要由CSDN通过智能技术生成