Wednesday, March 18, 2020

Fats Navarro essays

Fats Navarro essays The story begins in Key West, Florida where Theodore "Fats" Navarro was born of mixed Cuban-Black-Chinese parentage on September 24, 1923. His musical training began early with piano lessons at age six, but he did not start taking music seriously until he took up the trumpet at age thirteen. He became good during his high school years. He also played tenor saxophone and played briefly with Walter Johnson's band in Miami. Apparently Fats did not care much for Key West. He was once quoted as saying "I didn't like Key West at all. I'll never go back." So, after graduating high school, he joined Sol Allbrights's band in Orlando, so Fats traveled with him to Cincinnati, and took further trumpet lessons from an Ohio teacher. He then went on the road with Snookum Russell's Indianapolis orchestra. Russell's group, a band well known in the area in the 1940s, proved to be very good for Fats. It was a place where he developed, experimented, and made mistakes that no one would remember before he ading on to the national stage. Fats stayed with Russell for about two years (1941-42) and became their trumpet soloist. Fats worked next with Andy Kirk and his Kansas City "Clouds of Joy." Here he made a friendship with trumpeter Howard McGhee. Fats role in the Andy Kirk band explains this story retold by Billy Eckstine describing how Fats moved over to his band. Dizzy Gillespie left my band in Washington, D.C. He told me to go over to hear Andy Kirk, because there was a fellow with Kirk named Fats Navarro. 'Take a listen to him,' said Dizzy, 'he's wonderful!' So I went out to the club, and the only thing Fats had to blow was behind a chorus number. But he was wailing behind this number, and I said to myself, 'This is good enough this'll fit.' So I got Fats to come by and talk it over, and about two weeks after that he took Dizzy's chair, and take it from me, he came right in ... Great as Diz is ... Fats played his book and you wou ...

Monday, March 2, 2020

Store More Custom Data Into Tree Node in Delphi

Store More Custom Data Into Tree Node in Delphi The TTreeView Delphi component displays a hierarchical list of items- tree nodes. A node is presented by node text and an optional image. Each node in a tree view is an instance of a TTreeNode class. While you can fill in the tree view with items at design time, using the TreeView Items Editor, in most cases you would fill your tree view at run time- depending what your application is about. The TreeView Items Editor reveals theres only a handful of information you can attach to a node: text and a few image indexes (for the normal state, expanded, selected and alike). In essence, the tree view component is easy to program against. There are a couple of methods to add new nodes to the tree and set their hierarchy. Heres how to add 10 nodes to the tree view (named TreeView1). Note that the Items property provides access to all nodes in the tree. The AddChild adds a new node to the tree view. The first parameter is the parent node (to build up the hierarchy) and the second parameter is the node text. The AddChild returns the newly added TTreeNode. In the above code sample, all 10 nodes are added as root nodes (have no parent node). In any more complex situations you would want your nodes to carry more info- preferably to have some special values (properties) that are specific to the project you are developing. Say you want to display customer-order-item data from your database. Each customer can have more orders and each order is made up from more items. This is a hierarchical relation one can display in a tree view: In your database there would be more info for each order and for each item. The tree view displays the (read only) current state - and you want to see per order (or even per item) details for the selected order. When the user selects the node Order_1_1 you want the order details (total sum, date, etc) to get displayed to the user. You can, at that time fetch the required data from the database, BUT you would need to know the unique identifier (lets say an integer value) of the selected order to grab the correct data. We need a way to store this order identifier along with the node but we cannot use the Text property. The custom value we need to store in each node is an integer (just an example). When such a situation happens you might be tempted to look for the Tag property (many Delphi components have) but the Tag property is not exposed by the TTreeNode class. Add Custom Data To Tree Nodes:Â  The TreeNode.Data Property The Data property of a tree node allows you to associate your custom data with a tree node. Data is a pointer and can point to objects and records. The Displaying XML (RSS Feed) Data in a TreeView shows how to store a record type variable into the Data property of a tree node. Many item-type classes expose the Data property- you can use to store any object along with the item. An example is the TListItem of a TListView component. Heres how to add objects to the Data property. Add Custom Data To Tree Nodes:Â  The TreeView.CreateNodeClass If you do not want to use the Data property of the TTreeNode, but rather you would like to have your own TreeNode extended with a few properties, Delphi also has a solution. Say you want to be able to do Heres how to extend the standard TTreeNode with a few properties of your own: Create your TMyTreeNode by extending the TTreeNode.Add it a string property MyProperty.Handle the OnCreateNodeClass for the tree view to specify your node class should be created.Expose something like TreeView1_SelectedNode property on the form level. This would be of type TMyTreeNode.Handle tree views OnChange to write to the SelectedNode the value of the node that is selected.Use TreeView1_Selected.myProperty to read or write new custom value. Heres the full source code (TButton: Button1 and TTreeView: TreeView1 on a form): This time the Data property of the TTreeNode class is not used. Rather, you extend the TTreeNode class to have your own version of a tree node: TMyTreeNode. Using the OnCreateNodeClass event of the tree view, you create a node of your custom class instead of the standard TTreenode class.