Tuesday, November 5, 2019

Double Click for TListView

Implementing On Item Click / Double Click for TListView Delphis TListView control displays a list of items in columns with column headers and sub-items, or vertically or horizontally, with small or large icons. As do most Delphi controls, the TListView exposes the OnClick and OnDblClick (OnDoubleClick) events. Unfortunately, if you need to know what item was clicked or double clicked you cannot simply handle the OnClick / OnDblClick events to get the clicked item. The OnClick (OnDblClick) event for the TListView is fired whenever the user clicks the control - that is whenever the click occurs somewhere inside the client area of the control. The user can click inside the list view, BUT miss any of the items. Whats more, since list view can change its display depending on the ViewStyle property, the user might have clicked on an item, on an item caption, on an item icon, nowhere, on an item state icon, etc. Note: the ViewStyle property determines how items are displayed in the list view: the items can be displayed as a set of movable icons, or as columns of text. ListView.On Item Click ListView.On Item Double Click To be able to locate the clicked (if there is one) item when the OnClick event for the list view is fired, you need to determine what elements of the list view lie under the point specified by the X and Y parameters - that is the location of the mouse at the moment of click. The TListiews GetHitTestInfoAt function returns information about the specified point in the list view’s client area. To make sure the item was clicked (or double clicked) you need to call the GetHitTestInfoAt and react only if the click event occurred on an actual item. Heres an example implementation of the ListView1s OnDblClick event: //handles ListView1s On Double Click procedure TForm.ListView1DblClick(Sender: TObject) ; var   Ã‚  hts : THitTests;   Ã‚  ht : THitTest;   Ã‚  sht : string;   Ã‚  ListViewCursosPos : TPoint;   Ã‚  selectedItem : TListItem; begin   Ã‚  //position of the mouse cursor related to ListView   Ã‚  ListViewCursosPos : ListView1.ScreenToClient(Mouse.CursorPos) ;   Ã‚  //double click where?   Ã‚  hts : ListView1.GetHitTestInfoAt(ListViewCursosPos.X, ListViewCursosPos.Y) ;   Ã‚  //debug hit test   Ã‚  Caption : ;   Ã‚  for ht in hts do   Ã‚  begin   Ã‚  Ã‚  Ã‚  sht : GetEnumName(TypeInfo(THitTest), Integer(ht)) ;   Ã‚  Ã‚  Ã‚  Caption : Format(%s %s | ,[Caption, sht]) ;   Ã‚  end;   Ã‚  //locate the double-clicked item   Ã‚  if hts [htOnIcon, htOnItem, htOnLabel, htOnStateIcon] then   Ã‚  begin   Ã‚  Ã‚  Ã‚  selectedItem : ListView1.Selected;   Ã‚  Ã‚  Ã‚  //do something with the double clicked item!   Ã‚  Ã‚  Ã‚  Caption : Format(DblClcked : %s,[selectedItem.Caption]) ;   Ã‚  end; end; In the OnDblClick (or OnClick) event handler, read the GetHitTestInfoAt function by providing it with the location of the mouse inside the control. To get the location of the mouse related to the list view, the ScreenToClient function is used to convert a point (mouse X and Y) in screen coordinates to local, or client area, coordinates. The GetHitTestInfoAt return a value of THitTests type. The THitTests is a set of THitTest enumerated values. The THitTest enumeration values, with their description, are: htAbove - above the client area.htBelow - below the client area.htNowhere - inside the control, but not on an item.htOnItem - on an item, its text, or its bitmap.htOnButton - on a button.htOnIcon - on an icon.htOnIndent - on the indented area of an item.htOnLabel - on a label.htOnRight - on the right side of an item.htOnStateIcon - on a state icon or bitmap associated with an item.htToLeft - to the left of the client area.htToRight - to the right of the client area. If the result of the call to GetHitTestInfoAt is a subset (Delphi sets!) of [htOnIcon, htOnItem, htOnLabel, htOnStateIcon] you can be sure the user clicked on the item (or on its icon / state icon). Finally, if the above is true, read the Selected property of the list view, it returns the first selected item (if multiple can be selected) in the list view. Do something with the clicked / double clicked / selected item ... Be sure to download the full source code to explore the code and learn by adopting it.

