Re: Textbox alignment problem
From: Stefan Wuebbe (stefan.wuebbe_at_gmx.de)
Date: 10/31/04
- Next message: Paul Pedersen: "Using Outlook contacts"
- Previous message: Stefan Wuebbe: "Re: Help about to trap the error of Primary key violation on SQL Tabl"
- In reply to: fb: "Re: Textbox alignment problem"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 31 Oct 2004 23:44:47 +0100
"fb" <jhfcc@mail.jhptt.zj.cn> schrieb im Newsbeitrag
news:OeIpvsyvEHA.612@TK2MSFTNGP15.phx.gbl...
> Thank you very much, Stefan. Your example reminds me that I should
> write some codes myself, instead of using the grid from the form control
> toolbar.
> I used that toolbar in creating objects and designing a form. I dragged
> the grid onto my form, set the controlsources of the grid and its objects,
> and always found that the alignment is not what I want.
>
> I use VFP8 SP1.
>
> Chuncan Feng
> China
You're welcome.
>From your description, my guess would be the grid properties you had
set at designtime might have been reset at runtime, i.e. not cotain the
expected values anymore in the debugger or tested from the command
window?
If so, that effect could be caused by "grid reconstruction", which in turn
can be caused by assigning the grid.RecordSource property at runtime.
IOW, any line like
Thisform.GridX.RecordSource = "myAlias" && makes grid collapse
One way to avoid that effect is to assign an empty string first
Thisform.GridX.RecordSource = ""
&& reconstruct the recordsource
Thisform.GridX.RecordSource = "myAlias" && restore previous
hth
-Stefan
- Next message: Paul Pedersen: "Using Outlook contacts"
- Previous message: Stefan Wuebbe: "Re: Help about to trap the error of Primary key violation on SQL Tabl"
- In reply to: fb: "Re: Textbox alignment problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|