Operating System - HP-UX
1829107 Members
2439 Online
109986 Solutions
New Discussion

Creating dialog box in HPUX

 
SOLVED
Go to solution
Henry Chua
Super Advisor

Creating dialog box in HPUX

Hi Guys,

May I know what is the simplest way to create a dialog box with an [ok] button for u to click to close it (common in window base program) in HPUX?

Thanks!!
5 REPLIES 5
Senthil Kumar .A_1
Honored Contributor
Solution

Re: Creating dialog box in HPUX

Hi Henry,

The answer entirely depends on, where u want the buttons/widget to be displayed. In HPUX u could come across 3 scenarios..

1) Command prompt: This can be widely termed as TUI(terminal user interface) environment. For you creation you need TCL toolkit that could be downloaded from the following link...

http://hpux.connect.org.uk/hppd/hpux/Tcl/tcltk-8.4.11/

2) GUI: You have 2 options ..

a) Ximian gnome,

You will have to install the GTK+ graphics libraries and gnome from you Application CD that accompanies you core OS CD/DVD for 11i.

for more details.. refer..

http://docs.hp.com/en/GNOME/

b) CDE

Not very intuitive though, I havent tried what you are attempting to in CDE,.. I hope the following link could be some help...

http://www.cs.arizona.edu/computer.help/policy/DIGITAL_unix/ProgrammersGuide/programmersguide_3.html

Regards,
Senthil Kumar .A

Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
blubrick
Occasional Advisor

Re: Creating dialog box in HPUX

Hi Henry,

In addition to the tcl option above, there's a nice little utility simply called dialog. Another TUI solution, it's available from http://hpux.connect.org.uk/hppd/hpux/Shells/dialog-0.9b/
or from http://invisible-island.net/dialog/ if you prefer to compile the source yoursef. dialog provides a simple way of creating a range of dialog-boxes from simple yes/no questions to more complex radio buttons, picklists, and scrollable text viewers.

There used to be a similar but simpler Motif program under HP-UX 10.20 called xdialog, but I'm not sure whether it still exists under 11.0 and later. "man xdialog" will give details if it still exists.

Good luck
Growing old is unavoidable, growing up is optional.
Muthukumar_5
Honored Contributor

Re: Creating dialog box in HPUX

To give simply solution use html + javascript and put into web server or run in web browser. It is easy and simply solution to create dialog box with an ok button.


--
Muthu
Easy to suggest when don't know about the problem!
Oviwan
Honored Contributor

Re: Creating dialog box in HPUX

Hi

check this link, there are some GUI examples:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=984784

Regards
NARENDRA JG
New Member

Re: Creating dialog box in HPUX

Hi

You can also use Tcl/Tk script to create the dialog box.

naren