Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage


Author
Message
Charles R Hankey
Charles R Hankey
StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)
Group: Forum Members
Posts: 524, Visits: 30K
This is both interesting and frustrating ( like so many things in our profession Wink )



In the example the only change i have made to Ivan's clever trick of placing the UG in a groupbox which handles the TabOrderController is to put that groupbox on a TabPage ( and are all the ultragrids in my app )



ctrl-Tab seems reserved to move between tab pages. But ctrl-E is also a problem. Not sure where the focus goes, since in watch window it shows e.keycode is not keys.E but CntrlKey {17} ( this is also true when it is Cntrl-TAB )



Oddly, Ctrl-A, Ctrl-X etc work as expected. And my code in the OnKeydown to have cntrl-Delete delete the row works fine, so I am not sure how the keycode is getting intercepted by the TabControl..



Notice in the sample that if the TabControl is removed, the groupbox/ultragrid work exactly as in the original example.



I have not been able to figure out if this is a SF thing or just a .NET tabcontrol thing or where to intervene.



If it is not fixable I need to convert my app to use panels or something instead but before I go that direction I'd like to know this can't be fixed and that I am not going to have the same problem there.



Thanks in advance ( Ivan BigGrin )
Attachments
UtragridSample2.zip (164 views, 191.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Charles R Hankey - 15 Years Ago
Ivan George Borges - 15 Years Ago
Charles R Hankey - 15 Years Ago
Charles R Hankey - 15 Years Ago
Charles R Hankey - 15 Years Ago
                         Yeah, I have been playing with it a lot too, but it is quite difficult...
Ivan George Borges - 15 Years Ago
                             Hey, the **** should be S h i f t ... but I might have spelt it...
Ivan George Borges - 15 Years Ago
                                 Not sure I understand. Moving between tab pages isn't the problem. I...
Charles R Hankey - 15 Years Ago
                                     :D:D:D:D:D:D:D

Actually, it [b]is[/b] kind of easy. ( or at...
Charles R Hankey - 15 Years Ago
                                         Brilliant, Charles! Great to hear you got it working. ;)
Ivan George Borges - 15 Years Ago
Charles R Hankey - 15 Years Ago
Greg McGuffey - 15 Years Ago
Edhy Rijo - 15 Years Ago
Ivan George Borges - 15 Years Ago
                         I only have one data field in my grid which defaults to now() so I...
Charles R Hankey - 15 Years Ago
                             Yep, guess we have this ahead of us. :ermm: The SF wrapper...
Ivan George Borges - 15 Years Ago
                                 I have not been able to figure out where to intervene to translate the...
Charles R Hankey - 15 Years Ago
                                     I was dealing with other things around here, back to the matter. I...
Ivan George Borges - 15 Years Ago
                                 I seems the question we really need to ask is : How do we display the...
Charles R Hankey - 15 Years Ago
                                     Hi Charles. I think I found a way to handle this, not sure you will...
Ivan George Borges - 15 Years Ago
                                         Ah, forgot to say... set the actual date column Hidden property to...
Ivan George Borges - 15 Years Ago
                                             YOU ARE MY HERO ! :D

I will test this tonight and let you...
Charles R Hankey - 15 Years Ago
                                                 While I'm testing your solution, here's the response I got on...
Charles R Hankey - 15 Years Ago
                                                     [b][quote]Você é um gênio e você é meu herói[/quote][/b]
Charles R Hankey - 15 Years Ago
                                                         Works beautifully ! ( though I was less successful in putting...
Charles R Hankey - 15 Years Ago
                                                         [quote][b]Charles R Hankey (06/09/2010)[/b][hr][b][quote]Você é um...
Ivan George Borges - 15 Years Ago
                                                     [quote][b]Charles R Hankey (06/09/2010)[/b][hr]While I'm testing your...
Ivan George Borges - 15 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search