Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: tom knauf
  Where is tom knauf?
 
 Germany
 tom knauf
 To: Dan Baker
  Where is Dan Baker?
 Effort of the Poconos
 Pennsylvania - United States
 Dan Baker
 Tags
Subject: RE: Demo: Vertical Scroll Container for Data
Thread ID: 395577 Message ID: 395936 # Views: 72 # Ratings: 1
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Tuesday, January 21, 2014 4:54:57 PM         
   


> Foxites,
>
> As I post new version of this demo, I will create a new
> message like this one.  Anyway I did post a new version and you
> can download from the first message of the thread. Here's what's new. . .
>
>
* One Control for the Class

> I moved all the "moving parts" of the class into the Listbox.   That way
> you can simply add that control to your form and you're ready to go.
> In the Init of that Listbox, you insert the names of the masking container
> and content container.  Any old container will do.   The only
> requirement: the content container must be a child of the masking container.
>
>
* Auto Font Sizing of the Listbox Items

> To get the right scrolling effect, the height of the content items needs to
> more or less match that of the Listbox.  So I included a short routine that
> uses FontMetric to size the Listbox items dynamically.  This may be important
> if you want to enlarge the height of your content items for easier reading.
>
>
* Resize of the Container

> When you resize the form, the Listbox adjusts itself.
>
>
* Two Lines of Content per Item is Demoed

> In the new demo I show a double rowed content item (below).  It would also be
> easy to add a zebra stripe background to it by inserting a layer of shapes under
> the text.   Note: I apologize for not having a complete image set of
> country flags :- )
>
>
>
>
* * * * * * * *

> Jun raised a great question about the usefulness of this scrolling container.
> For me, the key value is greater control over each item that's being scrolled.
>
> The coloring, highlighting, and other features bring you pretty close to an
> HTML page I think -- easer than HTML in many ways.
>
> Now you can certainly add pictures to a native listbox, but to me, having a "no-limit"
> container surface to paint is pretty neat.  How about clicking a label and turning it
> into a textbox for editing right there, then returning it to a label after
> you finish.
>
> One of the projects I have in mind for this is a custom Windows Explorer for my
> business use.  Tony showed a picture of his FileViewer recently so I figure
> it's a good model to follow.
>
> Dan B.
>



Hello Dan,

sorry to jump in as Jun did.
I see the advantage in making it easier to use.

What is the difference/advantage to a grid containing a container and setting/updating it in the backstyle.access method
The container in our apps. holds textboxes, editbox, icons, pictures, checkboxes according to the needs.

Thanks in advance for clearing it up
tom

ENTIRE THREAD

Demo: Vertical Scroll Container for Data Posted by Dan Baker @ 1/15/2014 11:48:58 PM
RE: Demo: Vertical Scroll Container for Data Posted by Jun Tangunan @ 1/16/2014 11:36:17 PM
RE: Demo: Vertical Scroll Container for Data Posted by Dan Baker @ 1/17/2014 3:18:30 AM
RE: Demo: Vertical Scroll Container for Data Posted by Dan Baker @ 1/17/2014 3:18:25 AM
RE: Demo: Vertical Scroll Container for Data Posted by tom knauf @ 1/21/2014 4:54:57 PM
RE: Demo: Vertical Scroll Container for Data Posted by Dan Baker @ 1/22/2014 4:02:15 AM
RE: Demo: Vertical Scroll Container for Data Posted by tom knauf @ 1/22/2014 10:53:16 AM
RE: Demo: Vertical Scroll Container for Data Posted by Dan Baker @ 1/22/2014 2:18:55 PM
RE: Demo: Vertical Scroll Container for Data Posted by Cetin Basoz @ 1/22/2014 1:20:17 PM
RE: Demo: Vertical Scroll Container for Data Posted by Dan Baker @ 1/22/2014 2:20:01 PM
RE: Demo: Vertical Scroll Container for Data Posted by Aldrin Austria @ 1/24/2014 9:44:37 PM
RE: Demo: Vertical Scroll Container for Data Posted by Dan Baker @ 1/25/2014 2:07:55 AM
RE: Demo: Vertical Scroll Container for Data Posted by Dan Baker @ 1/23/2014 3:09:09 PM