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 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 > Sent from the gamb

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
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 = Workspace1.Chil

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

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 m

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 Key.Control

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

2009-02-25 Thread Doriano Blengino
Vackoy ha scritto: > Thanks everyone for your responses. > I think that what Benoit and Doriano suggested are in the way of what I > need. > > Doriano, the layout of what I have is the following: > * a main form > * a workspace > * several forms added to the workspace by .add method > > Where shoul

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

2009-02-25 Thread Vackoy
Thanks everyone for your responses. I think that what Benoit and Doriano suggested are in the way of what I need. Doriano, the layout of what I have is the following: * a main form * a workspace * several forms added to the workspace by .add method Where should I add the menu, in the main form?

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 M0E Lnx
The form does have a keypress() event. If you are using a workspace to host(embed) other forms into one host form, you'll have to declare a variable that holds the current object in the workspace, and address the correct object. For example. PUBLIC $CurrentObject as Object on the guest forms open

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 s

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 co

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 even

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

2009-02-25 Thread Vackoy
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 event... M0E Lnx wrote: > > Have not tried it but I imagine you can cod

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

2009-02-25 Thread M0E Lnx
Have not tried it but I imagine you can code that in the windows_Keypress() event. Should be doable -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open so

[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 t