hatzisn Expert Licensed User Longtime User Oct 8, 2014 #1 Hi all, I am facing a problem with IME library. I have added the following code in the activity_create event Code: Copy IME3.Initialize("IME3") IME3.SetCustomFilter(txtHour,txtHour.INPUT_TYPE_NUMBERS,"0123456789") IME3.SetCustomFilter(txtMinute,txtMinute.INPUT_TYPE_NUMBERS,"0123456789") IME3.AddHeightChangedEvent and this code for the event: Code: Copy Sub IME3_HeightChanged (NewHeight As Int, OldHeight As Int) Log("Μπήκα στο HeightChange") Msgbox (NewHeight & CRLF & lngOriginalHeight,"Title") If NewHeight < lngOriginalHeight Then If pnlSetThis.Visible = True Then pnlSetThis.Top = NewHeight - pnlSetThis.Height End If If pnlCopyHours.Visible = True Then pnlCopyHours.Top = NewHeight - pnlCopyHours.Height End If Else If pnlSetThis.Visible = True Then pnlSetThis.Top = lngStartHpnlSetThis End If If pnlCopyHours.Visible = True Then pnlCopyHours.Top = lngStartHpnlCopyHours End If End If End Sub The application is not in full screen mode and yet it does not get in the event at all. Nothing is logged and no message box is showing... Am I missing something here? Some help would be highly appreciated. Thanks, Nikolaos P.S. The setcustomfilter commands are working properly...
Hi all, I am facing a problem with IME library. I have added the following code in the activity_create event Code: Copy IME3.Initialize("IME3") IME3.SetCustomFilter(txtHour,txtHour.INPUT_TYPE_NUMBERS,"0123456789") IME3.SetCustomFilter(txtMinute,txtMinute.INPUT_TYPE_NUMBERS,"0123456789") IME3.AddHeightChangedEvent and this code for the event: Code: Copy Sub IME3_HeightChanged (NewHeight As Int, OldHeight As Int) Log("Μπήκα στο HeightChange") Msgbox (NewHeight & CRLF & lngOriginalHeight,"Title") If NewHeight < lngOriginalHeight Then If pnlSetThis.Visible = True Then pnlSetThis.Top = NewHeight - pnlSetThis.Height End If If pnlCopyHours.Visible = True Then pnlCopyHours.Top = NewHeight - pnlCopyHours.Height End If Else If pnlSetThis.Visible = True Then pnlSetThis.Top = lngStartHpnlSetThis End If If pnlCopyHours.Visible = True Then pnlCopyHours.Top = lngStartHpnlCopyHours End If End If End Sub The application is not in full screen mode and yet it does not get in the event at all. Nothing is logged and no message box is showing... Am I missing something here? Some help would be highly appreciated. Thanks, Nikolaos P.S. The setcustomfilter commands are working properly...
Erel B4X founder Staff member Licensed User Longtime User Oct 10, 2014 #2 Have you added this line to the manifest editor: SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden) Upvote 0
Have you added this line to the manifest editor: SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)
hatzisn Expert Licensed User Longtime User Oct 16, 2014 #3 No actually I did not added that but I am curious because in an other activity with less views is working fine and without the SetActivityAttribute command. I will add this and let you know. Do you believe that it has something to do with the actual number of the views? Upvote 0
No actually I did not added that but I am curious because in an other activity with less views is working fine and without the SetActivityAttribute command. I will add this and let you know. Do you believe that it has something to do with the actual number of the views?
Erel B4X founder Staff member Licensed User Longtime User Oct 16, 2014 #4 hatzisn said: Do you believe that it has something to do with the actual number of the views? Click to expand... I'm pretty sure that it is not related to the number of views. Upvote 0
hatzisn said: Do you believe that it has something to do with the actual number of the views? Click to expand... I'm pretty sure that it is not related to the number of views.