Hi Nancy,
PMFJI, but you forgot to set AlwaysOnTop = .T. :)
Regards,
Armin
>>
Description :>>
>>When a CreateObject implies a new Win-task, i.e. the new form is defined as ShowWindow as TopLevel Form, and this form is defined as AlwaysOnTop, this Form now indeed will be an "always on top" Form opposed to all Win-tasks running.
>
>I don't see this behavior. With ShowWindow = 2 other applications will correctly be displayed on top of the form when I switch to them. Here is the code I used to try and duplicate the problem.
PUBLIC oform1
>
>oform1=NEWOBJECT("form1")
>oform1.Show
>RETURN
>
>
> **************************************************
>*-- Form: form1 (p:\pos\temp.scx)
>*-- ParentClass: form
>*-- BaseClass: form
>*-- Time Stamp: 09/16/02 07:58:09 PM
>*
>DEFINE CLASS form1 AS form
>
>
> Top = 0
> Left = 0
> Height = 574
> Width = 791
> ShowWindow = 2
> DoCreate = .T.
> Caption = "Form1"
> Name = "Form1"
>
>
>ENDDEFINE
>*
>*-- EndDefine: form1
>**************************************************