a sip question

Discussion in 'Questions (Windows Mobile)' started by Ricky D, Oct 22, 2008.

  1. Ricky D

    Ricky D Well-Known Member Licensed User

    On my ppc device running wm6 I have the keyboard set to use large keys.

    What I'd like to do is either :

    know how to "press" the 123 button on the top left of the sip to make the numbers come up and obviously to press it again to bring back the alpahabet.

    This needs to be done in code.


    Create my own. I thought of using a panel. Are there other possible solutions?
    I've just started a bit of C# programming but alas custom sips have to be written in c++ according to various websites and that is way beyond me.

    any help is appreciated.

    regards, Ricky
  2. Cableguy

    Cableguy Expert Licensed User

    Creating your own, using a panel, would be the best solution, and you could bring it to front on a control focus event....
  3. Ricky D

    Ricky D Well-Known Member Licensed User

    sounds good....

    ok thanks, but how do I poke the button presses into the control that has focus?

    Also would this work with multiple modules? My code is in 8 or 9 different modules.

    regards, Ricky
  4. Mr_Gee

    Mr_Gee Active Member Licensed User

    use the : SUBNAME_Click

    Yup it does... we'll I never tried but it should :)
    If it doesn't you could make a sub on Main
    Sub ButtonPress(which)
    if which = "a" then BUTTON_A_Click 
    End SUb
    this can then be called with main.ButtonPress("a") form any module
  5. Ricky D

    Ricky D Well-Known Member Licensed User

    how to make the "sip" visible on different forms?

    a panel has to have a parent.

    Should I set the parent each time form_show runs for each form?

    i guess if so i'd need to to keep track where the panel is at any given time.

    regards, Ricky
  6. Byak@

    Byak@ Active Member Licensed User

    use changeparent from formlib.dll
  7. Ricky D

    Ricky D Well-Known Member Licensed User

    I'm doing that

    but how do I poke a keypress from one of it's buttons into the textbox or whatever that has focus? The textbox or whatever will lose focus to the button press.

    regards, Ricky
  8. Cableguy

    Cableguy Expert Licensed User

    Assign a common click to each button...
    Return a string with every click and appen it to the control text...
    I'll post a module where this is used...later tonigth...

    But just to show how easy it is, here's a b6.30 example...

    Attached Files:

    • y.sbp
      File size:
      1.8 KB
    Last edited: Oct 22, 2008
  9. Ricky D

    Ricky D Well-Known Member Licensed User

    Thanks all but this won't work

    Thanks to everyone.

    A major issue I have with using a panel is that the "keyboard" buttons steal focus from the item being typed into. This triggers the LostFocus event on the control and I don't want that to fire unless I tap another control that's not the sip.

    I'm going to investigate doing this in VB or C#.

    regards, Ricky
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice