嗯,这与this question非常相似。
但是
Firemonkey
似乎无法用于iOS
。我无法弄清楚如何使用相同的功能,甚至可以达到相同效果的东西对$ irb
C:/Ruby22/lib/ruby/site_ruby/2.2.0/rbreadline.rb:1097:in `<module:RbReadline>': HOME environment variable (or HOMEDRIVE and HOMEPATH) must be set and point to a directory (RuntimeError)
from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rbreadline.rb:17:in `<top (required)>'
from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22/lib/ruby/site_ruby/2.2.0/readline.rb:10:in `<module:Readline>'
from C:/Ruby22/lib/ruby/site_ruby/2.2.0/readline.rb:8:in `<top (required)>'
from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22/lib/ruby/2.2.0/irb/input-method.rb:129:in `<module:IRB>'
from C:/Ruby22/lib/ruby/2.2.0/irb/input-method.rb:14:in `<top (required)>'
from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22/lib/ruby/2.2.0/irb.rb:18:in `<top (required)>'
from C:/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from C:/Ruby22/lib/ruby/2.2.0/rubygems
应用程序来说也不错。
如何在Firemonkey中的TEdit中隐藏插入符?
答案 0 :(得分:2)
TEdit有一个插入符号属性,您可以将visible属性设置为false。
edit1.caret.visible:= false;
我不建议你这样做,因为那时你需要记住重新启用它。
还不清楚键盘上的“完成按钮”是什么意思。你在手机上运行吗?如果是这样,那么您只需将KillFocusByReturn
属性设置为true
,然后在键盘关闭后,插入符号将自动消失并且焦点转移到表单。