a sip question

Ricky D

Well-Known Member
Licensed User
Longtime 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.

or

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
 

Cableguy

Expert
Licensed User
Longtime User
Creating your own, using a panel, would be the best solution, and you could bring it to front on a control focus event....
 

Ricky D

Well-Known Member
Licensed User
Longtime 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
 

Mr_Gee

Active Member
Licensed User
Longtime User
ok thanks, but how do I poke the button presses into the control that has focus?

use the : SUBNAME_Click


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

Yup it does... we'll I never tried but it should :)
If it doesn't you could make a sub on Main
B4X:
Sub ButtonPress(which)
if which = "a" then BUTTON_A_Click 
etc...
End SUb

this can then be called with main.ButtonPress("a") form any module
 

Ricky D

Well-Known Member
Licensed User
Longtime 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
 

Byak@

Active Member
Licensed User
use changeparent from formlib.dll
 

Ricky D

Well-Known Member
Licensed User
Longtime 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
 

Cableguy

Expert
Licensed User
Longtime 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...
 

Attachments

  • y.sbp
    1.8 KB · Views: 191
Last edited:

Ricky D

Well-Known Member
Licensed User
Longtime 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
 
Top