[SOLVED] CheckBox dimensions, NumericUpDown arrows etc

Answered Closed
0
0

Hi guys,

I’m trying to replace a VWG event scheduling UserControl I had created, which had a lot of checkboxes to represent the week days (7) and month dates (31+1) as well as 7 DateTimePickers (showing time only) and 7 NumericUpDowns for the start time and duration in minutes of the scheduled event respectively. A picture of the Weekly view of this UserControl is shown in the first attached.

Now, when I replaced that with Wisej, I found out that the result is much larger in both width and height. This is using the Classic-2 theme, with other themes the result is even larger. This is shown in the second attached. The reasons I have spotted are the following:

  1. There is a gap between the TableLayoutPanel rows, which it looks like cannot be decreased (or at least I haven’t found how to do it). This increases total height.
  2. The CheckBox has a border around it, which does not allow for a smaller TableLayoutPanel RowHeight and ColumnWidth. This affects both total height and total width.
  3. The NumericUpDown has these two large plus and minus buttons, which take more horizontal space than the actual useful space containing its value. If they can be replaced with the UpDown arrows (as in the DateTimePicker next to it) it would be great.
  4. The DateTimePicker shows the calendar, which in this case has no meaning — Frank has already logged this as an enhancement in a previous thread.
  5. The labels in front of the checkboxes are not checkbox Text, but separate labels. When I tried the checkbox labels, I found out that when the checkbox text is on the left of the checkbox icon, there is a large gap between the text and the icon which cannot be decreased. That would make my total width even larger.

Best regards,
Alex

Attachment
  • You must to post comments
Best Answer
0
0

Hi Alex,

this is what we get now with updated Classic 2 theme:

About the margins, the default is 3 (all). Set it to 1 to remove the margin. (0 has a problem and goes to -1).

DateTimePicker now (1.2.63) supports ShowCalendar property to hide the calendar symbol if not needed.

Hope that helps.

Best regards
Frank

  • You must to post comments
0
0

Dear Frank,

Yes, the NumericUpDown arrows look very nice with updated Classic-2 theme. And it will be great if you included it in the built-in themes!

I also noticed that  the TimePicker arrow behaviour is now correct. Since I haven’t downloaded any newer dll, does this mean that it was fixed when I set the Format to Custom? Strange …

Best,
Alex

  • You must to post comments
0
0

Hi Alex,

I have updated the themes again. Can you please give it a try ?

I´d also like to mention that Classic-2 will make it into the build in themes soon.

Best regards
Frank

  • You must to post comments
0
0

Dear Frank,

  1. In DateTimePicker the Time format is not respected, i.e. although I have put “HH:mm” I get 10:03:21 AM.
    >>>>> edited: this happens if the Format is set to “Time”, if set to “Custom” its is OK, so forget point 1 <<<<<<
  2. Both arrows initially decrease the time part they are in, i.e. when in the hour part (10), pressing both up and down arrows goes from 10 to 9, 8, 7, … At some point I managed to get the up arrow going really up, and then it went again down, I’m not sure when this happens. (and I’m not talking about the 11, 12, 1, 2… point 🙂  ).

Best,
Alex

  • You must to post comments
0
0

Hi Frank,

Is there an updated Classic-2 theme you need to upload or should I do something to show the arrows in the NumericUpDown?

Best,
Alex

  • You must to post comments
0
0

Excellent! Thank you.

A

  • You must to post comments
Showing 6 results