473,513 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Closing a Gtk::Window automatically

20 New Member
Hi,
I am using gtkmm 2.4 to create UI in my c++ application.My operating system is linux(ubuntu).I have barcode scanner which is connected to the serial port(/dev/ttyS0).

What I have to do in my application is, I should display a window at first, which contains a Label "Read the Barcode using the scanner" on it. Then I have to read the barcode using the scanner. After reading it, the window should automatically be closed then a new window have to be opened. I don't know how to close the first window automatically after reading the barcode. please help me!.
Feb 16 '07 #1
3 2570
sicarie
4,677 Recognized Expert Moderator Specialist
Hi,
I am using gtkmm 2.4 to create UI in my c++ application.My operating system is linux(ubuntu).I have barcode scanner which is connected to the serial port(/dev/ttyS0).

What I have to do in my application is, I should display a window at first, which contains a Label "Read the Barcode using the scanner" on it. Then I have to read the barcode using the scanner. After reading it, the window should automatically be closed then a new window have to be opened. I don't know how to close the first window automatically after reading the barcode. please help me!.
Are you using terminal windows to display the messages?
Feb 16 '07 #2
rsaikamesh
20 New Member
Are you using terminal windows to display the messages?
yes . Im using terminal windows.
Feb 17 '07 #3
sicarie
4,677 Recognized Expert Moderator Specialist
yes . Im using terminal windows.
Do you need to close the windows, or can you clear it? (In Linux you can run the "clear" command, I believe that combined with the 'system()' command from C will remove anything showing in that window. Unless you are to explicitly close the window.)
Feb 19 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1032
by: suresh j | last post by:
Hi, I am using gtk module. With that after creating the window, I call the "gtk main loop()" function, after which the window is displayed. I want to change the contents of this window while it...
3
2025
by: Daniel | last post by:
Is there a way to make a javascript do something when the user closes the browser? I would like it to go another url or something. I do not want this script to run when a user clicks on a link on...
8
7744
by: Arun Seetharam | last post by:
Dear Folks, The application I am working on uses Frames (TopFrame, SideFrame(Left) and the MainFrame). On the occurance of a certain event, I am closing the window from one of the frames. This...
2
2088
by: Kiran | last post by:
Hi all, Can anybody let me know how to detect when my user clicks the X button on the window. I used unload event it did not work(on IE). My web page is a .asp page which reloads itself when...
6
1375
by: Joe | last post by:
Hi, I have a form with Submit and cancel button. When Cancel button is clicked I want to close the browser window. Here is my sample form. To make things simple I have removed the submit button....
5
4792
by: Sheldon | last post by:
Hi everyone, I have a short program the writes the output data to an acsii file: import sys import os import string import gisdata from Numeric import *
8
11275
by: Sheldon Glickler | last post by:
Here is a problem I encounter often but haven't solved. In a form I have a submit button. When clicked, I want to do some processing so I check with the isset($_POST). (I keep all my code above...
1
2455
by: srinivas | last post by:
Hi I'm having a asp.net page.When i'm clicking on the Logout hyperlink i want to close the window and clear the session. Actually i have taken LinkButton control and written a javascript function...
2
8156
by: holmes86 | last post by:
hi,everyone I have a GTK window,when click "close window" ,I want to show a verify dialog that whether verify really quit or not.so I used a MesssageDialog for verify quit.But when I clicked the...
0
7265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7545
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7111
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5095
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.