Gene, it is related to the form border display issue in Vista Areo. Here's
code showing the border issue. 


<code>
ON SHUTDOWN Do CleanUp

LOCAL oFrm
oFrm = CREATEOBJECT('Form')
*-- Changing border style at runtime causes the issue
oFrm.BorderStyle = 2
oFrm.Show()

FOR ii = -5 TO 4 STEP .5
   MOVE WINDOW (oFrm.Name) TO ii,ii
   INKEY(.25)
NEXT 

WAIT WINDOW "Press any key to continue..."

*-- This is one way to correct the issue
ACTIVATE WINDOW (oFrm.Name) IN SCREEN 
FOR ii = -5 TO 4 STEP .5
   MOVE WINDOW (oFrm.Name) TO ii,ii
   INKEY(.25)
NEXT 

READ EVENTS

PROCEDURE CleanUp
   ON SHUTDOWN 
   ON ERROR 
   CLEAR EVENTS 
ENDPROC

DEFINE CLASS myForm as Form
   AllowOutput = .F.
   ADD OBJECT cmdclose as commandbutton ;
      WITH caption="Close", cancel = .t., height = 18, left = 12
   PROCEDURE Destroy
      DO CleanUp
   ENDPROC 
   PROCEDURE cmdClose.click
      THISFORM.Release()
   ENDPROC 
ENDDEFINE 

DEFINE CLASS subform as myform
   BorderStyle = 2
ENDDEFINE
</code>


-----Original Message-----
From: Gene Wirchenko
Sent: Wednesday, August 05, 2009 12:51 AM

At 16:17 2009-08-04, Tracy Pearson <[email protected]> wrote:
>I don't see how physically moving the textbox would suddenly make it work.

      PMFJI.  That means that at least one event is firing then.  Were any
events firing during the time that the caption did not change?

      I tried to replicate this situation and could not, so the above is but
a guess.  Can anyone go any further with it?

      I tried to freeze events by setting .autoyield to .f., .lockscreen to
.t., and hanging in an infinite loop after setting the caption.  The caption
was still updated though.

[snip]

Sincerely,

Gene Wirchenko




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/000301ca15cf$435e0850$ca1a18...@com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to