RE: SplashScreen no cursor, timeout, top full screen,
- From: "MONDON Daniel" <Daniel MONDON lpgsystems com>
- To: "Krzesimir Nowak" <qdlacz gmail com>
- Cc: gtkmm-list gnome org
- Subject: RE: SplashScreen no cursor, timeout, top full screen,
- Date: Wed, 8 Feb 2012 17:36:19 +0100
With this example : http://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/timeout
I put the Kjell's code in on_button_add_timer().
When i click, mouse cursor become invisible! :)
As i need timeout, i will start from this sample program, adding what i need (image, full screen ... ).
The remaining questions will be what libraries i need to run the program under Ubuntu 10.04 and 8.04 ...
Thanks
Daniel.
-----Message d'origine-----
De : Krzesimir Nowak [mailto:qdlacz gmail com]
Envoyé : mercredi 8 février 2012 16:44
À : MONDON Daniel
Cc : Kjell Ahlstedt; gtkmm-list gnome org
Objet : Re: SplashScreen no cursor, timeout, top full screen,
2012/2/8 MONDON Daniel <Daniel MONDON lpgsystems com>:
> Effectively, gdk_window is NULL.
>
Try calling Kjell's code in signal_realize [1] handler. At this point window should be realized, i.e. it should have allocated GdkWindow.
There is a tutorial how to add custom signal handler. [2]
[1] http://developer.gnome.org/gtkmm/stable/classGtk_1_1Widget.html#a57525266f890c9eb894ae00af141decf
[2] http://developer.gnome.org/gtkmm-tutorial/stable/sec-connecting-signal-handlers.html.en
> Thanks
> Daniel.
>
>
> -----Message d'origine-----
> De : Kjell Ahlstedt [mailto:kjell ahlstedt bredband net]
> Envoyé : mercredi 8 février 2012 15:52 À : MONDON Daniel Cc :
> gtkmm-list gnome org Objet : Re: SplashScreen no cursor, timeout, top
> full screen,
>
> I think this is a way to hide the cursor:
>
> Glib::RefPtr<Gdk::Window> gdk_window = fenetre.get_window(); if
> (gdk_window)
> gdk_window->set_cursor(Gdk::Cursor::create(Gdk::BLANK_CURSOR));
>
> A possible complication is that Gtk::Widget::get_window() returns a Gdk::Window pointer only if the widget has been realized, and I don't know when exactly that's done.
>
> Kjell
>
> 2012-02-08 11:04, MONDON Daniel skrev:
>> Hello everybody!
>>
>> I'm new with gtkmm (my version is gtkmm 3.0), but i know i have to
>> use it because others applications are running with.
>>
>> I have to write a splash screen program :
>> - No mouse cursor
>> - Full screen
>> - Stay on Top
>> - With an execution TimeOut
>> - Eventually with IP connexion to be killed by program.
>>
>> In fact, i have to mask a java program and a flash application during
>> launch or change.
>>
>> One other parameter is to run under :
>> - ubuntu 8.04 (2.6.24 kernel - X V 1.4.0.90) (X86)
>> - ubuntu 10.04 (2.6.32 kernel - X V 1.7.6) (X86)
>> - Angstrom (2.6.39 kernel - X V1.11.1) (Arm)
>>
>> A different compiled program for Arm and X86, but i can almost have 3
>> specifics program if necessary.
>>
>>
>> My first test program show the top full screen image, but i don't
>> succed masking the mouse cursor.
>> What i found make me think i'm not doing the right things: (cursor
>> functions)
>>
>> int main(int argc, char *argv[])
>> {
>> Gtk::Main app(argc, argv);
>>
>> Gtk::Window fenetre;
>>
>> Gtk::Image image("/home/toto/GTKMM/fde.jpg");
>>
>> fenetre.add(image);
>> fenetre.fullscreen();
>> fenetre.set_keep_above(true);
>>
>> image.show();
>>
>> Gtk::Main::run(fenetre);
>>
>> return 0;
>> }
>>
>> Thanks
>> Daniel.
>>
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
- References:
- SplashScreen no cursor, timeout, top full screen,
- Re: SplashScreen no cursor, timeout, top full screen,
- RE: SplashScreen no cursor, timeout, top full screen,
- Re: SplashScreen no cursor, timeout, top full screen,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]