View Issue Details

IDProjectCategoryView StatusLast Update
0002724JEDI VCL00 JVCL Componentspublic2005-03-16 03:38
ReporterDVDAssigned ToAHUser 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 BETA 2 
Target VersionFixed in Version3.00 
Summary0002724: Cannot set image indexes in TJvTabControl
DescriptionI 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)

TagsNo tags attached.

Activities

AHUser

2005-03-16 03:38

developer   ~0006714

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