View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002724 | JEDI VCL | 00 JVCL Components | public | 2005-03-07 12:37 | 2005-03-16 03:38 |
Reporter | DVD | Assigned To | AHUser | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.00 BETA 2 | ||||
Target Version | Fixed in Version | 3.00 | |||
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) | ||||
Tags | No tags attached. | ||||