| Anonymous | Login | Signup for a new account | 2010-09-09 13:02 CEST |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
| 0005232 | [JEDI VCL] 04 Feature Request | feature | always | 2010-05-03 15:11 | 2010-06-07 19:29 | ||
| Reporter | AS | View Status | public | ||||
| Assigned To | AHUser | ||||||
| Priority | normal | Resolution | fixed | ||||
| Status | resolved | Product Version | 3.38 | ||||
| Summary | 0005232: Add new property to TJvHTLabel | ||||||
| Description |
It would be nice to add a property OnlyLeftMouseButtonProduceHyperlinkClick (with some shorter name :) It could be used in MouseUp procedure: ... {new line} if (not FOnlyLeftBtnClick) or (Button = mbLeft) then if IsHyperLink(Canvas, R, Caption, X, Y, LinkName) then ... At this moment I must create new class: TJvAsLabel = class(TJvHTLabel) private FOnlyLeftBtnClick: boolean; procedure SetOnlyLeftBtnClick(const Value: boolean); protected procedure MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override; published property OnlyLeftBtnClick:boolean read FOnlyLeftBtnClick write SetOnlyLeftBtnClick default True; end; implementation { TJvAsLabel } procedure TJvAsLabel.MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin if (not FOnlyLeftBtnClick) or (Button = mbLeft) then inherited MouseUp(Button,Shift,X,Y); end; procedure TJvAsLabel.SetOnlyLeftBtnClick(const Value: boolean); begin FOnlyLeftBtnClick := Value; end; |
||||||
| Additional Information | |||||||
| Tags | JvHTLabel | ||||||
| Attached Files | |||||||
|
|
|||||||
| Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |