RE: SplashScreen no cursor, timeout, top full screen,
- From: "MONDON Daniel" <Daniel MONDON lpgsystems com>
- To: "Kjell Ahlstedt" <kjell ahlstedt bredband net>
- Cc: gtkmm-list gnome org
- Subject: RE: SplashScreen no cursor, timeout, top full screen,
- Date: Wed, 8 Feb 2012 16:25:39 +0100
Effectively, gdk_window is NULL.
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.
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]