Hi
One of my clients has seen a feature in Quickbooks where a grid contains
an editbox for a memo field. As they type into the memo the editbox
automatically resizes and changes the row height of the grid for that
one row
I've added the editbox to the grid and set it to be the activecontrol
but can't work out if its possible to resize just one row in the grid.
Has anyone seen any articles for accomplishing this in Fox please.
Regards
Graham
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/0AF51B84D903A144B9EE71AEAFE7E81C0EBA62@compsys1.CompySys.local
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Graham Brown wrote on 2010-03-29:
> Hi
>
> One of my clients has seen a feature in Quickbooks where a grid
> contains an editbox for a memo field. As they type into the memo the
> editbox automatically resizes and changes the row height of the grid
> for that one row
>
> I've added the editbox to the grid and set it to be the activecontrol
> but can't work out if its possible to resize just one row in the grid.
>
> Has anyone seen any articles for accomplishing this in Fox please.
>
> Regards
> Graham
>
Graham,
I don't believe there is a way to resize just one row of a VFP grid. When
attempting to resize just one row manually, all rows change size. Also,
there is only one property of the grid for rowheight. The parent of the
editbox is a column, not a row, so it would be a difficult thing to
accomplish, if there is a way.
Perhaps using a slow ActiveX control would give you the ability.
Tracy Pearson
PowerChurch Software
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/000301cacf4e$41bbb5e0$c53321a0$@com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
I agree with Tracy, I think you'll be looking at a third-party control
(see DevExpress for example). But what you gain with that you lose in
native binding.
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/1269874868.32378.1367276653@webmail.messagingengine.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Graham,
No, it isn't possible to resize one row. However, with a little effort you
can create a scrolling window and then populate it with stacked containers
that are all independent and can resize themselves exactly as you require -
i.e when entering data.
I did a couple of custom objects to do exactly this and used them in a few
projects, but to be perfectly honest the users once they got it decided it
wasn't to their liking and instead went with a normal grid with an attached
form that showed the memo field dynamically changing it as required by
binding to the afterowcolchange event on the grid.
If you need any help I'll drag the code out for you if I can locate it.
Dave C
-----Original Message-----
From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf
Of Graham Brown
Sent: 29 March 2010 15:34
To: profox@leafe.com
Subject: Grid Row height question (VFP8)
Hi
One of my clients has seen a feature in Quickbooks where a grid contains
an editbox for a memo field. As they type into the memo the editbox
automatically resizes and changes the row height of the grid for that
one row
I've added the editbox to the grid and set it to be the activecontrol
but can't work out if its possible to resize just one row in the grid.
Has anyone seen any articles for accomplishing this in Fox please.
Regards
Graham
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/002501cacf51$9806e610$c814b230$@co.uk
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
I agree w/Alan & Tracy. I think that to do this thing - you will really
have to bend over backwards just to make it work. Heck, I know that even
in Excel you can expand just a single Row in a spreadsheet. But, you may
want to explain to your client that QB & Excel are quite different
animals than VFP. And, maybe the best you can do is to just resize ALL
Row Heights - to give them want they want - with an expandable Text
Entry box. You may want to consider Widening the Column where that data
field exists - IF and When the user enters a lot of data - then you
won't have to raise the height of the Row quite as much. Hope that helps
a little...
-K-
-----Original Message-----
From: profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com]
On Behalf Of Alan Bourke
Sent: Monday, March 29, 2010 11:01 AM
I agree with Tracy, I think you'll be looking at a third-party control
(see DevExpress for example). But what you gain with that you lose in
native binding.
--
Alan Bourke
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/289EA162F5642645B5CF64D624C66A14071A16E2@us-ny-mail-002.waitex.net
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
Graham,
Oh, I also forgot. If you want to use the Microsoft Flexgrid control this
feature is available as default.
T is a little more difficult to drive that the VFP grid obviously, but with
a little help the results can look really good. Again I have some code
somewhere to do this both Flexgrid & VFP search on Google will give some
examples. If not then shout.
Dave C
-----Original Message-----
From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf
Of Graham Brown
Sent: 29 March 2010 15:34
To: profox@leafe.com
Subject: Grid Row height question (VFP8)
Hi
One of my clients has seen a feature in Quickbooks where a grid contains
an editbox for a memo field. As they type into the memo the editbox
automatically resizes and changes the row height of the grid for that
one row
I've added the editbox to the grid and set it to be the activecontrol
but can't work out if its possible to resize just one row in the grid.
Has anyone seen any articles for accomplishing this in Fox please.
Regards
Graham
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/002601cacf52$f0576e10$d1064a30$@co.uk
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.