Dialog more than one dialog-field

Dialog more than one dialog-field

Post by Ameli » Thu, 20 Oct 2005 19:08:19



Hello again!
My question today: Is it possiblie with dialog to create more than one
dialog (f.i. inputbox) in one dialog-window??? I've tried a lot, but
did'nt get to it.
Please help! Thx again!
 
 
 

Dialog more than one dialog-field

Post by Enrique Perez-Terro » Fri, 21 Oct 2005 02:48:34



> Hello again!
> My question today: Is it possiblie with dialog to create more than one
> dialog (f.i. inputbox) in one dialog-window??? I've tried a lot, but
> did'nt get to it.
> Please help! Thx again!

I whish you had included in your message some examples of the failed
attempts, because that would have made it clearer what you want to
achieve.  If you do, don't forget to describe what happened and
why that is not what you want.

(It is hard for newbies to ask good questions; the same lack of clear
concepts that prevents you from seeing the solution also makes it
hard for you to see what you need to tell to get good help.  With
time, the better you learn to ask questions, the less you need to
ask.  Such is life, perversely. :) But the upside is: The more you
learn to ask good questions, the more you learn from the answers.)

1. Do you want to create a window with multiple input text fields?

Or

2. do you mean you want to show multiple independent dialog windows
    in the terminal window at the same time?

I don't think the last one is practical in terminal windows, since
unlike with graphical user interfaces, there is no way users can
manipulate the windows, minimize them, raise or lower them, etc.

but,

3. You want perhaps to divide the terminal window in multiple framed
    regions, each with its own input text fields and other user
    interface elements.

I will only  look into 1. especially because I never used "dialog"
until you made me aware of it.

On my system, there is a collection of examples of how to use "dialog"
in the directory

   /usr/share/doc/dialog-1.0.20050306/samples

If you have a different distribution or a different version of dialog,
these files may be a different place, but look for files named
inputmenu3 (use the "locate" program to find it).

Look at the files "wheel" and "inputmenu".

If you try to have multiple input widgets in the same way as the infoboxes
in "wheel", I have found that the program does not display the second one
until you select one of the buttons in the input widgets.

 From the very little I have seen of this tool so far, it seems to be
quite limited.  For example, it looks like the "inputmenu" widgets
invariably have a button labeled "Rename" that you use to edit the
text fields. I have not found a way to change this button label'
to something more appropriate, like "Edit Field".

-Enrique

 
 
 

Dialog more than one dialog-field

Post by William Par » Fri, 21 Oct 2005 03:26:33




> > Hello again!
> > My question today: Is it possiblie with dialog to create more than one
> > dialog (f.i. inputbox) in one dialog-window??? I've tried a lot, but
> > did'nt get to it.
> > Please help! Thx again!
> 1. Do you want to create a window with multiple input text fields?
...
> I will only  look into 1. especially because I never used "dialog"
> until you made me aware of it.

> On my system, there is a collection of examples of how to use "dialog"
> in the directory

>    /usr/share/doc/dialog-1.0.20050306/samples

> If you have a different distribution or a different version of dialog,
> these files may be a different place, but look for files named
> inputmenu3 (use the "locate" program to find it).

> Look at the files "wheel" and "inputmenu".

> If you try to have multiple input widgets in the same way as the infoboxes
> in "wheel", I have found that the program does not display the second one
> until you select one of the buttons in the input widgets.

>  From the very little I have seen of this tool so far, it seems to be
> quite limited.  For example, it looks like the "inputmenu" widgets
> invariably have a button labeled "Rename" that you use to edit the
> text fields. I have not found a way to change this button label'
> to something more appropriate, like "Edit Field".

It is indeed limited.  If OP want GTK+ layout, then
    http://home.eol.ca/~parkw/index.html#gtk
may be of some use.

--

ThinFlash: Linux thin-client on USB key (flash) drive
           http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
          http://freshmeat.net/projects/bashdiff/

 
 
 

Dialog more than one dialog-field

Post by Thomas Dicke » Sat, 22 Oct 2005 06:13:26



>  From the very little I have seen of this tool so far, it seems to be
> quite limited.  For example, it looks like the "inputmenu" widgets
> invariably have a button labeled "Rename" that you use to edit the
> text fields. I have not found a way to change this button label'
> to something more appropriate, like "Edit Field".

