Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-10-2003, 09:08 PM   #1
LQ Newbie
Registered: Jul 2003
Posts: 11

Rep: Reputation: 0
gtk+ dialog, data check before close

Trying to write a program with gtkmm.

With a gtkmm Gtk:ialog, when I click the OK, it close. I want to check the data first, if something wrong, show a message to prompt the error, and let the user correct it instead of closing the dialog. How to do this?

Last edited by danxl; 10-10-2003 at 10:09 PM.
Old 10-12-2003, 12:29 AM   #2
Registered: Feb 2003
Location: A Meatlocker, well feels like one
Distribution: Gentoo
Posts: 292

Rep: Reputation: 30
You will have to create a button and attach a signal handler to the button to check the fields. Then insert it into the action part of the dialog.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LILO and BIOS Data Check jrdioko Linux - Software 1 05-03-2009 06:28 PM
GTK 2.0 problems in displaying dialog boxes stephenwalter Programming 1 01-20-2006 02:21 AM
GTK+ dialog: want to display buttons vertically in action area paulsm4 Programming 0 06-22-2005 07:46 PM
How to Check to see if a file has Null Data farmerjoe Programming 3 03-15-2005 03:43 PM
how to check the data transfer of multicast protocols abirami Linux - Networking 1 09-05-2004 03:26 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration