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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open memo in top level form

Status
Not open for further replies.

Holm78

Programmer
Mar 5, 2002
60
SE
Hi all

I have a top level form and I use the file config.fpw to hide the vfp desktop. And in the form there is a grid with memo field. My prob. is that I can not open the memo field, nothing happends, and the form stops working.
plz help

Thanks

//Holm
 
Be sure the table is open when the form is active. Also, if u r displaying the memo field in the grid, U just edit the grid drag and drop the edit tool from the toolbox to the column where the memo field is, and select the currentcontrol property of that column to the Edit box.
Also, make the stretch property of that column to .f.

Please reply if this helps,

gchandrujs [sunshine]
 
I have the editbox and the table is open. It all works if the vfp desktop is visible. But I do not want the desktop.
Any ideas

//holm
 
Holm78

This is not a proper answer but a workaround until you determine the cause of the problem.

In the .Init() event of your toplevel form put :-

WITH THIS
[tab]_SCREEN.Height = .Height
[tab]_SCREEN.Left = .Left
[tab]_SCREEN.Top = .Top
[tab]_SCREEN.Width = .Width
[tab]_SCREEN.Visible = .T.
ENDW HTH

Chris [pc2]
 
Holm,
Either replace the TextBox with an EditBox in your grid, or add code to your textbox to override the default behaviour and open your own form/window to display the memo field.

Rick
 
Holm78

Try this,
In the Init event of the form use

_SCREEN.VISIBLE = .F.
THIS.SHOW ()

You told that when the desktop is visible it's working.I don't know how you hide the Main screen.

If the above command works, and if your top level form is not active, use
THIS.SHOW () in the LOAD event also.

Reply if it helps,

gchandrujs [sunshine]


 
Hi

I used ChrisRChamberlain teori and it worked for me.

Thanks all for the help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top