Sunday, November 3, 2019

New Technology High Schools Research Paper Example | Topics and Well Written Essays - 1500 words

New Technology High Schools - Research Paper Example New Tech High Schools provide the students new techniques to acquire education and collaborate with their peers. The inventive form of education proves to be more effective than the conventional methods of teaching. It is due to this reason that the respective concept is gaining fame. Different advantageous aspects of New Tech High Schools shall be discussed in the paper, along with few responses to the negative perception of this concept. 2. New Tech High Schools The 21st century differs from the previous era with respect to the exposure to different technological inventions and facilities of life. The modern youth is more engrossed with technological equipments than the older people in the society. This early exposure has improved their mental capabilities and has induced a greater sense of logical thinking in them. Pearlman stated that despite of their logical and advanced mental capabilities, they seem disinterested in their academic processes of learning. The conventional modes of learning are not effective enough to cater to the demands of the 21st century and the modern youth. It is due to these issues that new modes of teaching and acquiring education have been devised- New Tech High Schools. These learning processes can be termed as an amalgamation of technology and required skills to meet the challenges of the 21st century colleges and workplaces. The concept initiated in 1996 in California; it was introduced due to the frustration of students, business leaders and parents for wanting a better educational standard. The concept has witnessed nothing but success since then. Much development has been witnessed in the state of Indiana; CELL introduced the innovative concept in Indiana and three schools successfully opened in 2007. The learning processes and programs of New Tech High Schools impressed the members of the Indiana society to such a great extent that they embraced the change with open arms. Indiana has become a national leader in the implement ation of New Tech High Schools in different states of US. According to Pearlman; in the early years of the materialization of the idea, few learning outcomes were identified as the main aims of the concept; content standards, collaboration between the students, logical thinking, oral and written communication skills, preparation for college education and professional life, awareness of ethics and social responsibilities and technological awareness. 2.1 Collaborative Learning Processes New Tech High Schools offer collaborative learning and team work that empowers the students to choose their own direction to acquire education. Center of Excellence in Leadership of Learning explained that the layout of a New Tech High School does not resemble the layout of a traditional school, since there are no desks or chairs placed in lines. On the contrary, students work on their computers and learn in a collaborative manner about a diverse range of topics. Large open spaces provide students the opportunity to work together as a team and coordinate their tasks. Collaborative learning provides the students opportunities to learn skills to survive

Friday, November 1, 2019

Business Decision Making Assignment Example | Topics and Well Written Essays - 2500 words

