Mr. Boyd's portrayal of Hopalong—a “good guy” who wore a black hat but was a paragon of virtue — was the longestrunning characterization in Hollywood history. He rode the range on his horse, Topper, for a quarter of a century in movies and on television.