Page 1 of 1
Bugs?
Posted: 15 Oct 2014, 13:20
by Mex
Hi Timo!
Found two more problems with ToolBarControls
MDI form with ReBar and ToolBar. Click on TB button opens vbModal form. First click on modal form is not registered!
MDI form with ReBar and ToolBar
When I want to use picturebox as custom toolbar or one more rebar/toolbar with different alignment, then application hangs.
PictureBox+ReBar with same alignment, then everything works OK
Regards
Meelis
Re: Bugs?
Posted: 16 Oct 2014, 13:35
by TiKu
Hi,
Can you provide a sample project that I can use to reproduce the problems?
Regards
TiKu
Re: Bugs?
Posted: 16 Oct 2014, 18:26
by Mex
Hi
Project for testing.
Regards
Meelis
Re: Bugs?
Posted: 16 Oct 2014, 21:50
by TiKu
Thank you for the sample.
As for the vbModal form, it is always better to use the ExecuteCommand event instead of the Click event. ExecuteCommand does not suffer from such problems and also will fire if the user presses a hotkey that you registered for a tool bar button.
The alignment problem already seems to be fixed with the changes that I applied two weeks ago. At least I cannot reproduce it with your sample. Currently I'm very short of time, but I'll try to release a fixed version on saturday.
Regards
TiKu
Re: Bugs?
Posted: 18 Oct 2014, 10:48
by TiKu
Version 1.2.2 has been released.
Re: Bugs?
Posted: 18 Oct 2014, 12:54
by Mex
Hi!
Thank you, IDE is not crashing any more!
Noticed two things
1) If on MDI form are PictureBox (aligned top or bottom) and ReBar (aligned left/right), then ReBar is behind PB, is this normal or bug?
2) If i add ReBar to the form and change alignment in code to right, then ReBars width is very big. In previous version ReBar's width was set automatically, now i must set width to match toolbars width.
Regards
Meelis
Re: Bugs?
Posted: 18 Oct 2014, 13:15
by TiKu
1) Alignment is done mostly by COM (i.e. Windows itself) and it doesn't cope well with multiple COM objects having the same alignment. I'm afraid there's nothing I can do about it.
2) Seems like my fix for the crash causes this behavior. I'll try to find a better solution.
Re: Bugs?
Posted: 18 Oct 2014, 13:55
by Mex
TiKu wrote:1) Alignment is done mostly by COM (i.e. Windows itself) and it doesn't cope well with multiple COM objects having the same alignment. I'm afraid there's nothing I can do about it.
OK, but why toolbar in mscomtl does align below PB if PB alignment is top and toolbar alignment right?
Re: Bugs?
Posted: 27 Oct 2014, 21:25
by TiKu
I think I've found a solution. Please try the attached version. Sorry that it did take so long, I've been very busy with my job.
Regards
TiKu
Re: Bugs?
Posted: 28 Oct 2014, 12:57
by Mex
TiKu wrote:I think I've found a solution. Please try the attached version. Sorry that it did take so long, I've been very busy with my job.
Regards
TiKu
Thank you!
Aligning works now as expected!
Regards
Meelis