Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Strange thing on panel

aqgeaqge Member Posts: 3
lately i put a form on panel,
using code

formXX.Parentwindow := Twincontrol(thepanel).handle;

the strange thing is , i cant put focus on edit, memo, and combo by using mouse.
but if i m using code, let say

myedit.setfocus; it just find.

i completely confuse with this odd thing.
please give me advice or topic to search on the net

Comments

  • tijoentijoen Member Posts: 141
    : lately i put a form on panel,
    : using code
    :
    : formXX.Parentwindow := Twincontrol(thepanel).handle;
    :
    : the strange thing is , i cant put focus on edit, memo, and combo by
    : using mouse.
    : but if i m using code, let say
    :
    : myedit.setfocus; it just find.
    :
    : i completely confuse with this odd thing.
    : please give me advice or topic to search on the net
    :
    Try removing the focus from twincontrols before adding the focus to controls, I don't know why, some time ago It was really hard for me to take out control of a TWebBrowser and put into the memo i wanted to focus, the only way was removing the focus from the twebbrowser and then setting in the memo
Sign In or Register to comment.