Page 1 of 1

ThemeSwitcher layout

PostPosted: 14 Aug 2014 13:29
by JMiller
Hello!

I found three inconsistencies in the ThemeSwitcher:

1. If the ThemeSwitcher is not wide enough, the open sympol is put into the next line.
ThemeSwitcher2.png

If the Region ends there and for example a frame is loaded into the Region below, the ThemeSwitcher get's overlapped by that Region (no matter how high the ZIndex).
ThemeSwitcher3.png


2. Depending on the width of the control, the theme titles are either below or beside the DatePicker example.
ThemeSwitcher1.png


3. The scrollbar alway makes the ThemeSwitcher window 13 pixels wider than the control.


Best regards,
JM

Re: ThemeSwitcher layout

PostPosted: 14 Aug 2014 14:28
by Jorge Sousa
Hi

please, you have to post some code, how should we know in what context is this happening?

all issues, seems to be related to the width? what do you consider inconsistences?

Re: ThemeSwitcher layout

PostPosted: 14 Aug 2014 15:34
by JMiller
cgdevtools_support wrote:what do you consider inconsistences?
I didn't want to write "errors", may be "optical faults" is better.

cgdevtools_support wrote:Hi

please, you have to post some code, how should we know in what context is this happening?

all issues, seems to be related to the width?


1. I tried this in a little new test project and it goes like this:
I put two Regions in the MainForm.
Region1->Align = alTop; Region2->Align = alClient.
A ThemeSwitcher is located in the first Region with about 2 pixels to the lower border. (e.g. Region1->Height = 200; ThemeSwitcher->Top = 176; ThemeSwitcher->Height = 22;)
If I click on the ThemeSwitcher it opens, but behind Region2 like shown in ThemeSwitcher3.png (c.f. my first post).
I can send you the test case of course, but it's in C++ again and can be reproduced as descriped.

2. Just set ThemeSwitcher->Width = 150 at design time and open the control at run time.
3. This happens in your demo, too. I just think it looks bad:
ThemeSwitcher4.png



Best regards,
JM

Re: ThemeSwitcher layout

PostPosted: 14 Aug 2014 17:52
by Jorge Sousa
Hi

Ok, thanks for your cooperation.

The appearance was improved.

Available in incoming develop version >= 2.3.0.28

Re: ThemeSwitcher layout

PostPosted: 03 Sep 2014 13:34
by JMiller
Hello!

I updated to 2.3.0.37 (and IW14). The issues 1a (open symbol) and 3 are resolved :)
Issues 1b (TS disapearing behind another Region) and 2 remain :(

Should I send you that test case I mentioned?


Best regards,
JM

Re: ThemeSwitcher layout

PostPosted: 04 Sep 2014 09:32
by Jorge Sousa
Hi

Issue 1b (TS disapearing behind another Region)
, can you detail more please?

and 2 remain :(


2. Just set ThemeSwitcher->Width = 150 at design time and open the control at run time.


What issue is this?

Re: ThemeSwitcher layout

PostPosted: 04 Sep 2014 09:54
by JMiller
cgdevtools_support wrote:
Issue 1b (TS disapearing behind another Region)
, can you detail more please?


If I have two Regions and a ThemeSwitcher (TS) in one of them, the TS cannot overlap the other Region.

ThemeSwitcher5.png



cgdevtools_support wrote:
and 2 remain :(


2. Just set ThemeSwitcher->Width = 150 at design time and open the control at run time.


What issue is this?


The numbering is the same as in the opening post. Number 2 is the one, where the titles are below or beside the example, depending on their title length.

ThemeSwitcher1a.png



Best regards,
JM

Re: ThemeSwitcher layout

PostPosted: 04 Sep 2014 10:19
by Jorge Sousa
Hi

For the first issue you just have to set zindex of top region higher than bottom region.

Re: ThemeSwitcher layout

PostPosted: 04 Sep 2014 10:34
by JMiller
It was higher, but Region 1 was in another Region, which also needed a higher ZIndex.

Thanks for the pointer.

Re: ThemeSwitcher layout

PostPosted: 15 Sep 2014 18:31
by Alexander Bulei
Hi JMiller,

This issue is fixed in V2.3.0.42.
Also, we add new properties:

  • PopupWidth
  • DisplayMode

Best Regards.