荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: tang (独孤九剑), 信区: Program
标  题: MSVC-BEGINNERS Digest - 22 May 1998 to 23
发信站: BBS 荔园晨风站 (Mon May 25 18:11:46 1998), 转信

There is one message totalling 25 lines in this issue.

Topics of the day:

  1. How do I change the "advance" function from a tab to a Enter
I've got an application that is a data entry one with multiple fields.
Most of the fields are numberic.  A dialog window with a bunch of edit
controls works fairly well (not perfect) except that in a dialog you
move from field to field with the tab key.  Now people that are used to
entering lots of data rapidly want to be able to use the numeric key pad
to enter it and DON'T want to have to wander over to the tab key to get
to the next entry.  In fact, I can't sell something that works that
way.  So how do I trap the Enter key and change it to a TAB or
equivalent?  I spied on the app, but couldn't figure out what path the
keystroke was taking.  I tried to override OnChar for the control and
the dialog, but that never got called, as far as I could tell.  Has
anyone found a solution to this problem?

Thanks,
Jim.
--
        There are these few times I feel lonely for you.
        But I know this shade of blue will soon pass through!
        I must be strong without you by my side!
        I can see forever you are my light.

※ 来源:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.0.4]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店