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
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.
-
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
> 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
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
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
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
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?
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
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
> @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
@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
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
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
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
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
16 matches
Mail list logo