on 12-30-2005 9:44 AM
Hy everybody!
I try to build a SBO-AddOn that tells me if i'm on a Phone-Nr. Field.
SBO shows a small phone nerby the mousecursor, maybe it would be enough if i would know hot to check the Mousepointer, if it's the normal or the MousePointer with the small phone nerby...
Does anybody have other ideas?
How can i access the information on this "special Field Type". SBO seems to know this, otherwise it would'nt be able to show the small phone when the cursor is on a filled PhoneNr. Field. I tryed to find some infos in this Forum but i could'n find any Help's/HowTos... Maybe somebody knows a way to handle this !
Thank you very much !
Andreas
Hi Andreas
Some Hints:
- Check the Item ID (Enable Debug Information in B1)
- In the Item Event:
If pval.ItemID ="xy" And pval.EventType=....GotFocus Then
...
HTH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you !
That means i have to ask(filter) for each "Item ID" i want check?
It could be many Fields, Matrix and everithing i can put a Phone Nr in B1.
I tryed to find a solution that alows me to get the Information in general (like B1 does with the Mousepointer), after i want to ask if the Mousecursor is the "Phone"-Mousecursor (maybe the Phone Nr. Field has an special Type Info somewhere). How does B1 knows when it has to show the Phone-MouseIcon? I was not able to get this Information till now...
I hope it's not explained to complicated. Please ask otherwise.
Thanx ! Andreas
At the end i want to make a direct call to the "Clicked" Phone Nr. Everything's ok, but i'm not happy with the Code for the Phone-Nr. "detection". It's pretty much work to add everytime the same code for all the items i want to check. Imagine you "the digging" till i have found all PhoneNumbers Fields in B1...
I was looking for a easy way to find "PhoneNr. Fields" in general, i thougt it could makes easy to implement this functionality in other Forms to, no matter where the User is Clicking on a Nr., it could work "automatic". You would be able to put new TNr. fields in your Application without changing the Code, things like this...
but it looks like i musst do this the conventional way...
what you think ?
Thank You !
Andreas
Not any "easy" way...
Detect the fields, add the listener and then point to a generic function.
For new textboxes, create a class that automatically adds this behaviour.
I think the final user should know when the field is a phone(so the mouse cursor isn´t so important).
This are only generic advice, but I don´t see any other option.
Regards,
Ibai Peñ
Thank you!
So, i'm on the right way it seems.
I try to do it like you told me. It could take a while to find all Tel.Nr. fields,
but it seems to be the only way.
I think changing the mouse cursor on "New TNr. Fields" it's annyway not possible, if i can't get to the B1 "logic" that "knows" when it's this "Nr.-type" of a textfield.
Thank you for your advice!
It give's me new ideas!
kind regards!
Andreas
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.