TreeView Nifty Trick

D

David C. Holley

I've been playing around with a TreeView control that I implemented on a
form and came up with what I thought was a nifty trick that I'd share...

In the original implementation, the TreeView control listed out active
invoices and invoices that were paid in the last 45 days. Needless to
say, the list got rather long (not a bad thing), and I wanted to trim it
down. To do that, when the list is buildt, I added a node - ARCHIVE and
setup the node_click event so that when the ARCHIVE node is clicked, the
TreeView control is cleared (nodes.clear) and then repopulated with a
list of old invoices. I also added a 'return' node at the top of the
list of old invoices that does the same thing - it clears the TreeView
control and repopulates is with current invoices.

David H
 
G

Guest

Clever, This one is a cut, paste, and keep.
(I have to cut and paste because I suffer from a sever case of CRS)
 
D

David C. Holley

And that would be why I always recommend a good Irish pub, or an even
better Taverna - that why when you can't remember, you don't care.
 
G

Guest

Is it permissible to drink Scotch in an Irish pub? I sorta think that would
be inviting one of those famous Irish brawls. (Donnybrooks, I think they call
them)

This is also a good approach if your app doesn't work. Take the users to
the pub and they will think it's working.

What is a Taverna, by the way? Not a label I'm familiar with.
 
D

David C. Holley

Of course you're not familar with a Taverna - you idiot non-Greek. (Wait
isn't that redundent?)

:)
David H
 
B

Brendan Reynolds

We're perfectly happy for you to drink Scotch. It leaves more of the good
stuff for us.

BTW: I don't think anyone in Ireland has called a brawl a 'Donnybrook' for a
very long time, I know the term only from history books.
 
G

Guest

Are you making fun of me because I'm old?

Brendan Reynolds said:
We're perfectly happy for you to drink Scotch. It leaves more of the good
stuff for us.

BTW: I don't think anyone in Ireland has called a brawl a 'Donnybrook' for a
very long time, I know the term only from history books.
 
G

Guest

hhmmmmm what would be an appropriate response? Oh yeah, A woman I know told
me she married her ex-husband because she thought he was a Greek God and
divorced him because she found out he was a G.. D...ed Greek :)
 
B

Brendan Reynolds

No, the term 'Donnybrook' really is something I learned about in school
history lessons, it originates from an annual fair in the village of
Donnybrook in County Dublin that was notorious for its frequent brawls. It
was closed down in 1855.

The term has not been in common usage here in Ireland for quite some time. I
just checked with my daughter and some of her friends, all in their early
twenties, and none of them had ever heard the term at all.

It is certainly possible that the term may have survived longer in some of
the expatriate communities than it did here in Ireland, though.

Oh wait, maybe you meant the Scotch? Yes, that was a joke - you don't really
have to drink Scotch, there's enough of the good stuff to go around! :)
 
G

Guest

LOL,

I don't know where or when I heard the term. It may have been in
Newfoundland which was settled mostly by the Irish. I was also not aware of
the history of the name. They also followed the time honored tradition of
brawling in and around the pubs. The coolest threat I ever heard was a
Newfoundlander about about to get in to it who said to his opponent, "Don't
bother to take off your coat, I'm going to beat it off of you."
 
D

David C. Holley

We're all entitled to make foolish mistakes.
hhmmmmm what would be an appropriate response? Oh yeah, A woman I know told
me she married her ex-husband because she thought he was a Greek God and
divorced him because she found out he was a G.. D...ed Greek :)

:
 
S

Shaun

Ahoy Brendan: My opinion of "the good stuff" is Power's Irish Whiskey. What
is your favorite? By the way, in Washington State where I live, the
state-run liquor store sells Power's on the shelf labeled "Scotch." how
insulting!
 
B

Brendan Reynolds

Well, that was of course just a joke - it's only very rarely that I drink
spirits, and I doubt that I could really tell the difference between a good
Irish and a good Scotch. But on those rare occasions when I do drink
spirits, it's usually Bushmills.
 
D

David C. Holley

I jist lic m' grannies special brew...locs lic a'other b-itch is ready
nawh. (trying to type with a scotish accent)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top