Re: [Gambas-user] Switching between forms in tabstrip

2009-02-26 Thread Vackoy
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

Re: [Gambas-user] Switching between forms in tabstrip

2009-02-26 Thread Benoît Minisini
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

Re: [Gambas-user] Switching between forms in tabstrip

2009-02-26 Thread Dimitris Anogiatis
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 =

Re: [Gambas-user] Switching between forms in tabstrip

2009-02-26 Thread Vackoy
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.

Re: [Gambas-user] Switching between forms in tabstrip

2009-02-26 Thread Dimitris Anogiatis
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

[Gambas-user] Switching between forms in tabstrip

2009-02-25 Thread Vackoy
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

Re: [Gambas-user] Switching between forms in tabstrip

2009-02-25 Thread Jack
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

Re: [Gambas-user] Switching between forms in tabstrip

2009-02-25 Thread Vackoy
@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

Re: [Gambas-user] Switching between forms in tabstrip

2009-02-25 Thread Benoît Minisini
@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

Re: [Gambas-user] Switching between forms in tabstrip

2009-02-25 Thread Doriano Blengino
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

Re: [Gambas-user] Switching between forms in tabstrip

2009-02-25 Thread Dimitris Anogiatis
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