Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bound label to grid
Message
De
27/12/2001 04:38:29
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00598107
Message ID:
00598370
Vues:
24
Hi,

Sorry, actually, my application had like 05 columns for displaying only.
No scrolling is allowed. Only one of them is some product description which when display on the editbox, didn't actually wrap to the next line, it just
seem to be clip off, resulting in partial display of the description.
What should I set or code to enable the auto wrapping take place for my
cases. Thank a lot.


>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"
Best Regards
Virusim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform