Sub EditText_to_FocusChanged (HasFocus As Boolean)
EditText_to.Tag=HasFocus
EditText_subject.Tag=Not(HasFocus)
If Button_mail_send.Tag < 100%y And HasFocus Then
If Panel_mail.Top+EditText_to.Top+EditText_to.Height>Button_mail_send.Tag Then
Panel_mail.Top=Panel_mail.Top+(Button_mail_send.Tag-(Panel_mail.Top+EditText_to.Top+EditText_to.Height))
End If
End If
End Sub
Sub EditText_subject_FocusChanged (HasFocus As Boolean)
EditText_to.Tag=Not(HasFocus)
EditText_subject.Tag=(HasFocus)
If Button_mail_send.Tag < 100%y And HasFocus Then
If Panel_mail.Top+EditText_subject.Top+EditText_subject.Height>Button_mail_send.Tag Then
Panel_mail.Top=Panel_mail.Top+(Button_mail_send.Tag-(Panel_mail.Top+EditText_subject.Top+EditText_subject.Height))
End If
End If
End Sub
Sub IME1_HeightChanged (NewHeight As Int, OldHeight As Int)
Button_mail_send.Tag=NewHeight
If Panel_mail.Visible And NewHeight<100%y Then ' panel görünür ve dipten yukarıdadır.
If EditText_to.Tag Then
'Msgbox("to:" & NewHeight&"-"&100%y," TO için yukseklik")
If Panel_mail.Top+EditText_to.Top+EditText_to.Height>NewHeight Then
Panel_mail.Top=Panel_mail.Top+(NewHeight-(Panel_mail.Top+EditText_to.Top+EditText_to.Height))
End If
End If
'-------------------------------------
If EditText_subject.tag Then
If Panel_mail.Top+EditText_subject.Top+EditText_subject.Height>NewHeight Then
Panel_mail.Top=Panel_mail.Top+(NewHeight-(Panel_mail.Top+EditText_subject.Top+EditText_subject.Height))
End If
End If
End If
If Panel_mail.Visible And NewHeight=100%y Then ' panel görünür ve dipten yukarıdadır.
Panel_mail.Top=Panel_mail.Tag
End If
End Sub