Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bound label to grid
Message
 
 
À
27/12/2001 04:14:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00598107
Message ID:
00598366
Vues:
21
Hi!

If you meant you need less than 3 lines for text to display more lines in grid... For what then you need word wrapping?

So I suggest you need more than 3 lines - it is ok. Make RowHeight for grid as large as you want, to display as much text as you need. I meant that you cannot display wordwrapped text inside of the edit box when you have grid row height less than 3 lines of text.

Note also that edit box have a scrollbar.

BTW, you CAN use a label, but this is a bit tricky and require some coding, as well as the grid refreshing will be much slower. Let me know if you really need it or solution with EditBox is not good for you. Remember that you can change EditBox properties so it will look as a label too, but it is even scrollable ;)

>Hi,
>
>Actually, my application will just display the grid in big small
>and do not allow them to scroll at all, just for display use only.
>So, my other column is just mainly a few characters, so not much
>a problem, except for 1 column which is used for description,so
>the lenght of words is longer. Please advise.
>
>>Hi you are not restincting to 3 lines the user can still enter in the editbox and scroll down to see aditional text.
>>
>>>Hi,
>>>
>>>Thank for your advise.
>>>However, due to my application requirement that the grid display to user
>>>must be big in font size, so my whole grid control is large, hence I can't
>>>restrict it to 3 lines of text in a single row in the edit box.
>>>
>>>Please kindly advise me how to solve this issue.
>>>
>>>
>>>>Hi!
>>>>
>>>>Try to use editbox inside of the grid column, and set row height for grid rows to fit 3 lines of the text in a single row in the edit box. In such case edit box will display large text from memo field and wordwrap it.
>>>>
>>>>HTH.
>>>>
>>>>>Hi,
>>>>>
>>>>>My application is using the VFP6 grid to display
>>>>>some information, however, the default text will not
>>>>>wrap the display if the text is too long.
>>>>>
>>>>>Hence, I had replace the grid text control with
>>>>>label control but it don't work. Below is my code
>>>>>for doing so, please kindly point out my mistakes.
>>>>>Thank you
>>>>>
>>>>>
>>>>>Where label1 is my label control and subitem is a temporarily
>>>>>cursor. I had this code in my form activation event.
>>>>>
>>>>> Grid1.column2.CurrentControl = "label1"
>>>>> Grid1.column2.ControlSource = "subitem->desc"
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform