LSK in UIQ 3.1
| Sun, 2008-03-16 09:05 | |
|
Hi, I want to capture event when user pressed LSK in UIQ 3.1 as I want to do some action as user pressed LSK. Thanks&Regards "To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution". |
|






Forum posts: 1210
Sorry, I don't understand the question. Maybe you have to tell about the problem *behind* the problem of reacting to a LSK press: What do you want to achieve?
Anyway, normal UIQ3 programs just react to Commands, regardless of the way the user issues them, LSK, RSK, menu, other button, whatever. Why would you want to single out LSK?
René Brunner
Forum posts: 148
Hi,
At first Thanks to reply.
Actually I want to take some action when user press "Options" i.e LSK. .hope this time my question is clear mean what I want to ask? Please give me some idea or suggestion as I got struck badly.
I would be greatfull for any kind of help,cooments or suggestions.
thanks&Regards
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 1210
Is "Options" one of the commands that you defined yourself in the .rss file? I assume so.
Then just implement/override the HandleCommandL() method of whatever container you work with, e.g. CQikViewBase::HandleCommandL() or CQikSimpleDialog::HandleCommandL().
René Brunner
Forum posts: 148
No , It not a command defined by myself. Its a LSK text.
Regards
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 1210
This is a little confusing. What is a "LSK text"?
If it is not one of your commands, how comes that UIQ writes "Options" there? Which program is running, and when does it write "Options"? And why would you like to react anyway, if that's not one of your commands?
As I asked before: What's the problem *behind* the immediate problem of this "Options" thing? What do you want to achieve? I have a feeling that without that meta-information this thread will go nowhere.
René Brunner
Forum posts: 148
I am really very sorry for the same. LSK means "Left soft Key" . I am a new to UIQ so me also a bit confused. I tried to found out where "Options" has declared as a Soft Key in .rss .But I didn't find. I am telling you in detail hopefully you'll get.
In my view there is there is these options
Options View Back.
Here I want to capture first one i.e Options. Moreover I tried to search it out in .rss command list there is no such command declared. Here I am also confused but then I thought all these three are default framework command like exit etc.
are you getting me or correct me If i am making any mistake.
Sorry again but this confusion is because of lack of my knowledge in UIQ .
Thanks&Regards
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 1210
No need to apologize if you are just confused or simply don't know something. That's what this forum is for
I cannot say for sure why you have those commands on your softkeys in your view, but if you did not create them yourself in your .rss they must be generated by UIQ3, e.g. for the control that has currently the focus. What happens anyway now if you press LSK while this command is assigned?
Do you want to have options in your programm, and do you need an "Options" command for handling them? Then this already existing, probably system-generated command that you see now is of no use for you, and no need to try to "catch" it (which is probably impossible anyway).
Just go ahead, define your own "Options" function in the .rss, implement a HandleCommandL() method to process it, and it will be ok. I think the system will give your own function higher priority than this "Options" command now and will (hopefully) put it into a good place, e.g. LSK.
René Brunner
Forum posts: 15
Hi isha,
First let me inform you that here you have told that you are working on UIQ3.1 on Symbian OS 9.2 and you are saying that in your view LSK text is "Options"...
>> from your post
In my view there is there is these options
Options View Back.
>>>>
But AFAIK there is "More" as a LSK text in UIQ3.1. See the SDK here
» UIQ 3.1 SDK » UIQ Developer Library » UIQ Style Guide » UIQ Style Guide...
For your information we can not capture the default Command "More" in the view as it was inserted by the framework and we do not have it's id. But there are some alternatives through which we can change this LSK text (or just keep the same text but created by us) and insert our own command there and then we can trap this command in HandleCommandL(...) and do what ever we like to do...
Let me know what are the command list in your resource and how you wanna to handle them...
Br,
Pankaj
Pankaj Dubey