Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Declare some methods of ArrayCtrl as protected
Re: Declare some methods of ArrayCtrl as protected [message #46767 is a reply to message #46636] Sun, 31 July 2016 13:48 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Novo wrote on Fri, 17 June 2016 15:06
Hi Mirek,

Could you please change visibility of methods GetCellRect and GetCellRectM to protected? These methods are useful for development of new controls.
IMHO, the only reason to declare something as private is when it can invalidate state of an object without proper use.

TIA


Well, another reason is when it is implementation issue and you are not sure whether you want to fix it in public interface. When something is made public, it is hard(er) to remove.

Anyway, in this case, I made them public.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl Paste issue (fixed)
Next Topic: GridCtrl::InsertColumn breaks proportional column widths
Goto Forum:
  


Current Time: Sat Apr 20 17:44:20 CEST 2024

Total time taken to generate the page: 0.03616 seconds