offset prompts (AREV Specific)
At 13 JAN 2005 07:10:35PM Stacy Berger wrote:
I have some prompts on a screen, lets call them status and date. When I paint the screen, the data is right below the label. When a user tries to use the screen, the data is below the label, but offset 10 or so spaces. Once the data is entered, it appears in the correct space.
Any thougts?
At 13 JAN 2005 07:48PM Warren Auyong wrote:
Stacy:
I think that's due to the hidden label glitch in Paint / Windows.
It usually happens when you cut and paste or drag a field/prompt with a hidden label.
There should be a utility program somewhere on the system that unhides all the labels in a WINDOWS template, if not Aaron Kaplan posted the code for it on this message board sometime ago and then you can move them around and rehide them.
To avoid this in the future unhide the labels before moving or pasting.
At 13 JAN 2005 11:05PM Stacy Berger wrote:
that sounds familiar. Thanks.
At 14 JAN 2005 02:55AM Warren Auyong wrote:
No problem. If you use the code straight from the message board, check it because I think it does all the templates in the WINDOWS file.
Be sure to make a copy of the WINDOWS record before running the fix too.
At 14 JAN 2005 03:50AM The Sprezzatura Group wrote:
What a memory…
The code was posted here] but it's a little corrupted.
Here's another go…
Subroutine Update_Hidden_Labels/*This program loops through all windows records and removes the codefor the hidden labels*/$Insert SysInclude, LCPOSITIONSOpen 'WINDOWS' to hWindows ElseCall FSMSG( 'WINDOWS' ) ReturnEndOpen 'LISTS' to hLists Else Call FSMSG( 'LISTS' ) ReturnEndPerform "SELECT WINDOWS USING SYSWINDOWS WITH LC_HIDDENLABEL"Done = 0ChangedWins= ''Loop ReadNext WinID Else Done=1 EndUntil Done Read WinRec from hWindows, WinID Then PromptCount= WinRec oWinRec = WinRec If Num( PromptCount ) Then PromptEndVal = PromptCount + 1 For PromptNbr=2 to PromptEndVal If Len( WinRec ) Then WinRec = '' End Next PromptNbr If WinRec = oWinRec Else ChangedWins=WinID Write WinRec on hWindows, WinID Else Call FSMSG( WinID ) End End End End Else Call FSMSG( WinID ) EndRepeatWrite ChangedWins on hLists, 'HIDDEN_LABELS_CHANGED' else Call FSMSG( WinID )EndThe Sprezzatura Group
World Leaders in all things RevSoft