LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-10-2003, 08:08 PM   #1
danxl
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 09:09 PM.
 
Old 10-11-2003, 11:29 PM   #2
Palin
Member
 
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.
 
  


Reply


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 05:28 PM
GTK 2.0 problems in displaying dialog boxes stephenwalter Programming 1 01-20-2006 01:21 AM
GTK+ dialog: want to display buttons vertically in action area paulsm4 Programming 0 06-22-2005 06:46 PM
How to Check to see if a file has Null Data farmerjoe Programming 3 03-15-2005 02:43 PM
how to check the data transfer of multicast protocols abirami Linux - Networking 1 09-05-2004 02:26 AM


All times are GMT -5. The time now is 06:43 AM.

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