`wxTipProvider::PreprocessTip` will never be called, unless user-defined tip provider inherits `wxFileTipProvider`.
|Reported by:||jbbbms||Owned by:|
The document here says that wxTipProvider::PreprocessTip will be called immediately after read, and before being check whether it is a comment, an empty string or a string to translate. However, in reality it will never be called, unless the user-defined tip provider inherits wxFileTipProvider, a child class of the abstract class wxTipProvider.
The document probably needs to be revised so as not to conflict with user's experience, or there shall be a wrapper method that invokes the virtual method wxTipProvider::GetTip first and then relay the new tip message returned from GetTip to wxTipProvider::PreprocessTip. If the overridable PreprocessTip returns an empty string, then the wrapper shall call GetTip again.
Change History (6)
comment:1 follow-up: ↓ 2 Changed 13 months ago by vadz
- Milestone set to 3.1.0
- Priority changed from normal to low
- Status changed from new to confirmed
comment:4 Changed 13 months ago by VZ
- Resolution set to fixed
- Status changed from confirmed to closed