> Thanks, it's really nice, but I have a few tasks already and can't > find, how to solve it. > For eample: I need to make some control invisible, Not quit sure what do you mean by control. Is it SpinButton? Entry? Menu? and so on... Please give us the Widget type or at least screen shot. But "control" is a Widget, you can use the "hide()" method, or set the visible property into false.
> I need to catch > double-mouse-click event and change one control to another and so one. > Can somebody help me? button_press_event in Widget is what you need. There is an Gdk.EventButton parameter, usually called "e" in Vala: http://valadoc.org/#!api=gdk-3.0/Gdk.EventButton It contains all information you need, including what type of click it was. This is an example method for this event: bool signal_handler_event(Widget widget, Gdk.EventButton e) { if (e.type==EventButton.2BUTTON_PRESS) { // Something } return FALSE; }Yours Tal > Date: Tue, 14 Aug 2012 16:59:19 +0600 > Subject: Re: [Vala] How can I get information about vala & gtk? > From: shoot...@gmail.com > To: tal...@hotmail.com > > Thanks, it's really nice, but I have a few tasks already and can't > find, how to solve it. > For eample: I need to make some control invisible, I need to catch > double-mouse-click event and change one control to another and so one. > Can somebody help me? > > 2012/8/14 Tal Hadad <tal...@hotmail.com>: > > > > I'll give you the magic trick: > > Look at the examples and when you find some example interesting, > > start to twick the code. > > Only experience can truly teach you. > > It works for me, hope it will work for you. > > > > See for example, the GTK example: > > https://live.gnome.org/Vala/GTKSample > > I'll give you homework if you want with this examples: > > * Basic Sample: After the first click, when the text is changed into > > "Thank you", the next click will make the window to exit. > > * Synchronizing Widgets: Add a nice restore default button with blue > > background. > > * Creating a Dialog: Add a button with clear the text in the entry. > > > > I don't tell you how to do it, you'll have to search the web. > > Do what ever you want to do with them. Pick an interesting task > > and perform it by your need. > > > > Hope you found my response useful. > > Tal > > > >> Date: Tue, 14 Aug 2012 16:25:12 +0600 > >> From: shoot...@gmail.com > >> To: vala-list@gnome.org > >> Subject: [Vala] How can I get information about vala & gtk? > >> > >> Hi all, > >> I'm extremely new in vala, I've wrote almost all documentation about > >> vala, sqlite and gtk etc, but still have many questions how gtk+ and > >> vala works. It's a newbie questions but I need to ask it somebody who > >> cant me help. How can I get it? > >> _______________________________________________ > >> vala-list mailing list > >> vala-list@gnome.org > >> https://mail.gnome.org/mailman/listinfo/vala-list > > > > > > _______________________________________________ > > vala-list mailing list > > vala-list@gnome.org > > https://mail.gnome.org/mailman/listinfo/vala-list > >
_______________________________________________ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list