View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002184 | JEDI VCL | 00 JVCL Components | public | 2004-09-28 12:29 | 2005-08-28 09:06 |
Reporter | gskoczylas | Assigned To | obones | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Delphi 7 Ent. + Update Pack 1 | OS | Windows XP Professional | OS Version | Service Pack 1 |
Product Version | 3.00 BETA 2 | ||||
Target Version | Fixed in Version | 3.10 | |||
Summary | 0002184: TJvSpeedBar background is not refreshed | ||||
Description | Component TJvSpeedBar does not refresh his background correctly - neither in design mode nor in run-time mode. Background is partially black, removed buttons are still visible. | ||||
Steps To Reproduce | Put bot TJvSpeedBar and TButton components on form. In "OnClick" event call TSpeedBar1.StartCustomize(0); In design mode: invoke context menu for TJvSpeedBar and execute "SpeedBar designer". In run-time mode: click button. | ||||
Additional Information | In version 2.x this component worked correctly. | ||||
Tags | No tags attached. | ||||
|
I confirme too : background it's black, but the problem is visible only at design time with last jcl and jvcl, not at run time, and at design time the moving buttons placement don't remember the relative position of mouse, the mouse is automatically placed at lower corner right ( :-( ) it's normal ??? it's best if is't relative coordinate position i found for moving/(un)placement buttons. i think it's because TJvBtnControl.Paint draw a void image/glyph (black) but i'm not sure modifié le : 09-28-04 14:50 |
|
Actually, this problem has been present for a long time. If you haven't seen it before, you've just been lucky. As long as it doesn't manifest itself at run-time, it will get very low priority |
|
In JVCL version 2.x this problem was only in design-time. In JVCL 3 this problem occurs both in design-time and in run-time. For me it's major problem. |
|
> In JVCL 3 this problem occurs > both in design-time and in run-time. Look at Nanotonnes reply: "the problem is visible only at design time with last jcl and jvcl". Please get the latest jcl and jvcl and try again. Post again if it still persists. I am not able to reproduce this (at run-time) edited on: 10-12-04 04:22 |
|
Please try with the latest zip files and tell us if the problem is fixed. These files are available here: http://jvcl.sf.net/daily/ http://jcl.sf.net/daily/ If we don't hear from you in the next 7 days, we will consider this issue fixed. |
|
In design-time latest version of TSpeedBar is working a bit better (but still not correct). In run-time it's working better, but still not correct. In this mode, when button is moved to new position, button's image is left in previous location. I have installed the newest versions of JCL and JVCL (Nov 20, 2004). |
2004-11-22 15:11
|
|
|
Try changing (JvSpeedbar.pas): procedure TJvSpeedBarButton.VisibleChanged; begin if Visible then begin ControlStyle := ControlStyle - [csNoDesignVisible]; Invalidate; end else ControlStyle := ControlStyle + [csNoDesignVisible]; inherited; end; REcompile the RT package. Does it work better? |
|
Now component is working correctly in design-time. In run-time after button is moved his image is visible in current and all previous positions. I have added to your code additional instructions (marked as "GSk"): procedure TJvCustomSpeedButton.VisibleChanged; begin if Visible then begin ControlStyle := ControlStyle - [csNoDesignVisible]; Invalidate; end else ControlStyle := ControlStyle + [csNoDesignVisible]; if Parent <> nil then // GSk Parent.Invalidate; // GSk inherited; end; With this additional instructions component is working in run-time a bit better but still not perfect. |
|
> In run-time after button is moved his > image is visible in current and all previous positions. I can't duplicate this. What version of Delphi are you using? |
|
Delphi Enterprise Version 7.1 (Build 8.1) -- with Update Pack 1 Windows XP Professional + SP2 |
|
> Windows XP Professional + SP2 This could be the difference. I am using W2k and have tested the new code with D5-D7. Anyone else using XP that can verify that it doesn't work? Anyone else using W2k that can verify that it does work? |
|
Try this: procedure TJvSpeedBar.Paint; ... inherited Paint; Canvas.Brush.Color := Color; {$IFDEF JVCLThemesEnabled} if ThemeServices.ThemesEnabled and ParentBackground then begin Canvas.Brush.Color := Parent.Brush.Color; DrawThemedBackground(Self, Canvas, Rect); end else {$ENDIF JVCLThemesEnabled} Canvas.FillRect(Rect); |
|
In design-time component is still working perfectly. In run-time behavior is following: When I start to move buton I see image of that button both in starting position and in current position. When I drop button on speedbar I see only one button in dropped position. It is not perfect. In design-time I always see only one button. Unfortunately when button is removed (moved out of speedbar) then button's image is still visible in his last position. |
|
Is JvSppedbar.ParentBackground true? If it is, try setting it to false and check if it makes any difference. I am suspecting this is an XP problem. |
|
SpeedBar.ParentBackgroud is True. After changing them to False and recompiling my application component's behaviour is still the same (incorrect). May be it is XP problem but... in design-time component is working perfect. Only in run-time it is incorrect. |
|
Is this still here with the latest code ? |
|
No answers, considering this fixed. Please post a new issue, child of this one, should the problem still be there. |
Date Modified | Username | Field | Change |
---|---|---|---|
2004-09-28 12:29 | gskoczylas | New Issue | |
2004-09-28 14:49 | Nanotonne | Note Added: 0005272 | |
2004-09-28 14:50 | Nanotonne | Note Edited: 0005272 | |
2004-10-05 00:02 |
|
Note Added: 0005301 | |
2004-10-05 00:02 |
|
Status | new => acknowledged |
2004-10-05 00:33 | gskoczylas | Note Added: 0005306 | |
2004-10-05 00:55 |
|
Note Added: 0005307 | |
2004-10-12 04:22 |
|
Note Edited: 0005307 | |
2004-11-19 01:31 | obones | Note Added: 0005673 | |
2004-11-19 01:31 | obones | Status | acknowledged => feedback |
2004-11-22 15:10 | gskoczylas | Note Added: 0005690 | |
2004-11-22 15:11 | gskoczylas | File Added: SpeedBar.JPG | |
2004-11-27 14:33 |
|
Note Added: 0005733 | |
2004-11-27 17:27 | gskoczylas | Note Added: 0005734 | |
2004-11-28 04:03 |
|
Note Added: 0005735 | |
2004-11-28 04:44 | gskoczylas | Note Added: 0005736 | |
2004-11-28 05:03 |
|
Note Added: 0005737 | |
2004-11-28 12:56 |
|
Note Added: 0005747 | |
2004-11-29 12:37 | gskoczylas | Note Added: 0005757 | |
2004-11-29 12:38 | gskoczylas | Note Edited: 0005757 | |
2004-11-29 12:45 |
|
Note Added: 0005758 | |
2004-11-29 17:17 | gskoczylas | Note Added: 0005761 | |
2005-08-10 03:38 | obones | Note Added: 0007772 | |
2005-08-28 09:06 | obones | Status | feedback => resolved |
2005-08-28 09:06 | obones | Resolution | open => fixed |
2005-08-28 09:06 | obones | Assigned To | => obones |
2005-08-28 09:06 | obones | Note Added: 0007866 |