Re: PHP GTK and Glade questions

From: Date: Tue, 15 Apr 2008 06:20:24 +0000
Subject: Re: PHP GTK and Glade questions
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-8236@lists.php.net to get a copy of this message
Hi,
1) I need something like confirm window known from JavaScript (user chooses if execute or do not execute an action). Is this kind of windows in PHP-GTK?
http://gtk.php.net/manual/en/gtk.gtkdialog.php
2) In my application there is a window where program settings will be. Is there some kind of window which has no maximize and minimize icons (only close icon) in the upper right corner? I would like to window does not appear in windows status bar. I tried to set "skip_taskbar_hint" and "skip_pager_hint" properties to true, but window still appears in the status bar. Why?
I think creating a GtkDialog and setting it as modal will not make it appear in the status bar, but I'm not sure :)
3) I need to choose two paths in a local drive. First to concrete file and second to a concrete directory. These paths need to be mentioned in input text boxes after user these paths selects. I would like to know what components use to select this file and directory.
http://gtk.php.net/manual/en/gtk.gtkfilechooser.php You can use either a GtkFileChooseButton, GtkFileChooserDialog or directly embed a GtkFileChooserWidget.
4) This code opens new window where user chooses settings. How to close this window? (but main window needs to be still open). $this->glSett = &new GladeXML($this->mProgramPath.'/'.$this-mGladeGui, 'settingWindow'); $this->dlgSett = $this->glSett->get_widget('settingWindow'); $myClassInstance = new MyClass(); $this->glSett->signal_autoconnect_instance($myClassInstance);
Sounds like you're using PHP-GTK 1... you don't need the '&' anymore. The window can be closed by sending the 'destroy' signal to it. But more likely, you just want to hide the window: $this->dlgSett->hide(); -- Anant

« previous php.gtk.general (#8236) next »