Re: Screen I/O

From: <keith_at_kmoore.itg.ti.com>
Date: Wed, 15 Jun 1994 00:27:49 GMT
Message-ID: <CrEsJM.qMB_at_ief.itg.ti.com>


In article <9406131800.AA05373_at_gaviota.cic.itcr.ac.cr>, <fzoufaly_at_gaviota.cic.itcr.ac.cr> writes:
> Xref: ief comp.databases.oracle:13998
> Path: ief!m2.dseg.ti.com!cauldron!csc.ti.com!cs.utexas.edu!not-for-mail
> From: fzoufaly_at_gaviota.cic.itcr.ac.cr
> Newsgroups: comp.databases.oracle
> Subject: Screen I/O
> Date: 13 Jun 1994 13:03:54 -0500
> Organization: UTexas Mail-to-News Gateway
> Lines: 22
> Sender: nobody_at_cs.utexas.edu
> Message-ID: <9406131800.AA05373_at_gaviota.cic.itcr.ac.cr>
> NNTP-Posting-Host: news.cs.utexas.edu
>
> Hello,
> I am developing a system using Forms 3.0 and I REALLY need to perform
> some screen Input Output, something like display at 1,10 'Hello' and input
 varx.
> I cannot perform this operations directly using forms.
> I would like to use C and Forms user_exits to realize this operation.
> Right now I am working with OS/2 but I would like to port my software
> to different platforms. (I know that i would probably need to rewrite
> the C code for each different platform).
> I wrote a very simple user exit to print 'Hello' on the screen but I
> obtain a system violation and the OS aborts the entire form.
> The manual specifically warns about SCREEN I/O conflicting with forms
> I/O but I would like to know if anybody has had the same problem (using
> any platform) and if somebody has solved it.
> Thank you very much for your cooperation.
>
>
> ------------
> Federico Zoufaly
> Centro de Investigaciones en Computacion
> Instituto Tecnologico de Costa Rica
> e-mail: fzoufaly_at_cic.itcr.ac.cr
>

I had a similar need and developed a user exit called MESS_BOX that works like the Microsoft Windows MessageBox () API call. It basically takes a text string and places it in a box that pops up centered on the screen. It overlays whatever form is displayed. The message box stays on the screen until the user presses a key.

It uses the Oracle calls uxwadd(), uxwsho() and uxwpus() as described in the SQL*Forms manual.

This works fine on a Sun Sparc10 running Solaris.

I hope this helps.



Keith Moore, PE
Minerva Technology
3102 Maple, Suite 240
Dallas, Tx 75201
(214) 871-7033
(currently consulting for Texas Instruments) Received on Wed Jun 15 1994 - 02:27:49 CEST

Original text of this message