| | |
dialog box in C...
Thread Solved |
Hello All!
I am running AIX4.3 UNIX OS. I am developing using the C-Programming Language. I have inherited code which creates a dialog box.
The requirement now, is to place a list of say numbers in the box and grow it
dynamically.
Problem is, when I attempt to print multiple strings of numbers with "newline" character, it
breaks up the integrity of the box. (..I have tried to voice this to my peers..)
Here is an example:
Yields this result:
+-------------------+
|Promise Form Shipme|
|nts:==> 1111
2222
3333
4444
| |
| |
+-------------------+
As opposed to this "single message" in quotes:
Which yeilds this:
+-------------------+
|Shipments:==> |
| |
| |
+-------------------+
(...the box is drawn correctly on the screen...)
Now, I think a couple of things are going on here.
1. I have never seen a dialog box in using C on a UNIX Platform
2. I think this is some type of NCURSES or other aftermarket implementation.
3. There is no mechanism to do this for multiple lines.
4. And of course, there is NO documentation on this dialog() function.
Can someone please give me some insight to this. As I mentioned previously, I do not think you can have multiple entries with this dialog() function. Your help is greatly appreciated!
I am running AIX4.3 UNIX OS. I am developing using the C-Programming Language. I have inherited code which creates a dialog box.
C Syntax (Toggle Plain Text)
dialog(box_height, box_width, position_x, position_y, "message")
The requirement now, is to place a list of say numbers in the box and grow it
dynamically.
Problem is, when I attempt to print multiple strings of numbers with "newline" character, it
breaks up the integrity of the box. (..I have tried to voice this to my peers..)
Here is an example:
C Syntax (Toggle Plain Text)
dialog(10,20,30,40,"Promise Form Shipments:==> " "1111\n " "2222\n" " "3333\n " "4444\n");
Yields this result:
+-------------------+
|Promise Form Shipme|
|nts:==> 1111
2222
3333
4444
| |
| |
+-------------------+
As opposed to this "single message" in quotes:
C Syntax (Toggle Plain Text)
dialog(10,20,30,40,"Shipments:==> ");
Which yeilds this:
+-------------------+
|Shipments:==> |
| |
| |
+-------------------+
(...the box is drawn correctly on the screen...)
Now, I think a couple of things are going on here.
1. I have never seen a dialog box in using C on a UNIX Platform
2. I think this is some type of NCURSES or other aftermarket implementation.
3. There is no mechanism to do this for multiple lines.
4. And of course, there is NO documentation on this dialog() function.
Can someone please give me some insight to this. As I mentioned previously, I do not think you can have multiple entries with this dialog() function. Your help is greatly appreciated!
"....We will add your Biological and Technological distinctiveness to our Own....Resistance is Futile....You will be Assimilated...."
I don't see why someone couldn't write a function named dialog() for *nix -- it obviously is not the same as a MS-Windows DialogBox. Do you have to source code for that function? If not then your only recourse is to read the documentation, and you say there is none. If you are using some sort of GUI libraries such as QT then you will find the documentation at their web site.
>>I think this is some type of NCURSES or other aftermarket implementation.
Well, what are the libraries that your program has to link with? Those should tell you where the function is.
>>I think this is some type of NCURSES or other aftermarket implementation.
Well, what are the libraries that your program has to link with? Those should tell you where the function is.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- changing color of a pushbutton on a dialog box (C)
- open save dialog box error (PHP)
- hi,i need to discard the password dialog box. (Windows 95 / 98 / Me)
- Dialog box missing when sending attachments. (Windows NT / 2000 / XP)
- dialog box question (C)
- Dialog box wrong size (Windows NT / 2000 / XP)
- Common Open dialog box (C++)
- Dialog Box alongwith Form (Visual Basic 4 / 5 / 6)
Other Threads in the C Forum
- Previous Thread: Opening .exe
- Next Thread: Can you help me fix it so it works as a c program?
| Thread Tools | Search this Thread |
#include adobe api array arrays asterisks binarysearch calculate char cm copyanyfile copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createcopyoffile createprocess() csyntax database directory dynamic feet fflush fgets file fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking highest homework i/o inches include incrementoperators input interest kernel kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix meter microsoft mqqueue mysql number odf open openwebfoundation owf pattern pdf performance pointer posix probleminc process program programming pyramidusingturboccodes radix read recursion recv repetition research scanf scheduling segmentationfault send sequential shape socket socketprograming socketprogramming stack standard string systemcall turboc unix user voidmain() wab win32api windows.h






