Rob,
Thanks for the clarification. My users want to preserve their record's relativerow position when refreshing the grid, but I can see an advantage in the consistency of 'middle-of-the-grid' positioning as well.
Malcolm
Rob,
Your code works great for restoring the previously active record, but it does not preserve the record's relative row setting across refreshes.
I'm using doscroll() to position my reselected record to its former relativerow. This works, it just seems very inefficient and has the added...
Tom,
Thank you for your ideas. You are right - DoScroll() is the key. And so is setting focus to the grid so RelativeRow can be queried. There are still some odd cases to work out - sometimes RelativeRow is not updated when a grid gains focus at remains at 0.
Thanks again for contributing to...
Andrew,
Thanks for the idea. One of the ways I'm hoping to speed up my grid is by pre-building thumbnails of photos to minimize my image sizes. I plan on pre-building the thumbnails after the user selects the folder of images to browse.
Cetin on the UT also suggested using a webbrowser control...
CORRECTION: I meant to say "requeried" vs. "refresh" - in other words, I'm looking for a way to preserve a grid's current record's relative position in the grid after the grid's underlying record source has been updated with a new set of records.
You can assume that each record has a primary...
Chris,
One would guess that most digital photos are in 4:3 ratio (or 3:4 if taken in a portrait mode and rotated?)
I'm going to follow your suggestions,
Thank you very much,
Malcolm
Is there a best practice technique for preserving the visual POSITION of the current record in a grid after the grid's record source is refreshed?
For example, if the current record in a grid is displayed in visual row 4 of 10 rows and I refresh the grid's record source, how do I make sure that...
Chris,
First of all, apologies for calling you Richard (saw Chamberlain and thought of the movie star ... LOL!)
Regarding your recommendation to use GIF's for thumbnails: I thought GIF's were limited to 256 colors - won't this affect the quality of my thumbnails?
Intuitively I would have...
Richard,
> An alternative is to set .Sparse = .F.and use the .DynamicCurrentControl property of the Column to call a UDF or object method which in turn assigns ALLT(TABLENAME.fieldname) to the .Picture property of the column.
This is what I'm doing now. Works great near the top of a record...
I've been experimenting with using a grid to display images (digital photos).
The reason I prefer the grid approach to something like Shell.Explorer is that using a grid gives me additional flexibility for filtering and ordering images as well as an opportunity to provide additional data about...
Mike,
I remember reading that some ActiveX controls can be theme enabled using what's called a manifest file.
Thanks for your help on this thread,
Malcolm
Mike,
Just downloaded your SimpleList class and will take a look at how it works.
The only downside I see so far is that the ListView control looks out-of-place on a form with XP themes enabled. Is there a way (manifest file?) to have the ListView control rendered in a theme compatible manner...
I'm looking for some ideas on how to display a list of digital photos within my application. The reason for the list of digital photos is so users can drag and drop one or more images on a detail container as a way of attaching additional documentation (in the form of photos) to a record.
Here...
Neil,
Yes - ClearType was the term I was looking for. I wonder if the wierd bolding that happens with XP themed labels and checkboxes is related to ClearType?
I've put this on my todo list to check out in more detail.
Thanks for pointing me in the right direction!
Malcolm
Maci Flaviu (FlamFox),
Interesting observation about the Arial font. Yes, that is the font I use most often. I'll see if this makes a difference.
Thanks for joining this thread!
Malcolm
Griff,
Thanks for the star - I hope its earned as the jury is still out on my posted solution.
Interesting observation about the TFT display as I do most of my development and testing on a laptop. Perhaps this behavior could be linked to Microsofts' new laptop font technology (can't remember...
Solution: Toggling offscreen bitmaps off and then on again seems to magically correct this behavior.
sys(602,0) && disables off-screen bitmaps
sys(602,1) && re-enables off-screen bitmaps
Just disabling off-screen bitmaps (without the toggle) seems to also work. But, in searching the UT...
VFP 8 and 9: I'm sure you've all seen this behavior: On XP transparent labels will start to get bolder and Bolder and BOLDER as various form elements are updated.
One workaround is to subclass your labels as follows:
* prevent bleeding
Backstyle = 1 && opaque
ColorSource = 1 &&...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.