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

I seems do not understand correctly what you want.

I understood that columns in your grid are of fixed width.

But I'm talking about the ROW height, not about the columns.

In the VFP grid row height is not fixed, you can change it (and users can change it too). However, row height is the same for all rows in the grid. All that you can do is to expand the row height of the grid to 3 lines of text to fit edit box lines and make the wrap.

The grid row height is not auto-expanded to display information.

Recently there was the same thread at the MS newsgroups. There was a search for ActiveX control that will be able to show rows in the grid with different height and adjust height of the rows accordingly to the size of the text in the row. From what I understood, no ActiveX was found, so I suggested to use the Excel chart for such functionality. This might be quite complex, so think first if you can spend a lot of time and effort to try to achieve this goal - think if it is really worth to do this. Probably users can live without this feature. For example, when user move mouse over the edit box, a complete text is displayed. Tis is much more easy to implement than just trying to reach something really complex.

Take care.

>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"
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
Répondre
Fil
Voir

Click here to load this message in the networking platform