Normal Topic Forceredraw() help needed (Read 690 times)
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Forceredraw() help needed
Aug 31st, 2005 at 5:39pm
Print Post Print Post  
I have a bunch of checkboxes on a tab (The tab is on a subform) that uses fileExists( ) on form entry to change the color of the box and add a mark as a visual indicator if the file exists or not. The problem I am having is that the colors do not update on form entry unless I place my curser in the tab itself (In XP) or over each box (In 98Se). I believe the on form entry is firing properly because the if fileExists(V1003YN) YN1003 = 1 part of the statement works perfectly so I think I am using Forceredraw( ) incorrectly.

I have tried placing the Forceredraw ( )  at the end of my entire statement and as shown in my example below at each use of RGBColor and neither approach solves the problem.

Were is the correct place for me to use Forceredraw( )?
Is there something else I need to do?

Thanks            


     iF      FileExists(V1003YN)
     {
           YN1003 = 1
            RGBColor(YN1003,-1,-1,-1,0,255,0)      
           Forceredraw()            
     }
     else
     {
           YN1003 = 0
           //RGBColor(YN1003,-1,-1,-1,255,0,0)      
           RGBColor(YN1003,-1,-1,-1,255,0,0)
           Forceredraw()
     }


// This checks to see if the Deed of trust is in the directory and puts a check mark in field element YNDeedOfTrust


     iF      FileExists(VDeedOfTrustYN)
     {
           YNDeedOfTrust = 1
           RGBColor(YNDeedOfTrust,-1,-1,-1,0,255,0)
           Forceredraw()
     }
     else
     {
           YNDeedOfTrust = 0
           RGBColor(YNDeedOfTrust,-1,-1,-1,255,0,0)
           Forceredraw()

     }
           Forceredraw()
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Forceredraw() help needed
Reply #1 - Sep 2nd, 2005 at 3:46pm
Print Post Print Post  
In my experience, adding Forceredraw() as the last line in Sbasic has solved various image glitches on the screen (particularly when an image changes during SBasis programming). I think it simply 'refreshes' the screen.

However, I am having the same problem you have described. I have a tab page with numerous check boxes. During On Form Entry, the check boxes dont show their actual value until you hover the mouse over the each box.

I'm not sure if this is a graphics issue with my computer, or within Sesame itself, but hopefully we'll see a fix soon.

Let us know if you figure out a work-around.

Steve
  
Back to top
IP Logged
 
Ben
Lantica Support
*****
Offline



Posts: 218
Joined: Apr 7th, 2005
Re: Forceredraw() help needed
Reply #2 - Sep 2nd, 2005 at 6:15pm
Print Post Print Post  
Found and fixed, will be in the next minor release.

-Ben
  
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Forceredraw() help needed
Reply #3 - Sep 2nd, 2005 at 6:53pm
Print Post Print Post  
Quote:
Found and fixed, will be in the next minor release.

-Ben



Thank You very Much! Smiley

Was it a problem with Forceredraw() or something else?
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Forceredraw() help needed
Reply #4 - Sep 2nd, 2005 at 7:17pm
Print Post Print Post  
The problem was in the check box widget itself.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged