Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

My Text Label on the Screen is Missing!

Status
Not open for further replies.

tryn2learn

Programmer
Jun 26, 2000
24
US
I'm experiencing a problem with a screen. After modifying
a couple of the options on the menu I run the menuname.mpr
and then redisplay the screen. However once the screen is
displayed only the fields on the screen are visible. None
of the text labels are displaying. I'm under a big time
crunch and I cant seem to get the labels to show up. If I
removed the 'do menuname.mpr' line the labels display just
fine.
 
Try issuing a: ACTIVATE WINDOW <windowname>
followed by a: SHOW WINDOW <Windowname>

See if that helps.
-Scott
 
Lspeaks,
Also, in regard to your DO MENUNAME.MPR statments, make sure you only have them in the ON ENTRY clause of your Screen. (So if you are calling them from other locations, place it there, and remove them from where you are updating your MENU.MPR's.) Also, if you haven't done so already, create a &quot;SHOWGETS&quot; routine, which selectively &quot;Show's&quot; each get, and includ the code I place above. An example would be:

PROCEDURE SHOWGETS

ACTIVATE WINDOW MYWINDOW NOSHOW

* FIRST, SET UP DEFAULT FOR YOUR GETS

IF M.JUSTLOOKING
SHOW GETS DISABLE
ELSE
SHOW GETS ENABLE
ENDIF

* NEXT, SELECTIVELY SET GET'S THAT YOU WANT DIFFERENT
* FROM WHAT YOU SET THEM FROM THEIR DEFAULT STATE

IF M.JUSTLOOKING
SHOW GET M.EDITRECORD ENABLE
SHOW GET M.QUITSCREEN ENABLE
ELSE
SHOW GET M.EDITRECORD DISABLE
SHOW GET M.QUITSCREEN DISABLE
ENDIF

* NOW THAT YOU'VE GOT ALL OF YOUR &quot;STATES&quot; SET,
* SHOW THE SCREEN.

SHOW WINDOW MYWINDOW


This code assumes you have some fields, or buttons that you want to control the state beyond the &quot;Default&quot; that you establish based on the state of your screen. You would likely have many, many other fields and buttons, but you don't need to &quot;Name&quot; them specifically in this routine, because you &quot;Set&quot; their state with the first IF statment, either to &quot;Enabled&quot; or &quot;Disabled&quot;, depending upon the &quot;State&quot; of your code.

Simply call this routine from anywhere you are making an &quot;Activate&quot; window call now. Do that by replacing the Active call with:

DO SHOWGETS

(Not to be mistaken with SHOW GETS, which is the actual clause...)
Please let me know if this helps,
-Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top