man dialog

       --extra-label string
              Override  the  label used for "Extra" buttons.  Note: for input-
              menu widgets, this defaults to "Rename".

--
Thomas E.*ey
http://www.veryComputer.com/
ftp://invisible-island.net

 
 
 

Dialog more than one dialog-field

Post by Ameli » Tue, 25 Oct 2005 17:58:55


Sorry, but i thought my question was significant enough.
What I meant:

Do you want to create a window with multiple input text fields?
--> YES, thats what i would like to have!

Examples: /usr/share/doc/dialog-1.0.20050306/samples
--> I can't find any dialog examples on my pc :( But I'm also a newbie
in working on Linux - so maybe i did'nt look right!? I found only a
dialog readme- and copyright-file!

 
 
 

Dialog more than one dialog-field

Post by Ameli » Tue, 25 Oct 2005 18:00:40


Thx, but I don't want to override the button labels!
I only need an OKAY-Button :o) I even said: "--nocancel"!
 
 
 

Dialog more than one dialog-field

Post by Enrique Perez-Terro » Wed, 26 Oct 2005 01:56:44



> Sorry, but i thought my question was significant enough.
> What I meant:

> Do you want to create a window with multiple input text fields?
> --> YES, thats what i would like to have!

Have your tried the --form option? I tried this:

   #!/bin/bash

   # dialog --form text height width formheight [ label y x item  y  x flen ilen ] ...
   exec 3>&1
   answer=$(
     dialog --form text 30     80    40           name  5 2 item  5 10  40  60 \
                                                  name2 9 2 item2 9 10  40  60 \
   2>&1 1>&3)

   echo "$answer"

(make sure your terminal window is at least 40 lines x 80 columns, or reduce
the numbers above)

Quote:> Examples: /usr/share/doc/dialog-1.0.20050306/samples
> --> I can't find any dialog examples on my pc :( But I'm also a newbie
> in working on Linux - so maybe i did'nt look right!? I found only a
> dialog readme- and copyright-file!

That probably depends on where you got the "dialog" program from.

I run Fedora Core 4, a linux distribution, and I installed the "dialog" package,
and then the example files came bundled and installed into the directory shown.

It seems like you can download the original software source from

   http://invisible-island.net/dialog/dialog.html

so I guess the examples will be included in the tar.gz file.

-Enrique

 
 
 

Dialog more than one dialog-field

Post by Adrian Davi » Wed, 26 Oct 2005 16:55:28


If you want to create GUI shell scripts you may find SATSHELL
(www.satisoft.com/satshell) useful.

Regards,
   =Adrian=

 
 
 

Dialog more than one dialog-field

Post by Ameli » Thu, 27 Oct 2005 19:21:56


Hello Enrique!
After downloading the install-package i have found the examples.
will now look through them!
Thx Peggy.
 
 
 

Dialog more than one dialog-field

Post by Ameli » Thu, 27 Oct 2005 19:25:57


and i already found what i was looking for! thank you so much!!!
 
 
 

1. Problems with "Load file dialog" in xv-3.01

I compiled xv-3.01 pretty much straight out of box (just added
bsd and x11 paths and libraries to makefile) using gcc-2.5.8.
Program runs fine and displays images if I pass it filename
from the command line, but if I try to load a file from its
control panel (by selecting Load button), the dialog box that
pops out and lists all files in current directory simply strips
off first two characters of every name.  The problem is not
only in displaying the names -- if I select a name, xv actually
tries to load a file with the truncated name (and naturally fails).
It appears that the directory read routine loses characters
somewhere and somehow, but why?  Could it be a bug in system
libraries rather that buggy code? (I mean xv-3.01 compiles without
trouble on our Linux boxes.)

--
Davor Cubranic

2. Problems making directories. Weird?

3. fetching data form Dialog

4. Please Help!!!Gnomemeeting has crashed two pc's and I can't boot either

5. character mode menu & dialog framework: summary

6. Mirc DCC send ports through a redhat based firewall??

7. no slots in Qt Designer dialog

8. getting linux off the internet

9. Getting "dialog" to work???

10. windowmaker 0.15.1 dialog boxes

11. alternatives to "dialog"

12. Making Modal Dialogs in GTK (manual event handling)

13. Is dialog vt100 compatible?