Business Decision Making - Assignment Example The profitability index (PI); and iv. The payback period Lambert currently has a choice of investing in either of three machines – Alumier which is a replacement for the current machine, Big EZ – which is supplied by an American firm, and Cial which is manufactured in Japan. The objective of performing an evaluation is to determine which of these three investment options will provide the best return to the shareholders of the firm. The Net Present Value (NPV) According to Ryan and Ryan (2002) the NPV is one of the most preferred investment appraisal techniques. This method strongly rivals the IRR as one of the most popular investment appraisal techniques. In fact, Campbell and Brown (2003) indicates that it performs better than IRR in relation to making choices between mutually exclusive projects but needs to be modified in capital rationing decisions and when project choices have unequal lives. Additionally, where projects are not divisible under capital rationing it m ay be best to invest in several small projects which exhaust the budget but have lower profitability ratios and generates a higher NPV when added together rather than a large project with a higher profitability which does not exhaust the budget (Campbell and Brown 2003). ... formula for calculating NPV is as follows: NPV = CF0 + ((CF1/(1 + IRR)1) + ((CF2/(1 + IRR)2) †¦ ((CFn/(1 + IRR)n) The decision rule criteria indicate that projects with a positive NPV should be accepted. In the case of mutually exclusive projects, the project with the highest NPV value should be selected. Information on the NPV for the three investment options are shown in Table 1 in Appendix 1. The information in Table 1 indicates that the Alumier Machine and the Cial Machine will both yield a positive NPV. However, only one machine is required and so the two investments are mutually exclusive. Therefore, the machine with the highest NPV value should be chosen. The Alumier Machine will yield an NPV of ?32,180 compared to ?65,650 for the Cial Machine. The Internal Rate of Return (IRR) The IRR is another very popular and well recognized investment evaluation technique which along with NPV is rated above the other techniques (Titman et al 2011). It is the discount rate that yields an NPV of zero (Titman et al 2011). The IRR decision rule criterion is to invest in the project if the IRR is greater than the discount rate used in calculating the NPV. One of the most common problem that has been raised about the IRR is the possibility of multiple internal rates which conflict with each other or the possibility of none at all (Hazen 2003). The formula for calculating IRR which is similar to that used in calculating NPV and is given as: NPV = CF0 + ((CF1/(1 + IRR)1) + ((CF2/(1 + IRR)2) †¦ ((CFn/(1 + IRR)n) = 0 This formula is used to find the rate of return where NPV = 0. The information relating to IRR for the three investment options are shown in Table 2 in Appendix 1. The information in Table 2 indicates that the IRR for the Alumier and the Cial Machines are higher than

Wednesday, October 30, 2019

Information based decision making Unit 5002 Essay

Information based decision making Unit 5002 - Essay Example Quality Business management is one of the most important business exceptionality of this century. It has added a thoroughly stranded manner to compact by means of imperfections in fabrication, focused attentiveness on clients, as well as painted participative organizational carry outs in business. In this research I will present the main ideas regarding effective decision making through the use of the organizational business information. This research is basically aimed to discuss the overall process and implementation of the business information regarding the effective decision making. The better decision in the organizational environment is very essential and its effectives provide the business better management and handling overall tasks. There have been efforts to reproduce its accomplishment in community services, run associations also information systems. Despite the fact that, business quality management has its main drawing out point in collection of the better and functional information for the better decision making and enhanced project management (Lillrank, 2003). A number of researches pointed out that deprived, defective, not on time or missing information is supposed as a the majority severe business quality crisis. It is emphasized that business information should not be handled the same as a plain by-product of a variety of actions on the other hand by means of the similar significance as products. Quality of information, though, appears to be a subtle theory (Salmela, 1997). Quality of the information is an expression to demonstrate the significance of the most important elements of the organizational information systems. It is frequently described as: â€Å"The potency for utilization of the business information present (Garvin, 1988)" Though this is working for the majority daily functions, experts frequently make use of additional complex models anticipated for business information quality. The greater part of

Monday, October 28, 2019

Dealing with various types of emergency procedures Essay Example for Free

Dealing with various types of emergency procedures Essay The following sets out the principles for dealing with various types of emergency procedures within schools is given as guidance only. Fire other emergencies In the event of fire other emergencies (such as gas leak, flood bomb scare) buildings need to be evacuated quickly but safely. In all schools there should be clear, detailed procedures on evacuation which must be displayed in each area of the school. These procedures should give information on: How to raise the alarm in the event of an emergency. What to do if you hear the fire alarm. The nearest assembly point – this may be a playground, sports field or even a nearby evacuation centre/safety perimeter following instructions from police. Registers should be available so staff can account for the safety whereabouts of all the children. The route you should take – this should include a plan of the route from each room or area of the school, detailing the nearest fire exits. No staff or children should be allowed to stop to collect personal belongings or put on coats. Must not re-enter the building until you have been informed it is safe to do so. Security There should be security in place in schools to minimise the risks to children. As a teaching assistant, you must know what these are follow the procedures at all times. These procedures should include: Security locks on doors. Signing in procedures/visitor badges (you should be able to identify all visitors to the school by badges. If unsure about someone you see on the school grounds, always report your concern to someone higher). Procedures for collection of younger children. Registration. Missing children While security measures should minimise the risk of children going missing, it is vitally important that you follow the school guidelines. As a teaching assistant, you may be asked to accompany children on school visits to supervise a group of children. All staff present on such visits should make regular checks that all children are present. Some schools may require all the children to wear hi-visibility vests or other items which make them easily identifiable during school outings. On discovering children are missing, you must take the following immediate action: Report to the teacher responsible. Ensure the presence safety of the other children by checking the register. Check all surrounding areas from where the child/Children have gone missing, whether it is in the school grounds or during an outing. Inform the child/children’s parents.

Saturday, October 26, 2019

The Wizard of Oz Essay -- Children Stories Wizard Oz Essays

The Wizard of Oz The Wizard of Oz is a classic, a legend, and a children’s story that will never grow old. Quotes from the story such as â€Å"Toto, I have a feeling we’re not in Kansas anymore,† â€Å"Lions, and tigers, and bears! Oh, my,† and â€Å"There’s no place like home,† are ones that will always pop into our heads when someone says â€Å"The Wizard of Oz.† These are the lines that are related right away to the famous story. Dorothy’s long, adventurous trip down the Yellow Brick Road is something that everyone loves to read and watch. It is a story that touches all of us. The 1939 MGM film interpretation of the 1900 published book written by L. Frank Baum, brought this story to life for all of those who were unable to go to the 1902 stage performance. I’ll never forget watching the movie for the first time. Seeing the screen turn from black and white, to beautiful, stunning colors was amazing. Hearing Judy Garland as Dorothy sing â€Å"Somewhere Over the Rainbow† for the first time, left me with a lasting memory. It was as if I felt what she wasfeeling at that moment; that there was a better place somewhere out there- somewhere over the rainbow. Most viewers were able to relate to a character, whether it was the Scarecrow in need of a brain, the Tin Man in need of a heart, or the Cowardly Lion, in need of courage. The obvious message of the story is that there is no place like home. However, The Wizard of Oz has been taken to another level. Individuals such as Henry Littlefield, John Beebe, Joey Green, and others have interpreted the story and have found many different theories to go along with it. Theories include parallels to Populism, Buddhist Taoism, Jungian Psychology, etc. The two main theories that make the most sense are Henry Littlefie... ... L., and Martin, Dick. The Oz Scrapbook. New York: Random, 1977. PageWise. â€Å"What is the Gold Standard?† 20, Oct. 2004, . Populism. â€Å"Farmers and Third Party Politics.† 20, Oct. 2004, . Shippensburg University. â€Å"Carl Jung.† 27 Sept. 2004, . The Wizard of Oz- Turn Me On, Dead Man. â€Å"Littlefield’s Interpretation.† 2004, 27, Sept. 2004, . The Wizard of Oz- Turn Me On, Dead Man. â€Å"The Symbolism of Dorothy.† 2004, 27, Sept. 2004, . The Wizard of Oz- Turn Me On, Dead Man. â€Å"The Symbolism of the Wicked Witch.† 2004, 27, Sept. 2004, .

Thursday, October 24, 2019

Albert Camus: Written Assignment Essay

During the interactive oral, we discussed the main theme of the meaninglessness of human life that is present in The Stranger by Albert Camus. We emphasized mainly on Meursault’s detached and unemotional characteristics, especially when the jury uses this against him at his trial: â€Å"He stated that I had no place in a society whose most fundamental rules I ignored† (102). Meursault is very isolated from his society, and during his trial all the odds are not in his favor because in this case Meursault is viewed as a minority when compared to the Arabs in Algeria. Even the prosecutor claims that Meursault does not feel remorse about killing the Arab, and this connects to the theme of the meaninglessness of human life, where Meursault’s feelings towards this entire case is mutual and religion, life, and death does not matter to him. In reference to the title, we also pinpointed that Meursault acts as the stranger when placed in this society because he is disconne cted and does not belong in this â€Å"normal† society, he is seen an outsider. And, we concluded that the character conflicts are targeted towards man versus society and man versus self. Because it is clear that Meursault does what comforts him the most instead of pleasing others and bothering to care about what everyone thinks about him. A major cultural impact that is presented in this novel is the idea of  religion and the role of the elderly. Based on the first chapter, we learn that Meursault puts his mother in an old people’s home, however, later we realize that the jury found this unacceptable. This gave Meursault a disadvantage against his murder case because in this society, it is morally wrong to put an elder relative in an elderly home. Also during the seminar we mentioned how religion plays an important role in this society, especially when the lawyer, the judge, and the priest tries to persuade Meursault into turning to religion, however, he does not believe that God exists and the judge even calls him â€Å"Monsieur Antichrist† (71). When he refuses to believe in God, it connects to the idea that life is meaningless and God does not replace the absurd significance of human life. Overall I learned that there are many cultural obligations that Meursault conflicts with in The Stranger and with these pressures; he struggles to face his society. An analysis of the symbolic significance of the motif of the sun in The Stranger The powerful effect of light can cast a shadow and blind those who come across its path. Power, especially too much, can influence the behavior of others and it can deceive people especially those who are different and follow a strange path from everyone else. Meursault in The Stranger, for example, is known as an outcast due to his actions and beliefs of life. However, he is a victim of the overpowering impact of light, he loses his way and the shadow of light influences his actions. In his novel, The Stranger, Albert Camus creates an intense atmosphere through his use of the sun as a motif. He accomplishes this by using the sun as the personification of Meursault’s inner emotions, the powerful imagery of the murder scene, and Meursault’s internal conflict. Throughout the novel, Camus uses the motif of the sun to construct the  intensity of the atmosphere during part one of the novel. The sun plays a role in influencing Meursault’s feelings especially when the sun is described as unbearable on the day of Maman’s funeral: â€Å"But today, with the sun bearing down, making the whole landscape shimmer with heat, it was inhuman and oppressive† (15). Camus uses a pathetic fallacy in his description of the sun as â€Å"oppressive† and â€Å"inhuman.† This helps to illustrate the sun’s devilish characteristics as its powerful impact that allows Meursault to forget about Maman’s death. Also Meursault is known to be a very indifferent and unemotional character however, whenever the sun is opposing him, it affects his behavior and allows him to express his emotions about his surroundings; and this contributes to the intensity of atmosphere. Another significant passage is when Meursault longs for shade and to be far away from the oppressive heat: â€Å"I was thinking of the cool spring behind the rock. I wanted to hear the murmur of its water again, to escape the sun and the strain†¦and to find shade at last† (57). This time the sun influences Meursault’s yearning desire to run away from the sun and this foreshadows Meursault’s desperate actions in killing the Arab. As the sun gets stronger, so does Meursault’s discomfort, and this reoccurring relationship symbolizes that the effect of the sun’s unbearable heat enhances Meursault’s desire to escape its penetrating control. In addition, the powerful strength of the sun returns and it contributes in building up to the climax of the novel: â€Å"It was this burning, which made me move forward† (59). The effect of the sun compels Meursault in killing the Arab with no intentions or reasons influencing his sudden action when his anxiety is released as he pulls the trigger. Camus uses the heat and the glare of the sun as a tool to release Meursault’s repressed emotions. Despite Meursault’s indifference towards his wrong doings, his actions and emotions, which the sun has possessed over him, do not explain Meursault’s irrational intent to surprisingly shoot the Arab and this connects to a major theme of the irrationality of the universe, which deprives Meursault from acting reasonability. Furthermore, the author’s intentions in personifying the sun’s possessive effect over Meursault’s emotions and irrational motives are to convey an intense atmosphere and its power to influence Meursault actions. Towards the end of part one of the novel, the author illustrates the build up  to the murder scene through the use of vivid descriptions and kinesthetic and visual imagery of the blazing sun in order to portray an overall atmosphere of the intense portrayals of nature and weather. When Meursault prevents Raymond from starting a bloody war with the Arabs, Raymond gives him the gun and Meursault notices that â€Å"The sun glinted off Raymond’s gun as he handed it to me†(56). This excerpt foreshadows the significance of the sun and gun since both items are associated with murdering the Arab, and these two items initiate the murder. Camus briefly mentions the sun glinting off the gun as a way to illustrate their connection and importance in the death scene, also the author focuses on pinpointing details about the sun and its powerful effects in order to create an intense atmosphere by emphasizing the sun’s visual descriptions. After the fight between Raymond and the Arab, Meursault takes a walk on the beach and he sees the Arab flashing his knife and this blinds Meursault as he illustrates that â€Å"The light shot off the steel and it was like a long flashing blade cutting at my forehead† (59). The author exemplifies the light intensity of the reflection of the blade to be blinding and painful through the use of both kinesthetic and visual imagery. This passage is significant in demonstrating the powerful effect of the sun and its strength in pushing Meursault to defy the limitations against nature. Even moments before Meursault pulls the trigger, tension begins to rise as if nature is pushing Meursault into killing the Arab: â€Å"The sea carried up a thick, fiery breath. It seemed to me as if the sky spilt open from one end to the other to rain down fire† (59). The use of diction such as â€Å"thick, fiery† evokes the intensity of visual imagery and the personification of the sun se rves to enhance the sun’s powerful influence over Meursault’s mind and unconscious actions. Perhaps nature is symbolically pressuring Meursault to murder the Arab and Camus surprisingly illustrates the time and setting of this scene in this way in order for it to come as a shock and therefore to support the concept of nature and its prevalent impact. Overall, the murder scene displays an intense illustration of Meursault’s surroundings through the use of kinesthetic and visual imagery of the sun’s power and control which helps develop a powerful environment. Particularly, the entire novel is based on the major conflict between Meursault and himself; this internal conflict portrays an intensive atmosphere that is represented through the influence of nature and weather,  which is depicted throughout the novel. In the beginning of the novel, the nurse at Mamam’s funeral gives Meursault significant advice when she says, â€Å"â€Å"If you go slowly, you risk getting sunstroke. But if you go too fast, you work up a sweat and then catch a chill inside the church.† She was right. There was no way out† (17). The nurse’s advice symbolizes that Meursault’s self-conflict with the sun is unavoidable just as Meursault’s fate is inescapable; such as when he fails to find ways to escape from his death sentence. The author decides to mention this passage to foreshadow Meursault’s unforeseen fate because Meursault’s murderous action is an unexpected plot twist, and this embodies nature’s powerful control over men, in which in this case it is between the sun and Meursault. Meursault’s battle with overcoming the heat of the sun is mainly demonstrated especially when tension is high such as when the group of Arabs is walking towards Meursault, Raymond, and Masson: â€Å"The sun was shining almost directly overhead onto the sand, and the glare on the water was unbearable† (52). As the scene begins to become more intense, the fight between Meursault and the weather becomes stronger as well, and this is demonstrated when Meursault describes his frustration from the sun’s intolerable heat. This excerpt clearly shows that Meursault’s constant war with his emotions and nature is powerful in connection with the intense atmosphere and since Meursault is u nable to conquer the overpowering heat, it that causes him to kill the Arab and he gives in to the sun’s compelling control. Also before Meursault’s trial, he even states that â€Å"I knew as soon as the weather turned hot that something new was in store for me† (82). Since Meursault did not know how much longer the judge would sentence him in prison, this passage did foreshadow that his trial would not turn out well. This again relates to the idea that when tension is high, the war between the sun’s heat and Meursault’s emotions is also intensified and Camus uses the motif of the sun to indicate that nature is against Meursault and to foreshadow Meursault’s fate. In conclusion, the influence of nature and weather as well as the motif of the sun and the role it plays to fight against Meursault’s internal emotions establishes an intensified setting. Unfortunately, mankind is overpowered by nature and the force of the light pushes Meursault to his breaking point. Meursault is unaware of the sun’s influential effect, however he is impacted by its controlling power. In the end, the sun’s strength forces Meursault to commit an immoral crime and even though his reasons are unintentional, he is rejected by society and is sentenced to a death penalty. The use of the motif of the sun in The Stranger by Albert Camus, develops a powerful atmosphere through the idea that the sun personifies Meursault by influencing his actions and feelings, the intense imagery of the murder scene, and Meursault’s inner conflict against the sun. Works Cited Camus, Albert, and Matthew Ward. The Stranger. New York: Vintage International, 1989. Print.