Dimitris,
thanks for the tip. I can get the Keypress event from the form and get the
combination for Ctrl + Tab.
However, since I have a Workspace, I don't know how to access the Tabstrip
control or how to index the forms in it.
Any thoughts?
Thanks
Dimitris Anogiatis wrote:
If I may add my
Dimitris,
thanks for the tip. I can get the Keypress event from the form and get the
combination for Ctrl + Tab.
However, since I have a Workspace, I don't know how to access the Tabstrip
control or how to index the forms in it.
You don't.
You must use the Workspace.Children property to get
After reading Benoît 's guidelines and going through my previous example
I came up with this.
PUBLIC SUB Form_KeyPress()
IF Key.Control
SELECT CASE Workspace1.Children.Find(Workspace1.ActiveWindow)
CASE 0 TO Workspace1.Children.Count - 2
Workspace1.ActiveWindow =
I tried this last example and it worked like a charm. Thanks.
Marcel
--
View this message in context:
http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22233025.html
Sent from the gambas-user mailing list archive at Nabble.com.
Glad I could help Marcel :)
On Thu, Feb 26, 2009 at 1:33 PM, Vackoy marcel.duf...@gmail.com wrote:
I tried this last example and it worked like a charm. Thanks.
Marcel
--
View this message in context:
http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22233025.html
Hi,
has anyone tried this before? switching between tabs without clicking them.
Doing it from code pressing Crtl + Tab or something, like Firefox does.
Thanks,
Marcel
--
View this message in context:
http://www.nabble.com/Switching-between-forms-in-tabstrip-tp22206694p22206694.html
Sent from
Le mercredi 25 février 2009 18:03:29 Vackoy, vous avez écrit :
Yes, but which element/object is the observer for the Keypress?
I tried with Workspace.Keypress but when I open a form, the observer
becomes the form and not the workspace, so no matter what key I press it
doesn't raise the
@jacky-12
I understand that but that is not what I need.
Let me see if I can explain it better.
I have a workspace and add several forms to it. In each for i have different
controls as textboxes, buttons, gridviews, etc.
The thing is that I want to be able to switch between forms with some key
@jacky-12
I understand that but that is not what I need.
Let me see if I can explain it better.
I have a workspace and add several forms to it. In each for i have
different controls as textboxes, buttons, gridviews, etc.
The thing is that I want to be able to switch between forms with some
Vackoy ha scritto:
@jacky-12
I understand that but that is not what I need.
Let me see if I can explain it better.
I have a workspace and add several forms to it. In each for i have different
controls as textboxes, buttons, gridviews, etc.
The thing is that I want to be able to switch
If I may add my 2 cents worth,
if you just use the form_keypress event
you might be able to do what you want.
this is my attempt; tbsettings is my tabstrip control
I have 4 tabs (with index 0 to 3)
add this to the form that you have the tabstrip onto
PUBLIC SUB Form_KeyPress()
IF
11 matches
Mail list logo