Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002724 [JEDI VCL] 00 JVCL Components minor always 2005-03-07 12:37 2005-03-16 03:38
Reporter DVD View Status public  
Assigned To AHUser
Priority normal Resolution fixed  
Status resolved   Product Version 3.00 BETA 2
Summary 0002724: Cannot set image indexes in TJvTabControl
Description I use TJvTabControl. It is really useful in drawing special tab headers. But I discover some little bug. In TJvTabControl.DrawTab method is call to drawing method of TabPainter as ImageIndex parameter it passes TabIndex. But if I need to assign to tabs images not in tabs order, I cannot make it. Standart TTabControl component has a OnGetImageIndex event that allows to assign any ImageIndex to any tab. So I advise you to use this event and write line:
TabPainter.DrawTab(Self, Canvas, Images, GetImageIndex(TabIndex), Tabs[TabIndex].Caption, Rect, TabIndex = Self.TabIndex, Enabled)
instead of
TabPainter.DrawTab(Self, Canvas, Images, TabIndex, Tabs[TabIndex].Caption, Rect, TabIndex = Self.TabIndex, Enabled)

Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
AHUser (developer)
2005-03-16 03:38

Fixed in CVS.

- Issue History
Date Modified Username Field Change
2005-03-07 12:37 DVD New Issue
2005-03-16 03:38 AHUser Status new => resolved
2005-03-16 03:38 AHUser Resolution open => fixed
2005-03-16 03:38 AHUser Assigned To => AHUser
2005-03-16 03:38 AHUser Note Added: 0006714

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker