Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Sip Problem

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-06-2010, 01:02 AM
Junior Member
 
Join Date: Sep 2008
Posts: 21
Default Sip Problem

Can anyone explain:
When I enable the sip keyboard a move left key seems to generate so any textBox highlights are extinquised and the cursor is in one letter from the end of text


Many Thanks

robert black
Reply With Quote
  #2 (permalink)  
Old 03-06-2010, 07:16 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Does it happen in the device IDE?
Reply With Quote
  #3 (permalink)  
Old 03-07-2010, 05:48 PM
Junior Member
 
Join Date: Sep 2008
Posts: 21
Default

Dear Erel
Thanks for reply ..
i'm using a ipaq 214 with wm6 but if I remember correctly I also had the problem with a Dell axim using WM5


Also I posted a thread ref resetting the word completion dictionary in software but have not had any replies .. any ideas



best wishes
bob black
Reply With Quote
  #4 (permalink)  
Old 03-10-2010, 06:20 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

When does this problem happen?
Reply With Quote
  #5 (permalink)  
Old 03-11-2010, 06:18 PM
Junior Member
 
Join Date: Sep 2008
Posts: 21
Default

this short excert even as a stand alone gives problem

on clicking button1 the cursor moves one space to left clearing seleted text
on second click of button1 it works ok

If the sib is disabled with button2 then problem occurs again
when clicking button1



Sub App_Start
Form1.Show
Sip(False)
End Sub

Sub Button1_Click
TextBox1.Focus
TextBox1.SelectionStart=0
TextBox1.SelectionLength= _
StrLength(TextBox1.Text)
Sip(True)
End Sub


sub Button2_Click
sip(false)
end sub

Last edited by robert black : 03-11-2010 at 07:02 PM.
Reply With Quote
  #6 (permalink)  
Old 03-12-2010, 01:52 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I see it too. This is the .Net behavior.
This code should work:
Code:
Sub Button1_Click
 
Sip(True)
  textbox1.SelectionStart=
0
 textbox1.SelectionLength = StrLength(textbox1.Text)
 textbox1.Focus
End Sub
You can also store the current values and then set them after setting the SIP value.
Reply With Quote
  #7 (permalink)  
Old 03-12-2010, 07:00 PM
Junior Member
 
Join Date: Sep 2008
Posts: 21
Default

thanks for reply erel
and a quick thank you to all .dll programmers that make basic4ppc so
versatile

i have tried to move the sip and textbox.focus to different parts of the sub
but the same result -- any other ideas

i've attached something that works but is messy --- showing a quick flash msbox()

also i did post a enquirey ref resetting the word completion dictionary
in software but no replyies --- any ideas

as you know the WM6 word completion table is not accessible ( i think ) but I have a prog that will automatocally put words from any .txt list onto the word completion index ( really useful on device )

many thanks

robert black
Attached Files
File Type: sbp Test_Sip.sbp (1.0 KB, 4 views)

Last edited by robert black : 03-12-2010 at 07:07 PM.
Reply With Quote
  #8 (permalink)  
Old 03-15-2010, 05:36 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Did you try this code:
Code:
Sub Globals
    
'Declare the global variables here.

End Sub

Sub App_Start
    Form1.Show
End Sub
Sub Button1_Click
 
Sip(True)
  textbox1.SelectionStart=
0
 textbox1.SelectionLength = StrLength(textbox1.Text)
 textbox1.Focus
End Sub
It seems to work fine.
Reply With Quote
  #9 (permalink)  
Old 03-23-2010, 09:58 AM
Junior Member
 
Join Date: Sep 2008
Posts: 21
Default

erel
sorry that still will not work on my ipaq
really confused

best wises
rb
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 08:41 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0