Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid & Memo and other problems...
Message
From
09/06/1999 09:45:51
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00227549
Message ID:
00227852
Views:
30
>Hi Bruce,
>
>Now I don't like an idea to use "EditBox" after several attempts - it looks ugly. Now I turn to another idea, but I don't know how to realize it. My idea is - if the type of field is Memo, put some code in DblClick method of this column - modi memo... But, I don't know how to put this code, because I create my grid in grid Init method. So, how can I do this?
>
>>Well, not real complex, but some changes would be needed...you could use a View based on the table, set the grid source to the view. In the view, you could add 3 char fields to display the Y/N based on the logical field values...then when a Y/N was changed, you would update the corresponding logical field...not real simple, but that's one idea...
>
> Actually, we decide that the grid is ReadOnly, so I just want to display Yes instead of T I beleive there is a simple solution.

You may put a controlsource of mline(the_memo,1) to the standard textbox - it would become read only, as a calculated field should, and then you may have something like

modify memo the_memo
this.refresh

in theform.thegrid.columnX.textbox1.doubleclick method. If you want to make it read_only, you may

modify memo the_memo NOEDIT

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform