Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make edit box grow in height?
Message
 
 
To
11/02/2007 15:27:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01194581
Message ID:
01194593
Views:
11
>>I think I will have to increase the height of the edit box once it "hits" the end of the line. Then, I will just set the height to some set value and let the scrollbar "deal" with it.
>
>You might also make it a single line, until the user click on it (or hovers the mouse over it). Then, make it bigger, potentially covering other objects (control the ZOrder).
>
>Since this is all about making the most of screen space, you might also consider just creating a PageFrame, or adding a Page to an existing PageFrame.

I think PageFrame will be a bit overkill. I don't know if you use Outlook but I am trying to simulate how Outlook works when you create an email. The Email To line shows as one line and as user selects more and more names from the contact list, the Email To line expands to up to 4 lines. And the scrollbar becomes enabled. I am trying to do almost exactly the same. Have user select names from a contact list and the names will be dropped in the editbox (programmatically) and the editbox will increase height (to show up to 4 lines) with the scrollbar enabled.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform