1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665
25666
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
26225
26226
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422
26423
26424
26425
26426
26427
26428
26429
26430
26431
26432
26433
26434
26435
26436
26437
26438
26439
26440
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452
26453
26454
26455
26456
26457
26458
26459
26460
26461
26462
26463
26464
26465
26466
26467
26468
26469
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
26584
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
27249
27250
27251
27252
27253
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293
27294
27295
27296
27297
27298
27299
27300
27301
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
27395
27396
27397
27398
27399
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615
27616
27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937
27938
27939
27940
27941
27942
27943
27944
27945
27946
27947
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957
27958
27959
27960
27961
27962
27963
27964
27965
27966
27967
27968
27969
27970
27971
27972
27973
27974
27975
27976
27977
27978
27979
27980
27981
27982
27983
27984
27985
27986
27987
27988
27989
27990
27991
27992
27993
27994
27995
27996
27997
27998
27999
28000
28001
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024
28025
28026
28027
28028
28029
28030
28031
28032
28033
28034
28035
28036
28037
28038
28039
28040
28041
28042
28043
28044
28045
28046
28047
28048
28049
28050
28051
28052
28053
28054
28055
28056
28057
28058
28059
28060
28061
28062
28063
28064
28065
28066
28067
28068
28069
28070
28071
28072
28073
28074
28075
28076
28077
28078
28079
28080
28081
28082
28083
28084
28085
28086
28087
28088
28089
28090
28091
28092
28093
28094
28095
28096
28097
28098
28099
28100
28101
28102
28103
28104
28105
28106
28107
28108
28109
28110
28111
28112
28113
28114
28115
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127
28128
28129
28130
28131
28132
28133
28134
28135
28136
28137
28138
28139
28140
28141
28142
28143
28144
28145
28146
28147
28148
28149
28150
28151
28152
28153
28154
28155
28156
28157
28158
28159
28160
28161
28162
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210
28211
28212
28213
28214
28215
28216
28217
28218
28219
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229
28230
28231
28232
28233
28234
28235
28236
28237
28238
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253
28254
28255
28256
28257
28258
28259
28260
28261
28262
28263
28264
28265
28266
28267
28268
28269
28270
28271
28272
28273
28274
28275
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332
28333
28334
28335
28336
28337
28338
28339
28340
28341
28342
28343
28344
28345
28346
28347
28348
28349
28350
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363
28364
28365
28366
28367
28368
28369
28370
28371
28372
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387
28388
28389
28390
28391
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401
28402
28403
28404
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458
28459
28460
28461
28462
28463
28464
28465
28466
28467
28468
28469
28470
28471
28472
28473
28474
28475
28476
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491
28492
28493
28494
28495
28496
28497
28498
28499
28500
28501
28502
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530
28531
28532
28533
28534
28535
28536
28537
28538
28539
28540
28541
28542
28543
28544
28545
28546
28547
28548
28549
28550
28551
28552
28553
28554
28555
28556
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575
28576
28577
28578
28579
28580
28581
28582
28583
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593
28594
28595
28596
28597
28598
28599
28600
28601
28602
28603
28604
28605
28606
28607
28608
28609
28610
28611
28612
28613
28614
28615
28616
28617
28618
28619
28620
28621
28622
28623
28624
28625
28626
28627
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637
28638
28639
28640
28641
28642
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654
28655
28656
28657
28658
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696
28697
28698
28699
28700
28701
28702
28703
28704
28705
28706
28707
28708
28709
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763
28764
28765
28766
28767
28768
28769
28770
28771
28772
28773
28774
28775
28776
28777
28778
28779
28780
28781
28782
28783
28784
28785
28786
28787
28788
28789
28790
28791
28792
28793
28794
28795
28796
28797
28798
28799
28800
28801
28802
28803
28804
28805
28806
28807
28808
28809
28810
28811
28812
28813
28814
28815
28816
28817
28818
28819
28820
28821
28822
28823
28824
28825
28826
28827
28828
28829
28830
28831
28832
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872
28873
28874
28875
28876
28877
28878
28879
28880
28881
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891
28892
28893
28894
28895
28896
28897
28898
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910
28911
28912
28913
28914
28915
28916
28917
28918
28919
28920
28921
28922
28923
28924
28925
28926
28927
28928
28929
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961
28962
28963
28964
28965
28966
28967
28968
28969
28970
28971
28972
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055
29056
29057
29058
29059
29060
29061
29062
29063
29064
29065
29066
29067
29068
29069
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082
29083
29084
29085
29086
29087
29088
29089
29090
29091
29092
29093
29094
29095
29096
29097
29098
29099
29100
29101
29102
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112
29113
29114
29115
29116
29117
29118
29119
29120
29121
29122
29123
29124
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138
29139
29140
29141
29142
29143
29144
29145
29146
29147
29148
29149
29150
29151
29152
29153
29154
29155
29156
29157
29158
29159
29160
29161
29162
29163
29164
29165
29166
29167
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189
29190
29191
29192
29193
29194
29195
29196
29197
29198
29199
29200
29201
29202
29203
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233
29234
29235
29236
29237
29238
29239
29240
29241
29242
29243
29244
29245
29246
29247
29248
29249
29250
29251
29252
29253
29254
29255
29256
29257
29258
29259
29260
29261
29262
29263
29264
29265
29266
29267
29268
29269
29270
29271
29272
29273
29274
29275
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285
29286
29287
29288
29289
29290
29291
29292
29293
29294
29295
29296
29297
29298
29299
29300
29301
29302
29303
29304
29305
29306
29307
29308
29309
29310
29311
29312
29313
29314
29315
29316
29317
29318
29319
29320
29321
29322
29323
29324
29325
29326
29327
29328
29329
29330
29331
29332
29333
29334
29335
29336
29337
29338
29339
29340
29341
29342
29343
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388
29389
29390
29391
29392
29393
29394
29395
29396
29397
29398
29399
29400
29401
29402
29403
29404
29405
29406
29407
29408
29409
29410
29411
29412
29413
29414
29415
29416
29417
29418
29419
29420
29421
29422
29423
29424
29425
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442
29443
29444
29445
29446
29447
29448
29449
29450
29451
29452
29453
29454
29455
29456
29457
29458
29459
29460
29461
29462
29463
29464
29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475
29476
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504
29505
29506
29507
29508
29509
29510
29511
29512
29513
29514
29515
29516
29517
29518
29519
29520
29521
29522
29523
29524
29525
29526
29527
29528
29529
29530
29531
29532
29533
29534
29535
29536
29537
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548
29549
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
29591
29592
29593
29594
29595
29596
29597
29598
29599
29600
29601
29602
29603
29604
29605
29606
29607
29608
29609
29610
29611
29612
29613
29614
29615
29616
29617
29618
29619
29620
29621
29622
29623
29624
29625
29626
29627
29628
29629
29630
29631
29632
29633
29634
29635
29636
29637
29638
29639
29640
29641
29642
29643
29644
29645
29646
29647
29648
29649
29650
29651
29652
29653
29654
29655
29656
29657
29658
29659
29660
29661
29662
29663
29664
29665
29666
29667
29668
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681
29682
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692
29693
29694
29695
29696
29697
29698
29699
29700
29701
29702
29703
29704
29705
29706
29707
29708
29709
29710
29711
29712
29713
29714
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864
29865
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877
29878
29879
29880
29881
29882
29883
29884
29885
29886
29887
29888
29889
29890
29891
29892
29893
29894
29895
29896
29897
29898
29899
29900
29901
29902
29903
29904
29905
29906
29907
29908
29909
29910
29911
29912
29913
29914
29915
29916
29917
29918
29919
29920
29921
29922
29923
29924
29925
29926
29927
29928
29929
29930
29931
29932
29933
29934
29935
29936
29937
29938
29939
29940
29941
29942
29943
29944
29945
29946
29947
29948
29949
29950
29951
29952
29953
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963
29964
29965
29966
29967
29968
29969
29970
29971
29972
29973
29974
29975
29976
29977
29978
29979
29980
29981
29982
29983
29984
29985
29986
29987
29988
29989
29990
29991
29992
29993
29994
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011
30012
30013
30014
30015
30016
30017
30018
30019
30020
30021
30022
30023
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
30087
30088
30089
30090
30091
30092
30093
30094
30095
30096
30097
30098
30099
30100
30101
30102
30103
30104
30105
30106
30107
30108
30109
30110
30111
30112
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133
30134
30135
30136
30137
30138
30139
30140
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156
30157
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177
30178
30179
30180
30181
30182
30183
30184
30185
30186
30187
30188
30189
30190
30191
30192
30193
30194
30195
30196
30197
30198
30199
30200
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224
30225
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332
30333
30334
30335
30336
30337
30338
30339
30340
30341
30342
30343
30344
30345
30346
30347
30348
30349
30350
30351
30352
30353
30354
30355
30356
30357
30358
30359
30360
30361
30362
30363
30364
30365
30366
30367
30368
30369
30370
30371
30372
30373
30374
30375
30376
30377
30378
30379
30380
30381
30382
30383
30384
30385
30386
30387
30388
30389
30390
30391
30392
30393
30394
30395
30396
30397
30398
30399
30400
30401
30402
30403
30404
30405
30406
30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
30436
30437
30438
30439
30440
30441
30442
30443
30444
30445
30446
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518
30519
30520
30521
30522
30523
30524
30525
30526
30527
30528
30529
30530
30531
30532
30533
30534
30535
30536
30537
30538
30539
30540
30541
30542
30543
30544
30545
30546
30547
30548
30549
30550
30551
30552
30553
30554
30555
30556
30557
30558
30559
30560
30561
30562
30563
30564
30565
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583
30584
30585
30586
30587
30588
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599
30600
30601
30602
30603
30604
30605
30606
30607
30608
30609
30610
30611
30612
30613
30614
30615
30616
30617
30618
30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671
30672
30673
30674
30675
30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709
30710
30711
30712
30713
30714
30715
30716
30717
30718
30719
30720
30721
30722
30723
30724
30725
30726
30727
30728
30729
30730
30731
30732
30733
30734
30735
30736
30737
30738
30739
30740
30741
30742
30743
30744
30745
30746
30747
30748
30749
30750
30751
30752
30753
30754
30755
30756
30757
30758
30759
30760
30761
30762
30763
30764
30765
30766
30767
30768
30769
30770
30771
30772
30773
30774
30775
30776
30777
30778
30779
30780
30781
30782
30783
30784
30785
30786
30787
30788
30789
30790
30791
30792
30793
30794
30795
30796
30797
30798
30799
30800
30801
30802
30803
30804
30805
30806
30807
30808
30809
30810
30811
30812
30813
30814
30815
30816
30817
30818
30819
30820
30821
30822
30823
30824
30825
30826
30827
30828
30829
30830
30831
30832
30833
30834
30835
30836
30837
30838
30839
30840
30841
30842
30843
30844
30845
30846
30847
30848
30849
30850
30851
30852
30853
30854
30855
30856
30857
30858
30859
30860
30861
30862
30863
30864
30865
30866
30867
30868
30869
30870
30871
30872
30873
30874
30875
30876
30877
30878
30879
30880
30881
30882
30883
30884
30885
30886
30887
30888
30889
30890
30891
30892
30893
30894
30895
30896
30897
30898
30899
30900
30901
30902
30903
30904
30905
30906
30907
30908
30909
30910
30911
30912
30913
30914
30915
30916
30917
30918
30919
30920
30921
30922
30923
30924
30925
30926
30927
30928
30929
30930
30931
30932
30933
30934
30935
30936
30937
30938
30939
30940
30941
30942
30943
30944
30945
30946
30947
30948
30949
30950
30951
30952
30953
30954
30955
30956
30957
30958
30959
30960
30961
30962
30963
30964
30965
30966
30967
30968
30969
30970
30971
30972
30973
30974
30975
30976
30977
30978
30979
30980
30981
30982
30983
30984
30985
30986
30987
30988
30989
30990
30991
30992
30993
30994
30995
30996
30997
30998
30999
31000
31001
31002
31003
31004
31005
31006
31007
31008
31009
31010
31011
31012
31013
31014
31015
31016
31017
31018
31019
31020
31021
31022
31023
31024
31025
31026
31027
31028
31029
31030
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074
31075
31076
31077
31078
31079
31080
31081
31082
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094
31095
31096
31097
31098
31099
31100
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121
31122
31123
31124
31125
31126
31127
31128
31129
31130
31131
31132
31133
31134
31135
31136
31137
31138
31139
31140
31141
31142
31143
31144
31145
31146
31147
31148
31149
31150
31151
31152
31153
31154
31155
31156
31157
31158
31159
31160
31161
31162
31163
31164
31165
31166
31167
31168
31169
31170
31171
31172
31173
31174
31175
31176
31177
31178
31179
31180
31181
31182
31183
31184
31185
31186
31187
31188
31189
31190
31191
31192
31193
31194
31195
31196
31197
31198
31199
31200
31201
31202
31203
31204
31205
31206
31207
31208
31209
31210
31211
31212
31213
31214
31215
31216
31217
31218
31219
31220
31221
31222
31223
31224
31225
31226
31227
31228
31229
31230
31231
31232
31233
31234
31235
31236
31237
31238
31239
31240
31241
31242
31243
31244
31245
31246
31247
31248
31249
31250
31251
31252
31253
31254
31255
31256
31257
31258
31259
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270
31271
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303
31304
31305
31306
31307
31308
31309
31310
31311
31312
31313
31314
31315
31316
31317
31318
31319
31320
31321
31322
31323
31324
31325
31326
31327
31328
31329
31330
31331
31332
31333
31334
31335
31336
31337
31338
31339
31340
31341
31342
31343
31344
31345
31346
31347
31348
31349
31350
31351
31352
31353
31354
31355
31356
31357
31358
31359
31360
31361
31362
31363
31364
31365
31366
31367
31368
31369
31370
31371
31372
31373
31374
31375
31376
31377
31378
31379
31380
31381
31382
31383
31384
31385
31386
31387
31388
31389
31390
31391
31392
31393
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407
31408
31409
31410
31411
31412
31413
31414
31415
31416
31417
31418
31419
31420
31421
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431
31432
31433
31434
31435
31436
31437
31438
31439
31440
31441
31442
31443
31444
31445
31446
31447
31448
31449
31450
31451
31452
31453
31454
31455
31456
31457
31458
31459
31460
31461
31462
31463
31464
31465
31466
31467
31468
31469
31470
31471
31472
31473
31474
31475
31476
31477
31478
31479
31480
31481
31482
31483
31484
31485
31486
31487
31488
31489
31490
31491
31492
31493
31494
31495
31496
31497
31498
31499
31500
31501
31502
31503
31504
31505
31506
31507
31508
31509
31510
31511
31512
31513
31514
31515
31516
31517
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527
31528
31529
31530
31531
31532
31533
31534
31535
31536
31537
31538
31539
31540
31541
31542
31543
31544
31545
31546
31547
31548
31549
31550
31551
31552
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565
31566
31567
31568
31569
31570
31571
31572
31573
31574
31575
31576
31577
31578
31579
31580
31581
31582
31583
31584
31585
31586
31587
31588
31589
31590
31591
31592
31593
31594
31595
31596
31597
31598
31599
31600
31601
31602
31603
31604
31605
31606
31607
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653
31654
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725
31726
31727
31728
31729
31730
31731
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747
31748
31749
31750
31751
31752
31753
31754
31755
31756
31757
31758
31759
31760
31761
31762
31763
31764
31765
31766
31767
31768
31769
31770
31771
31772
31773
31774
31775
31776
31777
31778
31779
31780
31781
31782
31783
31784
31785
31786
31787
31788
31789
31790
31791
31792
31793
31794
31795
31796
31797
31798
31799
31800
31801
31802
31803
31804
31805
31806
31807
31808
31809
31810
31811
31812
31813
31814
31815
31816
31817
31818
31819
31820
31821
31822
31823
31824
31825
31826
31827
31828
31829
31830
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864
31865
31866
31867
31868
31869
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904
31905
31906
31907
31908
31909
31910
31911
31912
31913
31914
31915
31916
31917
31918
31919
31920
31921
31922
31923
31924
31925
31926
31927
31928
31929
31930
31931
31932
31933
31934
31935
31936
31937
31938
31939
31940
31941
31942
31943
31944
31945
31946
31947
31948
31949
31950
31951
31952
31953
31954
31955
31956
31957
31958
31959
31960
31961
31962
31963
31964
31965
31966
31967
31968
31969
31970
31971
31972
31973
31974
31975
31976
31977
31978
31979
31980
31981
31982
31983
31984
31985
31986
31987
31988
31989
31990
31991
31992
31993
31994
31995
31996
31997
31998
31999
32000
32001
32002
32003
32004
32005
32006
32007
32008
32009
32010
32011
32012
32013
32014
32015
32016
32017
32018
32019
32020
32021
32022
32023
32024
32025
32026
32027
32028
32029
32030
32031
32032
32033
32034
32035
32036
32037
32038
32039
32040
32041
32042
32043
32044
32045
32046
32047
32048
32049
32050
32051
32052
32053
32054
32055
32056
32057
32058
32059
32060
32061
32062
32063
32064
32065
32066
32067
32068
32069
32070
32071
32072
32073
32074
32075
32076
32077
32078
32079
32080
32081
32082
32083
32084
32085
32086
32087
32088
32089
32090
32091
32092
32093
32094
32095
32096
32097
32098
32099
32100
32101
32102
32103
32104
32105
32106
32107
32108
32109
32110
32111
32112
32113
32114
32115
32116
32117
32118
32119
32120
32121
32122
32123
32124
32125
32126
32127
32128
32129
32130
32131
32132
32133
32134
32135
32136
32137
32138
32139
32140
32141
32142
32143
32144
32145
32146
32147
32148
32149
32150
32151
32152
32153
32154
32155
32156
32157
32158
32159
32160
32161
32162
32163
32164
32165
32166
32167
32168
32169
32170
32171
32172
32173
32174
32175
32176
32177
32178
32179
32180
32181
32182
32183
32184
32185
32186
32187
32188
32189
32190
32191
32192
32193
32194
32195
32196
32197
32198
32199
32200
32201
32202
32203
32204
32205
32206
32207
32208
32209
32210
32211
32212
32213
32214
32215
32216
32217
32218
32219
32220
32221
32222
32223
32224
32225
32226
32227
32228
32229
32230
32231
32232
32233
32234
32235
32236
32237
32238
32239
32240
32241
32242
32243
32244
32245
32246
32247
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257
32258
32259
32260
32261
32262
32263
32264
32265
32266
32267
32268
32269
32270
32271
32272
32273
32274
32275
32276
32277
32278
32279
32280
32281
32282
32283
32284
32285
32286
32287
32288
32289
32290
32291
32292
32293
32294
32295
32296
32297
32298
32299
32300
32301
32302
32303
32304
32305
32306
32307
32308
32309
32310
32311
32312
32313
32314
32315
32316
32317
32318
32319
32320
32321
32322
32323
32324
32325
32326
32327
32328
32329
32330
32331
32332
32333
32334
32335
32336
32337
32338
32339
32340
32341
32342
32343
32344
32345
32346
32347
32348
32349
32350
32351
32352
32353
32354
32355
32356
32357
32358
32359
32360
32361
32362
32363
32364
32365
32366
32367
32368
32369
32370
32371
32372
32373
32374
32375
32376
32377
32378
32379
32380
32381
32382
32383
32384
32385
32386
32387
32388
32389
32390
32391
32392
32393
32394
32395
32396
32397
32398
32399
32400
32401
32402
32403
32404
32405
32406
32407
32408
32409
32410
32411
32412
32413
32414
32415
32416
32417
32418
32419
32420
32421
32422
32423
32424
32425
32426
32427
32428
32429
32430
32431
32432
32433
32434
32435
32436
32437
32438
32439
32440
32441
32442
32443
32444
32445
32446
32447
32448
32449
32450
32451
32452
32453
32454
32455
32456
32457
32458
32459
32460
32461
32462
32463
32464
32465
32466
32467
32468
32469
32470
32471
32472
32473
32474
32475
32476
32477
32478
32479
32480
32481
32482
32483
32484
32485
32486
32487
32488
32489
32490
32491
32492
32493
32494
32495
32496
32497
32498
32499
32500
32501
32502
32503
32504
32505
32506
32507
32508
32509
32510
32511
32512
32513
32514
32515
32516
32517
32518
32519
32520
32521
32522
32523
32524
32525
32526
32527
32528
32529
32530
32531
32532
32533
32534
32535
32536
32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
32554
32555
32556
32557
32558
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597
32598
32599
32600
32601
32602
32603
32604
32605
32606
32607
32608
32609
32610
32611
32612
32613
32614
32615
32616
32617
32618
32619
32620
32621
32622
32623
32624
32625
32626
32627
32628
32629
32630
32631
32632
32633
32634
32635
32636
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649
32650
32651
32652
32653
32654
32655
32656
32657
32658
32659
32660
32661
32662
32663
32664
32665
32666
32667
32668
32669
32670
32671
32672
32673
32674
32675
32676
32677
32678
32679
32680
32681
32682
32683
32684
32685
32686
32687
32688
32689
32690
32691
32692
32693
32694
32695
32696
32697
32698
32699
32700
32701
32702
32703
32704
32705
32706
32707
32708
32709
32710
32711
32712
32713
32714
32715
32716
32717
32718
32719
32720
32721
32722
32723
32724
32725
32726
32727
32728
32729
32730
32731
32732
32733
32734
32735
32736
32737
32738
32739
32740
32741
32742
32743
32744
32745
32746
32747
32748
32749
32750
32751
32752
32753
32754
32755
32756
32757
32758
32759
32760
32761
32762
32763
32764
32765
32766
32767
32768
32769
32770
32771
32772
32773
32774
32775
32776
32777
32778
32779
32780
32781
32782
32783
32784
32785
32786
32787
32788
32789
32790
32791
32792
32793
32794
32795
32796
32797
32798
32799
32800
32801
32802
32803
32804
32805
32806
32807
32808
32809
32810
32811
32812
32813
32814
32815
32816
32817
32818
32819
32820
32821
32822
32823
32824
32825
32826
32827
32828
32829
32830
32831
32832
32833
32834
32835
32836
32837
32838
32839
32840
32841
32842
32843
32844
32845
32846
32847
32848
32849
32850
32851
32852
32853
32854
32855
32856
32857
32858
32859
32860
32861
32862
32863
32864
32865
32866
32867
32868
32869
32870
32871
32872
32873
32874
32875
32876
32877
32878
32879
32880
32881
32882
32883
32884
32885
32886
32887
32888
32889
32890
32891
32892
32893
32894
32895
32896
32897
32898
32899
32900
32901
32902
32903
32904
32905
32906
32907
32908
32909
32910
32911
32912
32913
32914
32915
32916
32917
32918
32919
32920
32921
32922
32923
32924
32925
32926
32927
32928
32929
32930
32931
32932
32933
32934
32935
32936
32937
32938
32939
32940
32941
32942
32943
32944
32945
32946
32947
32948
32949
32950
32951
32952
32953
32954
32955
32956
32957
32958
32959
32960
32961
32962
32963
32964
32965
32966
32967
32968
32969
32970
32971
32972
32973
32974
32975
32976
32977
32978
32979
32980
32981
32982
32983
32984
32985
32986
32987
32988
32989
32990
32991
32992
32993
32994
32995
32996
32997
32998
32999
33000
33001
33002
33003
33004
33005
33006
33007
33008
33009
33010
33011
33012
33013
33014
33015
33016
33017
33018
33019
33020
33021
33022
33023
33024
33025
33026
33027
33028
33029
33030
33031
33032
33033
33034
33035
33036
33037
33038
33039
33040
33041
33042
33043
33044
33045
33046
33047
33048
33049
33050
33051
33052
33053
33054
33055
33056
33057
33058
33059
33060
33061
33062
33063
33064
33065
33066
33067
33068
33069
33070
33071
33072
33073
33074
33075
33076
33077
33078
33079
33080
33081
33082
33083
33084
33085
33086
33087
33088
33089
33090
33091
33092
33093
33094
33095
33096
33097
33098
33099
33100
33101
33102
33103
33104
33105
33106
33107
33108
33109
33110
33111
33112
33113
33114
33115
33116
33117
33118
33119
33120
33121
33122
33123
33124
33125
33126
33127
33128
33129
33130
33131
33132
33133
33134
33135
33136
33137
33138
33139
33140
33141
33142
33143
33144
33145
33146
33147
33148
33149
33150
33151
33152
33153
33154
33155
33156
33157
33158
33159
33160
33161
33162
33163
33164
33165
33166
33167
33168
33169
33170
33171
33172
33173
33174
33175
33176
33177
33178
33179
33180
33181
33182
33183
33184
33185
33186
33187
33188
33189
33190
33191
33192
33193
33194
33195
33196
33197
33198
33199
33200
33201
33202
33203
33204
33205
33206
33207
33208
33209
33210
33211
33212
33213
33214
33215
33216
33217
33218
33219
33220
33221
33222
33223
33224
33225
33226
33227
33228
33229
33230
33231
33232
33233
33234
33235
33236
33237
33238
33239
33240
33241
33242
33243
33244
33245
33246
33247
33248
33249
33250
33251
33252
33253
33254
33255
33256
33257
33258
33259
33260
33261
33262
33263
33264
33265
33266
33267
33268
33269
33270
33271
33272
33273
33274
33275
33276
33277
33278
33279
33280
33281
33282
33283
33284
33285
33286
33287
33288
33289
33290
33291
33292
33293
33294
33295
33296
33297
33298
33299
33300
33301
33302
33303
33304
33305
33306
33307
33308
33309
33310
33311
33312
33313
33314
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
33326
33327
33328
33329
33330
33331
33332
33333
33334
33335
33336
33337
33338
33339
33340
33341
33342
33343
33344
33345
33346
33347
33348
33349
33350
33351
33352
33353
33354
33355
33356
33357
33358
33359
33360
33361
33362
33363
33364
33365
33366
33367
33368
33369
33370
33371
33372
33373
33374
33375
33376
33377
33378
33379
33380
33381
33382
33383
33384
33385
33386
33387
33388
33389
33390
33391
33392
33393
33394
33395
33396
33397
33398
33399
33400
33401
33402
33403
33404
33405
33406
33407
33408
33409
33410
33411
33412
33413
33414
33415
33416
33417
33418
33419
33420
33421
33422
33423
33424
33425
33426
33427
33428
33429
33430
33431
33432
33433
33434
33435
33436
33437
33438
33439
33440
33441
33442
33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
33454
33455
33456
33457
33458
33459
33460
33461
33462
33463
33464
33465
33466
33467
33468
33469
33470
33471
33472
33473
33474
33475
33476
33477
33478
33479
33480
33481
33482
33483
33484
33485
33486
33487
33488
33489
33490
33491
33492
33493
33494
33495
33496
33497
33498
33499
33500
33501
33502
33503
33504
33505
33506
33507
33508
33509
33510
33511
33512
33513
33514
33515
33516
33517
33518
33519
33520
33521
33522
33523
33524
33525
33526
33527
33528
33529
33530
33531
33532
33533
33534
33535
33536
33537
33538
33539
33540
33541
33542
33543
33544
33545
33546
33547
33548
33549
33550
33551
33552
33553
33554
33555
33556
33557
33558
33559
33560
33561
33562
33563
33564
33565
33566
33567
33568
33569
33570
33571
33572
33573
33574
33575
33576
33577
33578
33579
33580
33581
33582
33583
33584
33585
33586
33587
33588
33589
33590
33591
33592
33593
33594
33595
33596
33597
33598
33599
33600
33601
33602
33603
33604
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616
33617
33618
33619
33620
33621
33622
33623
33624
33625
33626
33627
33628
33629
33630
33631
33632
33633
33634
33635
33636
33637
33638
33639
33640
33641
33642
33643
33644
33645
33646
33647
33648
33649
33650
33651
33652
33653
33654
33655
33656
33657
33658
33659
33660
33661
33662
33663
33664
33665
33666
33667
33668
33669
33670
33671
33672
33673
33674
33675
33676
33677
33678
33679
33680
33681
33682
33683
33684
33685
33686
33687
33688
33689
33690
33691
33692
33693
33694
33695
33696
33697
33698
33699
33700
33701
33702
33703
33704
33705
33706
33707
33708
33709
33710
33711
33712
33713
33714
33715
33716
33717
33718
33719
33720
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
33732
33733
33734
33735
33736
33737
33738
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748
33749
33750
33751
33752
33753
33754
33755
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766
33767
33768
33769
33770
33771
33772
33773
33774
33775
33776
33777
33778
33779
33780
33781
33782
33783
33784
33785
33786
33787
33788
33789
33790
33791
33792
33793
33794
33795
33796
33797
33798
33799
33800
33801
33802
33803
33804
33805
33806
33807
33808
33809
33810
33811
33812
33813
33814
33815
33816
33817
33818
33819
33820
33821
33822
33823
33824
33825
33826
33827
33828
33829
33830
33831
33832
33833
33834
33835
33836
33837
33838
33839
33840
33841
33842
33843
33844
33845
33846
33847
33848
33849
33850
33851
33852
33853
33854
33855
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875
33876
33877
33878
33879
33880
33881
33882
33883
33884
33885
33886
33887
33888
33889
33890
33891
33892
33893
33894
33895
33896
33897
33898
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908
33909
33910
33911
33912
33913
33914
33915
33916
33917
33918
33919
33920
33921
33922
33923
33924
33925
33926
33927
33928
33929
33930
33931
33932
33933
33934
33935
33936
33937
33938
33939
33940
33941
33942
33943
33944
33945
33946
33947
33948
33949
33950
33951
33952
33953
33954
33955
33956
33957
33958
33959
33960
33961
33962
33963
33964
33965
33966
33967
33968
33969
33970
33971
33972
33973
33974
33975
33976
33977
33978
33979
33980
33981
33982
33983
33984
33985
33986
33987
33988
33989
33990
33991
33992
33993
33994
33995
33996
33997
33998
33999
34000
34001
34002
34003
34004
34005
34006
34007
34008
34009
34010
34011
34012
34013
34014
34015
34016
34017
34018
34019
34020
34021
34022
34023
34024
34025
34026
34027
34028
34029
34030
34031
34032
34033
34034
34035
34036
34037
34038
34039
34040
34041
34042
34043
34044
34045
34046
34047
34048
34049
34050
34051
34052
34053
34054
34055
34056
34057
34058
34059
34060
34061
34062
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
34094
34095
34096
34097
34098
34099
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146
34147
34148
34149
34150
34151
34152
34153
34154
34155
34156
34157
34158
34159
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185
34186
34187
34188
34189
34190
34191
34192
34193
34194
34195
34196
34197
34198
34199
34200
34201
34202
34203
34204
34205
34206
34207
34208
34209
34210
34211
34212
34213
34214
34215
34216
34217
34218
34219
34220
34221
34222
34223
34224
34225
34226
34227
34228
34229
34230
34231
34232
34233
34234
34235
34236
34237
34238
34239
34240
34241
34242
34243
34244
34245
34246
34247
34248
34249
34250
34251
34252
34253
34254
34255
34256
34257
34258
34259
34260
34261
34262
34263
34264
34265
34266
34267
34268
34269
34270
34271
34272
34273
34274
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284
34285
34286
34287
34288
34289
34290
34291
34292
34293
34294
34295
34296
34297
34298
34299
34300
34301
34302
34303
34304
34305
34306
34307
34308
34309
34310
34311
34312
34313
34314
34315
34316
34317
34318
34319
34320
34321
34322
34323
34324
34325
34326
34327
34328
34329
34330
34331
34332
34333
34334
34335
34336
34337
34338
34339
34340
34341
34342
34343
34344
34345
34346
34347
34348
34349
34350
34351
34352
34353
34354
34355
34356
34357
34358
34359
34360
34361
34362
34363
34364
34365
34366
34367
34368
34369
34370
34371
34372
34373
34374
34375
34376
34377
34378
34379
34380
34381
34382
34383
34384
34385
34386
34387
34388
34389
34390
34391
34392
34393
34394
34395
34396
34397
34398
34399
34400
34401
34402
34403
34404
34405
34406
34407
34408
34409
34410
34411
34412
34413
34414
34415
34416
34417
34418
34419
34420
34421
34422
34423
34424
34425
34426
34427
34428
34429
34430
34431
34432
34433
34434
34435
34436
34437
34438
34439
34440
34441
34442
34443
34444
34445
34446
34447
34448
34449
34450
34451
34452
34453
34454
34455
34456
34457
34458
34459
34460
34461
34462
34463
34464
34465
34466
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537
34538
34539
34540
34541
34542
34543
34544
34545
34546
34547
34548
34549
34550
34551
34552
34553
34554
34555
34556
34557
34558
34559
34560
34561
34562
34563
34564
34565
34566
34567
34568
34569
34570
34571
34572
34573
34574
34575
34576
34577
34578
34579
34580
34581
34582
34583
34584
34585
34586
34587
34588
34589
34590
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645
34646
34647
34648
34649
34650
34651
34652
34653
34654
34655
34656
34657
34658
34659
34660
34661
34662
34663
34664
34665
34666
34667
34668
34669
34670
34671
34672
34673
34674
34675
34676
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
34800
34801
34802
34803
34804
34805
34806
34807
34808
34809
34810
34811
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824
34825
34826
34827
34828
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
34878
34879
34880
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
34923
34924
34925
34926
34927
34928
34929
34930
34931
34932
34933
34934
34935
34936
34937
34938
34939
34940
34941
34942
34943
34944
34945
34946
34947
34948
34949
34950
34951
34952
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987
34988
34989
34990
34991
34992
34993
34994
34995
34996
34997
34998
34999
35000
35001
35002
35003
35004
35005
35006
35007
35008
35009
35010
35011
35012
35013
35014
35015
35016
35017
35018
35019
35020
35021
35022
35023
35024
35025
35026
35027
35028
35029
35030
35031
35032
35033
35034
35035
35036
35037
35038
35039
35040
35041
35042
35043
35044
35045
35046
35047
35048
35049
35050
35051
35052
35053
35054
35055
35056
35057
35058
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
35074
35075
35076
35077
35078
35079
35080
35081
35082
35083
35084
35085
35086
35087
35088
35089
35090
35091
35092
35093
35094
35095
35096
35097
35098
35099
35100
35101
35102
35103
35104
35105
35106
35107
35108
35109
35110
35111
35112
35113
35114
35115
35116
35117
35118
35119
35120
35121
35122
35123
35124
35125
35126
35127
35128
35129
35130
35131
35132
35133
35134
35135
35136
35137
35138
35139
35140
35141
35142
35143
35144
35145
35146
35147
35148
35149
35150
35151
35152
35153
35154
35155
35156
35157
35158
35159
35160
35161
35162
35163
35164
35165
35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182
35183
35184
35185
35186
35187
35188
35189
35190
35191
35192
35193
35194
35195
35196
35197
35198
35199
35200
35201
35202
35203
35204
35205
35206
35207
35208
35209
35210
35211
35212
35213
35214
35215
35216
35217
35218
35219
35220
35221
35222
35223
35224
35225
35226
35227
35228
35229
35230
35231
35232
35233
35234
35235
35236
35237
35238
35239
35240
35241
35242
35243
35244
35245
35246
35247
35248
35249
35250
35251
35252
35253
35254
35255
35256
35257
35258
35259
35260
35261
35262
35263
35264
35265
35266
35267
35268
35269
35270
35271
35272
35273
35274
35275
35276
35277
35278
35279
35280
35281
35282
35283
35284
35285
35286
35287
35288
35289
35290
35291
35292
35293
35294
35295
35296
35297
35298
35299
35300
35301
35302
35303
35304
35305
35306
35307
35308
35309
35310
35311
35312
35313
35314
35315
35316
35317
35318
35319
35320
35321
35322
35323
35324
35325
35326
35327
35328
35329
35330
35331
35332
35333
35334
35335
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367
35368
35369
35370
35371
35372
35373
35374
35375
35376
35377
35378
35379
35380
35381
35382
35383
35384
35385
35386
35387
35388
35389
35390
35391
35392
35393
35394
35395
35396
35397
35398
35399
35400
35401
35402
35403
35404
35405
35406
35407
35408
35409
35410
35411
35412
35413
35414
35415
35416
35417
35418
35419
35420
35421
35422
35423
35424
35425
35426
35427
35428
35429
35430
35431
35432
35433
35434
35435
35436
35437
35438
35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
35455
35456
35457
35458
35459
35460
35461
35462
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497
35498
35499
35500
35501
35502
35503
35504
35505
35506
35507
35508
35509
35510
35511
35512
35513
35514
35515
35516
35517
35518
35519
35520
35521
35522
35523
35524
35525
35526
35527
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537
35538
35539
35540
35541
35542
35543
35544
35545
35546
35547
35548
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559
35560
35561
35562
35563
35564
35565
35566
35567
35568
35569
35570
35571
35572
35573
35574
35575
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600
35601
35602
35603
35604
35605
35606
35607
35608
35609
35610
35611
35612
35613
35614
35615
35616
35617
35618
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628
35629
35630
35631
35632
35633
35634
35635
35636
35637
35638
35639
35640
35641
35642
35643
35644
35645
35646
35647
35648
35649
35650
35651
35652
35653
35654
35655
35656
35657
35658
35659
35660
35661
35662
35663
35664
35665
35666
35667
35668
35669
35670
35671
35672
35673
35674
35675
35676
35677
35678
35679
35680
35681
35682
35683
35684
35685
35686
35687
35688
35689
35690
35691
35692
35693
35694
35695
35696
35697
35698
35699
35700
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710
35711
35712
35713
35714
35715
35716
35717
35718
35719
35720
35721
35722
35723
35724
35725
35726
35727
35728
35729
35730
35731
35732
35733
35734
35735
35736
35737
35738
35739
35740
35741
35742
35743
35744
35745
35746
35747
35748
35749
35750
35751
35752
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762
35763
35764
35765
35766
35767
35768
35769
35770
35771
35772
35773
35774
35775
35776
35777
35778
35779
35780
35781
35782
35783
35784
35785
35786
35787
35788
35789
35790
35791
35792
35793
35794
35795
35796
35797
35798
35799
35800
35801
35802
35803
35804
35805
35806
35807
35808
35809
35810
35811
35812
35813
35814
35815
35816
35817
35818
35819
35820
35821
35822
35823
35824
35825
35826
35827
35828
35829
35830
35831
35832
35833
35834
35835
35836
35837
35838
35839
35840
35841
35842
35843
35844
35845
35846
35847
35848
35849
35850
35851
35852
35853
35854
35855
35856
35857
35858
35859
35860
35861
35862
35863
35864
35865
35866
35867
35868
35869
35870
35871
35872
35873
35874
35875
35876
35877
35878
35879
35880
35881
35882
35883
35884
35885
35886
35887
35888
35889
35890
35891
35892
35893
35894
35895
35896
35897
35898
35899
35900
35901
35902
35903
35904
35905
35906
35907
35908
35909
35910
35911
35912
35913
35914
35915
35916
35917
35918
35919
35920
35921
35922
35923
35924
35925
35926
35927
35928
35929
35930
35931
35932
35933
35934
35935
35936
35937
35938
35939
35940
35941
35942
35943
35944
35945
35946
35947
35948
35949
35950
35951
35952
35953
35954
35955
35956
35957
35958
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971
35972
35973
35974
35975
35976
35977
35978
35979
35980
35981
35982
35983
35984
35985
35986
35987
35988
35989
35990
35991
35992
35993
35994
35995
35996
35997
35998
35999
36000
36001
36002
36003
36004
36005
36006
36007
36008
36009
36010
36011
36012
36013
36014
36015
36016
36017
36018
36019
36020
36021
36022
36023
36024
36025
36026
36027
36028
36029
36030
36031
36032
36033
36034
36035
36036
36037
36038
36039
36040
36041
36042
36043
36044
36045
36046
36047
36048
36049
36050
36051
36052
36053
36054
36055
36056
36057
36058
36059
36060
36061
36062
36063
36064
36065
36066
36067
36068
36069
36070
36071
36072
36073
36074
36075
36076
36077
36078
36079
36080
36081
36082
36083
36084
36085
36086
36087
36088
36089
36090
36091
36092
36093
36094
36095
36096
36097
36098
36099
36100
36101
36102
36103
36104
36105
36106
36107
36108
36109
36110
36111
36112
36113
36114
36115
36116
36117
36118
36119
36120
36121
36122
36123
36124
36125
36126
36127
36128
36129
36130
36131
36132
36133
36134
36135
36136
36137
36138
36139
36140
36141
36142
36143
36144
36145
36146
36147
36148
36149
36150
36151
36152
36153
36154
36155
36156
36157
36158
36159
36160
36161
36162
36163
36164
36165
36166
36167
36168
36169
36170
36171
36172
36173
36174
36175
36176
36177
36178
36179
36180
36181
36182
36183
36184
36185
36186
36187
36188
36189
36190
36191
36192
36193
36194
36195
36196
36197
36198
36199
36200
36201
36202
36203
36204
36205
36206
36207
36208
36209
36210
36211
36212
36213
36214
36215
36216
36217
36218
36219
36220
36221
36222
36223
36224
36225
36226
36227
36228
36229
36230
36231
36232
36233
36234
36235
36236
36237
36238
36239
36240
36241
36242
36243
36244
36245
36246
36247
36248
36249
36250
36251
36252
36253
36254
36255
36256
36257
36258
36259
36260
36261
36262
36263
36264
36265
36266
36267
36268
36269
36270
36271
36272
36273
36274
36275
36276
36277
36278
36279
36280
36281
36282
36283
36284
36285
36286
36287
36288
36289
36290
36291
36292
36293
36294
36295
36296
36297
36298
36299
36300
36301
36302
36303
36304
36305
36306
36307
36308
36309
36310
36311
36312
36313
36314
36315
36316
36317
36318
36319
36320
36321
36322
36323
36324
36325
36326
36327
36328
36329
36330
36331
36332
36333
36334
36335
36336
36337
36338
36339
36340
36341
36342
36343
36344
36345
36346
36347
36348
36349
36350
36351
36352
36353
36354
36355
36356
36357
36358
36359
36360
36361
36362
36363
36364
36365
36366
36367
36368
36369
36370
36371
36372
36373
36374
36375
36376
36377
36378
36379
36380
36381
36382
36383
36384
36385
36386
36387
36388
36389
36390
36391
36392
36393
36394
36395
36396
36397
36398
36399
36400
36401
36402
36403
36404
36405
36406
36407
36408
36409
36410
36411
36412
36413
36414
36415
36416
36417
36418
36419
36420
36421
36422
36423
36424
36425
36426
36427
36428
36429
36430
36431
36432
36433
36434
36435
36436
36437
36438
36439
36440
36441
36442
36443
36444
36445
36446
36447
36448
36449
36450
36451
36452
36453
36454
36455
36456
36457
36458
36459
36460
36461
36462
36463
36464
36465
36466
36467
36468
36469
36470
36471
36472
36473
36474
36475
36476
36477
36478
36479
36480
36481
36482
36483
36484
36485
36486
36487
36488
36489
36490
36491
36492
36493
36494
36495
36496
36497
36498
36499
36500
36501
36502
36503
36504
36505
36506
36507
36508
36509
36510
36511
36512
36513
36514
36515
36516
36517
36518
36519
36520
36521
36522
36523
36524
36525
36526
36527
36528
36529
36530
36531
36532
36533
36534
36535
36536
36537
36538
36539
36540
36541
36542
36543
36544
36545
36546
36547
36548
36549
36550
36551
36552
36553
36554
36555
36556
36557
36558
36559
36560
36561
36562
36563
36564
36565
36566
36567
36568
36569
36570
36571
36572
36573
36574
36575
36576
36577
36578
36579
36580
36581
36582
36583
36584
36585
36586
36587
36588
36589
36590
36591
36592
36593
36594
36595
36596
36597
36598
36599
36600
36601
36602
36603
36604
36605
36606
36607
36608
36609
36610
36611
36612
36613
36614
36615
36616
36617
36618
36619
36620
36621
36622
36623
36624
36625
36626
36627
36628
36629
36630
36631
36632
36633
36634
36635
36636
36637
36638
36639
36640
36641
36642
36643
36644
36645
36646
36647
36648
36649
36650
36651
36652
36653
36654
36655
36656
36657
36658
36659
36660
36661
36662
36663
36664
36665
36666
36667
36668
36669
36670
36671
36672
36673
36674
36675
36676
36677
36678
36679
36680
36681
36682
36683
36684
36685
36686
36687
36688
36689
36690
36691
36692
36693
36694
36695
36696
36697
36698
36699
36700
36701
36702
36703
36704
36705
36706
36707
36708
36709
36710
36711
36712
36713
36714
36715
36716
36717
36718
36719
36720
36721
36722
36723
36724
36725
36726
36727
36728
36729
36730
36731
36732
36733
36734
36735
36736
36737
36738
36739
36740
36741
36742
36743
36744
36745
36746
36747
36748
36749
36750
36751
36752
36753
36754
36755
36756
36757
36758
36759
36760
36761
36762
36763
36764
36765
36766
36767
36768
36769
36770
36771
36772
36773
36774
36775
36776
36777
36778
36779
36780
36781
36782
36783
36784
36785
36786
36787
36788
36789
36790
36791
36792
36793
36794
36795
36796
36797
36798
36799
36800
36801
36802
36803
36804
36805
36806
36807
36808
36809
36810
36811
36812
36813
36814
36815
36816
36817
36818
36819
36820
36821
36822
36823
36824
36825
36826
36827
36828
36829
36830
36831
36832
36833
36834
36835
36836
36837
36838
36839
36840
36841
36842
36843
36844
36845
36846
36847
36848
36849
36850
36851
36852
36853
36854
36855
36856
36857
36858
36859
36860
36861
36862
36863
36864
36865
36866
36867
36868
36869
36870
36871
36872
36873
36874
36875
36876
36877
36878
36879
36880
36881
36882
36883
36884
36885
36886
36887
36888
36889
36890
36891
36892
36893
36894
36895
36896
36897
36898
36899
36900
36901
36902
36903
36904
36905
36906
36907
36908
36909
36910
36911
36912
36913
36914
36915
36916
36917
36918
36919
36920
36921
36922
36923
36924
36925
36926
36927
36928
36929
36930
36931
36932
36933
36934
36935
36936
36937
36938
36939
36940
36941
36942
36943
36944
36945
36946
36947
36948
36949
36950
36951
36952
36953
36954
36955
36956
36957
36958
36959
36960
36961
36962
36963
36964
36965
36966
36967
36968
36969
36970
36971
36972
36973
36974
36975
36976
36977
36978
36979
36980
36981
36982
36983
36984
36985
36986
36987
36988
36989
36990
36991
36992
36993
36994
36995
36996
36997
36998
36999
37000
37001
37002
37003
37004
37005
37006
37007
37008
37009
37010
37011
37012
37013
37014
37015
37016
37017
37018
37019
37020
37021
37022
37023
37024
37025
37026
37027
37028
37029
37030
37031
37032
37033
37034
37035
37036
37037
37038
37039
37040
37041
37042
37043
37044
37045
37046
37047
37048
37049
37050
37051
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063
37064
37065
37066
37067
37068
37069
37070
37071
37072
37073
37074
37075
37076
37077
37078
37079
37080
37081
37082
37083
37084
37085
37086
37087
37088
37089
37090
37091
37092
37093
37094
37095
37096
37097
37098
37099
37100
37101
37102
37103
37104
37105
37106
37107
37108
37109
37110
37111
37112
37113
37114
37115
37116
37117
37118
37119
37120
37121
37122
37123
37124
37125
37126
37127
37128
37129
37130
37131
37132
37133
37134
37135
37136
37137
37138
37139
37140
37141
37142
37143
37144
37145
37146
37147
37148
37149
37150
37151
37152
37153
37154
37155
37156
37157
37158
37159
37160
37161
37162
37163
37164
37165
37166
37167
37168
37169
37170
37171
37172
37173
37174
37175
37176
37177
37178
37179
37180
37181
37182
37183
37184
37185
37186
37187
37188
37189
37190
37191
37192
37193
37194
37195
37196
37197
37198
37199
37200
37201
37202
37203
37204
37205
37206
37207
37208
37209
37210
37211
37212
37213
37214
37215
37216
37217
37218
37219
37220
37221
37222
37223
37224
37225
37226
37227
37228
37229
37230
37231
37232
37233
37234
37235
37236
37237
37238
37239
37240
37241
37242
37243
37244
37245
37246
37247
37248
37249
37250
37251
37252
37253
37254
37255
37256
37257
37258
37259
37260
37261
37262
37263
37264
37265
37266
37267
37268
37269
37270
37271
37272
37273
37274
37275
37276
37277
37278
37279
37280
37281
37282
37283
37284
37285
37286
37287
37288
37289
37290
37291
37292
37293
37294
37295
37296
37297
37298
37299
37300
37301
37302
37303
37304
37305
37306
37307
37308
37309
37310
37311
37312
37313
37314
37315
37316
37317
37318
37319
37320
37321
37322
37323
37324
37325
37326
37327
37328
37329
37330
37331
37332
37333
37334
37335
37336
37337
37338
37339
37340
37341
37342
37343
37344
37345
37346
37347
37348
37349
37350
37351
37352
37353
37354
37355
37356
37357
37358
37359
37360
37361
37362
37363
37364
37365
37366
37367
37368
37369
37370
37371
37372
37373
37374
37375
37376
37377
37378
37379
37380
37381
37382
37383
37384
37385
37386
37387
37388
37389
37390
37391
37392
37393
37394
37395
37396
37397
37398
37399
37400
37401
37402
37403
37404
37405
37406
37407
37408
37409
37410
37411
37412
37413
37414
37415
37416
37417
37418
37419
37420
37421
37422
37423
37424
37425
37426
37427
37428
37429
37430
37431
37432
37433
37434
37435
37436
37437
37438
37439
37440
37441
37442
37443
37444
37445
37446
37447
37448
37449
37450
37451
37452
37453
37454
37455
37456
37457
37458
37459
37460
37461
37462
37463
37464
37465
37466
37467
37468
37469
37470
37471
37472
37473
37474
37475
37476
37477
37478
37479
37480
37481
37482
37483
37484
37485
37486
37487
37488
37489
37490
37491
37492
37493
37494
37495
37496
37497
37498
37499
37500
37501
37502
37503
37504
37505
37506
37507
37508
37509
37510
37511
37512
37513
37514
37515
37516
37517
37518
37519
37520
37521
37522
37523
37524
37525
37526
37527
37528
37529
37530
37531
37532
37533
37534
37535
37536
37537
37538
37539
37540
37541
37542
37543
37544
37545
37546
37547
37548
37549
37550
37551
37552
37553
37554
37555
37556
37557
37558
37559
37560
37561
37562
37563
37564
37565
37566
37567
37568
37569
37570
37571
37572
37573
37574
37575
37576
37577
37578
37579
37580
37581
37582
37583
37584
37585
37586
37587
37588
37589
37590
37591
37592
37593
37594
37595
37596
37597
37598
37599
37600
37601
37602
37603
37604
37605
37606
37607
37608
37609
37610
37611
37612
37613
37614
37615
37616
37617
37618
37619
37620
37621
37622
37623
37624
37625
37626
37627
37628
37629
37630
37631
37632
37633
37634
37635
37636
37637
37638
37639
37640
37641
37642
37643
37644
37645
37646
37647
37648
37649
37650
37651
37652
37653
37654
37655
37656
37657
37658
37659
37660
37661
37662
37663
37664
37665
37666
37667
37668
37669
37670
37671
37672
37673
37674
37675
37676
37677
37678
37679
37680
37681
37682
37683
37684
37685
37686
37687
37688
37689
37690
37691
37692
37693
37694
37695
37696
37697
37698
37699
37700
37701
37702
37703
37704
37705
37706
37707
37708
37709
37710
37711
37712
37713
37714
37715
37716
37717
37718
37719
37720
37721
37722
37723
37724
37725
37726
37727
37728
37729
37730
37731
37732
37733
37734
37735
37736
37737
37738
37739
37740
37741
37742
37743
37744
37745
37746
37747
37748
37749
37750
37751
37752
37753
37754
37755
|
2008-11-10 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Add some order of operation to our math so
we don't end up with a negative height for our invalidate rect.
[Fixes bug #381889]
2008-11-10 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: When our enabled changes, notify our implicit children
controls as well as our regular controls.
[Fixes bug #441523]
2008-11-08 Andreia Gaita <shana@jitted.com>
* HtmlElement.cs: Small code cleanup
2008-11-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingNavigator.cs: MoveFirstItem should be enabled only if
position is larger than 0, not only different than 0. Also Position
and Count items should be enabled if the BindingSource is non null and
non empty.
Fixes #439961.
2008-11-05 Jonathan Pobst <monkey@jpobst.com>
* TabControl.cs: Don't raise SelectedIndexChanged until we have
actually modified the tab collection, so TabCount will be correct.
[Fixes bug #441896]
2008-11-05 Sandy Armstrong <sanfordarmstrong@gmail.com>
* ListViewItem.cs: Mark ListViewSubItem.UIATextChanged event as
NonSerialized to fix serialization of ListViewItem.
2008-11-04 Mike Gorse <mgorse@novell.com>
* ListView.cs: Call OnUIAFocusedItemChanged after completing the
focus change, and always call in SetFocusedItem.
* ListBox.cs: Add UIAFocusedItemChanged as in ListView.
2008-11-04 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Only call OnDrawItem when we are using an OwnerDraw
mode. Based on a patch by John Mortlock.
[Fixes bug #436790]
2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Use the UsingGroups property where needed, instead of
duplicating the check in other places.
2008-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When calculating layout, refresh the count of items
belonging to the default item, insteas of doing it only one time. This
was already working fine for icon views, not not for details.
Fixes #438948.
2008-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs:
* ListViewItem.cs:
* ThemeWin32Classic.cs: Don't render Tile view if there wasn't a call
to Applicatin.EnableVisualStyles, and use LargeIcon view, as .net
does.
Fixes #437933.
2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
* ListView.cs: Wrap call to OnUIAFocusedItemChanged with #if NET_2_0.
2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
* ListView.cs: Add internal UIAFocusedItemChanged event. Fixes bug
#441280, patch by Mike Gorse <mgorse@novell.com>.
2008-11-03 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: When doing ExpandAll, don't scroll to the bottom
if there is no scrollbar.
[Fixes bug #440885]
2008-11-03 Jonathan Pobst <monkey@jpobst.com>
* ProgressBar.cs, ThemeWin32Classic.cs, ThemeVisualStyles.cs: Commit
patch from Andy Hume that fixes many issues with ProgressBar.
[See bug #440220]
2008-11-03 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Don't allow MinimumSize and MaximumSize to conflict.
[Fixes bug #438866]
2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
* UpDownBase.cs:
* DomainUpDown.cs:
* NumericUpDown.cs: Internal events added to UpDownBase:
UIAUpButtonClick and UIADownButtonClick. Patch by Neville Gao
<ngao@novell.com>.
2008-11-03 Sandy Armstrong <sanfordarmstrong@gmail.com>
* ToolStripLabel.cs: Internal event added: UIAIsLinkChanged.
2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs:
* ThemeWin32Classic.cs: Don't use groups nor insertion mark in
Application.EnableVisualStyles hasn't been called.
Fixes part of #437933.
2008-10-31 Andreia Gaita <shana@jitted.com>
* Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
if the container is not focused already, we need to specifically set
focus to the first available control, or to the form itself if there
are no controls.
2008-10-31 Andreia Gaita <shana@jitted.com>
activate message fix: a call to .Show now waits until both WM_SHOWWINDOW and
WM_ACTIVATE have been processed before returning, so it is guaranteed that
once it returns and the form is visible, it is actually on the screen on X11
* ContainerControl.cs: Only send focus to the control if the top container
is already focused. This is so that, when a form is first shown, all
the enter/leave events are done first before any focus stuff comes in.
If a control has no top container, there's an extra check on Control.Focus
to make sure it gets focused in this particular case.
* Control.cs: Force focus if the control is active but did not receive
focus after being set as active.
* MdiClient.cs: Dispose the form when closing
* XplatUIX11.cs: When mapping and unmapping windows, make sure the call
doesn't return until both WM_SHOWWINDOW and WM_ACTIVATE have come in
if the window is a top Form.
Reset all hwnd properties when the window has been destroyed so that
we don't land in any codepaths that might try to do something with it.
Added a bunch of debugging messages. If TRACE is defined, all X calls
are logged through DebugHelper. Set a few missing EntryPoint attributes.
2008-10-29 Mario Carrion <mcarrion@novell.com>
* ListViewItem.cs: Control enabled to support Accessibility:
- Internal events: UIATextChanged, UIASubItemTextChanged.
- Internal event UIATextChanged in ListViewSubItem that triggers
UIASubItemTextChanged.
* ListView.cs: Control enabled to support Accessibility:
- Internal events: UIACheckBoxesChanged, UIAMultiSelectChanged,
UIAShowGroupsChanged, UIAViewChanged and UIALabelEditChanged.
- Internal event UIACollectionChanged in ColumnHeaderCollection.
- Internal event UIACollectionChanged in ListViewItemCollection.
- Internal properties: UIAHeaderControl, UIAColumns, UIARows,
UIADefaultListViewGroup, UIAHScrollBar and UIAVScrollBar.
- Internal methods: UIAGetHeaderBounds.
2008-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ScrollableControl.cs: Actually fire the 2.0 Scroll event when we get
the event from the respective scrollbars.
Fixes #436709.
2008-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: Use the new CanNavigateAutoCompleteList property of the
textbox to know whether any navigation key will be handled or not. If
not, don't pass the message to the textbox, and use it here instead.
* TextBox.cs: Define a new CanNavigateAutoCompleteList property -which
is more precise- than the previous AutoCompleteMatches one.
This should the keyboard navigation in ComboBox when using auto
complete modes.
2008-10-24 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Fix item height calculation based off Font to match .Net.
[Fixes bug #436730]
2008-10-24 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDownItem.cs: Call OnClick instead of base.OnClick so
overridden methods will get called.
* ToolStripItem.cs: Raise Click before MouseUp.
* ToolStripSplitButton.cs: Fix up some bounding rectangles to take
the item's location into account.
[Fixes bug #437683]
2008-10-24 Neville Gao <nevillegao@gmail.com>
* NumericUpDown.cs: Control enabled to support accessibility.
[Fiexes bug #438135]
2008-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TextBox.cs: Check that we actually have items no navigate, select
text when pressing enter, as well as handle direction keys only if
mode is different to Suggest or the suggest listbox is visible.
2008-10-23 Andreia Gaita <shana@jitted.com>
* WebBrowser.cs: Use the new ContentStream property to retrieve
a stream encoded from the document content
2008-10-23 Andreia Gaita <shana@jitted.com>
* HtmlDocument.cs,
HtmlElement.cs,
HtmlWindow.cs: Fix GetHashcode for null objects
2008-10-22 Andreia Gaita <shana@jitted.com>
* HtmlDocument.cs,
HtmlElement.cs,
HtmlWindow.cs: Fix equality operators (fixes #428173)
2008-10-21 Jonathan Pobst <monkey@jpobst.com>
* XplatUIWin32.cs: Apply patch from John Mortlock that ensures
mouse_state gets set during WM_MOUSEMOVE and WM_NCMOUSEMOVE.
[Fixes bug #436772]
2008-10-21 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Fire SelectedIndexChanged when the user selects the
same item with the mouse as was already selected.
[Fixes bug #436789]
2008-10-21 Brad Taylor <brad@getcoded.net>
* TextControl.cs: Break out code to get the visible range into
GetVisibleLineIndexes to be used in UIA code.
* Line.cs:
* TextControl.cs:
* TextBoxBase.cs: Add comments indicating that the method or property
is used via reflection from UIA code.
2008-10-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Match .net serialization.
Fixes remaining part of #417520.
2008-10-20 Jonathan Pobst <monkey@jpobst.com>
* ToolStripProfessionalRenderer.cs: Don't paint over a set BackgroundImage.
2008-10-20 Mario Carrion <mcarrion@novell.com>
* ErrorProvider.cs, ToolTip.cs, HelpProvider.cs: UIA internal property
added: UIAToolTipRectangle.
2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: When deserializing enumerate over the data, instead
of accessing the data directly. This way we handle much better the
cases were we lack information.
Fixes #417520.
2008-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When removing an item from a main ListView.Items
collection (and not a ListViewGroupCollection.Items one), remove it
also from the group, as .net does. Patch by Mario Carrion (mario at
novell dot com).
Fixes #436653.
2008-10-19 Andreia Gaita <avidigal@novell.com>
* Form.cs: Forms that get closed without a handle being created are
disposed in 2.0. Fixes failing FormTest.FormClose and
FormTest.FormClose2 on windows.
2008-10-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: If both scrollbars are visible, the vertical one
shouldn't extend too far down.
Fixes #435771.
2008-10-17 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Add the ability to resize columns and rows with
the mouse. Also support double-clicking to autoresize.
* DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
* DataGridViewRow.cs: Invalidate the grid if a row's height changes.
* DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
isn't shown on autoresize.
[Fixes bug #420193]
2008-10-17 Mario Carrion <mcarrion@novell.com>
* ComboBox.cs: Remove UIAListbox.
2008-10-17 Mario Carrion <mcarrion@novell.com>
* ComboBox.cs, ListBox.cs: Using added/removed item in
OnUIACollectionChangedEvent instead of index.
2008-10-17 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: When we are sorting the items, if the item's type
doesn't support IComparer, use a default one that compares based
off the item's visible text.
[Fixes bug #436328]
2008-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ColumnHeader.cs: Invalidate ListView.header_control when setting
ImageIndex/ImageKey.
* ThemeWin32Classic.cs: When drawing the column header, draw a image
for the column if available, and make the required adjustments to the
text location.
Fixes #435105.
2008-10-17 Neville Gao <nevillegao@gmail.com>
* StatusBarPanel.cs: Control enabled to support accessibility.
[Fixes bug #435988]
2008-10-16 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: When a user begins an edit in the 'new row',
make that a real row, and add a new 'new row'. If the user
cancels the edit, remove the new 'new row' and reset everything.
Also, ensure UserAddedRow and UserRemovedRow events are raised.
[Fixes bug #430954]
2008-10-16 Ivan N. Zlatev <contact@i-nz.net>
* TableLayoutSettings.cs: Fix NREs when deserializing and
panel is not yet set.
[Fixes bug #436199]
2008-10-16 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Invalidate after deleting a row.
2008-10-16 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Handle Enter and Escape keys.
- Move call to EndEdit to MoveCurrentCell.
- Remove call to EndEdit from navigation key routines.
- Fire CellLeave and CellEnter.
2008-10-16 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Some fixes to the new cell border
painting code.
2008-10-16 Jonathan Pobst <monkey@jpobst.com>
* ThemeEngine.cs: Enable visualstyles rendering by default
(on platforms that support it).
2008-10-15 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
MainForm.OnLoad has completed unless DoEvents is forced.
[Fixes bug #412536]
2008-10-15 Jonathan Pobst <monkey@jpobst.com>
* ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.
2008-10-15 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Make our implementation of DrawToBitmap better
match WmPaint. [Fixes bug #435579]
2008-10-14 Andreia Gaita <avidigal@novell.com>
* WebBrowser.cs: Use DocumentElement as the document's root for the
whole content. Should fix DocumentText and DocumentStream problems.
2008-10-14 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
these will get called in DGV.OnCollectionChanged. Make sure
OnCollectionChanged always gets called.
* DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
from every row. Call this in OnCollectionChanged.
[Fixes bug #433669]
2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
textbox if auto complete is used, since we need to navigate over it.
And in this case don't pass this messages to the base impl. Also hide
the auto complete list box when displaying the drop down listbox.
* TextBox.cs: new internal members to expose some of the auto complete
functionality to combobox.
2008-10-13 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
MainForm.OnLoad has completed.
[Fixes bug #412536]
2008-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TextBox.cs: Apply an old-approved patch that adds autocomplete's
Append support to this controls. We need it to apply new patches.
2008-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Control.cs: When updating z order in child controls, send to back
the implicit controls. Also, do it explicitly, instead of making
GetAllControls return the implicit controls in a specific order, and
thus avoid depending on that, which could change in the future.
Fixes #434304.
2008-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: Try to call Application.DoEvents before returning in a
call to StartDrag, since we must fire DragDrop/DragLeave *before*
that, as .net does - instead of firing DragDrop/DragLeave *after* the
call to Control.DoDragDrop has completed. This is needed since at the
point of returning, we have sent related dnd ClientMessages, but we
need to wait for them to fire the wmf respective ones.
Fixes #325076.
2008-10-09 Everaldo Canuto <ecanuto@novell.com>
* LinkLabel.cs: Recreate link pieces when change Padding.
2008-10-09 Everaldo Canuto <ecanuto@novell.com>
* LinkLabel.cs: Take Padding into account when recreate link pieces.
[Fixes bug #412530]
2008-10-08 Everaldo Canuto <ecanuto@novell.com>
* Control.cs: Implement internal property PaddingClientRectangle, it will be
useful for drawing controls that must take care about Padding property.
2008-10-08 Jonathan Pobst <monkey@jpobst.com>
* BindingSource.cs: Make item_type internal so we can access it in DGV.
* DataGridView.cs: Add support for autogenerating columns from a
BindingSource.
2008-10-07 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Comment out an exception that is getting thrown
too often currently.
2008-10-07 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Always rebind to the datasource, as things may
have changed in it that we aren't capturing yet.
2008-10-07 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
drawing mode. If we are top aligned, give ourselves some top padding.
2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: When firing the default dnd enter/leave events, fire the
events on the control under the mouse pointer, instead of firing them
on the window generating the dnd operation. To achieve this re-use the
code used to get the window under the pointer when getting MouseMove
events.
Fixes #381876.
2008-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: Don't check that that the window sending the dnd events
is the owner of the selection. Although Gtk+ sets it that way, it's
not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
So, just as Gtk+ does, we set our window sending the dnd events as the
owner of the selection, but don't check it when receiving them. This
should fix interoperability with Qt/Kde.
Fixes #324251.
2008-10-06 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Make sure we take the vertical scrollbar into
account when autosizing columns.
2008-10-06 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Handle sorting datetimes.
2008-10-04 Ivan N. Zlatev <contact@i-nz.net>
* ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
compilation warnings.
2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
* RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
compilation warnings.
2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs, DataGridViewCell.cs,
DataGridViewCellValidatingEventArgs.cs,
DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.
2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
* HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
Cleanup compilation warnings.
2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIWin32.cs: Cleanup compilation warnings.
2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Cleanup compilation warnings.
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRow.cs: Only clear the row background if we
are going to paint a new background.
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
use PaintBorder instead.
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: When CellBorderStyle is set, update the
AdvancedCellBorderStyle to match.
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Add helper methods to convert Alignment
to TextFormatFlags and align rectangles.
* DataGridViewTextBoxCell.cs: Use Alignment when painting text.
* DataGridViewImageCell.cs: Use Alignment when painting the image.
2008-10-02 Ivan N. Zlatev <contact@i-nz.net>
* ToolTip.cs: Display tooltips only for controls on the active form.
[Fixes bug #428115]
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Make OnCellValueNeeded internal.
* DataGridViewCell.cs: Raise the CellValueNeeded event so the
user can supply their own value if they choose.
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewColumnHeaderCell.cs: Create a new style object
so the DefaultCellStyle doesn't get changed.
2008-10-02 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: Check to make sure the owner is actually
changing in InternalOwner before doing any work. Fixes some
failing tests.
2008-10-01 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewColumnHeaderCell.cs: Correctly calculate style.
* DataGridView.cs: Use a column header's inherited style instead
of just using the default.
2008-10-01 Jonathan Pobst <monkey@jpobst.com>
* SplitContainer.cs: Raise SplitterMoved when the splitter is
moved through code.
2008-10-01 Mario Carrion <mcarrion@novell.com>
* ScrollBar.cs: Internal property added: UIAThumbPosition.
2008-10-01 Jonathan Pobst <monkey@jpobst.com>
* ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
2008-10-01 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: When the user sets Owner, we need to remove
it from its previous owner and then add it to the new owner's
item collection. Also, create InternalOwner, so we can set the owner
that doesn't do this new stuff.
* ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
2008-10-01 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: When our parent changes, recalculate our text
size, since we may be getting our Font from our parent. When our
owner's Font changes, recalculate ourselves as we may be using
that font.
2008-10-01 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Select the first option of a popup when opening the popup via
return key. [Fixes bug #413792].
2008-10-01 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: Make Font, BackColor, and ForeColor be
ambient properties. (Get their value from their parents if
values haven't been set.)
2008-10-01 Jonathan Pobst <monkey@jpobst.com>
* ToolStripSystemRenderer.cs: Call overridden methods' bases
after our logic, so users can do painting by handling the events.
Currently, we draw over any user painting.
2008-10-01 Jonathan Pobst <monkey@jpobst.com>
* ToolStripProfessionalRenderer.cs: Call overridden methods' bases
after our logic, so users can do painting by handling the events.
Currently, we draw over any user painting.
2008-09-30 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
2008-09-30 Jonathan Pobst <monkey@jpobst.com>
* TreeNode.cs, TreeView.cs: Move logic that determines the node
image to draw to TreeNode. Give Index/Keys put on the node
precedence over the global one for the TreeView.
2008-09-30 Jonathan Pobst <monkey@jpobst.com>
* TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
2008-09-29 Mario Carrion <mcarrion@novell.com>
* ListBox.cs: Index fixed.
2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TabControl.cs: When expanding the tab -because it's selected now-,
using Right alignment, instead of adding some selected delta value to
the X origin, substract it, so it gets a location adjacent to the panel,
instead of be more separated.
Fixes #409170.
2008-09-29 Jonathan Pobst <monkey@jpobst.com>
* MessageBox.cs: Use SystemIcons for graphics instead of keeping our
own copies of them.
2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
as well as the other static fields, to avoid using their previous
values my mistake when handling the dnd events. This should avoid
handling any status event after the drop has been finalized/cancelled.
2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: We have to send a dnd enter event as soon as we start the
operation, instead of waiting until we get any movement - this will
help us to have the data available in case no movement was detected
and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
Finally add a windows.forms-only fallback to fire the mentioned events
if no movement at all was detected, just like .net does.
Fixes #381876.
2008-09-27 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: When drawing a status bar panel, don't
return early if the text is empty because the icon doesn't get
drawn then. [Fixes bug #428113]
2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* FileDialog.cs: Implement basic support for sorting by columns in
Details view. Patch by Eric Petit.
Fixes #428006.
2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ThemeWin32Classis.cs: When drawing gridlines take into account the
case where ListView.ItemSize hasn't been computed, and provide a
fallback as well. This prevents a division by 0.
2008-09-24 Jonathan Pobst <monkey@jpobst.com>
* ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
correctly draw tooltip backgrounds.
2008-09-24 Jonathan Pobst <monkey@jpobst.com>
* ImageList.cs: Change CopyTo implementation to ensure clones are
created of our images.
[Fixes bug #409169]
2008-09-24 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: When setting fonts, we need to ensure we change our
reference to the new font object, even if it represents the same
font as before. If we don't, the original font can get disposed
and we will still try to use it.
[Fixes bug #386450]
2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* FileDialog.cs: Take into account Tile view when selecting the view
(2.0 profile).
2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
the item bounds, since we can't iterate over them in virtual mode.
Also fix wrong calculation of the gridlines when using scrolling.
Fixes #400390.
2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* XplatUIX11.cs: When handling EnterNotify events, take into account
both the public and implicit controls when trying to detect the
grab/ungrab process. This should fix ListView selection in Details
view.
2008-09-23 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Redraw the whole node area when the selected node changes.
Things like state images were not getting redrawn because the invalid
rectangle was too small.
[Fixes bug #428211]
2008-09-23 Mario Carrion <mcarrion@novell.com>
* ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
[Fixes bug #428993]
2008-09-23 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Do not set the Form's icon in the backend if showicon = false.
[Fixes bug #428114]
2008-09-23 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Allow tooltips to be multiline.
[Fixes bug #427884]
2008-09-23 Jonathan Pobst <monkey@jpobst.com>
* StatusBar.cs: Add tooltip support.
[Fixes bug #428113]
2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
alignments of sub items in Details view. Patch by John Mortlock (johnm at
hlaustralia.com.au).
Fixes #425360.
2008-09-23 Neville Gao <nevillegao@gmail.com>
* StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
[Fixes bug #419079]
2008-09-22 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Set Text to "" instead of null in Clear().
[Fixes bug #428107]
2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Don't do anything when EnsureVisible is called inside a
BeginUpdate/EndUpdate block.
Fixes #425049.
2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: The semantics for the public .ctor of
ListViewSubItemCollection need us to already have a Text value for the
item, which in our implementation have as available *after* adding the
first sub item. So create an internal .ctor that satisfies our needs
and let the public .ctor have the same semantics as .net.
Fixes #427561.
2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControl.cs: Changes in Formatting related values should call
RefreshItems, as .net does.
* ComboBox.cs:
* ListBox.cs: In the respective overrides of RefreshItems calculate
layout as well as refreshing - again, this is what .net does.
Fixes #426168.
2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
since we are already doing that when we change the value of the
scrollbar or force the call to ScrollWindow in the same method. This
way we don't cause a Invalidate call for all the listbox bounds for
methods calling UpdateTopItem with an already updated top item. This
was happening specially calling EnsureVisible with already visible
items.
2008-09-18 Mike Gorse <mgorse@novell.com>
* Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
XplatUIStructs.cs: Added KeyFilter
[Fixes bug #427039]
2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* RelatedPropertyManager.cs: The properties returned by
GetItemProperties should be that ones of the *actual* object returned
by the property, not the property type - this is very special when the
property exposes a type, but the returned object actually is a child
class and implements more functionality and properties.
2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Don't look for the property in the data source if the
passed string is empty.
2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
fix unused variable warnings.
2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs: Send WM_HELP when F1 is pressed.
[Fixes bug #427073]
2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs:
- Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
leads to the window manager overriding our border style and zorder.
- Allow the activation of non-modal forms, which are children of a
modal form.
[Fixes bug #423417]
2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
ask the window manager to do the work instead of changing the property
directly.
[Fixes bug #423417]
2008-09-17 Everaldo Canuto <ecanuto@novell.com>
* CurrencyManager.cs: Check for positon before call ChangeRecordState in
AddNew to fix some navigation for empty datasets. [Fixes #323053]
2008-09-17 Everaldo Canuto <ecanuto@novell.com>
* FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
border and fixes some drawing issues when resize form.
2008-09-17 Everaldo Canuto <ecanuto@novell.com>
* FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
* ThemeWin32Classic.cs: We don't need to reduce button size when it is
AcceptButton.
2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
* TextBoxBase.cs: For standard textbox the scrollbars are always
visible if Multiline is true.
[Fixes bug #426896]
2008-05-12 Everaldo Canuto <ecanuto@novell.com>
* DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
patch.
2008-05-12 Everaldo Canuto <ecanuto@novell.com>
[Fixes most od DBNull and HeadersVisible problems]
* DataGrid.cs:
- ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
returns the value that we need.
- Fixed FromPixelToColumn method that return zero for first column and for
row header cell, now it returns -1 for row header cell.
- Fixed HitTest to check row header cell in column header area, it now
returns HitTestType.None. [Fixes #322864]
- Fixed the calculation of visible columns in UpdateVisibleColumn, now it
checks for RowHeadersVisible and other things.
- If an exception occurs when setting CurrentCell and user type 'yes' in
message dialog, invalidade current and new cell and set setting_current_cell
to false to prevent future errors. [Partially fixes #323050]
* DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
value (SetColumnValueAtRow), it must be done by grid to properly show
messages. [Fixes #323050]
* ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
better draw column and row header. Also dont draw anything when column
headers is not visible.
2008-09-16 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
logic.
2008-09-16 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Don't start editing a node on right click, only
left click.
2008-09-16 Jonathan Pobst <monkey@jpobst.com>
* NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
disabled over a year ago.
* Form.cs: Wrap calling Load in a try/catch because it can happen
before the catch-all one in NativeWindow.
[Fixes bug #425414]
2008-09-16 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDownMenu.cs: Calculate the connected area better
to take into account when the drop down is not directly under the
owner item.
* ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
2008-09-16 Mario Carrion <mcarrion@novell.com>
* ScrollBar.cs: New event added: UIAValueChanged, generated when
LargeChange, SmallChange, Maximum or Minimum values are changed.
[Fixes bug #426464]
2008-09-16 Mario Carrion <mcarrion@novell.com>
* ErrorProvider.cs: Component enabled to support accessibility.
* Application.cs: Updated to Initialize UIA in ErrorProvider.
[Fixes bug #426459]
2008-09-16 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
so we don't highlight on first focus.
[Fixes bug #360869]
2008-09-16 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Correctly calculate the height of the area we
need to invalidate when we have started scrolling and viewport_y
is used. [Fixes bug #387608]
2008-09-16 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: When getting the SelectedText, don't add in
NewLine characters, as they are already contained in the lines.
[Fixes bug #388115]
2008-09-16 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Replace the buggy Lines setter with one that
simply concats the lines and send it to the Text setter.
[Fixes issue #2 and #3 of 388115]
2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: The default value of DataSourceNullValue should be
Convert.DBNull actually. Also, the NullValue should only be used *if*
itself is not null, and use the null/Convert.DBNull value instead.
2008-09-15 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Add a method to convert a string newline to the
newline enum.
* TextBoxBase.cs: When the user hits enter, insert a native newline.
[Fixes part 1 of bug #388115]
2008-09-15 Mario Carrion <mcarrion@novell.com>
* ToolTip.cs: UnPopup event set to internal to match public API.
2008-09-15 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
have to remove the Ctrl in order for the focus moving code to kick in.
[Fixes bug #426170]
2008-09-15 Jonathan Pobst <monkey@jpobst.com>
* CheckedListBox.cs: Return the real item index from Add. It may not be
the last item if the list is sorted. The user can change the NewValue in
the ItemCheck event, we need to use that value if so.
* ListBox.cs: Return the real item index from a sorted Add.
[Fixes bug #426166]
2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
* MimeIcon.cs: Add null checks in the GnomeHandler, because it might
happen that the icons from the theme is missing or the particular size
unavailable.
[Fixes bug #424981]
2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: When assigning null or DBNull depending on value/ref type,
use IsValueType instead to get the precise desired value.
Fixes #424276.
2008-09-12 Jonathan Pobst <monkey@jpobst.com>
* TreeNodeCollection.cs: When adding a new node to an opened node,
we have to invalidate everything below the parent node because
every node scoots down and we have to repaint them.
[Fixes bug #411386]
2008-09-12 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
property into account when drawing.
[Fixes bug #416064]
2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: When calling Items.Clear(), call
SelectedIndexCollection.ClearCore instead of normal Clear method, to
not fire any Selected*Changed event - this is done to match .net and
don't have invalid values when changing the DataSourceProperty.
Fixes #424273.
2008-09-12 Mario Carrion <mcarrion@novell.com>
* HelpProvider.cs: Control enabled to support accessibility.
* Application.cs: Updated to Initialize UIA in HelpProvider.
[Fixes bug #425988]
2008-09-12 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: When we are showing a dialog box, if its owner is TopMost,
make the dialog TopMost as well.
[Fixes bug #425984]
2008-09-12 Jonathan Pobst <monkey@jpobst.com>
* Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
clipboard data better.
[Fixes bug #414446]
2008-09-12 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Applied patch from John Mortlock that ensures
TextChanged and SelectionChanged events fire in the same order as .Net.
[Fixes bug #425725]
2008-09-12 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: When sorting a column, if it only contains numbers,
do a numeric sort instead of a string sort.
[Fixes bug #425849]
2008-09-12 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
against NRE's when the settings have a null panel.
* TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
the panel gets set.
[Fixes bug #425647]
2008-09-11 Mario Carrion <mcarrion@novell.com>
* ToolTip.cs: Control enabled to support accessibility.
* Application.cs: Updated to Initialize UIA in ToolTip.
[Fixes bug #425277]
2008-09-11 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Make the custom Enumerator internal to fix build.
2008-09-11 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
already in edit mode, begin edit mode. Generally edit mode isn't
started until the second click, but CheckBoxes are special.
2008-09-11 Jonathan Pobst <monkey@jpobst.com>
* ErrorProvider.cs: Never try to add our icons to ContainerControl,
since that can be set to anything. Always add them to the Control's
parent. [Fixes bug #416058]
2008-09-11 Jonathan Pobst <monkey@jpobst.com>
* ListView.cs: Use a custom enumerator for ListViewItemCollection
so items can be deleted in a foreach.
[Fixes bug #425342]
2008-09-11 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRow.cs: Better implementation of GetPreferredHeight.
Store the user set explicit height so that the row can be AutoSized
and then when AutoSize is turned off, it can get its original size back.
* DataGridView.cs: Use the Row's GetPreferredHeight instead of
duplicating the logic. When setting AutoSizeRowsMode to None, reset
rows' heights back to their explicit values.
[Fixes bug #415780]
2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DateTimePicker.cs: When getting focus, select the checkbox if we are
already showing it. Also, don't change its value when pressing space
if the checkbox is not visible (ShowCheckBox as false). Finally, the
checkbox should remain selected as long as Checked is false, and the
other parts are disabled.
Fixes #424267.
2008-09-11 Jonathan Pobst <monkey@jpobst.com>
* MessageBox.cs: Handle shortcut keys to dialog buttons.
[Fixes bug #425425]
2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: When the value retrieved from the control property is
null, don't return Convert.DBNull for Nullable instances, since they
can *actually* get a null value.
Fixes #424265.
2008-09-10 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Add an internal field to force doublebuffering regardless
of what the public mechanisms are set to. This is because MS's native
controls are doublebuffered even though their .Net bits are set to false.
* ProgressBar.cs: Set force_double_buffer to true.
[Fixes bug #406595]
2008-09-10 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
the cell template.
* DataGridViewCheckBoxCell.cs: Add proper support for threestate.
* DataGridViewCell.cs: Implement GetEditedFormattedValue for types
without EditingControls, paint background selection for types without
EditingControls, reset the EditingCellValueChanged flag when the
cell's value is committed.
* DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
have EditingControls, remove a double call to a cell's OnContentClickInternal,
don't do cell changing logic in OnMouseDown if the cell didn't change.
[Fixes bug #420351]
2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DateTimePicker.cs: Fix the edition of am/pm specifier.
2008-09-09 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Add "&" to the list of valid characters in a URL.
2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DateTimePicker.cs: Before incrementing or decrementing any part in
the textbox, end any current edit. Also when ending the current edit
use the editing_part_index field instead of the current selected
value, since they can be out of synch, and we really need to work on
the *real* current edit part. Finally when PartData.Selected changes,
always try to end any ongoing edit.
This should fix some small errors handling mouse navigation and
increase/decrease operations.
2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
respectively) should handled different, since the 12 hours format
needs the value typed by the user to be adjusted depending on the
a.m/p.m value, so it is preserved, and only changed when the value
reaches the 12 value (when it changes from a.m to p.m).
Fixes part of #416555.
2008-09-08 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
* ToolStripDropDownItem.cs: Don't fire events and such again if
ShowDropDown is called on an already dropped down item.
* ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
subitems, the user may add some in the DropDownOpening event.
[Fixes bug #417877]
2008-09-08 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Fix IOORE when setting SelectedItem to null.
[Fixes bug #424270]
2008-09-08 Jonathan Pobst <monkey@jpobst.com>
* MdiClient.cs: When looking for menustrips on a child form to merge,
look inside ToolStripContainers.
[Fixes bug #424264]
2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
* ErrorProvider.cs: Unbreak my previous commit.
2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
* ErrorProvider.cs: Icon should always be 16x16.
[Fixes bug #424380]
2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Invalidate the child items cache when the property
value changes.
2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs, PropertyGridView.cs:
- Update the ReadOnly detection and rendering to finally hopefully
match the one of MSFT.
- Niceify and move the debug CWLS.
[Fixes bug #409028]
2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Don't call Invalidate at all from SetItemLocation,
since we are already calling Invalidate for the entire control when
needed - and call Redraw() when size changes, since we need to paint
there by ourselved and not anymore from the mentioned method.
This should improve the layout process. Also clean some not needed calls
here and there.
2008-09-05 Jonathan Pobst <monkey@jpobst.com>
* MenuAPI.cs: Add a null check to the Alt-F4 code.
[Fixes bug #420309]
2008-09-05 Jonathan Pobst <monkey@jpobst.com>
* ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
[Fixes bug #423040]
2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
PropertyGridView.sc: Implement lazy/delayed propertygrid population
on item expansion. Improves performance and fixes bug #417955.
[Fixes bug #417955]
2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
* Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
fix the build.
2008-09-04 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Add "_" to the list of valid characters in a URL.
[Fixes bug #423408]
2008-09-04 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: If using OptimizedDoubleBuffer, ensure the clip
region gets set.
[Fixes bug #414166]
2008-09-04 Jonathan Pobst <monkey@jpobst.com>
* FontDialog.cs: When storing our font size from the starting font,
use SizeInPoints instead of Size in case Size is a different unit
from Points.
[Fixes bug #416489]
2008-09-04 Jonathan Pobst <monkey@jpobst.com>
* FileDialog.cs: When enter is pressed on a SaveFileDialog and we
don't use it for anything else, check if a directory is highlighted.
If it is, navigate into it.
[Fixes bug #422087]
2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: When acquiring a BindingManagerBase for the first time,
check that the specified property actually exists in the data source,
and throw an ArgumentException if that's not the case - this is only
done for this scenario, since for later cases (such Position changes)
we throw different exceptions (match .Net).
2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
* ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
properties.
[Fixes bug #418684]
2008-09-03 Neville Gao <nevillegao@gmail.com>
* StatusBar.cs: Control enabled to support accessibility.
[Fixes bug #419079]
2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: When connecting the event handler for the "Changed"
event for the property, only do it for PropertyManager, and not for
CurrencyManager - this is exactly what does .Net, totally ignoring any
change in the property of the elements of a list.
Fixes the tests.
2008-09-02 Jonathan Pobst <monkey@jpobst.com>
* XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
to Windows when creating a window, as we fake MDI stuffs.
[Fixes bug #421858]
2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
* TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
change takes effect.
2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
[Fixes bug #419001]
2008-08-27 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Raise CellContentClick event.
[Fixes part of bug #420351]
2008-08-27 Mario Carrion <mcarrion@novell.com>
* ScrollBar.cs: Control enabled to support accessibility.
[Fixes bug #416759]
2008-08-27 Mario Carrion <mcarrion@novell.com>
* ComboBox.cs: Control enabled to support accessibility.
[Fixes bug #416663]
2008-08-27 Mario Carrion <mcarrion@novell.com>
* ListBox.cs: Control enabled to support accessibility.
[Fixes bug #416640]
2008-08-27 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Don't suppress the TextChanged event when changing
the SelectedIndex.
* ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
and re-raise it.
[Fixes bug #420673]
2008-08-26 Jonathan Pobst <monkey@jpobst.com>
* ErrorProvider.cs: Fix a regression NRE when setting properties
for a control before it has a parent.
[Fixes bug #420305]
2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Use the BindingManagerBase.Current value to obtain
connect the property "Changed" event, instead of using the data
sources - this is useful when the property specifies actually a
multiple objects path.
Fixes part of #417973.
2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* RelatedPropertyManager.cs: PropertyManager instances associated to a
nested properties should return not the properties of the data source
itself, but the properties of the type of a specific property in the
data source - match .net.
2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
* ListBox.cs (IntegerCollection): To avoid duplication, moved code for
AddRange overloads into AddItems method, and added missing NULL check.
Added extra argument check to RemoveAt for compatibility with MS.
Modified IList implementation of Add, Contains, IndexOf and Remove to
throw an ArgumentException if item is not an int. Modified IList.Insert
to throw a NotSupportException instead of an Exception. Implemented
ICollection.
(ObjectCollection): To avoid duplication, use AddItems method from
AddRange overloads. On 1.0 profile, first perform NULL check on items
in AddItems.
2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
* Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
#419087.
2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs : comment out some Console.WriteLine().
2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
even if premises are not filled. Also XLookupString() was not
receiving correct input, which blocked precise input handling
on non-XIM mode.
2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When calling OnCacheVirtualItems, cast to the right
type of delegate, instead of EventHandler - this was causing a type
cast exception in all apps handling this event.
Fixes #417876.
2008-08-20 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDownItem.cs: Always raise DropDownOpening in
ShowDropDown to give the user a chance to dynamically add
drop down items. [Step 1 of fixing bug #417877]
2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
had any mouse motion since the call to StartDrag, to match the dnd
behaviour of .net.
Fixes part of #381876.
2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* XplatUIX11.cs: Only do the children control bounds check for EnterNotify
if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
Also, if we are actually moving into a different window after
grabbing, generate a LeaveNotify event for the previous window, since
we need to fire the leave events until the grab ends, not when
actually moving outside of the control.
2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
events only for client windows was wrong - we need to compare the
client window against the window receiving the EnterNotify event, not
against zero (since client window is never Zero, btw).
This prevents having unnecessary handling of EnterNotify events for
non-client windows when a gran begins.
2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
MouseMove/MotionNotify events at all (which should only happen after
MouseUp/ButtonRelease, as .Net does).
This avoids firing an extra and unnecessary MouseMove event just after
every MouseDown event.
2008-08-19 Jonathan Pobst <monkey@jpobst.com>
* LinkLabel.cs: Always clear any previous links when LinkArea
is set. [Fixes bug #410709]
2008-08-19 Jonathan Pobst <monkey@jpobst.com>
* ToolStripProfessionalRenderer.cs: Revert last change.
* ProfessionalColorTable.cs: For Classic, use SystemColors.Window
for ToolStripDropDownBackground.
2008-08-19 Jonathan Pobst <monkey@jpobst.com>
* ToolStripProfessionalRenderer.cs: Use Window color for the
background of dropdowns to match .Net when the user is not
using the default white. [Fixes bug #418108]
2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
* XplatUIWin32.cs : SetTimer() used to set wrong window handle and
it caused timer registration twice. Fixed bug #418107.
2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
[Correction: This is the actual change to X11Dnd issue, not the
previous one, which was actually a different issue.]
* X11Dnd.cs: Increase the interval for the Timer, to not fire our
pseudo motion HandleMouseOver method so aggresive. Also, don't call it
when the pointer is actually in motion, but only when the pointer
seems to stop (as .net does).
Fixes part of #381876.
2008-08-18 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Fix CopyTo implementation.
[Fixes bug #409169]
2008-08-18 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
drawing a ComboBox's background. Fixes bad disabled rendering when
the control is not at 0,0.
[Fixes bug #416063]
2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
ComponentModel layer, which will properly prioritize the attributes.
Avoids wrong prioritization of duplicate attributes when retrieving
the converter and editor.
[Fixes bug #417729]
2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* XplatUIX11.cs: Increase the interval for the Timer, to not fire our
pseudo motion HandleMouseOver method so aggresive. Also, don't call it
when the pointer is actually in motion, but only when the pointer
seems to stop (as .net does).
Fixes part of #381876.
2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Perform stricter check for the ParentEntry's
PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
implementation.
[Fixes bug #417567]
2008-08-14 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
Fixes #396983. Properly fix ActiveWindow trackin and do not
prematurely show POPUP windows.
2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* XplatUIX11.cs: Handle the obscured regions while scrolling using
GraphicsExpose event, processing it just after we copy the scrolled
area. This ensures that the next calls to ScrollWindow will copy
regions already updated, and the scrolling will be smooth. Also remove
the code that was trying to detect the obscured regions, since we are
not using it anymore (too slow).
2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: Fix the -temporary- broken selection in ListBox for
MultiExtended mode, by separating some logic between the ctrl/shift
handling. Also ignore any MouseMove events generated together with
MouseDown events - we are only interested in the real motion event.
Fixes part of #414963.
2008-08-08 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Guard against an AOORE when checking if a cell
is selected. [Fixes bug #414143]
2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Check if current property is a ICustomTypeDescriptor
and not the parent one (the propertyowner). Fixes the behavior of
GetConverter/GetEditor.
[Fixes bug #415452]
2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
[Fixes part of bug #415452]
2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: ITypeDescriptorContext should be relative to the parent
GridEntry, not the current.
[Fixes bug #413896]
2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
* TextBoxBase.cs: De-internalize max_length field.
* RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
share the same logic.
[Fixes bug #414454]
2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: Selection changes made in the MouseDown handler should
use the *Core versions of selection in SelectedIndices collection,
since the SelectedIndexChanged/SelectedValueChanged events are fired
until we get a MouseUp event, and thus we need to separate the logic
from the events, as done in the keyboard navigation. Also, fire those
selection events from keyboard navigation in SelectionMode.None, even
if we don't have a selection, as .Net does.
2008-08-01 Jonathan Pobst <monkey@jpobst.com>
* ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
last change introduced when an item is clicked but isn't on a toolstrip.
2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBindingHelper.cs: When looking for an object's properties, check
if it implements ICustomTypeDescriptor, in which case we should
resolve the propertu based on its GetProperties method, not in its
actual properties. This is what .Net seems to do.
Fixes a UsingWebBrowser problem during initialization.
2008-07-31 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
sitting on a MenuStrip.
2008-07-31 Jonathan Pobst <monkey@jpobst.com>
* ToolStripButton.cs: If we "click" a top button on a menustrip that has
no children with the keyboard, we need to release the keyboard capture.
[Fixes bug #413567]
2008-07-31 Jonathan Pobst <monkey@jpobst.com>
* ToolStripMenuItem.cs: If we "click" a top level menu item that has
no children with the keyboard, we need to release the keyboard capture.
[Fixes bug #413567]
2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
the GTK+-based implementation of VisualStyles.
* ThemeWin32Classic.cs: Exposed various layout values for use in the
GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
TrackBarHorizontalTrackHeight.
2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
* TabControl.cs: Added hot style handling for the scroll buttons.
right_slider_state, left_slider_state are now of type PushButtonState to
allow for a hot state. Added tracking of the mouse button being held down
on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
LeftScrollButtonArea.
* Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
TabControlGetRightScrollRect.
2008-07-30 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
runtime errors.
2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
* Form.cs: Ensure that we reset the shown_raised flag after
the form is closed, so that we raise the show events the next
time the form is shown.
[Fixes bug #413141]
2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
* Form.cs: Ensure closing events are raised only once.
[Fixes bug #413143]
2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
* X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
so that we can successfully generate the LParam in-place instead of
in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
navigation for menus.
2008-07-30 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: When montion don't set the keyboard navigation state to
'navigating'. Fixes bug #411356.
2008-07-30 Everaldo Canuto <ecanuto@novell.com>
[Fixed remaining issues of #406773 (#1)]
* MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
* MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
MainMenu (already done) and ContextMenu creation.
* ContextMenu.cs: Create tracker on construction.
2008-07-30 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
possible to instantiate MenuTracker without GrabControl.
2008-07-30 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
* MainMenu.cs: Set GrabControl on SetForm using current form.
2008-07-30 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Chage grab_control to GrabControl and make it public.
2008-07-30 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Check if menu is activated before deactivate it in
ProcessShortcut.
2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
* TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
ColumnStyle.cs:
Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
- One style instance can only participate in a single style collection.
- Styles can request their owner to layout whenever their properties
change.
[Fixes bugs #412583 and #412582]
2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
* X11Keyboard.cs: Implement the generation of the LParam for
all keyboard messages.
[Fixes bug #378728]
2008-07-29 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Don't let the user set TopIndex so high that it
scrolls up far enough to show empty items.
[Fixes bug #412728]
2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ThemeWin32Classic.cs: Actually commit the changes to fix #410880
(I'm an idiot and forgot to commit the actual changes, as well as
specify the right file, which is this one, not ListView.cs).
2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Don't draw ListViewSubItem instances from
DrawListViewItem - we need to reuse the main item's drawing for the
first sub item in case owner draw is true, but wants the system to
do the default draw for the first sub item, without incurring in a
recursion problem.
Fixes #410880.
2008-07-28 Jonathan Pobst <monkey@jpobst.com>
* ToolStripButton.cs: Update Checked for CheckOnClick before
raising the Click event. [Fixes bug #412505]
2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
* Form.cs: Remove some seems leftover code for non-TopLevel's
CreateParams, which is breaking ClientSize sizing, because it
removes the border window styles.
2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Invalidate the View when the PropertyTab
changes.
2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
* WebBrowser.cs: Removed debug output.
2008-07-25 Jonathan Pobst <monkey@jpobst.com>
* FileDialog.cs: Apply patch from Ernesto to clean up some
dialog messages.
2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
* TableLayoutPanel.cs: Perform layout on GrowStyle change, so
that the change has an immediate effect.
2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
* ScrollableControl.cs: Update PerformLayout calls to include
provide the name of the property that changed.
2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
* TableLayoutPanel.cs: Draw relative to the DisplayRectangle
location. Fixes drawing of border and cell borders if scrollable.
2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
* ScrollableControl.cs: Perform layouting after the AutoScroll
properties have changed, so that the changes have immediate
effect.
[Fixes bug #409090]
2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs: Non Client area is actually Client such in the
case of NotifyIcon, so double check WholeWindow == ClientWindow
when adding an expose.
[Fixes bugs #324237 and #357022]
2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
* TableLayoutPanel.cs: Invalidate after layouting, so that we
repaint the cell borders.
2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridTextBox.cs: Stop filtering messages prior to our
disposal to avoid unexpected ObjectDisposedExceptions.
2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
* TableLayoutPanel.cs: Layout on Row/Column count change.
2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
* ListViewItem.cs: Changed binary serialization to match MS. Fixes
bug #409351.
* PictureBox.cs: When ImageLocation is set to null or an empty string,
only set image to null if it was previously initialized from an url
(or using ImageLocation). In ImageLocation, load specified image
asynchronously if WaitOnLoad is false. Added support for local file
paths to LoadAsync, and added missing argument check.
2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DateTimePicker.cs:
* ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
order to set the value as required (which means: when selection
changes for a part being edited, and not before that if not needed).
Also use an enum to describe which part are we using, and use the
selection as a property in PartData, in order to notify the
DateTimePicker owner that we need to end the current edit.
Fixes #383462.
2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridTextBox.cs: Validation should be performed only if we
are focused. We can lose focus for example if the Return key is used
to set the entry and there is an error. When the message box is
displayed we would have validate on click in the message box.
2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
in order to determine that we are expandable is wrong. There was a bug,
now fixed, in TypeDescriptor that was causing the wrong converter to be
returned which caused GetPropertiesSupported == false in most cases.
[Fixes bug #409027]
2008-07-15 Jonathan Pobst <monkey@jpobst.com>
* ImageList.cs: Fix ICollection.CopyTo implementation for
ImageListCollection. [Fixes bug #409169]
2008-07-14 Jonathan Pobst <monkey@jpobst.com>
* MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
WorkingArea so that menus can appear on the second monitor
when one has dual monitors.
2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
Fixes build.
2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TextBox.cs: Implement navigation support for auto complete in
TextBox, as well as refactor the code to show the auto complete window
when receiving a WM_CHAR message, instead of TextChanged, since
autocomplete itself should be able to set the Text a lot of times and
finally only typing should show it, not changes from code.
2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TabControl.cs: When expanding the selected tab, don't adjust the
width if alignment is Right, since it has a different offset than 0,
as opposed to the other alignments.
Fixes the selected tab not being painted at all with alignment = Right
and using FillToRight size mode.
2008-07-14 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
2008-07-14 Jonathan Pobst <monkey@jpobst.com>
* NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
values from the textbox to the boundary values. [Fixes bug #409026]
2008-07-14 Jonathan Pobst <monkey@jpobst.com>
* TreeNodeCollection.cs: We were copying one too many elements when
doing our array copy. Fixes a crash when RemoveAt is called.
[Fixes bug #408999]
2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TabControl.cs: When doing the layout and need to call FillRow -using
FillToRight size mode-, use the overload receiving a bool param
indicating whether we need to do a vertical or horizontal calculation.
Fixes part of #399583.
2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TextBox.cs: When painting, use the value returned by
GetLastVisibleItem instead of using the cached last_item field, since
there could be a desynchronization between the layout and the
painting. Fixes a AOOR exception in auto complete mode.
2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
NonClientAreaEnabled until our VisualStyles is modified to allow it.
2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
* TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TextBox.cs: When focus is lost, if the auto complete listbox is
visible, hide it.
2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
* InternalWindowManager.cs: HandleSizing: Implemented a better minimum
tracking size for tool windows.
* Theme.cs, ThemeWin32Classic.cs : Extracted
ManagedWindowSpacingAfterLastTitleButton.
2008-07-11 Jonathan Pobst <monkey@jpobst.com>
* ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
They are bit-rotted and have always been listed as "unsupported".
2008-07-11 Jonathan Pobst <monkey@jpobst.com>
* PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Fixed minimized window height adjustment.
2008-07-10 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Make sure last_item_visible gets reset before we try
to do a layout due to scrollbars appearing or disappearing.
[Fixes bug #408139]
2008-07-10 Jonathan Pobst <monkey@jpobst.com>
* XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
for different window themes. [Fixes bug #339140]
2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
* ThemeWin32Classic.cs: Implemented minimized window border width properly,
in ManagedWindowBorderWidth.
2008-07-10 Jonathan Pobst <monkey@jpobst.com>
* InternalWindowManager.cs: Change MouseMove to take a point, so
we can use the same point later on.
* MdiWindowManager.cs: Store point sent to MouseMove so we can
later reset to it. On Windows, the Cursor.Position had already
changed by the time we were resetting to it.
[Fixes bug #363239]
2008-07-10 Jonathan Pobst <monkey@jpobst.com>
* InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
are inactive.
* ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
user requested it.
[Fixes bug #398686]
2008-07-10 Jonathan Pobst <monkey@jpobst.com>
* MdiWindowManager.cs: Double-clicking on the title bar should not
maximize a MDI form if MaximizeBox = false.
2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Fixed a warning.
2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Fixed warnings and formatted.
2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
implementation produces a better result.
2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
windows.
2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
* Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
cannot be used from the ThemeEngine constructor.
* ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
Application.VisualStylesEnabled because it does not work on X11.
2008-07-09 Jonathan Pobst <monkey@jpobst.com>
* StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
that we did not always check for, as well as fixes to the IList
implementations. [Fixes bug #402703]
2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
* IDeviceContext.cs: Added Dispose.
2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
* Control.cs: Added OnSizeInitializedOrChanged.
* Form.cs: OnLoadInternal: Added a call to
Control.OnSizeInitializedOrChanged.
* InternalWindowManager.cs:
* HandleTitleBarMouseMove: No longer invalidates the parent window.
* DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
* TitleButton: Added Entered.
* TitleButtons.MouseMove: Added handling of TitleButton.Entered.
* MdiWindowManager.cs:
* HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
move over the maximized title buttons causes a change.
* IsActive: Can now be called before the window is added to a MDI parent.
* Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
* ThemeVisualStyles.cs: Implemented proper managed window rendering.
* ThemeWin32Classic.cs:
* Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
* DrawTitleButton takes a new form parameter.
* Added ManagedWindowTitleButtonHasHotElementStyle,
ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
* ThemeEngine.cs: ThemeVisualStyles is now selected if
Application.EnableVisualStyles has been called, even if the current system
configuration does not support rendering with Visual Styles.
* ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
Styles should not be used.
2008-07-08 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
ComboBox in FormsTest.
2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
* ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
for fixed toolwindows.
2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
* Form.cs: SetBoundsCore: Added minimum size for minimized windows.
2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
* Control.cs: CreateControl just returns if the Control is diposed
and doesn't throw ObjectDisposedException.
[Fixes bug #406566]
2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
* Control.cs: Do not create the control if the parent isn't created
yet, e.g in the case of a parented form on which .Show is called.
It will be created when the parent is made visible/created.
Improves #402446.
2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
* Form.cs: Avoid recursively calling OnSizeChanged due to recursive
WM_WINDOWPOSCHANGED caused by the layouting code on win32.
[Fixes bug #406786]
2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
* Form.cs: When disposed set owner to null. Improves #402446.
2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
* Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
use children's PreferredSize if in AutoSize mode and ExplicitBounds
if not.
* Form.cs: Take the Padding into account for the PreferredSize.
[Fixes bug #402849]
2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TabControl.cs: Since we don't support more than one direction in
TabControl rows alignment (this is, the row becomes the
bottom row when selected), make Direction return always 1. This way
the layout doesn't get confused about a bad calculation.
Fixes #399582.
2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
so that the wparam is properly set.
Fixes form moving in the test case in bug 402446.
2008-07-07 Jonathan Pobst <monkey@jpobst.com>
* FolderBrowserDialog.cs: If we can't find the SelectedPath, display
the full tree instead of nothing. [Improves bug #406584]
2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
* ThemeWin32Classic.cs: Adjusted minimized window painting.
2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
* InternalWindowManager.cs: No longer draws decorations for maximized MDI
children.
2008-07-04 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Add a null check when using CollapseAll on an
empty tree. [Fixes bug #406449]
2008-07-03 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Make OnMenuComplete internal so we can call it.
* MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
[Fixes bug #399321]
2008-07-03 Jonathan Pobst <monkey@jpobst.com>
* TabControl.cs: Handle Up and Down keys when TabControl is in
vertical alignment.
[Fixes bug #399585]
2008-07-03 Jonathan Pobst <monkey@jpobst.com>
* TabControl.cs: Invalidate when we remove a tab. Guard against
an AOORE when trying to remove a tabpage that is not owned by the
parent control.
[Fixes bug #399927]
2008-07-03 Jonathan Pobst <monkey@jpobst.com>
* ScrollBar.cs: Change the LargeChange calculation to be correct.
Ensure we are using LargeChange instead of large_change so we our
calculations are correct.
[Fixes bug #403122]
2008-07-03 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
we need to ensure the ColumnCount/RowCount gets set.
[Fixes bug #404851]
2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: When handling item navigation, if selection mode is
None, call EnsureVisible, since scrolling is normally handled by
selection, that we are not calling in this case.
Fixes #398345.
2008-07-02 Jonathan Pobst <monkey@jpobst.com>
* ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
a null check to our focus walking code. [Fixes bug #394332]
2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
* ComboBox.cs: Case missed in bug 379596 "Support item
navigation by entering text": On _close_ drop-down select
the first item matching the text in the textbox. [Fixes bug #397265]
2008-07-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Fix a crash when sorting by column headers,
mentioned in bug #404841. Remove some dead switch cases.
2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs:
* TextBox.cs: Implement AutoComplete support for ComboBox, which just
uses the AutoComplete support in the internal TextBox. Also TextBox
can store a reference to ComboBox, in case AutoCompleteSource is set
to ListItems (this is, ComboBox's items, and we don't want to pass an
additional collection).
2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Restore the initial value of bounds rect to
Rectangle.Empty, and is this value for Layout detection in virtual
mode. Fixes the tests.
2008-06-30 Jonathan Pobst <monkey@jpobst.com>
* XPlatUI.cs: Remove references to "new" X11 backend.
2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
* Control.cs: Add an internal virtual OnDragDropEnd method
to allow controls such as ListBox, which depend on a sequence
of MouseDown+Move+End events, to handle the lack of a MouseUp
when a DnD operation is started in MouseDown.
* ListBox.cs: If a DnD operation is started in MouseDown we won't
get a MouseUp, so reset our state whenever a DnD operation ends.
2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Clear the root griditem first thing when
new object/s is/are selected. Fixes some rare cases where
the View will get a paint request and won't know that the
grid is in the process of repopulating.
2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs, InternalWindowManager.cs:
If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
doesn't automagically update the FormBorderStyle, so we must
double check the CreateParams explicitly to determine if the
window is a toolwindow.
* ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
instead of doing custom checks.
Fixes toolwindows for the test case in bug #402446
2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
* Control.cs: Visibility of the control should be false
when the handle is destroyed in WmDestroy and not immediately
in Dispose(). This is effectively where the disposing process
ends even though the control is marked as Disposed immediately
after calling Dispose().
[Fixes bug #402446]
2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridTextBox.cs: Start monitoring the mouse clicks
when the textbox gets focus.
[Fixes bug #402704]
2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridTextBox.cs, PropertyGridView.cs:
- Alt + Down should show the drop down editor.
- Focus the editor when showing it
[Fixes bug #402710]
2008-06-25 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Fix from Andy for panel text for panels
that are not the first panel.
* StatusBar.cs: Ensure that the X coordinate of panels is always
stored. Fix IList implementation of StatusBarPanelCollection to
call the regular methods.
[Fixes bug #403599, #402165]
2008-06-23 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Fix position calculation for centered
text on status bar panels. [Fixes bug #402165]
2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
* Splitter.cs: Fix Splitter to:
- Work for arbitrary splitter size
- Handle MinSize and MinExtra properly
- Get rid of absolute positioning during drag and use relative
- Multiple other fixes
[Fixes bug #338966]
2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
* Cursor.cs: Show shouldn't hide the cursor.
2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: When invalidating, add some extra space to bounds,
since focus rectangle and selection can add some space and need to
take into account those small offsets - specially in Details view.
* ListView.cs: Instead of invalidate using item Bounds directly, call
item.Invalidate, to have the code centralized.
Fixes focused/selection garbage when selecting and deselecting items
that are close.
2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
mode we can check whether we have to force a Layout or not, and can
cache based on this, instead of avoiding caching all the the time. Do
this check in GetBounds and TextBounds.
Fixes selection in Details view.
2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Make HeaderControl internal, thus the theme engine can
get its *real* height instead of trying to infere it.
* ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
get the position of them, since it's in general a bad idea in general,
and because we can't do that in virtual mode. Instead get the first
visible item as well as item height, and draw them.
Fixes #400390.
2008-06-20 Jonathan Pobst <monkey@jpobst.com>
* ToolStripSplitButton.cs: We can't add in extra width if
the button is not AutoSize. [Fixes bug #401279]
2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
* PaddingConverter.cs:
- Implement conversion to InstanceDescriptor
- Handle "All" in CreateInstance by using the supplied
ITypeDescriptorContext.
[Fixes bugs #396076 and #396078]
Patch by Andy Hume <andyhume32@yahoo.co.uk>
Code contributed under MIT/X11 license.
2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
* ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
ButtonBase.cs:
Add Category attributes.
Code is contributed under the MIT/X11 license.
2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
* Form.cs:
- Fix a NRE when unparenting a form.
- Do not recreate or destroy a parented form when
unparenting.
2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TextBox.cs: Implement basic support for AutComplete with custom
sources.
2008-06-18 Jonathan Pobst <monkey@jpobst.com>
* ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
DropDownButtonBounds should be from the origin of the button, not the
ToolStrip. [Fixes bug #401279]
2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
* X11DesktopColors.cs: Clear GTK_MODULES environment variable before
running gtk_init_check. This prevents GAIL from loading
unnecessarily, which was breaking UIA support. Initial fix for bug
#375987.
* Application.cs: Add UIA support to Winforms. New static constructor
uses reflection to initialize UIAutomationWinforms assembly. Added
PreRun event so UIA can initialize before the mainloop starts, and
FormAdded event so UIA can provide a11y support for new Forms in an
Application.
2008-06-16 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: When binding to a dataset, subscribe to table
and column change events. Unsubscribe to these when we clear bindings.
[Fixes bug #399601]
2008-06-14 Everaldo Canuto <ecanuto@novell.com>
[DataGrid drawing refactory]
* DataGrid.cs: Fix the caption size, we need one pixel more for divider.
* DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
must be handle by Theme, now it call DataGridPaintColumnHeader.
* DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
test cases must be also fixed because it checks for wrong size.
* ThemeWin32Classic.cs:
- Draw the bottom line of grid caption.
- Prevent to draw caption text when it is empty.
- Use CPDrawBorder3D for 3D efects to simplify code.
- Uses 3D (when not flat) to paint corner shared between row and column
header.
- Fix header drawing issues on win32, now borders are drawing.
- Fix column header paint issues to mimic win32.
- Adjust header drawing for last column, like first one it must be draw
different.
- Added DataGridPaintRowHeaderStar to draw star like .net does, it is
not an character.
- DataGridPaintColumnHeader created to draw column headers, it also
paint stuff right on Win32.
- Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
class.
* Theme.cs:
- DataGridPaintRowHeaderStar method added.
- DataGridPaintColumnHeader method added.
2008-06-13 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Don't reset to Dock style layout if DockStyle is
set to none. [Fixes bug #399316]
2008-06-12 Everaldo Canuto <ecanuto@novell.com>
* Win32DnD.cs: Fix the check for control not equal null.
Fixes bug #341420 and #381886.
2008-06-12 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRowCollection.cs: Update the indexes of rows after
one has been removed.
* DataGridViewSelectedRowCollection.cs: Add internal clear method.
* DataGridViewSelectedColumnCollection.cs: Add internal clear method.
* DataGridView.cs: Add support for deleting rows via Delete key, deleting
rows for the Rows collection, or deleting rows from the bound DataSet.
2008-06-12 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Listen to a DataSet's changed event even
when autogeneratecolumns is false. Refactor the changed event's
add row code to use the same as the existing add row code.
[Fixes bug #399601]
2008-06-11 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
much any time the caret moves and there is text, not just when
the selection changes as one would think.
* RichTextBox.cs: Override RaiseSelectionChanged and fire
SelectionChanged.
[Fixes bug #397271]
2008-06-11 Jonathan Pobst <monkey@jpobst.com>
* FontDialog.cs: Forward ListBox keyboard events to the ListBox
instead of trying to duplicate the code.
* ListBox.cs: Make method internal so we can send keyboard events.
[Fixes bug #398344]
2008-06-11 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: When pasting and checking the max length,
subtract the selected text length (the text we will be replacing) from
the document length.
* TextControl.cs: Ensure every character insertion is reflected in
charcount, so max length will work properly.
[Fixes bug #398605]
2008-06-11 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Ensure scrollbars are updated when a single
column listbox with an already set top-index is created.
[Fixes bug #398342]
2008-06-11 Jonathan Pobst <monkey@jpobst.com>
* FontDialog.cs: Typing in the font/style textboxes should search
the list boxes case-insensitively. [Fixes bug #398343]
2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
* ThemeWin32Classic.cs: Managed window title bar layout now uses actual
widths of icon and buttons instead of hard coded values.
2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: When SelectionMode is None, clicking an item should move focus
as well as generating a SelectedIndexChanged event, just like .Net does
-surprise-.
Fixes #398345.
2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: When navigating items visually, use FocusedItem as the
reference point instead of SelectedIndex, since even in
SelectionMode.None we need to support navigation, and in that case we
just can't use SelectedIndex.
Fixes part of #398345.
2008-06-10 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Make a SetBoundsInternal that avoids the new
SetBounds code.
* ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
SetBoundsInternal instead of SetBoundsCoreInternal.
2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
* ScrollableControl.cs: Use SetBoundsCoreInternal instead of
SetBounds for the scrollbars.
2008-06-10 Andreia Gaita <avidigal@novell.com>
* HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
OnMouseMove, OnMouseOver, OnMouseUp
* HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
* HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
to the WebControl object to pass to new collection objects
* HtmlHistory.cs: Implement support for individual window histories.
* HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
GotFocus, LostFocus, OnLoad, OnUnload
* WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
ContextMenu
* WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
security level changes and context menu event support.
2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: Pressing Enter should close the dropdown listbox, just
as happens with Esc, patch my Andy Hume.
Fixes #396294.
2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
* MdiWindowManager.cs: DrawMaximizedButtons now uses
ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
* Theme.cs: Made MenuButtonSize platform dependent. Added
ManagedWindowButtonSize.
* ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
* DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
Added support for rendering with VisualStyles.
2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
* ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
support for rendering the border with VisualStyles.
2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
* InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
the icon is not shown.
* ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
its own logic.
2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
* InternalWindowManager.cs: Draw minimized windows even if they don't have
borders.
2008-06-09 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
2008-06-09 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
[Fixes bug #397943]
2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: When snaping height -because of IntegralHeight set to
true- with ComboBoxStyle.Simple, set the height to PreferredHeight
if the requested height leaves the listbox area with *less* than the
required are to see one item. We were setting it to PreferredHeight
even for values matching the height for a single item.
Fixes #396297.
2008-06-06 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
2008-06-06 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Use property instead of field.
2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
* InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
null checks.
2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
* Theme.cs: Added #region around the managed window code. Made the managed
window methods abstract.
* ThemeWin32Classic.cs: Added #region around the managed window code.
2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
* InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
if it has borders.
* ThemeWin32Classic.cs: Removed HasBorders checks in
DrawManagedWindowDecorations.
2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
* InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
Extracted ManagedWindowGetTitleBarIconArea.
2008-06-05 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCellStyle.cs: Don't clone the font.
2008-06-05 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
also on 64 bit machinges. Fixes the BadWindow errors while scrolling
in 64 bit machines.
2008-06-05 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Correctly get converters for FormattedValue.
Use Format/FormatProvider before trying converters.
* DataGridViewCellStyle.cs: ApplyStyle should only apply things that
are 'set'. Change constructor to not use ApplyStyle since it wants
everything applied. Clone the Font.
* DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
ApplyStyle the rest.
2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: We need to calculate the scrollbars even if the handle
hasn't been created - this is needed when methods using scrollbars
info, such EnsureVisible, are called before control has been created.
Fixes #397272.
2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
only if the elements are defined.
2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
section. Also, when setting bounds, snap height as well as save the
requested height if Dock has any value affecting the height: Left,
Right and Bottom - important if using IntegralHeight as true.
2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
passed to SetBounds to reflect the new adjusted height (Integral-wise),
instead of doing that only in our SetBoundsCore override, since the
bounds cached can be the same as saved one and we could not get the
new height applied.
Fixes #396297.
2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
* Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
* XplatUI.cs: Added ToolWindowCaptionButtonSize.
* XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
ToolWindowCaptionButtonSize.
* XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
* MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
hard coded values.
* Theme.cs: Made DoubleClickTime plaform dependent.
2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
* Theme.cs: Made ToolWindowCaptionHeight platform dependent.
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
ToolWindowCaptionHeight.
2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
* InternalWindowManager.cs: The adjustment to ensure positive client area
sizes is now platform dependent (disabled on Windows).
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
RequiresPositiveClientAreaSize.
2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
* Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
* InternalWindowManager.cs: Changed IconicSize to use
SystemInformation.MinimizedWindowSize.
* XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
* XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: If the combobox is anchored both on top and bottom,
adjust height if IntegralHeight is true when calling SetBoundsCore (as
likely the height was modified even if Height wasn't specified in
BoundsSpecified parameter).
Fixes part of #396297.
2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
* InternalWindowsManager.cs: Changed minimum window size while resizing to
SystemInformation.MinWindowTrackSize.
* XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
* XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
* MenuItem.cs: Fixed Dispose.
2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
* ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
* DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
EnteredHeaderCell, PressedHeaderCell: Added.
* DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
* DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
theme a chance to override default painting.
* ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
* Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
ListView and DataGridView header rendering.
2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
* RichTextBox.cs: GetPositionFromCharIndex should return the
visual position of the character relative to the viewport.
[Fixes part of bug #396664]
2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Make HasCustomEditor check for EditStyle != None
and not just for the existance of an UITypeEditor. In some cases
there is an editor associated just to do PaintValue, but which
doesn't actually support editing.
[Fixes bug #396632]
2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
if needed, instead of 0 - this should help us in the corner case where
we have more than one item but we are only partially showing 1 item.
Fixes part of #374713.
2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* XplatUiX11.cs: When scrolling and detecting the obscured areas in a
control, return immediately if the any parent control's handle hasn't
been created or isn't visible, as well as avoiding creating the parent
Form if the handle hasn't been previously created.
Fixes tests.
2008-06-02 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutPanel.cs: Use border sizes when calculating the
panel's preferred size. [Fixes part of bug #396433]
2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
* SplitContainer.cs:
- Fix SplitterDistance to update only if needed.
- Make it force min and max validation.
- Handle properly mouse moves outside the resizeable area.
[Fixes bug #396232]
2008-06-02 Andreia Gaita <avidigal@novell.com>
* WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
(which also suppresses all popup dialogs). Throw NotSupported
exceptions for activex getters/setters.
* WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
StatusText, Version, GoSearch
* HtmlDocument.cs: Add DocType support
2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
* TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
[Fixes bug 396124]
2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
2008-06-02 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutPanel.cs: When calculating preferred size, use the
actual number of columns and rows, not what the user set them to.
[Fixes bug #396141]
2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
* Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
394311.
2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* XplatUIX11.cs: When detecting areas obscured in a control by other
toplevel windows while scrolling, return if the control hasn't a
container form.
Fixes some tests.
2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* XplatUIX11.cs: Properly detect the visible area of a control being
scrolled (obscured by other winforms controls and any X toplevel
windows), to mark as invalid the requested area to be scrolled that
isn't visible and thus can't be copied.
Fixes #324513.
2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: Compute the precise amount to vertically scroll when
using DrawMode.OwnerDrawVariable.
Patch by jkeymer (j.keymer@gmx.net).
2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
to avoid setting an invalid value for the verticall scrollbar
when navigating items. And, duh, also remove my silly debug messages
from previous commits.
Fixes #374713.
2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
* FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
make it MS compatible.
2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
- Allow the editing of entries even if their parent is read-only.
- Do not render expandable properties read-only.
- Refactor expansion checks form PropertyGrid into PropertyGrid.
2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
* ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
support for the hover style.
2008-05-29 Andreia Gaita <avidigal@novell.com>
* ContainerControl.cs: Check for null dead-end when traversing the tree
of parent controls.
[Fixes #394332, patch by Ernesto Carrea]
2008-05-29 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Fix a culture-dependent conversion to be the
constant that it is. Fixes #393981
2008-05-29 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
that the user probably doesn't want to set this.
2008-05-29 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Don't let the text size be bigger than
the control size for CheckBox/RadioBox.
[Fixes part of bug #394645]
2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Update the state of the sorting buttons in
the toolbar if PropertySort is set programatically.
2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
* GridItemCollection.cs: Add multiple items with conflicting names
support and also preserve name ordering.
[Fixes #395345]
2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
* GridItemCollection.cs: Revert my multiple items with same
name patch.
2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ScrollBar.cs: Scrollbars should only react to left-clicks, not right
or middle ones.
Fixes part of #393908.
2008-05-28 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDrowDown.cs: When using the Show () methods that have a
Control parameter, set the menu owner to that Control.
[Fixes bug #394345]
2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
[Fixes bug #362756]
2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
* GridItemCollection.cs: Refactor to support multiple items with the
same name.
[Fixes bug #394314]
2008-05-27 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: The 2.0 check for illegal cross thread calls in
Control.Handle were throwing an exception when we were getting
the Handle in order to invoke correctly. Created a private
version that does not contain this check.
[Fixes bug #394531]
2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Respect DefaultTabType.
2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
* ListView.cs: SPACE selects an item.
[Fixes bug #393023]
2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
* ListView.cs: Reset the search string whenever the items are
modified.
[Fixes bug #393020]
2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControl.cs: For the first added item PositionChanged is fired
_before_ ItemChanged, which leave us in a temporary invalid state - so
we need to set the selected index from ItemChanged handler *if* we
know that the first item has just been added *and* the items have been
actually added to the ListControl.
Fixes #369048.
2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TabControl.cs: Only clicks with the left button should be
handled.
Fixes #393908.
2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs:
* FIleDialog.cs:
* TextBox.cs: Expose an internal method in TextBox to restore the
original context menu, and call it from ComboBox to re-use it in the
combobox containing the file name in FileDialog.cs.
Fixes part of #393775.
2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
style.
2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
* ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
down button style.
2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: Minor correction to previous patch: PageDown should
also *try* to move by one item if the computed offset is negative,
just like the PageUp case.
2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: When navigating using PageDown/PageUp the navigation
should be done for at least 1 item, and not stay at the same item.
Fixes part of #374713.
2008-05-23 Jonathan Pobst <monkey@jpobst.com>
* FileDialog.cs: Add a FSEntryComparer, and use it to sort the
directories. [Fixes bug #393931]
2008-05-22 Andreia Gaita <avidigal@novell.com>
* WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
Don't fire events until the initial about:blank page has finished
loading. Clean up events.
2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
* XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
FocusIn() too. This should fix the issue on switching
scim keyboards.
2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs : set XIM font size to somewhat reasonable
number (ideally the input textbox size, but that could be
too messy).
2008-05-22 Jonathan Pobst <monkey@jpobst.com>
* ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
the ToolStripItem's TextChanged. [Fixes bug #393597]
2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TabControl.cs: When invalidating in SelectedIndex and we need to
inflate to take into account the border of the tabs, make sure that
the invalidated rect doesn't overflow the control bounds, since that
would avoid updating at all.
2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TabControl.cs: Don't substract scroller width from the row width,
since we need to take into account the total width of the control when
calculating the position of the tabs. This avoids showing scroller
when it is actually not needed.
Fixes part of #322325.
2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for TextBoxBase.
2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
* RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
2008-05-21 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Only paint the top left header cell if there
are columns.
2008-05-21 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: When binding to a BindingSource, get the underlying
list to bind to. [Fixes bug #345483]
2008-05-21 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Do not bind to collection properties.
[Fixes bug #337470]
2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
* Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
thumb style.
2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for ToolTip transparent background.
2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
* Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
background.
2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
* Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
checked styles.
2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
* TabControl.cs: Extended to handle the hot style.
2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
* Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
Extended UpDownBase code to handle hot and disabled styles.
2008-05-20 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Handle databinding to generic list type things.
[Fixes bug #325239]
2008-05-20 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCellCollection.cs: Add a method to find the cell
with the given DataPropertyName.
* DataGridViewColumn.cs: Track if the column was autogenerated or not.
* DataGridViewColumnCollection.cs: Add a method to clear all
autogenerated columns.
* DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
columns.
[Fixes bug #348082]
2008-05-20 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Don't try to update the RowTemplate with
a null CellTemplate.
2008-05-20 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewColumn.cs: Allow IsDataBound to be set internally.
* DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
* DataGridView.cs: Lots of fixes/enhancements to databinding to
a DataSet.
2008-05-20 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Remove invalidating implicit child controls when
control is invalidated. It was causing too many redraws on
controls with implicit scrollbars.
* ListView.cs: Listen to the Invalidated event and invalidate
child controls.
2008-05-20 Andreia Gaita <avidigal@novell.com>
* WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
* HtmlDocument.cs: Check for nulls
2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Control.cs: In ControlCollection.RemoveInternal, remove the
internal control before calling PerformLayout and OnControlRemoved,
which was leaving us in an invalid state and causing a X error (bad
match). Observe that Remove () call has the same order.
Fixes an X error changing ComboBoxStyle.DropDownStyle.
2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TabControl.cs: Don't paint by ourselved and instead let OnPaint
being fired if ControlStyles.UserPaint style is activated.
Fixes #371905.
2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Don't be so strict when setting the value -
do not check if what we set is what we get.
[Fixes bug #389245]
2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs: If there are no timers timeout should be 0
[Fixes bug #363522]
2008-05-19 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: As a followup to invalidating implicit children when
a control is invalidated, only invalidate them if they are in the
clip rectangle.
2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Implemented partial support for ToolTip.
2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
* ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
* GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
* XplatUIWin32.cs: Made Win32DeleteObject public.
2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Determine HasDefaultValue more strictly by using
PropertyDescriptor.ShouldSerializeValue.
[Fixes bug #391924]
2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
in the classic theme.
2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
* ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
ThumbPressed.
* Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
ScrollBarHasPressedThumbStyle.
2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
* TextRenderer.cs: Included some methods in the 1.1 profile.
2008-05-19 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: When we make a control visible, it may have been
previously visible and while it wasn't visible, the z-order of
things may have been shuffled, so the control needs to have its
z-order updated just in case. [Fixes bug #391518]
2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for GroupBox.
2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
* GroupBoxRenderer.cs: Included in the 1.1 profile.
2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
* XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
bug #389996; XSelectInput() behaved as mouse handler robber,
so remove extra call to it.
2008-05-15 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Simplify ControlCollection.Contains method.
2008-05-15 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRow.cs: Implement GetPreferredSize.
2008-05-15 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
2008-05-15 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
painting and edit control fixes.
2008-05-14 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs, DataGridViewCell.cs: Work around some external
checks to make sure we are in an actual row/col for top left header cell.
* DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
2008-05-14 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Use long instead of int when handling WParam from
mousewheel scrolling. Int was overflowing on Win64.
2008-05-14 Jonathan Pobst <monkey@jpobst.com>
* FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
flow panel without scrolling first, and then calculate the
scrolling based on the new layout. [Fixes bug #390149]
2008-05-14 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Invalidate after scrolling up when selected index
changes. [Fixes bug #390151]
2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: When setting mode to Simple *and* height hasn't been
set, default height to 150. I tried first with DefaultSize, but this
is not generating a SetBoundsCore call before handle creation time, so
we can take it into account. This is just what .net does.
2008-05-13 Jonathan Pobst <monkey@jpobst.com>
* XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
as it broke some stuff. Calberto is filing a bug for eno to
work with.
2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
to 0 is the current value is -1, and if style is not Simple, just
return, like .net does.
Fixes part of #374713.
2008-05-13 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
progress bar stuffs, use doubles instead of ints to prevent
overflow. [Fixes bug #389798]
2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
* XplatUIX11.cs, X11Keyboard.cs :
Significant refactoring on XIM support. Now IM engine UI
should show up, at mostly-correct preedit position.
- Eliminated use of FocusWindow, as it is never mapped
and hence blocks correct preedit position. XIC is now
created per window, and it must be destroyed too when
the window is destroyed.
- WM_QUIT messages should not be filtered even when hwnd
is zombie. Filtering it could cause endless loop.
- Preedit position must move only when the window is alive.
- Make it IDisposable and make sure to release XIM/XICs.
2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
* Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
XplatUIX11.cs, XplatUIWin32.cs :
fix for bug #325033 and #387693;
- WM_QUIT should not be sent when no running application
exists.
- SetTimer/KillTimer (especially on win32) should be
invoked for the window that the timer is/will_be attached.
- There could be unattached timers to a window when it's
started. For those timers, hold pending timers and when
a window is mapped, attach them to it.
- WaitForHwndMessage() could run into loop when
WM_SHOWWINDOW is handled before this method is called.
So, strictly check wm_showwindow state.
- Tick handler should not be invoked while one Tick handler
call is still running (introduced Busy state).
2008-05-13 Andreia Gaita <avidigal@novell.com>
* WebBrowserBase.cs: Override Internal alternative methods for
SetBoundsCore and OnResize instead of the protected ones.
* Control.cs: Move SetBoundsCore and OnResize implementations to
SetBoundsCoreInternal and OnResizeInternal, so they can be
overriden internally (WebBrowserBase needs to catch them but can't
override the protected methods without api compat problems)
2008-05-13 Andreia Gaita <avidigal@novell.com>
* WebBrowserBase.cs: Hiding away non-public overrides for api compat
2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs:
* ListView.cs: Remove debug messages.
2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: Don't do any calculation for simple mode if the listbox
area is empty. Also calculate scrollbars in Simple mode based in area
height and total number of items, not in MaxDropDownItems.
Fixes part of #371991.
2008-05-12 Jonathan Pobst <monkey@jpobst.com>
* PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
2008-05-12 Jonathan Pobst <monkey@jpobst.com>
* BindingSource.cs: GetListSortDescription is not public.
2008-05-12 Jonathan Pobst <monkey@jpobst.com>
* WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
2008-05-12 Jonathan Pobst <monkey@jpobst.com>
* HtmlElement.cs: Fix parameter names to match MS.
* HtmlWindowCollection.cs: Should not be sealed.
2008-05-12 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
button, because the thumb button will not get drawn if the scrollbar
is disabled. [Fixes bug #389262]
2008-05-12 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Handle End key for multi-column listboxen.
[Fixes bug #389266]
2008-05-12 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Fix algorithm to determine which column our item is in.
[Fixes bug #389265]
2008-05-12 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Invalidate when the listbox is resized.
[Fixes bug #389256]
2008-05-12 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: There is always at least one row in the ListBox (if
we are doing these calculations.) [Fixes bug #389253]
2008-05-12 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: There is always at least one column in the ListBox.
[Fixes bug #389250]
2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: When handle is created call UpdateComboBoxBounds to
ensure in Simple mode that the height is exactly the requested one.
Also add the ComboBoxListControl to the controls collection in Simple
mode even if handle hasn't been created.
Fixes part of #371991.
2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
our ComboBox owner instead of giving it back to the previous control (
as done in other controls). Also remove the empty override of Select
method, since we want to be selected *and* give focus to our owner.
This should let the user do keys-navigation in Simple mode.
2008-05-10 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
problems with rapid scrolling of treeviews. Fixes #381084
2008-05-10 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Deactivate the active window before
activating the desired window. Completes fixing #386504
2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When calculating scrollbars, set horizontal scroll bar
SmallChange to the item size width plus the padding, to match .net.
2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* FileDialog.cs: Apply the custom filter typed by the user in the file
name combobox as much as possible while navigating in the file dialog.
Fixes #385261.
2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Actually use NullValue if the retrieved value of
data source is null or DBNull. Makes a test pass.
2008-05-09 Jonathan Pobst <monkey@jpobst.com>
* ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
* MimeIcon.cs: Provide a way to get icons from resources.
2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: When the value retrieved from the control to be assigned
to the data source is null, actually use the 2.0 DataSourceNullValue
value. Make pass a data binding test.
2008-05-08 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: We need to invalidate implicit children even when
invalidate is called with invalidatechildren = false. (Implicit
children are really part of the parent.)
* ListView.cs: Double-buffer internal child controls for less
flicker.
* ThemeWin32Classic.cs: Remove an extra nested loop in drawing
owner ListView subitems for greatly increased performance.
[Fixes bug #388477]
2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
* FileDialog.cs: When the user types a wildcard character in the
filename combobox, update the contents of the folder using the text as
a filter.
Fixes part of #385261.
2008-05-08 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Various fixes for MultiColumn listboxen.
[Fixes bug #388114]
2008-05-08 Andreia Gaita <avidigal@novell.com>
* HtmlElement.cs: Implement Style property
2008-05-08 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Respect checkboxes when measuring item size.
* ThemeWin32Classis.cs: When drawing list items, don't draw
text outside of the item's bounds to prevent overlapping.
(.Net actually overlaps, but that's just silly.)
[Fixes bug #388117]
2008-05-08 Everaldo Canuto <ecanuto@novell.com>
* NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
Gert Driesen. Fixes bug #324830.
2008-05-07 Everaldo Canuto <ecanuto@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
method implemented.
2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: When calling IsSynchronized, return the value of
the related IList list.
2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
make a test pass.
2008-05-07 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
navigation to scroll the grid if the current cell is not visible.
2008-05-07 Andreia Gaita <avidigal@novell.com>
* HtmlElement.cs: Implement TabIndex
2008-05-07 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
properties, even when there are no items.
[Fixes bug #387611]
2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
* NativeWindow.cs: Add support for multiple handles per window.
* NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
directly - use FromHandle instead.
[Fixes bug #374660]
2008-05-07 Andreia Gaita <avidigal@novell.com>
* HtmlElement.cs: Implement InnerHTML setter
2008-05-07 Andreia Gaita <avidigal@novell.com>
* HtmlDocument.cs: Implement Focused
2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
methods, as well as add messages to the exceptions.
2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: Setting DataSource should only reset DataMember if
the previous value was null (make pass a not working test).
2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: When EndInit call is postponed and is called until
DataSource.EndInit is called, remove the handler for data source.
2008-05-06 Jonathan Pobst <monkey@jpobst.com>
* ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
2008-05-06 Jonathan Pobst <monkey@jpobst.com>
* ToolStripManager.cs: Store references to toolstrips as
weak references so they do not prevent forms from getting collected.
[Fixes bug #386483]
2008-05-06 Jonathan Pobst <monkey@jpobst.com>
* TrackBar.cs: We can't set ResizeRedraw because it isn't set
on .Net. So do the same thing in WndProc.
2008-05-06 Jonathan Pobst <monkey@jpobst.com>
* TrackBar.cs: Commit patch from Andy Hume that corrects
the clickable areas to better match .Net.
[Fixes bug #387074]
2008-05-06 Jonathan Pobst <monkey@jpobst.com>
* TrackBar.cs: Commit patch from Andy Hume that adds the
ResizeRedraw control flag so the track bar repaints itself
when it is resized. [Fixes bug #387072]
2008-05-06 Jonathan Pobst <monkey@jpobst.com>
* TrackBar.cs: Commit patch from Andy Hume that adds better
support for keyboard navigation when the TrackBar is vertical.
[Fixes bug #387071]
2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: Implement ISupportInitializeNotification support.
2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for ToolBar.
2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
* ToolBar.cs: Made the Vertical property internal.
2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for TrackBar.
2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
* ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for UpDownBase.
2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
* Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
Extracted Theme.UpDownBaseDrawButton.
2008-05-05 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
removed from the static toolstrips collection in ToolStripManager
when they are disposed. Provides a workaround for bug #386483.
2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Read-only properties with Editor with
UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
[Fixes bug #384184]
2008-05-05 Jonathan Pobst <monkey@jpobst.com>
* MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
the menu key and there are no items on the menu.
[Fixes bug #386644]
2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
* Control.cs: Avoid calling ToString on a string.
* Form.cs: Avoid calling ToString on a string. Found using Gendarme.
* GroupBox.cs: In FlatStyle property throw, not just create, the
exception. Avoid calling ToString on a string.
* ProgressBar.cs: Avoid calling ToString on a string.
* ScrollBar.cs: Avoid calling ToString on a string.
[All issues were found using Gendarme]
2008-05-05 Everaldo Canuto <ecanuto@novell.com>
* NotifyIcon.cs: Prevent click events to be trigger after double click
events. Fixes remaining issues of bug #324832.
2008-05-05 Everaldo Canuto <ecanuto@novell.com>
* NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
to mimic win32 behavior. Partially fixes bug #324832.
2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: Implement Find methods.
2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: Implement Sort, ApplySort overloads, and
RemoveSort methods.
2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBindingHelper.cs: When calling GetListItemProperties and the
passed object is ITypedList, return the result of
ITypedList.GetItemProperties instead.
2008-05-04 Everaldo Canuto <ecanuto@novell.com>
* LinkLabel.cs: Set default value of name on constructor of Link class
only for 2.0 profile.
2008-05-04 Everaldo Canuto <ecanuto@novell.com>
* LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
Fixes remaining issues of bug #346154.
2008-05-04 Everaldo Canuto <ecanuto@novell.com>
* LinkLabel.cs: Set a default value for name on internal contructor of
Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
2008-05-04 Everaldo Canuto <ecanuto@novell.com>
* LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
and refer all instances to owner.links. Partially fixes #346154.
2008-05-03 Everaldo Canuto <ecanuto@novell.com>
* LinkLabel.cs: Fix linkarea values for empty text, must have start and
length equal zero. Also called CreateLinkPieces in constructor. It fixes
the LinkLabel test 'TestLinkArea'.
2008-05-03 Everaldo Canuto <ecanuto@novell.com>
* Form.cs: Remove menu before close form to prevent form to be not gaced.
[Fixes #386460]
2008-05-03 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
[Fixes #386463]
2008-05-03 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
[Fixed bug #357004]
2008-05-03 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Remove unused ProcessCmdKey method.
2008-05-03 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
[Fixes bug #375398]
2008-05-03 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
of bug #367492.
2008-05-03 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Check if mouse down comes from menu, we need it because
sometimes we open a conext menu on mouse down of some controls and the mouse
up is dispatched to menu and dont need to. It fix remaining issues of
#363711 and other problems related to menu mouse click events.
2008-05-02 Everaldo Canuto <ecanuto@novell.com>
* MonthCalendar.cs: Implemented "Go to today" context menu, also changed
some var names to better fit changes, now we have month_menu and today_menu
vars. Fixes bug #363711.
2008-05-02 Everaldo Canuto <ecanuto@novell.com>
* MonthCalendar.cs: Handle every right mouse click to open context menu,
right now the default month menu but it will be change to have "Go to today"
menu.
2008-05-02 Jonathan Pobst <monkey@jpobst.com>
* FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
2008-05-02 Everaldo Canuto <ecanuto@novell.com>
* ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for TreeView.
2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
* Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
2008-05-02 Jonathan Pobst <monkey@jpobst.com>
* OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
2008-05-02 Jonathan Pobst <monkey@jpobst.com>
* FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
Implement 2.0 SP1 stuffs.
2008-05-02 Jonathan Pobst <monkey@jpobst.com>
* FileDialog.cs: Implement 2.0 SP1 stuffs.
2008-05-02 Jonathan Pobst <monkey@jpobst.com>
* Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
Implement CanEnableIme property. (2.0 SP1)
2008-05-02 Jonathan Pobst <monkey@jpobst.com>
* BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
from the 2.0 API.
2008-05-02 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Provide an internal way for a control to override
the setting of Height.
* DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
set height using new method.
2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
* ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for StatusBar.
2008-05-02 Jonathan Pobst <monkey@jpobst.com>
* DataObject.cs: Add the other IDataObject interface.
2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
* ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
2008-05-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
* ListView.cs: Hide non-public API.
* MaskedTextBox.cs: Remove extra attribute.
2008-05-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewImageCell.cs: Use formatted value instead of value
to calculate preferred size.
2008-05-01 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Move some initialization around so that selected_indices
is not accessed before it is created.
2008-05-01 Jonathan Pobst <monkey@jpobst.com>
* InputLanguageCollection.cs: Implement the collection better.
[Fixes bug #385506]
2008-05-01 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDownItem.cs: Get the correct event object for
DropDownItemClicked.
* ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
[Fixes bug #385475]
2008-05-01 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRowCollection.cs: We don't currently support shared
rows. Should fix test failures caused by previous commit.
2008-04-30 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
datagridview gets set. Only paint cells in visible columns.
* DataGridViewCell.cs: Draw border after cell content.
* DataGridView.cs: Invalidate after setting some properties. Only
use visible columns. Fit hit test bug with areas in the col/row header
area but not in a row or col. Implement UpdateCell/Row methods.
2008-04-30 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewElement.cs: Don't throw NIEX.
* DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
* DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
* DataGridViewCheckBoxColumn.cs: Implement ToString.
* DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
* DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
if the user filled in the formatting Value, use it.
2008-04-30 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
to a string.
2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: Some corrections to Filter property, as well as
setting it for our list when resetting it.
2008-04-29 Jonathan Pobst <monkey@jpobst.com>
* ScrollBar.cs: Don't let dragging the thumb grip set the value greater
than the maximum. Fixes reopened bug #384182.
2008-04-28 Everaldo Canuto <ecanuto@novell.com>
* ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
Fixes remaining issues of #367490.
2008-04-28 Everaldo Canuto <ecanuto@novell.com>
* ToolStripDropDown.cs: Screen.Bound dont return right value then use
SystemInformation.WorkingArea to get max_screen value.
2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: Implement Filter and RemoveFilter.
2008-04-28 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Prevent sub-menu positon to be less than zero.
2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: When trying to convert data and we know we started the
dnd loop, don't try to use the cached data if the loop is not running,
which means that the data has been resetted.
Fixes #378191.
2008-04-28 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Force first menu subitem to show from left to right to mimic
win32 behavior.
2008-04-28 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Check the screen limits before show sub-menus and prevent
it to drawn off screen edge. Fixes bug #367490.
2008-04-28 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
menu position to have only one assignment of Location var.
2008-04-28 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
for this patch. Fixes bug #384115.
2008-04-28 Jonathan Pobst <monkey@jpobst.com>
* ScrollBar.cs: If SmallChange is larger than LargeChange, make them
the same. If LargeChange is zero, set a minimum size for the scroll
thumb grip. [Fixes bug #384182]
2008-04-28 Jonathan Pobst <monkey@jpobst.com>
* TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
[Fixes bug #384181]
2008-04-28 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
patch from Ernesto).
2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
2008-04-27 Andreia Gaita <avidigal@novell.com>
* HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
supposed to return a reference to an mshtml interface, which we
don't support).
* HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
reference to an mshtml interface, which we don't support). Code
formatting cleanup.
* HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
DomDocument getter (it's supposed to return a reference to an
mshtml interface, which we don't support). Code formatting cleanup.
2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Ouch, forgot to commit.
2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs:
* ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When calculating box selection for virtual mode, don't
look for intersection with item's text, but item bounds, since that
would mean read ListViewItem's text for _every_ item, and that's
something we just can't do in virtual mode (items are only requested
when drawn).
2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
partial support for managed windows (based on the patch from Ernesto).
2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When doing a key search use FindItemWithText method
instead of doing the search by ourselves, this way we avoid
duplicating the code and also we handle the special case for virtual
mode. To achieve that make our private overload of FindItemWithText
internal and also have a 'roundtrip' parameter.
2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When doing the layout don't request the
ListViewItem instance if we are in virtual mode (since we can't request it
until the item is actully drawn).
2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
from Ernesto).
2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
* ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
the patch from Ernesto).
2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
* ThemeEngine.cs: Added code to select ThemeVisualStyles.
* ThemeVisualStyles.cs: Added.
2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
* IDeviceContext.cs: Added a missing using.
2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
* ButtonBase.cs: Made IsDefault protected internal.
* ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
* Application.cs: Included VisualStyles-related members in the 1.1 profile.
* ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
RadioButtonRenderer.cs: Included in the 1.1 profile.
* IDeviceContext.cs: Added.
* TextRenderer.cs: Included a member in the 1.1 profile.
2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
* ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
2008-04-24 Jonathan Pobst <monkey@jpobst.com>
* ErrorProvider.cs: Make the error icons come after the control
they refer to. It isn't the way the MS does it, but its better
than what we were doing. See bug #368587.
2008-04-24 Jonathan Pobst <monkey@jpobst.com>
* InputLanguage.cs, InputLanguageCollection.cs: Apply patch
from Eric Albright that lazy loads the input language as ensures
everything gets properly initialized. Fixes bug #373871.
2008-04-24 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
implicit mnemonics. [Fixes bug #383000]
2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: When canceling the operation, automatically restore the
default cursor - normally the default cursor is restored when the
mouse buttons are released, but we should be able to restore it even
if the buttons are still pressed (for example, when pressing ESC to
cancel).
Fixes #381894.
2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: When starting a new drad and drop operation, set control
field to null, just as the other fields, to avoid calling any
operation on a previous control. Also, when calling DndLeave on a
control, set it to null, thus we don't fire that event multiple times
for that control.
Fixes #209264.
2008-04-23 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
the whole_window object. Fixes #377084.
2008-04-23 Andreia Gaita <avidigal@novell.com>
* HtmlElement.cs: Implement RaiseEvent (event injection into the
embedded browser)
2008-04-23 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
2008-04-23 Andreia Gaita <avidigal@novell.com>
* HtmlElement.cs, HtmlDocument.cs: Implement javscript method
invocation
2008-04-23 Andreia Gaita <avidigal@novell.com>
* HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
attaching/detaching
2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: When the drop was cancelled, or could just not be
performed, return DragDropEffect.None always (match .net).
2008-04-22 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
2008-04-22 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
2008-04-22 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Add support for error icon tool tips.
* DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
* DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
* X11Structs.cs: Add mouse button masks enum.
* XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
WM_EXITSIZEMOVE only once at the beginning and at the end of the
form resize/move operation instead of for each step of it.
[Fixes bug #346529 for the x11 backend]
2008-04-21 Jonathan Pobst <monkey@jpobst.com>
* DataGridView*: Implement support for drawing error icons.
2008-04-21 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Make vbar and hbar internal.
* TreeNode.cs: If collapsing the node removes one of the TreeView's
scrollbars, invalidate the whole thing.
[Fixes bug #382001]
2008-04-21 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Calling Sort() sets Sorted = true.
* TreeNodeCollection.cs: Try to find the owner TreeView to determine
if the nodes need to be sorted.
[Fixes bug #382028]
2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
* Form.cs: Fire SizeChanged for both when the form is minimized and
restored.
* XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
on PropertyNotify of _NET_WM_STATE. Much much cleaner.
2008-04-21 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: If the combobox is disabled, draw a disabled
background before painting anything else.
[Fixes bug #381729]
2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
forget to send a Leave event to the target window - just as .net does
when cancelling dnd operations.
2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: Stop tracking messages as part of the dnd operation as
soon as possible - this happens when we send the drop message to the
target window. This way we avoid firing any DragOver _after_ drop finished.
Fixes #378179.
2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
* Form.cs: Handle form minimization as a special state, where size doesn't
change, but we have to fire SizeChanged.
[Fixes bug #325122 for the win32 and x11 backends]
2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
if the handle is disabled.
[Fixes bug #371751]
2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
for forms with FormBorderStyle.None.
[Fixes bug #349571]
2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
WM_EXITSIZEMOVE.
[Fixes bug #346529 for the X11 backend]
2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs:
- Send a mouse Enter message after say dragging the mouse with a
button down and then release it in another client.
- Reset the cursor to prevent X11 from remembering it and setting it
before the control gets WM_SETCURSOR.
- Qeueue a mouse move after a mouse enter like win32.
[Fixes bug #323234]
2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
* XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
It's sent when the form gets moved, resized, closed.
* XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
[Fixes bug #359193 for X11]
2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
* Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
the build.
2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
* ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
group. Fixes the 1.1 build.
2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Use display indexes for selection in Details view, as
well as do the proper layout based on display indexes for that view
too.
2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Focused item information is now stored as a display
index, and display indexes are used all over the place for selection,
instead of ListViewItem.Index values, which doesn't give us enough
information to modify the selection in groups mode, and was broken.
2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
* Control.cs: Do not fire MouseDown if validation of the control has
failed.
* Form.cs: Validate the form before closing.
[Fixes bugs #330501 and #353310]
2008-04-18 Andreia Gaita <avidigal@novell.com>
* WebBrowserBase.cs: Added WndProc, DrawToBitmap,
CreateWebBrowserSiteBase implementations
* HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
Style and TabIndex setters
2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewGroup.cs: When returning the actual item count, return the
proper count for default group.
Fix the tests.
2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs:
* ListViewGroup.cs: When calculating groups layout, get the actual
number of items per group, since groups added to the group BUT not
added to the ListView are just ignored, and can cause some nasty
exceptions because of the lack of synchronization. Also for
ListViewGroup don't use lazy initialization for items, since we
the common scenario is to use it always - and it helps us to refactor
and clean the .ctor overloads.
2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When adding an item to a ListViewItemCollection
belonging to a group (ListViewGroup.Items), don't generate a redraw if
the added item hasn't beeen previously added to the ListView instance
refered by the group, since it will be ignored. This should avoid some
really nasty flickering.
2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When accessing an item in a specific display
position, use the helper method GetItemAtDisplayIndex, instead of
direct access to the reordered_items_indices array. When doing layout
for groups set the correct Items index for the display position (since
in groups mode items don't have the same position as in Items
collection).
* ListViewGroup.cs: Add a field to store the starting item number,
which is later used when calculating the layout.
Fixes #360805.
2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
* Application.cs: Fixed ProductVersion to fallback to the assembly
version. Fixes regression for bug #325413.
2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: New helper method to retrieve an item in a _specific
display_ position (the items can be displayed in a different order
than one of Items collection).
* ThemeWin32Classic.cs: When drawing, instead of iterating over Items
collection, use ListView.GetItemAtDisplayIndex, to get an item in a
specific display position (again remember that items can be sorted
different than Items).
2008-04-16 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewColumnCollection.cs: Create a cached copy of our sorted
list and update it when the collection changes. We were recreating
this several times per row paint and for every pixel the mouse moved
across the grid.
* DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
changes.
2008-04-16 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewColumnCollection.cs: Convert our internal sorted columns
list to use generics.
* DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
and remove unneccessay casts.
2008-04-16 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewBand.cs: Add internal way to set displayed variable.
* DataGridViewRow.cs: Don't paint cells in non-displayed columns.
* DataGridView.cs: Make sure we always keep track of Displayed
rows and columns, and only draw things that are displayed.
2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
whether the key events are filtered or not. Introduced
PreFilter() process for this purpose. This fixes atokx3/iiimx
shift state issue.
2008-04-16 Andreia Gaita <avidigal@novell.com>
* HtmlHistory.cs: Implement Length property
2008-04-15 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Call EndEdit when a sort is performed so we take
away the edit textbox. Refactor to reuse column sort code.
2008-04-12 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Remove the code that save and restore capture status of
grab_control, this fixes some Menu and Context menu bugs but maybe it can
cause some others, I cant figure the possible problems of this patch but
right now remove the code looks to be better than keep it. This patch fixes
bugs #357638, #378721 and #379570.
2008-04-12 Andreia Gaita <avidigal@novell.com>
* HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
add missing properties and event handlers.
2008-04-14 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Make sure the LargeChange we are setting is at least
zero, to prevent an IOORE. [Fixes bug #379531]
2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
* ComboBox.cs: Support item navigation by entering text. Firstly,
in DropDownList mode, for each key-press select the next item
starting with that letter.
For other modes, when no item selected, on arrow-up/-down and open
drop-down select the first item matching the text in the textbox.
2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs : Control.FromHandle() could return null
in MoveCurrentCaretPos().
2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When changing the size in VirtualMode, also Reset the
selection.
* ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
changing selection info for VirtualMode.
Fixes #372618.
2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
view, don't use LineLimit for the first item - use NoWrap *always*
instead, since ListView.LabelWrap is not used for this view.
Fixes #378054.
2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Call UpdateIsBinding when setting control - probably
Binding is already usable and we don't need to wait to check the
IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
Created, just like 2.0 does.
* CurrencyManager.cs: I'm so lame - the previous check was wrong.
2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Just realized we don't need to have a handler for
BindingContextChanged, since this info should be now consumed directly
in the BindingManagerBase. And also, the manager.IsBindingSuspended
state info is checked directly, instead of caching it.
* CurrencyManager.cs: IsSuspended should return always false if Count
== 0.
2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: When calling PushData, return if manager.Count == 0,
since we just don't have data to be read. Also, when setting the
Control for binding, hook up some events to refresh the IsBinding
state when BindingContext change or control gets created; use
Control.IsHandleCreated instead of Control.Created check to set
IsBinding state - we *actually* need to modify IsBinding when control
is created, but we don't have any Created event, only HandleCreated.
Fixes part of #349364.
2008-04-11 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
warping a null Caret.
2008-04-11 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Implement row/column autosizing methods. Implement
autosorting.
* DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
* DataGridViewRowCollection.cs: Add an internal sorting method.
2008-04-11 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
value in ListView drawing code.
2008-04-11 Jonathan Pobst <monkey@jpobst.com>
* FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
is clicked. Respect the user setting Cancel in FileOk.
2008-04-11 Geoff Norton <gnorton@novell.com>
* ListView.cs: Avoid setting and resetting control Width/Heights and
calculate the final value and set it once. Prevents a feedback loop
on the mac.
2008-04-10 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
[Fixes bug #378869]
2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
Add some on-the-spot code, but it seems we don't need it.
2008-04-10 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Add method for DataGridView to trigger focus cues
even when it handles the tab keypress.
2008-04-10 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: More keyboard handling, tab, esc.
* DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
when at the beginning or end of the text in the text box.
2008-04-09 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Guard against an NRE causing a test to fail.
2008-04-09 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Some fixups for showing and adding the edit control.
* DataGridViewButtonColumn.cs: Implement ToString.
* DataGridViewCell.cs: Size and position the control simultaneously.
* DataGridViewTextBoxCell.cs: Use base to position control.
2008-04-09 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Fix up some formatting and painting code.
* DataGridViewImageCell.cs: Implement some NIEX methods.
2008-04-09 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItemCollection.cs: What moving an item from one owner
to another, remove from source owner before adding to destination.
[Fixes bug #378109]
2008-04-09 Jonathan Pobst <monkey@jpobst.com>
* PictureBox.cs: Call Load when ImageLocation is set.
[Fixes bug #378308]
2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs, XplatUIX11.cs :
Implement over-the-spot mode (with some odd offsets).
- set preedit position when caret is set.
- Wrap XMoveResizeWindow() to move preedit position.
2008-04-08 Everaldo Canuto <ecanuto@novell.com>
* X11keyboard.cs: Fix last patch, maxval must be less not greater than
array lenght.
2008-04-08 Everaldo Canuto <ecanuto@novell.com>
* KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
and ScanTableIndex public, it fix compilations errors when compiling
WinForms to generate keyboard layout resources.
2008-04-08 Everaldo Canuto <ecanuto@novell.com>
* X11keyboard.cs: Prevent keyboard errors when vitual table theres
different element count than scan table. It prevents some errors in non
standard keyboards.
2008-04-08 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewHeaderCell.cs: Implement some NIEX methods.
2008-04-08 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Call OnContentClick.
* DataGridViewCell.cs: Do a null check on ValueType instead
of valueType.
* DataGridViewCheckBoxCell.cs: Implement.
2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs : Do not cast IntPtr to int. Use long.
2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs : Check XGetIMValues() return value in
case it does not return input styles in some environment.
2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingContext.cs: Stub UpdateBinding method.
2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
* X11Structs.cs : added couple of structs for XIM support.
* X11Keyboard.cs :
Release XIM in case it failed to create XIC.
Use consts for XNblah string.
Add support for IM style customization and XIC creation
for preedit-position and preedit-callback.
Right now use MONO_WINFORMS_XIM_STYLE environment variable
(list of: over-the-spot | on-the-spot | root). Only root
mode works so far.
(redoing r99172 with fix.)
2008-04-07 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Center the checkbox a little better.
2008-04-07 Jonathan Pobst <monkey@jpobst.com>
* ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
Apply very nice patch from Ernesto Carrea that simplifies our
scrollbar drawing. [From bug #376146]
2008-04-07 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Correct the location of the root node checkbox when
ShowRootLines = false. Don't draw the root lines for the root node
when ShowRootLines = false. [Fixes bug #377535]
2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
* WebBrowserBase.cs: Added missing attributes and fixed attributes.
Fixed line endings.
* WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
line endings.
* MaskedTextBox.cs: Added missing attribute. Code formatting.
* PageSetupDialog.cs: Added missing attribute. Code formatting.
* HtmlWindowCollection.cs: Code formatting. Fixed line endings.
* ImeMode.cs: Added missing field.
* HtmlWindow.cs: Code formatting. Fixed line endings.
* HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
warnings.
* HtmlHistory.cs: Code formatting. Fixed line endings.
* HtmlDocument.cs: Code formatting. Fixed line endings.
* ToolStripPanel.cs: Added missing IList implementation.
* HtmlElementCollection.cs: Code formatting. Fixed line endings.
2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
* BindingContext.cs: Changed argument names to fix corcompare errors.
* DataGridView.cs: Removed extra explicit interface implementation
of IDropTarget. Code formatting.
* FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
* ComboBox.cs: Changed argument names to fix corcompare errors.
* DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
errors.
* GridColumnStylesCollection.cs: Changed argument names to fix
corcompare errors. Removed extra tabs.
* GridTableStylesCollection.cs: Changed argument names to fix corcompare
errors.
* Control.cs: Changed argument names to fix corcompare errors. Code
formatting. Removed extra explicit IList implementation.
* TextBox.cs: Changed argument names to fix corcompare errors. Code
formatting. Use string.Empty instead of "".
* GridItemCollection.cs: Changed argument names to fix corcompare
errors. Code formatting.
* DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
corcompare errors. Code formatting.
* ImageList.cs: Changed argument names to fix corcompare errors.
* ToolStripItem.cs: Changed argument names to fix corcompare errors.
* DataGridViewRowCollection.cs: Changed argument names to fix
corcompare errors. Code formatting.
* TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
* DataGridViewSelectedCellCollection.cs: Changed argument names to
fix corcompare errors. Code formatting.
* DataGridViewComboBoxCell.cs: Changed argument names to fix
corcompare errors. Code formatting.
* LinkLabel.cs: Changed argument names to fix corcompare errors.
* TreeNode.cs: Changed argument names to fix corcompare errors. Code
formatting.
* PropertyGrid.cs: Changed argument names to fix corcompare errors.
Code formatting.
* BindingSource.cs: Changed argument names to fix corcompare errors.
Removed extra explicit interface implementations.
* DataGridViewSelectedRowCollection.cs: Changed argument names to
fix corcompare errors. Code formatting.
* ToolStripItemCollection.cs: Removed extra explicit interface
implementation of IList.ReadOnly.
* DataGridViewColumnCollection.cs: Changed argument names to fix
corcompare errors. Code formatting.
* DataGridViewRow.cs: Rename converter to match MS. Code formatting.
* ListView.cs: Changed argument names to fix corcompare errors.
* DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
errors.
* DataGridBoolColumn.cs: Changed argument names to fix corcompare
errors.
* ListBindingHelper.cs: Changed argument names to fix corcompare
errors.
* DataGridViewSelectedColumnCollection.cs: Changed argument names to
fix corcompare errors. Code formatting.
* ToolStripPanel.cs: Removed extra explicit implementation of
IDropTarget interface.
* ListBox.cs: Changed argument names to fix corcompare errors. Code
formatting. Removed extra tabs and spaces.
* DataGridViewCellCollection.cs: Changed argument names to fix
corcompare errors.
* Help.cs: Changed argument names to fix corcompare errors. Code
formatting.
* TabControl.cs: Changed argument names to fix corcompare errors.
* DataGridColumnStyle.cs: Changed argument names to fix corcompare
errors.
* TableLayoutSettings.cs: Changed argument names to fix corcompare
errors.
2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBindingHelper.cs: When returning properties, only return those
that are browsable. Also, don't do a linear search of the properties,
but use the indexer of the PropertyDescriptorCollection class.
2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
Dictionary containing the related (child) currency managers. Also,
when setting DataSource, add datasource to our List if it is not a list.
2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridTextBox.cs: Fix background color of the buttons.
* PropertyGridView.cs: Make the entry less jumpy.
2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Fix unused variable warnings.
2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Fix expansion via [+] misbehavior on
double-click. It expanded it once in the mouse down and then
again in the double-click handler.
2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
TypeConverter and UITypeEditors.
2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
* Control.cs: Visibility should be set synchronously,
so we must also redraw once it is and not rely on layouting or
other code to repaint.
[Fixes bug #339898]
2008-04-04 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Respect DataGridView.GridColor.
2008-04-03 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Invalidate when the alpha channel is less than 255,
not only when control is transparent.
2008-04-03 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
Implement some painting convenience methods that threw NIEX.
2008-04-03 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
* DataGridViewLinkCell.cs: Implement.
2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Report the conversion exception error description.
[Fixes bug #375792]
2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Do not scroll to item on resize.
[Fixes bug #375789]
2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingContext.cs: When retrieving a BindingManagerBase, if the
dataSource parameter is ICurrencyManagerProvider, then return
ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
instead of creating a new one.
2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: Implement support for Type instances as
DataSource.
2008-04-02 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Minor cleanups and call CellMouseUp.
* DataGridViewCell.cs: Make some painting routines internally virtual.
* DataGridViewButtonCell.cs: Implement.
2008-04-02 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: We always need to invalidate our children with
transparent backgrounds when we are invalidated.
[Fixes bug #376081]
2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
and CancelCurrentEdit on CurrencyManager respectively. Implement
support for ICancelAddNew too.
2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
call EndNew/CancelNew if list is ICancelAddNew.
2008-04-01 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Guard against an exception while painting
if there are no rows.
2008-04-01 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Implement a bunch of keyboard commands.
2008-03-31 Jonathan Pobst <monkey@jpobst.com>
* ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
isn't set, don't call OnPaint. [Fixes bug #375300]
2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: IsBindingSuspended, ResumeBinding and
SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
hookup the remaining events related to CurrencyManager, and fire
OnListChanged also for the Clear () method.
2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: Use Current and Position implementations in
CurrencyManager instead of using our own routines, since we need
to be in synch with it. Count should NEVER return a -1 value, and
also report ListChanged events for both simple IList data
sources (manually) as well for IBindingList ones (by hooking up an
event handler for it).
2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: Make one .ctor call the another, to avoid
duplicate code. Add the CurrencyManager property, and also for AddNew
throw the proper exceptions and show better error messages.
2008-03-28 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Only adjust selectedindex if Handle has been
created. Fixes failing test.
2008-03-28 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Adjust selectedindex if we insert a new item
above the current selectedindex in a sorted ComboBox.
[Fixes bug #374654]
2008-03-28 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
[Fixes bug #374712]
2008-03-28 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewTextBoxCell.cs: Implement stuffs.
2008-03-27 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Create the scrollbars even earlier to be
double dog certain they are created before they are accessed.
2008-03-27 Jonathan Pobst <monkey@jpobst.com>
* XplatUIX11.cs: Remove a no-op line that csc was choking on.
2008-03-27 Jonathan Pobst <monkey@jpobst.com>
* ScrollBar.cs: Create an internal safe Value setter so we
won't crash if we try to set a value outside the min and max.
* TextBoxBase.cs: Use safe value setter to guard against a
potential NRE that is being reported by Reflector.
2008-03-27 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Create the scrollbars earlier in the constructor
to attempt to guard against an NRE in SetTop in Reflector.
2008-03-27 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
DataGridViewRowCollection.cs: Do not scroll column and row headers,
show messagebox on data format error, use column display index
correctly, make sure HitTest supports new layout stuff,
make sure scrollbars support new layout stuff.
2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
* XplatUIX11.cs : Patch by Doug Rintoul.
For some IM engines, keypress events need to delay call
to XPending() and XNextEvent() in the loop so that it
does not mess the orders in XIM commit callback.
Some KeyRelease events such as shift keys need to be
processed both in the IM engine and winforms driver
itself since winforms holds its own state check.
For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs, XplatUIX11.cs :
add primitive support for XIM input support (preedit-
nothing and status-nothing). It requires precise event
capturing (XSelectInput/"filterEvents") and different
call to XFilterEvent against root window.
Get composed string and send dummy WM_IME_COMPOSITION.
Free XIM and XIC instances in finalizer.
(This first patch does not include suggested changes
by Doug Rintoul. It will follow.)
2008-03-26 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: When binding to a property, if the property
doesn't have a setter, set the column to readonly.
[Fixes bug #343965]
2008-03-26 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Guard against NRE if an arrow key is hit while
we aren't dropped down. Support Home/End in DropDownList mode.
[Fixes bug #371990]
2008-03-26 Jonathan Pobst <monkey@jpobst.com>
* TreeNodeCollection.cs: Don't increment count until we've
saved our index to return.
[Fixes bug #373603]
2008-03-25 Jonathan Pobst <monkey@jpobst.com>
* Label.cs: Add padding to the label's AutoSize calculation.
[Fixes bug #373792]
2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBindingHelper.cs: Actually implement GetListName method.
2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: Throw the propert expceptions for some methods, as
well as detect the list item type for Add method if DataSource is null.
2008-03-25 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: I don't know why I commented this out,
putting it back for now.
2008-03-25 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Remove storage for owning column, just
use column index.
* DataGridViewColumn.cs: Make getter for HeaderTextSet.
* DataGridViewColumnHeaderCell.cs: If the header text has been
explicitly set, return it.
[Fixes bug #325979]
2008-03-25 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRowCollection.cs: Disable row sharing when
using data binding. Its a great feature, but lets work on
getting DGV usable first before we worry about optimizations.
2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: When resetting our internal list, compute list
item type information to be used for indirect list access. Also
implement/tune some properties and methods related to the list access
too.
* ListBindingHelper.cs: Add a stub for GetListName method, used from
BindingSource.
2008-03-24 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: If RowCount is increased while ColumnCount
is zero, add a column. [Fixes bug #331649]
2008-03-24 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRowCollection.cs: When adding new rows for
databinding, make sure they are place before the add row.
[Fixes bug #343961]
2008-03-24 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRow.cs: Draw cells in column DisplayIndex order
instead of Index order.
2008-03-24 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: If columns are added by increasing ColumnCount,
they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
[Fixes bug #325588]
2008-03-24 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Turn off and on the "new row" when
AllowUserToAddRows is toggled. When the handle is created,
set current cell and selected cell/row/col.
2008-03-24 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: When navigating the drop down by keyboard, we
need to scroll the list box if our selection moves out of the
currently shown items. [Fixes bug #371990]
2008-03-24 Luke Page <luke.a.page@gmail.com>
* RichTextBox.cs: Handles visible rtf tag and no longer shows the text
on the control. Also now handles unicode compatibility characters and
stores the unicode compatibility length on the stack. Fixes Bugs
#355198 and #366436.
2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource..cs: Take into account DataMember when re-creating the
List property, and also create a specific kind of list as needed.
2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBindingHelper.cs: Add a new case for GetList () method - when we
get an empty IEnumerable, try to detect whether the datamember is
valid or not for that type, if true, return null, and throw exception
otherwise.
2008-03-22 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Alt-Down should drop down the list, Esc should
retract it. [Fixes bug #371989]
2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Initialize the sorting button as pushed.
2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs:
- Visually select the PropertyTab.
- Filter Properties by Attributes properly.
2008-03-21 Jonathan Pobst <monkey@jpobst.com>
* MenuItem.cs: Remove menu item from parent when disposed.
[Fixes bug #372845]
2008-03-21 Jonathan Pobst <monkey@jpobst.com>
* ToolBar.cs: Don't reset layout_type if Dock = None.
2008-03-21 Andreia Gaita <avidigal@novell.com>
* UserControl.cs: Select the first available control when we get focus.
Fixes #372616
2008-03-21 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
the content if we are in edit mode. [Fixes bug #343964]
2008-03-21 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Fix border painting for column headers.
2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingSource.cs: When setting or resetting data source,
use ListBindingHelper.GetList () method, since it will get the list in
case datasource is IListSource.
2008-03-20 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Implement lots more stuffs.
2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs, GridEntry.cs: Implement support for
UITypeEditor.IsDropDownResizable.
2008-03-20 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewCell.cs: Remove unused variables, improve how
several of the property getters work.
* DataGridViewRow.cs: Don't call setSize on a cell, cell should
get its size from the parent row/col.
2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Ensure PropertiesTab is visible even if the
user alters manually the PropertyTabs collection via the
PropertyTabs property.
2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBindingHelper.cs: Implement -previously- ignored cases. We have
new tests for them to be sure to be compatible with .net.
2008-03-20 Andreia Gaita <avidigal@novell.com>
* WebBrowserBase.cs: Fix attributes, add events
* WebBrowser.cs: Fix Padding signature
2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
2008-03-19 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
passes the new suite of tests for it.
2008-03-18 Andreia Gaita <avidigal@novell.com>
* WebBrowser.cs: Add missing attributes, missing Padding and
DefaultSize properties, remove extraneous getters
2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBindingHelper.cs: Implement a pair of GetListItemProperties
method overloads.
2008-03-16 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Move resetting the selected index to keypress
instead of textchanged. Changing the text programmatically
should not trigger resetting the selected index. Fixes test.
2008-03-16 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: When the user types into the textbox, reset
the selected index to -1. [Fixes bug #371672]
2008-03-16 Jonathan Pobst <monkey@jpobst.com>
* FileDialog.cs: Support Control-A for selecting everything
in an OpenFileDialog. [Fixes bug #371564]
2008-03-15 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: When row/column visible/height properties
change, invalidate. Take the NIEX out of InvalidateRow/Column
etc. We don't support them yet, but we can just invalidate
everything until we do support them. (Added MonoTODO). Set
proper control styles.
* DataGridViewRow.cs: Don't call PaintHeader if row headers
are turned off.
2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
2008-03-14 Jonathan Pobst <monkey@jpobst.com>
* DataGridViewRow.cs: Only paint the white background in
cell bounds, the row bounds extends past the cells if the
grid width isn't as wide as the DGV.
2008-03-14 Jonathan Pobst <monkey@jpobst.com>
* DataGridView*: Completely revamp the drawing to match the
public API. Our grids now look better, and call all the
appropriate methods and event to allow users to override
the painting and do their own.
2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBindingHelper.cs: Implement 2.0 GetList methods.
2008-03-13 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Implement BorderStyle.
2008-03-13 Jonathan Pobst <monkey@jpobst.com>
* FileDialog.cs: Apply patch from Andy Hume: Any time we
are comparing attributes, make sure we only look at the
one we are interested. These calls were failing if there
were more than one attribute.
[Fixes bug #370385]
2008-03-13 Jonathan Pobst <monkey@jpobst.com>
* DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
2008-03-12 Jonathan Pobst <monkey@jpobst.com>
* PageSetupDialog.cs: Stub EnableMetric.
* PrintControllerWithStatusDialog.cs: Implement IsPreview.
* PrintPreviewDialog.cs: Add ProcessDialogKey,
ProcessTabKey.
2008-03-12 Jonathan Pobst <monkey@jpobst.com>
* MonthCalendar.cs: Remove unused variable.
2008-03-12 Jonathan Pobst <monkey@jpobst.com>
* DataGridView*.cs: corcompare stuffs.
2008-03-11 Jonathan Pobst <monkey@jpobst.com>
* MonthCalendar.cs: Remove an incorrect invalidate optimization.
The savings aren't worth the extra code to fix the optimization.
[Fixes bug #368585]
2008-03-11 Jonathan Pobst <monkey@jpobst.com>
* ToolBar.cs: Always call base.Dock in the Dock override so that
Control's layout_type gets reset correctly.
[Fixes bug #368882]
2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
* X11Dnd.cs: End DnD operation also for the middle mouse button.
2008-03-11 Jonathan Pobst <monkey@jpobst.com>
* ContainerControl.cs: We can't do MenuStrip implicit mnemonics
at the same time we do explicit ones, because we have to give all
other controls on the container a chance to handle explicit ones
first. If no one has an explicit mnemonic, then we can let the
MenuStrip have a shot at implicit mnemonics.
* MenuStrip.cs: Create an implicit mnemonic function.
* ToolStrip.cs: When processing explicit mnemonics, don't do implicit
mnemonics for MenuStrips.
[Fixes bug #368493]
2008-03-11 Jonathan Pobst <monkey@jpobst.com>
* AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
DataGridColumnStyle.cs: corcompare stuffs.
2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
Details - This is needed after we added the bits to use any available
column also for List and SmallIcon view.
2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
at the proper place, not only when changing SelectedIndex and changing
the selection using keys/mouse, as .net does.
2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ControlBindingsCollection.cs: Implement last 2.0
DefaultDataSourceUpdateMode property. Also fix a wrong instruction
in the new 2.0 Add methods.
2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: When calling SelectedIndexCollection.Clear,
return if no items are previously selected - this is done to avoid
firing OnSelectedIndexChanged without need to do so. Also,
when creating handle ensure that the focused item is visible (as
.net does).
2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: Rewrote/refactored most of selection code. We require
the following things in selection: a) keep selection sorted (both
indices and items), b) SelectedIndices automatically detect the
selection mode, c) SelectedIndex should be the first selected item
index, d) Need to Focus/adjust scroll bar when selecting a new item,
not only for SelectedIndex, which is specially important in Multi*
selection modes. To achieve this we are moving the selection core to
SelectedIndexCollection and make depend all selection modifications on
it.
Fixes #366438.
2008-03-06 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Enable implicit mnemonics for drop down
menu strips. [Fixes part of bug #367692]
2008-03-06 Jonathan Pobst <monkey@jpobst.com>
corcompare - fix parameter names [stragglers].
Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
TabControl.cs.
2008-03-06 Jonathan Pobst <monkey@jpobst.com>
Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
was a mnemonic pressed as well as Alt. Also, if nothing handles a
mnemonic, let the ToolStripManager have it even if it doesn't
have a matching mnemonic.
[Fixes bug #367499]
2008-03-06 Jonathan Pobst <monkey@jpobst.com>
corcompare - fix warning about implicit implementation
* ToolStrip.cs: Add IToolStripData interface.
* IToolStripData.cs: Add.
2008-03-06 Jonathan Pobst <monkey@jpobst.com>
corcompare - fix warning about implicit implementation
* Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
* IBounds.cs: Add.
2008-03-05 Jonathan Pobst <monkey@jpobst.com>
corcompare - fix parameter names [N-Z].
LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
PropertyManager.cs, RichTextBox.cs,
ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
ToolStripContentPanel.cs, ToolStripDropDown.cs,
ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
ToolStripPanel.cs, ToolStripSeparator.cs,
TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
UICuesEventHandler.cs, UpDownBase.cs.
2008-03-05 Jonathan Pobst <monkey@jpobst.com>
corcompare - fix parameter names [G-M].
GridColumnStylesCollection.cs, GridItemCollection.cs,
GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
2008-03-05 Jonathan Pobst <monkey@jpobst.com>
corcompare - fix parameter names [A-F].
Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Do not convert not only if the types match,
but also if the property type is assigneable from the value's
type.
[Fixes bug #366566]
2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs:
- Subscribe to the listbox only once and not everytime.
- Update the textbox even if SetValue fails.
- Close the listbox before calling TrySetValue just in case.
[Fixes bug #366569]
2008-03-03 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Implement support for custom column width based on
Columns collection (we were previously using this collection only
with Details view).
Fixes #364484.
2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: For Tile view, always set bounds for the first
subitem (which is the main one), and also don't let Width be larger
than ListView.TileSize.Width. Improve code readibility also.
* ThemeWin32Classic.cs: When painting the ListViewItem instances
in Tile view, _always_ use the NoWrap flag.
Fixes #360798.
2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Check for null PropertyDescriptor.Name just
in case.
* GridEntry.cs: For MS compitability make all child properties
readonly if the parent is readonly. Ugh.
[Fixes bug #365945 and #365944]
2008-02-29 Andreia Gaita <avidigal@novell.com>
* HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
relative to the history
2008-02-29 Andreia Gaita <avidigal@novell.com>
* HtmlElement.cs: More handlers for mouse and key events
2008-02-28 Andreia Gaita <avidigal@novell.com>
* WebBrowserBase.cs: MouseClick sig changed.
* HtmlHistory.cs: Implement history navigation
* HtmlElement.cs: Add event handlers, and connect them.
2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs:
- Use PropertyDescriptor.DisplayName instead of .Name for Label,
so that DisplayNameAttribute doesn't get ignored.
- Check for ParenthesizeNameAttribute and parenthesize the Label.
- Add support for PasswordPropertyTextAttribute
* PropertyGridView.cs: Check if an entry is a password.
[Fixes bugs #365589, #365586, #365588]
2008-02-28 Andreia Gaita <avidigal@novell.com>
* PropertyGridView.cs: Revert the message filtering change, as we
need it to block after all. Remove block parameter, unnecessary.
2008-02-27 Jonathan Pobst <monkey@jpobst.com>
* UserControl.cs: Better implementation of GetPreferredSize.
First step to fixing bug #361441.
2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Actually implement data binding support for
classes implementing IBindableComponent.
* ControlBindingsCollection.cs: Likewise.
2008-02-26 Andreia Gaita <avidigal@novell.com>
* PropertyGridView.cs: Use a message filter to check when to
close the dropdown
2008-02-26 Andreia Gaita <avidigal@novell.com>
* Application.cs: Change the message_filters loop so a filter
can be removed while looping.
2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Optimization in ToggleValue so that it caches
the current value.
* PropertyGridView.cs: An optimization so that the property isn't
re-read twice for each StandardValue added to the drop-down menu.
Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
license.
[Fixes bug #362755]
2008-02-26 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Apply patch from Justin Cherniak to match
MS better for ProductName, ProductVersion, and CompanyName.
[Fixes bug #361709]
2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Actually implement 2.0 NullValue property. Also
when changing the formatting related properties, only update the state
if formatting_enabled is true (we don't mind otherwise).
2008-02-25 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Don't raise ItemClicked for disabled items.
[Fixes bug #364486]
2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
of GetType on the current value as it uses reflection to
determine the type. This fixes the case where the new value is
null.
2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Limit mousewheel scrolling to not scroll
past the view.
2008-02-24 Luke Page <luke.a.page@gmail.com>
* Line.cs, TextControl.cs: Implement offset x and y so that a
document doesn't have to begin at (0,0) on the viewpoint.
* TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
bars and switches the text alignment (and therefore is now
implemented for textbox). Fixes #321383.
2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Actually implement 2.0 FormatString and FormatInfo
properties. Also when changing FormattingEnabled update the control
property -as .Net does-.
2008-02-22 Carlos Alberto Cortez <calberto.cortez@ŋmail.com>
* ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
* Binding.cs: Add stubs for the overloads of the Add method in
CBCollection.
2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: PullData () returns a false value if we got an exception.
Also when validating the control and we get an error, instead of
setting the value of the previous one, cancel the event (tested in 1.1
and 2.0).
2008-02-22 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Make selected_node and highlighted_node internal.
* TreeNodeCollection.cs: Reset selected_node and highlighted_node
to null when Nodes.Clear is called.
[Fixes bug #363884]
2008-02-21 Jonathan Pobst <monkey@jpobst.com>
* FontDialog.cs: Ensure that when the Font is set in code,
all the gui pieces are updated accordingly.
[Fixes bug #361020]
2008-02-21 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: Respect proposed size for MeasureString.
* ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
autosize, use a proposed width to force wrapping for long text.
[Fixes bug #360981]
2008-02-21 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Factor in checkboxes = false and state images in
to HitTest. [Fixes bug #363360]
2008-02-21 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Only look at the Date part of a DateTime
when drawing the selected range.
[Fixes bug #363648]
2008-02-21 Jonathan Pobst <monkey@jpobst.com>
* ToolStripContainer.cs: Add SupportsTransparentBackColor and
ResizeRedraw control styles.
[Fixes bug #363555]
2008-02-20 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: StateImages are basically custom checkboxes, so
factor their size the same as real checkboxes when determining
what got clicked.
[Fixes bug #363367]
2008-02-20 Jonathan Pobst <monkey@jpobst.com>
* MessageBox.cs: Make the message box wider if the form caption
is longer than the text in the form.
[Fixes bug #361137]
2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Fix a NRE when closing the drop down form.
2008-02-20 Jonathan Pobst <monkey@jpobst.com>
* TreeNode.cs: Guard against an NRE when the parent's
StateImageList hasn't been set.
[Fixes bug #363353]
2008-02-20 Jonathan Pobst <monkey@jpobst.com>
* SplitContainer.cs: Add SupportsTransparentBackColor and
OptimizedDoubleBuffering control styles.
[Fixes bug #363303]
2008-02-20 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: For the app data paths and the registry key paths,
ensure they are created before returning them to the user.
[Fixes bug #361709]
2008-02-20 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Guard against an NRE in CompanyName and
ProductName.
2008-02-20 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: For CompanyName, ProductName, and ProductVersion,
make sure we handle all three cases correctly: attribute is present,
attribute is present but is an empty string, and attribute is not
present.
2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs:
- Fix a NRE that caused a test failure
- Another performance improvement - cache the standard values
listbox.
2008-02-19 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
code paths.
2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Fix a big performance bug.
2008-02-19 Jonathan Pobst <monkey@jpobst.com>
* SelectionRange.cs: Apply patch from Andy Hume to make
constructor behavior more accurate. [Fixes bug #362117]
2008-02-19 Andreia Gaita <avidigal@novell.com>
* Control.cs: Added a new flag is_disposing to track if the
window is currently in the process of being disposed of.
This is used so that, when firing visibility changes triggered
by unparenting controls during Dispose, the control doesn't
get created again.
2008-02-19 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Set height to preferred height when the handle
is created. [Fixes bug #360862]
2008-02-18 Andreia Gaita <avidigal@novell.com>
* XplatUIX11.cs: Create FosterParent with border width at 0.
With the previous value of 4, everytime a control got reparented
from parent = null, it's location would be shifted right and
down by 4, since these coordinates would be offset by the
FosterParent's border width.
2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
* Control.cs: During diposing firstly remove ourselfes from
the parent and *then* destroy our handle, because removing
ourselfes from the parent controls collection causes
VisibilityChange, etc events, which require a handle and end
up recreating the control.
2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Set expanded state before notifying that the
expansion has taken place.
* PropertyGridView.cs:
- Set the propertygridtextbox text to the selected
StandardValue before proceeding to setting it.
- Scrolling bugfixes.
2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs:
- Fix ValueText to not return null.
- Fix conversion error reporting to actually happen.
* PropertyGridView.cs: Set entry only if the text has changed.
[Fixes bug #362116]
2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs:
- Fix handling of a null current value.
- Swallow editor exceptions.
[Fixes bug #362114]
2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Clear current items first thing before
repopulating subitems.
* GridEntry.cs:
- Handle null StandardValuesCollection.
- Mark as not editable if there is no PropertyDescriptor and
if the Converter cannot convert from string.
[Part of fix for bugs #360666 and #358332]
2008-02-15 Luke Page <luke.a.page@gmail.com>
* MaskedTextBox.cs: Now skips non editable characters after a
character has been entered and we are progressing to the next
position in the MaskedTextBox.
2008-02-15 Luke Page <luke.a.page@gmail.com>
* TextBoxBase.cs: Handles MouseDown when shift key is clicked so
that it changes the selection rather than just repositioning the
cursor. Fixes Bug #360873.
2008-02-15 Luke Page <luke.a.page@gmail.com>
* TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
correctly. See #359330
2008-02-15 Andreia Gaita <avidigal@novell.com>
* XplatUIX11.cs: If the handle is null when posting a message, use the
current thread queue to post instead. Fixes #332409
* SendKeys.cs: Slight optimization
2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs, PropertyGridView.cs:
Fix multiple scrolling and sizing issues.
[Fixes bug #359199]
2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Ensure that drop down editors are shown
in the WorkingArea of the screen.
[Fixes bug #359807]
2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Fail silently when UITypeEditor is missing.
[Fixes bug #360666]
2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Implement 2.0 DataSourceNullValue property.
2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs:
- Clear the controls in the drop down form after it is hidden.
- Fix Width sizing of the dropdown editors to match MSFT.
2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs:
- Fix height for drawing the grid entry
text value, so that it clips multiline text properly.
- Fix unfocusing to match MSFT.
2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Do not populate subgriditems unless expandable.
Fixes a bug where on repopulation after value changed items become
expandable.
2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: For the 2.0 profile, look for a
'PropertyChanged' event in the target control, and add checks for
DataSourceUpdateMode property to change -or not- the data source
from validation/control property change.
2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
* Binding.cs : build fix (operator == is not overriden in 1.x. Do
not compare struct with null in 2.0).
2008-02-10 Luke Page <luke.a.page@gmail.com>
* MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
updates the provider and if not using a provider, uses the internal document
class implementation of password char. Also when showing text, uses display string
from the provider, instead of the actual text.
2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Ooooops, forgot to take into account the data_source
and binding_member_info null case (it was breaking the Binding tests).
2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Implement support for data source changes exposed by
'PropertyNameChanged' events, and update the control property as
needed.
2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Implement 2.0 WriteValue method.
2008-02-08 Jonathan Pobst <monkey@jpobst.com>
Commit patch from James Purcell for better AutoScale implementation:
* ScaleControl should call GetScaledBounds with the control's total size rather
than client size. GetScaledBounds should handle ignoring the borders in its
calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
(for the most part they just call the base code now since that is fixed).
* Added ScaleChildrenInternal to allow controls to disable scaling of children
without having to override ScaleChildren (since none of .NET's controls do).
This is required for most controls in Mono that have scrollbars to prevent the
scrollbars from being moved/resized.
* Nested ContainerControls can have a different scale mode than their parent.
This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
designer produce different results both of which look incorrect).
* Default AutoScaleMode for ContainerControl should be Inherit.
* Simplified workaround for ComboBox scaling issue.
* 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
1.0 style auto scaling should scale the whole control's size instead of
ignoring the borders (except for Form) and the rounding is done differently to
preserve control alignment.
* ApplyAutoScaling (used for 1.0 style) should use the rounded result of
GetAutoScaleSize.
* Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
* CurrentAutoScaleDimensions should round the estimated character width instead
of truncating.
* ListBox's GetScaledBounds should always use the height it was set to instead
of the height that was passed in. This prevents rounding errors from
accumulating quickly with IntegralHeight.
[Bug #359098]
2008-02-08 Andreia Gaita <avidigal@novell.com>
* Form.cs: Add a null check (darn it).
2008-02-08 Jonathan Pobst <monkey@jpobst.com>
* MdiClient.cs: Make sure the requesting form actually owns the
control menu items before removing them. Also, use
Suspend/ResumeLayout when adding or removing items so we only
layout once.
[Fixes bug #359887]
2008-02-08 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Guard against an NRE in ShowFocusCues.
[Fixes bug #359830]
2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
property, as well as stubbing DataSourceUpdateMode.
2008-02-08 Andreia Gaita <avidigal@novell.com>
* Form.cs: When closing forms, get focus back to the active control of the
active form. [Fixes #341314, corner case]
2008-02-07 Jonathan Pobst <monkey@jpobst.com>
* MdiClient.cs: After we move the scrollbars, invalidate the NC
area, so any old scrollbar artifacts are cleaned up.
[Fixes bug #336305]
2008-02-07 Jonathan Pobst <monkey@jpobst.com>
* MdiWindowManager.cs: If we are maximized and using MainMenuStrip
for our menus, display that control box menu instead of the 1.1
menu one.
2008-02-07 Jonathan Pobst <monkey@jpobst.com>
* MdiControlStrip.cs: Add property to access the mdi form tied to
each toolstripitem.
* MdiClient.cs: Be smarter about removing and adding toolstripitems
to the implicitly merged menu. Every time we clicked the form, items
were getting removed and the re-added, causing the form to jump around
as the menu resized.
2008-02-07 Jonathan Pobst <monkey@jpobst.com>
* MdiClient.cs: Make sure the NormalBounds always gets set. It
was being reset by the implicit menu merge for menustrips.
[Fixes bug #336296]
2008-02-07 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Don't do the previous change when WindowState = Normal,
or it messes up where the window is placed. Fixes test failure.
2008-02-07 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: When becoming visible, if we are an MDI child, call
SetWindowState with a dummy old_state so that changes will actually
be made.
[Fixes the 2nd part of bug #325473]
2008-02-07 Andreia Gaita <avidigal@novell.com>
* Control.cs: Reset properties to their pre parent-change values in case
the new parent == null (in which case we're basically removing the control,
and don't want any events fired due to fake property changes)
[Fixes #355850]
2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs:
- Refactor SetValue to allow setting the value
when a custom editor is used, but the entry is not editable.
- Remove the custom editor control on CloseDropDown.
[Fixes #359196]
2008-02-06 Andreia Gaita <avidigal@novell.com>
* PrintControllerWithStatusDialog.cs: Set PrintFileName value through
reflection only on 1.1, this property is public on system.drawing on 2.0.
Fixed #359247
2008-02-06 Andreia Gaita <avidigal@novell.com>
* WebBrowser.cs: Do a normal page refresh by default.
2008-02-05 Andreia Gaita <avidigal@novell.com>
* XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
the window so that the check on Control.UpdateZOrderOfChild passes on non-X
platforms. Fixes #359036
Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
platform-specific flags.
2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Add 2.0 BindableComponent property - just return control
by now.
2008-02-05 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
Jonathan for this patch. Fixes #358442.
2008-02-05 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: If we change the active MDI child form, let the others
know they need to repaint their title bar so it will appear inactive.
[Fixes part 1 of bug #325473]
2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Do not trucate custom editors' width
and align them to the left.
[Fixes #358353 and #358349]
2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingsCollection.cs: Implement 2.0 CollectionChanging event.
Also fix the arguments passed to CollectionChangeEventArgs in the
related methods.
2008-02-04 Geoff Norton <gnorton@novell.com>
* Hwnd.cs: The conversion to Quartz coordinates happens in
System.Drawing. Removing this translation from here.
2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
GridItemCollection.cs:
PropertyGrid rewrite part 2. Tons of bugfixes and new features.
2008-02-04 Geoff Norton <gnorton@novell.com>
* X11Keyboard.cs: VK_MENU should send a KEYUP instead of
SYSKEYUP if any other key has been pressed in the mean time.
Fixes #324404
2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
when the item in current position is different than 0. Also, save the
item index in the beginning of the operation, instead of getting the
index of the item when the event is actually performed. Lastly clean
the related fields in ItemsMouseUp if the ItemDrag operation wasn't
triggered.
[Fixes #357873]
2008-02-03 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Alt-Minus for MDI children system menu should work
with both the minus keys on the keyboard.
[Fixes bug #336295]
2008-02-03 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Don't invalidate on region change. The WM should
take care of this automagically. Keeps us out of an infinite
paint loop if someone changes the Region in the OnPaint.
[Fixes bug #358327]
2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
* ImageIndexConverter.cs: ConvertFrom must handle "(none)".
2008-02-03 Jonathan Pobst <monkey@jpobst.com>
* DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
down the MonthCalendar only on F4, not Alt+F4.
* MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
[Fixes bug #358340]
2008-02-03 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
if its part of a DateTimePicker, else, use the back color.
[Fixes bug #358339]
2008-02-03 Jonathan Pobst <monkey@jpobst.com>
* Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
[Fixes bug #358342]
2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* CurrencyManager.cs: When we get a ListChanged event from our source,
always fire our own ListChanged event, as .Net does.
2008-02-03 Luke Page <luke.a.page@gmail.com>
* RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
#358379.
2008-02-03 Luke Page <luke.a.page@gmail.com>
* TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
property. Removed if for richtext property that was always true.
PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
2008-02-03 Luke Page <luke.a.page@gmail.com>
* TextBoxBase.cs - commited patch from James Purcell that
correctly sets the FixedHeight control style when the MultiLine
property is changed on a TextBox control. Fixes bug 358229.
2008-02-02 Luke Page <luke.a.page@gmail.com>
* Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
Fixes bug 351938 - caret is positioned correctly when drawn
and when calculating textual position of caret, no longer
has a NRE in certain situations.
2008-02-01 Geoff Norton <gnorton@novell.com>
* Hwnd.cs: Ensure that windows moved into -'ve coordinate space
get that region removed from the paint event.
* XplatUICarbon.cs: Remove the window mapping after disposing of
window. Prevents a crash with handle reuse. Optimize exposes
only onto visible windows (rare; but possible).
2008-02-01 Jonathan Pobst <monkey@jpobst.com>
* UpDownBase.cs: Make sure the internal textbox calls the base's
OnMouseDown and OnMouseUp so the textbox will function correctly.
There were notes saying it doesn't chain up, but its an internal
class, so our implementation may differ.
[Fixes bug #357482]
2008-02-01 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Fix a logic error and don't process MouseDown
for mouse buttons other than Left.
2008-02-01 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Remove HeightInternal.
* ListBox.cs: Commit patch from James Purcell that correctly
calculates heights for ListBoxen.
[Fixes bug #357152]
2008-02-01 Jonathan Pobst <monkey@jpobst.com>
* Label.cs: Apply patch from James Purcell that corrects the
signature of the AutoSize property.
[Fixes bug #357605]
2008-02-01 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Don't throw [Mouse]Click events for buttons
other than the left mouse button.
2008-01-31 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Remove my awesome optimization as it caused some
regressions with control ordering. :(
[Fixes bug #357467]
2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Fix a NRE on double click when there is no
selected object.
2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
2008-01-30 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Call MouseClick and MouseDoubleClick.
[Fixes bug #357146]
2008-01-29 Jonathan Pobst <monkey@jpobst.com>
* Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
* Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
instead of Hwnd.bmp_g.
2008-01-29 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
Use the Hwnd one instead.
2008-01-29 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Remove duplicated copy of GetAutoScaleSize.
2008-01-29 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: corcompare for RestoreBounds.
2008-01-29 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Add MarshalAs attribute to Font getter for corcompare.
2008-01-29 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Handle Alt-Minus for MDI children forms.
* MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
Add mnemonics to the control menu.
[Fixes bug #336295]
2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Initial implementation bits of FormattingEnabled
property and BindingComplete event (2.0).
* BindingCompleteEventArgs.cs: Internal methods for setting error text
and exception.
2008-01-28 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutPanel.cs: Draw the table border at 0,0 instead of
table.Location. [Fixes bug #354672]
2008-01-28 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
of doing all the re-bound work, just invalidate and call SetControlText
to set the updated text of selected item to our textbox.
Fixes #333750.
2008-01-28 Andreia Gaita <avidigal@novell.com>
* HtmlWindow.cs: Add event handler support. Add Document, Frames,
IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
missing properties and methods. Add Load, Unload, Error, GotFocus,
LostFocus, Resize, Scroll events (only load and unload are connected)
2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
* AccessibleObject.cs: Modified argument names to match MS.
* Button.cs: Modified argument names to match MS.
* BindingContext.cs: Modified argument names to match MS.
* BindingMemberInfo.cs: Modified argument names to match MS.
* ButtonBase.cs: Modified argument names to match MS.
* ComboBox.cs: Modified argument names to match MS.
* Control.cs: Modified argument names to match MS.
* CheckedListBox.cs: Modified argument names to match MS.
* CommonDialog.cs: Modified argument names to match MS.
* DataGrid.cs: Modified argument names to match MS.
* CursorConverter.cs: Modified argument names to match MS.
* ControlPaint.cs: Modified argument names to match MS.
* CheckBox.cs: Modified argument names to match MS.
* ControlBindingsCollection.cs: Modified argument names to match MS.
* BindingSource.cs: Modified argument names to match MS.
* DataFormats.cs: Modified argument names to match MS.
* ContainerControl.cs: Modified argument names to match MS.
* CurrencyManager.cs: Modified argument names to match MS.
* Application.cs: Modified argument names to match MS.
* ContextMenuStrip.cs: Modified argument names to match MS.
* ContextMenu.cs: Modified argument names to match MS.
* BindingManagerBase.cs: Modified argument names to match MS.
* WindowsFormsSection.cs: Fixed line ending.
2008-01-27 Andreia Gaita <avidigal@novell.com>
* PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
detecting that the dropdown toolwindow is hidden. EndLoop outside the
while.
2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
* PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
MS. Code formatting.
2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Don't avoid the Format event if the control
property type is object. Also, if the value retrieved by
the data source is null _and_ the control proeprty type
is object, return Convert.DBNull (match .Net).
Fixes part of #324286.
2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControl.cs: Since we are getting two BinginContextChanged events
for the same binding context instance (when the control is added to
form, and when the form is actually shown), take it into account only the
first time for a given binding context instance.
Fixes part of #324286.
2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
* PropertryGridView.cs: Ops.
2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Close dropdown form if the owner form is
moved or minimized.
[Fixes bug #322446]
2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
RootGridEntry.cs, CategoryGridEntry.cs:
PropertyGrid rewrite.
- Rewrite all of the control logic in PropertyGrid.
- Rewrite all of the ComponentModel logic in GridEntry.
- Rewrite all UI work in PropertyGridView.
- Many bugfixes, etc.
2008-01-24 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
when all contained controls are autosize or dock-fill. Also take into
account when the total percentage of column/row sizes is not 100%.
[Fixes bug #354672]
2008-01-24 Andreia Gaita <avidigal@novell.com>
* HtmlDocument.cs:
- Save a reference to the IDocument in the instance and
use that one instead of going to WebHost.Document; the document that the
WebHost returns might not be the right one (in case of frames).
- Use the hashcode returned from the IDocument interface.
- Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
LinkColor, Url, VisitedColor, Window
* HtmlElement.cs:
- Implemented: CanHaveChildren, Children, Document, GetAttribute,
set_Attribute, NextSibling, Parent, TagName, AppendChild,
GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
SetAttribute, Equals, equality operators.
- Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
* HtmlElementCollection.cs: Change implementation to use a generic
collection. Implemented Enumerator and CopyTo
* HtmlHistory.cs: Add constructor, no implementation yet.
* HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
Equals, equality operators.
* HtmlWindowCollection.cs: Implemented.
* WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
has been deprecated).
* WebBrowserBase.cs: Use Completed event to track document loading
(Navigated has been deprecated)
2008-01-24 Jonatham Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
level MenuItems do not respect tabs.
[Fixes bug #355196]
2008-01-23 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Ensure that windows are created in their initial
FormWindowState. Finished fixing Fullscreen windows on Carbon
2008-01-23 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
be used as grab_control. Also save status of capture before show ContextMenu
and restore it after close.
2008-01-23 Everaldo Canuto <ecanuto@novell.com>
* Control.cs: Internal FindRootParent method added to return high control
in parent tree.
2008-01-23 Geoff Norton <gnorton@novell.com>
* Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
* XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
it work again. Handle HITTEST events.
2008-01-23 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Ensure that we always have a host window. Prevents
a crash in certain cases. Support for fullscreen windows in certain cases.
2008-01-23 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
[Fixes bug #355703]
2008-01-23 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Remove some dead code that was causing warnings.
2008-01-23 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
2008-01-23 Everaldo Canuto <ecanuto@novell.com>
* SplitContainer.cs: Remove unused declarations.
* Binding.cs: Remove unused declarations.
2008-01-23 Everaldo Canuto <ecanuto@novell.com>
* Form.cs: Remove unused declaration of 'active' in Activate method.
* Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
prevent compilation warnings.
* TextControl.cs: Remove unused declaration of selection_pos_on_line.
* Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
* Bindings.cs: Remove unused formatting_enabled declaration.
* ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
warnings.
* TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
warnings.
* PropertyGridView.cs: Remove usused 'ex' declaration.
* DataGridView.cs: Remove unused declarations.
2008-01-23 Everaldo Canuto <ecanuto@novell.com>
[Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
* Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
to Control class, it makes possible to grab menu to controls that can't
reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
WmMouseMove removed since it was used only to track menu events.
* Control.cs:
- Moved all active_tracker stuff from Form.
- ProcessActiveTracker added to prevent code duplicity, now mouse events
can call this method instead of reimplement all necessary code handle for
menu tracker.
- Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
and WmMouseMove).
* MenuAPI.cs:
- Remove special handle to ToolStripOverflow, now we can grab menu to
controls that can't reach Form using parent tree.
- Change type of grab_control from Form to Control.
2008-01-22 Geoff Norton <gnorton@novell.com>
* TextBoxBase.cs: Split up the sizing of controls and placing of
controls. Fixes a bug where scrollbars in Reflector could be sized
wrong and have non-working thumbers.
2008-01-23 Geoff Norton <gnorton@novell.com>
* XplatUI.cs: Refactor environment variables to default support to the
Carbon driver on the Mac.
2008-01-23 Everaldo Canuto <ecanuto@novell.com>
* Label.cs: Uses new LabelPainter for drawing operations.
* ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
* Theme.cs: DrawLabel and LabelDefaultSize removed.
2008-01-22 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
2008-01-22 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
through the normal flat button code and don't draw the checkbox glyph.
* Theme.cs: Button->ButtonBase signature change.
[Fixes bug #324755]
2008-01-22 Everaldo Canuto <ecanuto@novell.com>
* LinkLabel.cs: Uses new class LinkLabelPainter.
2008-01-22 Everaldo Canuto <ecanuto@novell.com>
* MessageBox.cs: Adjust right border space, we don't need to add
"space_border*2" two times.
2008-01-22 Jonathan Pobst <monkey@jpobst.com>
* ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
becomes a wrapper around Padding.
[Fixes a part of bug #354676]
2008-01-22 Geoff Norton <gnorton@novell.com>
* Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
acquired. Also ensure the buffer is large enough to grab the header
we need on linux boxes.
2008-01-22 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Implement a custom enumerator so people can delete
from the Controls collection while in a foreach.
[Fixes bug #355074]
2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Fix focusing behavior:
- Tab should focus the grid text box.
- Clicking on the labels shouldn't focus the grid text box.
2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: IsValueTypeGridItem should return true
for Arrays as well.
2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
- Renamed GridEntry.SelectedObjects to TargetObjects to better
reflect the property name role.
- PropertyGrid.GetTarget is not required as the target is known
(TargetObjects).
- Setting values will handle value types as a special case now and
populate them up in the chain.
[Fixes #354990]
2008-01-21 Jonathan Pobst <monkey@jpobst.com>
* Hwnd.cs: Create a public property for the Graphics we keep around.
2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Just hide the grid textbox and do nothing more
when the current object selection changes.
Fixes failing test SelectedObject_Null2.B5.
2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGrid.cs: Process Browsable properties with
DesignerSerializationVisibilityAttribute.Content as being expandable.
This seems also what MS does. Without this e.g SplitContainer.Panel1/2
will not be expandable. We should be nested components-friendly now.
2008-01-21 Andreia Gaita <avidigal@novell.com>
* WebBrowserBase.cs: Check if control was loaded properly,
don't bind if it wasn't.
* HtmlDocument.cs: Implement CreateElement, Equals, Focus,
GetElementFromPoint, equality operators, OpenNew, Write.
Remove extra set_Body
2008-01-18 Jonathan Pobst <monkey@jpobst.com>
* ContainerControl.cs, Control.cs: Apply patch from James Purcell
that makes our AutoScale* stuff more tolerant to different orders
of being set. [Fixes bug #354669]
2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs, PropertyGridTextBox.cs:
Drop WM_LBUTTONDOWN msg sending and use focusing instead.
[Fixes #339005 and #348209]
2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Hide the grid text box before adjusting it
for the newly selected GridItem.
[Fixes #338999]
2008-01-18 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Give MDI children the opportunity to cancel the parent form
attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
properly for both the parent and child.
* Application.cs: Signature of internal method changed, pass the previous
default of false.
[Fixes bug #354286]
2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Set the property value only if it has changed.
[Fixes bug #338997]
2008-01-17 Jonathan Pobst <monkey@jpobst.com>
* MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
If the mouse hasn't actually moved, ignore these messages so the currently
highlighted menuitem isn't reset to the one under the mouse.
[Fixes bug #333668]
2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: When the property changes Invalidate the GridItem
in order for the properties with UITypeEditor.GetPaintValueSupported == true
to reflect the change visually.
[Fixes bug #338998]
2008-01-17 Jonathan Pobst <monkey@jpobst.com>
* ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
to 2.0 button drawing.
* ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
the button text is tall enough for one line. LineLimit says it will
always draw at least one line, but it is a lie.
[Fixes bug #324941]
2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
* XplatUIStructs.cs, X11Keyboard.cs :
added some more VK_* keys to be handled.
2008-01-16 Andreia Gaita <avidigal@novell.com>
* Control.cs: Check if there is a container before setting or getting
the validation flag.
2008-01-16 Andreia Gaita <avidigal@novell.com>
* ContainerControl.cs: Add flag to track if a control cancels validation,
so we don't fire click events.
* Control.cs:
- (HandleClick) Check if validation was cancelled before firing the click
events (doubleclicks are fired, but not clicks)
- (WmLButtonDown) Reset validation flag. The flag is normally reset on
ContainerControl.set_ActiveControl, but in the case of non-selectable
controls, like a Label, activecontrol is not set.
* ButtonBase.cs: Only fire clicks if validation passes.
Fixes #353310
2008-01-16 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
trunk
2008-01-16 Jonathan Pobst <monkey@jpobst.com>
* FolderBrowserDialog.cs: If we cannot interpret the user's requested
SelectedPath, just display the default dialog instead of crashing.
[Fixes bug #348989]
2008-01-16 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Flicker be gone! Generate our messages in
AddExpose instead of trusting apples compositing manager which doesn't
work for our use case. Remove some dead code causing warnings and
redecorate some other code to prevent warnings.
2008-01-16 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Avoid some unecessary invalidation calls when
carbon signals us to redraw. Fixes another portion of the flickering bug
2008-01-16 Everaldo Canuto <ecanuto@novell.com>
* Form.cs: Prevent the MdiParent property to be set when value is the same
as value already set. Fixes bug #328019.
2008-01-16 Everaldo Canuto <ecanuto@novell.com>
* Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
it prevents NRE when closing mdi child windows. Fixes bug #325211.
2008-01-16 Everaldo Canuto <ecanuto@novell.com>
* InternalWindowManager.cs: Invalidade close button after mouse up when
mdi form is prevented to close.
2008-01-16 Everaldo Canuto <ecanuto@novell.com>
* MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
thanks to Andy Hume. Fixes bug #325433.
2008-01-16 Andreia Gaita <avidigal@novell.com>
* LinkLabel.cs: Reset focused_index when resellecting the control.
Fixes #323190
2008-01-15 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
messages.
2008-01-15 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
of truncate.
2008-01-15 Jonathan Pobst <monkey@jpobst.com>
* ContainerControl.cs: Setting AutoScaleMode to anything should set
Form.AutoScale to false.
* Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
AutoScaleBaseSize should be changed on Font change unless it has been
explicitly set.
[Fixes bug #353827]
2008-01-15 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: On instance of MenuTracker check if source control is
ToolStripOverflow and use properly method to find form.
[Fixes bug #338511]
2008-01-15 Everaldo Canuto <ecanuto@novell.com>
[Fixes bug #323241 Transparent toolbar support]
* ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
is flat.
* Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
defined in control style to mimic win32 behavior.
* ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
it will be transparent.
2008-01-14 Everaldo Canuto <ecanuto@novell.com>
* XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
CreateParams for ToolBar controls.
2008-01-14 Jonathan Pobst <monkey@jpobst.com>
* Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
FixedToolWindow, SizeableToolWindow, or None for border styles have
different minimum sizes than regular forms. Implemented to fix
regression in PDN with toolbox being too wide.
2008-01-14 Andreia Gaita <avidigal@novell.com>
* HtmlElementCollection.cs: Implemented
* HtmlElement.cs: Implemented:
- All
- InnerHtml
- InnerText
- Id
- Name
- FirstChild
* HtmlDocument.cs: Implemented GetElementsByTagName.
2008-01-14 Jonathan Pobst <monkey@jpobst.com>
* Screen.cs: Stub BitsPerPixel to always return 32.
2008-01-14 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Implement RestoreBounds.
2008-01-14 Jonathan Pobst <monkey@jpobst.com>
* RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
Sebastien and his fabulous magical problem-finding machine:
Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
respect the value set.
2008-01-14 Everaldo Canuto <ecanuto@novell.com>
* Form.cs: In WmWindowPosChanged call base.WndProc including when state is
minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
messages (to match .Net), we need to remove the capture ourselves.
2008-01-11 Jonathan Pobst <monkey@jpobst.com>
* MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
will process the message and close our window.
[Fixes bug #324328]
2008-01-10 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Clip the Graphics context to the invalid area
tracked in the Hwnd. Only invalidate the dirty region to the Carbon
window manager.
2008-01-10 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
failing test.
2008-01-10 Jonathan Pobst <monkey@jpobst.com>
* XplatUIX11.cs: Set a minimum window size and enforce it. Even though
Linux doesn't care, having a minimum matches MS and keeps the window
from becoming too small to use window decorations.
[Fixes bug #338996]
2008-01-10 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
ShowFocusCues. Make focus rectangles fit the text instead of the whole
control. [Fixes bug #325419]
2008-01-10 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Guard against an NRE if the user open a new form from a
SelectedIndexChanged event. This closes the combobox dropdown, and we
were trying to dispose it. [Fixes bug #352830]
2008-01-09 Jonathan Pobst <monkey@jpobst.com>
* Control.cs, Form.cs: Implement the necessary semantics for
ShowFocusCues. All paint code will need to check Control.ShowFocusCues
to determine if a focus rectangle should be drawn.
* PropertyGrid.cs: Fix property visibility to match override.
* ThemeWin32Classic.cs: Use ShowFocusCues for Button.
2008-01-09 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
[Fixes bug #323552]
2008-01-09 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Scroll windows in the correct direction.
2008-01-09 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Track all created utility windows so we can hide them
when the app is deactivated or spaces is enabled.
2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
extra separation pixel for the label rect origin if SmallImageList is
null, and thus we don't need that separation between icon and label
rects.
Patch by Ernesto Carrea.
Fixes # 340195.
2008-01-08 Jonathan Pobst <monkey@jpobst.com>
* StatusStrip.cs: Invalidate after completing a layout. The base
OnLayout does this, but we don't call the base.
* ToolStripItem.cs: Revert the previous change to invalidate after
the item moves.
[Fixes bug #351341 better.]
2008-01-07 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
not a notification to exit the application. Listen for WM_QUIT
instead.
2008-01-07 Andreia Gaita <avidigal@novell.com>
* HtmlDocument.cs: Fix case on GetElementById (interface changed)
2008-01-07 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: If the bounds of an item changes, invalidate it
so it can repaint at the correct location.
[Fixes bug #351341]
2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControl.cs: SelectedValue should return a null value if
SelectedIndex is -1. Also, when setting it, it should throw an
ArgumentNullException if the value is null, as well as taking
into account the String.Empty value, instead of ignoring it (we have
tests for that now).
Fixes part of #324286.
2008-01-06 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
SelectionStart is updated after pressing enter. Fixes bug #351918.
2008-01-05 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Revert a piece r92316 that prevented the fix
from working when there were multiple tags in the text box.
Fixes bug #351881.
2008-01-05 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Apply patch from Luke Page that prevents an
NRE when determining the beginning of a paragraph.
Fixes bug #351886.
2008-01-05 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Apply patch from Luke Page that ensures the
caret gets moved with clicking away from a selected block of
text. Fixes bug #351885.
2008-01-05 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Apply patch from Luke Page that takes line
alignment into account for mouse selection, so that center and
right aligned text can be selected.
Fixes bug #351881.
2008-01-05 Jonathan Pobst <monkey@jpobst.com>
* RichTextBox.cs: Apply patch from Luke Page that fixes some caret
issues after loading an RTF file by using the correct line feeds.
Fixes bug #351841.
2008-01-05 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: When deleting multiple line selections, we need
to invalidate every line beginning at the first line of the selection.
Patch from Luke Page fixes bug #351791.
2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControl.cs: When getting a CurrencyManager.PositionChanged
event, don't set SelectedIndex if the number of items is 1. This is
because, for the first item, PositionChanged is fired _before_
ItemChanged (the place where we actually populate the items), and
leave us in a temporary invalid state (since items collection is
empty).
Fixes #349655.
2008-01-04 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Create native toolwindows instead of
the managed drawing ones.
2008-01-03 Jonathan Pobst <monkey@jpobst.com>
* LineTag.cs: If the line doesn't have any characters, return
0 for GetCharIndex. Fixes an AOORE exception after certain
caret movements. Fixes bug #351683. Patch by Luke Page.
2008-01-03 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Apply patch from Luke Page so when backspace
is hit when there is selected text, only the selected text gets
deleted, not the character in front of the selection as well.
Fixes bug #351578.
2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: When the values are displayed, calculate the
ComboListBox scrollbar's LargeChange based on the visible area's
height and the actuall ItemHeight, instead of calculating it
based on MaxDropItems value, since it's not used by our _current_
2.0 profile.
Fixes #332366.
2008-01-03 Jonathan Pobst <monkey@jpobst.com>
* Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
Patch from Luke Page that fixes issues with font colors and styles
not showing up in a readonly RichTextBox. Fixes bug #324354.
2008-01-03 Jonathan Pobst <monkey@jpobst.com>
* Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
from Luke Page. This one fixes bug #349926.
2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
an item in the IBindingList source changes with
ListChangedType.ItemAdded. Ignore for now firing the event for other
changes, since we want to have tests for those cases as well.
2007-12-28 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
created.
2007-12-28 Jonathan Pobst <monkey@jpobst.com>
* TextBoxTextRenderer.cs: Implement a cache for measuring each
character. This is effective because the typical usage of a
TextBox is with a limited amount of fonts and characters, and
the current implementation of TextBox measures everything one
character at a time. Another second or two speedup for bug #347238.
2007-12-28 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Rewrite the Font getter to only query the parent's
Font property once instead of twice. Since this operation is
recursive, the queries were growing exponentially as the control
tree got deeper. Another second or two speedup for bug #347238.
2007-12-28 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Avoid setting a parent (and more importantly, updating
the zorder of all its children) if the parent is already correct in
WmShowWindow. Decreases the startup time of the test case on bug
#347238 from 35 seconds to 11 seconds.
2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: When the dnd operation has started and we are
in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
This is done to match .Net, which doesn't send those messages after
dnd operation was completed/cancelled.
Fixes #349922.
2007-12-27 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Previous change should be != null, not == null.
Thanks Gert!
2007-12-27 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
user may have moved the mouse off the current item during the event.
2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
calling GetItemAt for every MouseMove event by also taking into
account whether any mouse button is pressed (probably dragging);
if so, we can call GetItemAt, and if not, try to not call it
(GetItemAt can be quite expensive when used with a large number of items).
2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Implement -finally- support for dnd, by calling
OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
authors list ;-).
* ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
simple calculation of distances for all the items in the owner
listview.
2007-12-21 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Ensure that we create WindowMapping handles
for windows that are originally created as invisible. Fixes missing
main window in paint-mono.
2007-12-21 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Register our D&D handler. Register our custom
subclass handler for com.novell.mwfview subclassing HIView. Implement
Pasteboard and Dnd methods.
2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: When we got focus, give focus to first item if there
wasn't any pervious focused item. Also update navigation to depend on
SelectedIndex rather than FocusedItem, just as .Net does.
Fixes #349174.
2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: Both FindString and FindStringExact methods must do an
case insensitive search, should allow the last valid index to be
passed in the overload taking an initial index, and should also
continue searching from the top back to the specified index when it
reaches the bottom.
2007-12-19 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Apply patch from Luke Page that fixes a scrolling
redraw issue, and allows RichTextBox to draw colored text even while
disabled or readonly.
2007-12-19 Jonathan Pobst <monkey@jpobst.com>
* RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
and doesn't grey text in a disabled RichTextBox.
2007-12-19 Jonathan Pobst <monkey@jpobst.com>
* RichTextBox.cs: Apply patch from Luke Page that adds better support
for many RTF commands: quad alignment, separate formatting for blocks
inside groups, and ParDef support. Makes the test case from bug #324589
look much better.
2007-12-19 Jonathan Pobst <monkey@jpobst.com>
* LineTag.cs: Fix an error in the new Draw method that caused
a crash when rendering the document on bug #324589.
2007-12-19 Jonathan Pobst <monkey@jpobst.com>
* Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
TextControl.cs: Apply patch from Luke Page that adds support
for URL links in RichTextBox.
[Fixes enhancement #342516]
2007-12-18 Everaldo Canuto <ecanuto@novell.com>
* MenuItem.cs: When cloning menuitem clone also name and tag properties for
2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: When a key gets pressed, try to find a string
if the key is a character or a digit.
Fixes #343971.
2007-12-17 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutPanel.cs: Remove some unused variables.
2007-12-17 Jonathan Pobst <monkey@jpobst.com>
* DateTimePicker.cs: Commit patch from Luke Page that ensures
we don't end up at an invalid date when we click the up/down
spinner to change the month or year. Fixes bug #348682.
2007-12-17 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Calling Exit in 2.0 should chain to the
Exit (CancelEventArgs) version so it can be cancelled.
* Form.cs: Create a flag to allow raising the Closing
events to be skipped. We raise them once in Application.Exit
and don't want to raise them again when the Form is actually
closed. [Fixes bug #349073]
2007-12-16 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDown.cs: Guard against an NRE when there
hasn't been a mainform set in the application context.
[Fixes bug #349108]
2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: When SetBoundsCore gets called, besides
calling UpdateScrollBars, update the value of
last_visible_index, since we could need to show more items
than before, and we need to let the paint routines know that.
Fixes #344445.
2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add DesignerSerializationVisibility attribute to
InsertionMark property.
* ListViewItem.cs: Add same attribute to Position property.
2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
is 2.0 only.
2007-12-14 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Don't draw the background on a
flat button if there is a background image.
[Fixes bug #348649]
2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: If we remove the item currently selected,
remove it not only from SelectedItems, but also
resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
the items count decreased and focused_item has bigger value than that.
2007-12-13 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Perform our layout after we resize ourselves
if we had to adjust our AutoSize. Missed commit for bug
#346246.
2007-12-13 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutPanel.cs: Override GetPreferredSizeCore so
we can provide an implementation of AutoSize.
[Fixes bug #346246]
2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: Add the internal overload Sort (bool paint),
to indicate whether we actually need a paint or we will
call Refresh ourselves. This way we don't request a paint
_before_ having an updated and valid layout.
Fixes #347233.
2007-12-12 Andreia Gaita <avidigal@novell.com>
* XPlatUIX11.cs: Send paint messages when updating a systray icon
* NotifyIcon.cs: Invalidate the window before doing a systray change so it is
properly invalidated.
Fixes #324237
2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: When using a .ctor taking a ListViewGroup,
don't simply assign it to our internal group field, but instead
use our Group property, which should do all the neccessary work
required to support groups. Fixes an issue reported to me (mail) by a
guy using this new feature.
2007-12-11 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Use Scale instead of ScaleControl to ensure the
whole hierarchy gets scaled.
[Fixes bug #347282]
2007-12-10 Jonathan Pobst <monkey@jpobst.com>
* DateTimePicker.cs: Don't set the internal MonthCalendar's
Parent property. Doing this causes the control to be hosted by
the Form instead of being a popup window.
[Fixes bug #347665]
2007-12-10 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItemCollection.cs: If we try to insert a ToolStripItem
at an index higher than Count, just use Add instead of Insert.
[Fixes bug #347669]
2007-12-10 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Don't draw a PictureBox's background in
DrawPictureBox, this is handled by Control.PaintBackground.
[Fixes bug #347276]
2007-12-10 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: When process menu keys return true by default only if menu is
active. Fixes bug #342892.
2007-12-09 Andreia Gaita <avidigal@novell.com>
* Control.cs: check if windows are actually mapped before
trying to zorder. Fixes #342509, #346955
2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs:
* ListViewInsertionMark.cs:
* ThemeWin32Classic.cs: Implement the drawing side of the
new 2.0 ListView.InsertionMark property.
2007-12-07 Jonathan Pobst <monkey@jpobst.com>
* CurrencyManager.cs: Silence some debug spew.
2007-12-07 Geoff Norton <gnorton@novell.com>
* Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
masks for our children as well as siblings to avoid having to query
Quartz for this information.
* XplatUICarbon.cs: Implement a delegate based system to pass
information to System.Drawing. Implement Async methods. Remove
the hack for the resize thumb and imlpement a transparent Grow Box.
Rework the messaging system to proplery create window's and messages,
fixes TabControl.
2007-12-06 Andreia Gaita <avidigal@novell.com>
* X11Keyboard.cs: Use Xutf8LookupString to support international
characters under alternate codepages. Patch from #340878
2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When doing layout computations, set position in the
ListView instances (we cache the position just as .Net does).
* ListViewItem.cs: New internal setter method for Position. Also set
position field as also available in 1.1, since we are going to use it
now in the common case.
2007-12-06 Andreia Gaita <avidigal@novell.com>
* Control.cs: When removing controls, get the actual container
to notify about active control changes. Fixes 341314.
2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Forgot to add Font to our serialization stuff.
2007-12-05 Andreia Gaita <avidigal@novell.com>
* Control.cs: When updating the zorder, ignore windows that are not
mapped. Fixes #342509
2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Actually implement serialization on this class.
2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
* LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
LinkCollection. Spaces to tabs, and removed extra tabs.
2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: Make toolwindows' decorations show up without causing any
tests to fail (hopefully).
2007-12-03 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
the image margin so custom renderers can correctly place it.
2007-12-03 Jonathan Pobst <monkey@jpobst.com>
* StatusStrip.cs: Fill in AffectedBounds when drawing the grip
so custom renderers can correctly place it.
2007-12-03 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Let WM_CHAR messages flow through to controls
hosted in Strips. [Fixes bug #343972]
2007-12-02 Jonathan Pobst <monkey@jpobst.com>
* ToolStripManager.cs: Guard against an NRE I ran into.
2007-12-02 Jonathan Pobst <monkey@jpobst.com>
* LinkLabel.cs: Apply patch from George to fix bug 344012. If
a Link is manually added to the Links collection, we need to set
its owner, so it can invalidate properly.
[Fixes bug #344012]
2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When changing ListViewItem.Position (which calls
ListView.ChangeItemLocation), invalidate not only the area
corresponding to the main item, but also to the area occupied
by the items being moved.
2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When changing the position of a given item,
don't use item bounds, but item areas (which includes the item spacing
between them). Also, use first/last position if the requested
position is outside bounds (as .Net does). Invalidate the previous and
new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
in a specific position, instead of directly accessing Items collection
(this is done to get the right item - remember an Item can have a
different position in the grid than in the Items collection).
2007-11-23 Everaldo Canuto <ecanuto@novell.com>
* MessageBox.cs: Calculate text area instead of just top left, this rect
area will be used in DrawString. Fixes bug #343364.
2007-11-23 Everaldo Canuto <ecanuto@novell.com>
* MessageBox.cs: Calculate max amount for text area width, it must be 60% of
screen width. Partially fixes bug #343364.
2007-11-23 Everaldo Canuto <ecanuto@novell.com>
* NotifyIcon.cs: Remove duplicated code before call realculate and put this
code inside recalculate, it makes code more simple.
2007-11-22 Everaldo Canuto <ecanuto@novell.com>
* NotifyIcon.cs: When recalculate icon verify if icon is active to decide
between update or add icon. Fixes bug #324344.
2007-11-21 Andreia Gaita <avidigal@novell.com>
* XPlatUIX11.cs: Do not treat tool windows as if they have no
window manager, since that stretches the drawing area to include
the window decorations, and they get hidden. Reverts r84444 and fixes
#335849 and #342790 (mdi and pdn3 regression)
2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When setting focused item, try to give focus to the
previous one _only_ if the previous one remains valid.
Fixes #342504.
2007-11-20 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Revert r89650, as it broke a common case to fix
an obscure case. Fixes bug #342606.
2007-11-20 Everaldo Canuto <ecanuto@novell.com>
* ThemeWin32Classic.cs: Fix extra space on end of tooltip.
2007-11-20 Everaldo Canuto <ecanuto@novell.com>
* ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
alignment. [Fixes #324228]
2007-11-19 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
[Fixes bug #342123]
2007-11-19 Everaldo Canuto <ecanuto@novell.com>
* Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
it prevent problems when empty captions. [Fixes #342141]
2007-11-19 Jonathan Pobst <monkey@jpobst.com>
* Label.cs: Use Size instead of None. Fixes bug #342077.
2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Implement 2.0 FindNearestItem method.
2007-11-17 Jonathan Pobst <monkey@jpobst.com>
* MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
but there isn't a MdiContainer.
[Fixes bug #342358]
2007-11-17 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Don't recalculate document if the recalc_start and
recalc_end hasn't changed.
[Fixes bug #342505]
2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
* DataGridViewTextBoxCell.cs: Removed CWL.
2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Implement 2.0 SearchForVirtualItem event support.
2007-11-16 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Missed some code for bug 341534 to trigger a
recalculation when the font changes.
2007-11-16 Andreia Gaita <avidigal@novell.com>
* Control.cs: When updating the zorder, check if the child to update is
the same control that is set to always be on top (i.e., scrollbars), and
just put it on top directly. Fixes BadMatch error on pdn3
2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Throw the needed exceptions for FindNearestItem.
2007-11-16 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Don't perform a new layout when a label changes its text,
cause label handles its own autosizing.
[Fixes bug #342077]
2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Implement 2.0 FindNearestItem methods.
2007-11-15 Jonathan Pobst <monkey@jpobst.com>
* ToolStripPanel.cs: Make Join at least add the control to the panel,
even if the rest of what Join does isn't supported. Add some more
support for vertical toolbars.
* ToolStripPanelRow.cs: Add some more support for vertical toolbars.
[Fixes the application breaking parts of bug #341998]
2007-11-15 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: When determining if we have a check/image margin,
we need to look at ShowCheckMargin as well as ShowImageMargin.
2007-11-15 Geoff Norton <gnorton@novell.com>
* XplatUIOSX.cs: Rename to...
* XplatUICarbon.cs: and refactor all event handling out to the new event handling
system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
2007-11-15 Jonathan Pobst <monkey@jpobst.com>
* KeysConverter.cs: The default values should be an array of Keys, not
strings. Also, the array has more values for 2.0.
[Fixes bug #341851]
2007-11-14 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Change ExecutablePath to use
Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
[Fixes bug #323552]
2007-11-14 Jonathan Pobst <monkey@jpobst.com>
* LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
* TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
be ignored. Create a new GetLineEnding that can specify which types of
line endings to look for. On Insert, only create new lines for \n and \r\n.
[Fixes bug #324274]
2007-11-14 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: As we loop through each line changing the font, tell
the document that the line needs to be recalculated. Fixes bug #341534.
2007-11-13 Jonathan Pobst <monkey@jpobst.com>
[Another round of refactoring]
* Line.cs: Add DeleteCharacters.
* LineTag.cs: Add Delete.
* TextBoxBase.cs: Update to use new methods.
* TextControl.cs: Refactor the Delete* methods.
2007-11-13 Everaldo Canuto <ecanuto@novell.com>
* Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
the patch. [Fixes #324856]
2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs:
* ListViewItem.cs: Add an initial implementation of
2.0 ListViewItem.Position getter.
2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add a reordered_items_indices array, to allow us
to have a different sorting than that of Items (the sorting in Items
could not match the actual sorting in screen). This is needed to
implement a pair of 2.0 features.
* ListViewItem.cs: Add a DisplayIndex property to keep track of the
actual position in the ListView grid, since it could have a position
different than its Index (position in ListViewItemCollection).
2007-11-09 Jonathan Pobst <monkey@jpobst.com>
* Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
not draw partial lines.
* LinkLabel.cs: Change FormatFlags setter from = to |= so that the
LineLimit flag from the base is preserved.
Fixes the windows part of bug #338965.
2007-11-09 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
so that it can be canceled in KeyPress.
Fixes bug #340078.
2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: In ItemControl, reset mouse-handling related
fields even if we dont' have items (we still should reset them when
we had items but then called Items.Clear). Partially based in a patch
by George Giolfan.
Fixes #338399.
2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
* Application.cs: In ProductVersion first try AssemblyFileVersion
before falling back to assembly version. Fixes bug #339787.
2007-11-08 Andreia Gaita <avidigal@novell.com>
* HtmlElement.cs: Implement InnerText setter.
* WebBrowserBase.cs: Implement Navigated event support.
Add flag to track when the browser "document" is ready to be retrieved.
* WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
Make sure browser document is ready before retrieving it.
Clean up cached objects (document) when moving to a new page through
any of the navigation methods.
Use the new Mono.WebBrowser.INavigation interface to control navigation.
Implement OnNavigated event.
2007-11-07 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
DrawLinkLabel, this is handled by OnPaintBackground.
Fixes bug #339565, part II.
2007-11-07 Andreia Gaita <avidigal@novell.com>
* Control.cs: Revert r88915. Selecting text on a textbox depends on
getting a Select call on click, so this call needs to be here for now.
Unfixes #325809
2007-11-07 Geoff Norton <gnorton@novell.com>
* OSXStructs.cs: Add the kEventClassApplication constants.
* XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
application is deactivated otherwise Menu overlays linger on top of
other application windows.
2007-11-07 Geoff Norton <gnorton@novell.com>
* XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
dont support cursors yet anyways. This allows Reflector to run.
2007-11-07 Geoff Norton <gnorton@novell.com>
* XplatUIOSX.cs: Implement DragSize.
2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When we receive a WM_LBUTTONDOWN message in
ItemControl, request the focus, as .Net does. This is needed after
Control does not request focus anymore when it receives a
WM_LBUTTONDOWN.
2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
* Label.cs: Make DrawImage internal so it can be called from Theme code.
Remove the DrawImage call from OnPaint.
* LinkLabel.cs: Remove the DrawImage call from OnPaint.
* ThemeWin32Classic.cs: Call DrawImage after we paint the background,
but before we draw the text for DrawLabel and DrawLinkLabel.
Fixes bug #339565.
2007-11-05 Andreia Gaita <avidigal@novell.com>
* Control.cs: Remove select call on click. Fixes #325809
2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Add 2.0 Position property getter.
2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add 2.0 BackgroundImageTiled property.
Also, to make it work properly, change item's BackColor and
BackgroundImageLayout as needed.
* ThemeWin32Classic.cs: Don't fill any background rectangle
in ListView.ItemControl when drawing items; just let the Control
base implementation fill it.
2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewGroup.cs: Adda TypeConverter attribute for this class,
as well as adding a custom 'dummy' Converter, as .net does.
2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PropertyGridView.cs: When clicking drop-down button,
select an index in the listbox only if our standard values collection
has one or more items.
2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
property.
2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
* PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
the value is not changed. This ensure a pushed button remains in that
state when clicked again. When switching the value of PropertySort
between Categorized and CategorizedAlphabetical, do not update the
grid items and do not fire a PropertyChangedEvent. When clicking the
sorting buttons, do not modify the PropertySort value when switching
between Categorized and CategorizedAlphabetical but only update the
button state.
2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
* Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
formatting.
* PropertyGrid.cs: Also put Categorized button in pushed state when
PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
for help description label.
2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When calculating the biggest item for a given column,
take into account 2.0 LIstViewItem.IndentCount, since it directly affects
the item's width.
2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
* PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
value for PropertySort on 1.0 profile. PropertySortChanged event
should only be fired on 2.0 profile. Fixed NullReferenceException
in UpdateSortLayout when PropertyGrid contains no items.
2007-11-02 Jonathan Pobst <monkey@jpobst.com>
* MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
[Fixes bug #338554]
2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Implement 2.0 IndentCount property.
2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: When sending status in a dnd operation, compare current
effect with the 'allowed' field instead of 'drag_data.Allowed', since
the later is only created when a Winforms application is both the
source and the target, but not when we are the target only.
Fixes part of #324251.
2007-11-01 Geoff Norton <gnorton@novell.com>
* XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
order of Z-Order.
* Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
children out of the drawing view on mac.
* XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
2007-11-01 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
on the non-hosted-control part of it shouldn't do anything.
Fixes part of bug #327498.
2007-11-01 Andreia Gaita <avidigal@novell.com>
* WebBrowserBase.cs: revert previous change, resize can be called anytime
2007-11-01 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: When a toolstrip has the keyboard input loop, let messages
it does not use flow through to controls that are hosted in menus.
Same with mouse clicks.
* Form.cs: Don't close all menus on click if the click is on a
control hosted in a menu.
Fixes part of bug #327498, and part of bug #325969.
2007-10-31 Andreia Gaita <avidigal@novell.com>
* WebBrowserBase.cs: Only call resize on gluezilla when it is active
2007-10-31 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
Addresses an issue raised in bug #336218.
2007-10-30 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Patch from George that moves the conversion of ClientSize->Size
for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
2007-10-30 Andreia Gaita <avidigal@novell.com>
* ContainerControl.cs: Check if the active control is a
child of a removed control and update active_control accordingly.
Fixes #329718
2007-10-29 Jonathan Pobst <monkey@jpobst.com>
* DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
or the MaxDate. Fixed bug #337693.
2007-10-29 Jonathan Pobst <monkey@jpobst.com>
* XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
after calling SetWindowLong for a form, to force an immediate NC refresh.
Fixes first part of bug #325150.
2007-10-29 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
simple. Fixes the last part of bug #322668.
2007-10-29 Jonathan Pobst <monkey@jpobst.com>
* MessageBox.cs: If the owner is TopMost, then the MessageBox form
needs to be TopMost as well, or else the MessageBox is under the form.
Patch by George fixes bug #325300.
2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: When starting a new drag operation, reset the static
'dropped' field to false (previously the implementation didn't reset
it and got confused after the first drag).
Fixes #325071.
2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PropertyGrid.cs: When PropertySort changes, re-organize the grid
items instead of re-creating them all. For this purpose we now cache
both CategoryGridEntry items and the GridEntries for the main object's
properties.
* GridItem.cs: Make SetParent method abstract.
* GridEntry.cs: Override the SetParent method (already there, but now
we override it).
Fixes #324866.
2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PropertyGridView.cs: Set the plus/minus bounds of a grid item
depending on its depth (as .Net does). Update the needed values in
MouseDown handler. Also draw the plus/minus rect after the label,
so we don't draw on top of it.
2007-10-24 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
processed by forms or controls when menu is active. [Fixes #333548]
2007-10-24 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
parent doesn't have focus. This was causing ToolStripTextBoxes to take
focus on mouse over.
2007-10-24 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Code cleaning, simplifying.
2007-10-24 Geoff Norton <gnorton@novell.com>
* XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
* XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
2007-10-24 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: If the user sets maxlength to 0, it should mean
the cap is maxvalue, not actually 0. [Fixes bug #336218]
2007-10-24 Andreia Gaita <avidigal@novell.com>
* SendKeys.cs: apply jpobst's patch to bug #332409
2007-10-23 Andreia Gaita <avidigal@novell.com>
* TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
Windows 2000 gdi DrawText call doesn't draw if it's higher than that
for some reason
2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PropertyGridView.cs: If a property has an UIEditor available,
make the drop-down/editor button available only if the property
is _not_ read only.
2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PropertyGridView.cs: Don't make the grid item textbox
editable when a drop-down control is available, but
CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
true. The same bur the color of the grid item value's label.
2007-10-22 Geoff Norton <gnorton@novell.com>
* OSXStructs.cs: Add the needed constants for keyboard modifiers.
* OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
* XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
driver. Padd the bottom of all real windows so the resize thumb doesn't
obscure scroll/status bars.
2007-10-22 Jonathan Pobst <monkey@jpobst.com>
* WindowsFormsSection.cs: Implement.
2007-10-22 Everaldo Canuto <ecanuto@novell.com>
* MdiClient.cs: Maximize new active mdi child when a maximized child is
closed see #325434 patch.
2007-10-22 Everaldo Canuto <ecanuto@novell.com>
* MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
see #325434 patch.
2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PropertyGridView.cs: When showing the textbox for a grid item,
have two local variables to store the read-only and non-editable
status of a grid item (we were previously using just one variable
to do this, when actually they are slightly different).
Fixes part of #325023.
2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PropertyGridView.cs: When showing a drop-down list, try to get the
values using TypeConverter.ConvertTo (to convert to a string). Fixes
part of #325023.
2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PropertyGrid.cs: When updating a property and populating sub grid
items, remove the previous ones, and invalidate the specific area.
* PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
area behind a grid item.
* GridItemCollection.cs: Add an internal Clear method, to allow us to
clean the items if needed (specially for controls implementing
ICustomTypeDescriptor and returning a variable number of properties).
Fixes #324865.
2007-10-19 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Clean up and document the Insert function.
2007-10-17 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Make sure we know our start point for updating the view
in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
update the view.
2007-10-17 Jonathan Pobst <monkey@jpobst.com>
* ListView: Couple of corcompare fixes.
2007-10-17 Geoff Norton <gnorton@novell.com>
* XplatUIOSX.cs: Implement support for window icons in the dock. Set
the title caption of real window.
2007-10-17 Jonathan Pobst <monkey@jpobst.com>
* ErrorProvider.cs: Add the error provider's internal window to a
containercontrol when the parent changes. [Fixes bug #329714]
2007-10-17 Geoff Norton <gnorton@novell.com>
* XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
When we make a new window; restore the old active window - fixes dialogs.
2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PropertyGridView.cs: Look for RefreshPropertiesAttribute
when modifying a property, and if found then invalidate as
requested.
Fixes part of #324865.
2007-10-17 Geoff Norton <gnorton@novell.com>
* XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
highly experimental. Fixed coordinate translation. Fixed window locations.
Initial support for clipping. Implemented NC areas and menus. Support for
launching from command line from Will Johansson (wjohansson@atacomm.com).
* OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
wjohansson@atacomm.com)
* Hwnd.cs: Add some internal structures for tracking Mac cursors.
Hwnds now track the existence of all of their children for Mac clipping.
* XplatUI.cs: Re-enabled the native driver on the Mac.
2007-10-17 Jonathan Pobst <monkey@jpobst.com>
* Line.cs: Move the InsertString function to here.
* TextControl.cs: Cleanup some duplicate code, move some InsertString
functionality to Line.
2007-10-17 Geoff Norton <gnorton@novell.com>
* ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
* ButtonBase.cs: Fixed IsDefault to use assigned value instead of
always setting value to true.
* Form.cs: When changing AcceptButton, notify new and original button.
2007-10-16 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Guard against an NRE when the user sets the AcceptButton to
a custom control that implements IButtonControl instead of an actual
button. [Fixes bug #334244]
2007-10-15 Everaldo Canuto <ecanuto@novell.com>
* Form.cs: Change SelectActiveControl to internal, we need to call it in
MdiWindowManager.
* MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
active control when activate a new mdi window.
[Fixes bug #330495]
2007-10-15 Everaldo Canuto <ecanuto@novell.com>
* ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
is already added.
[Fixes bug #333617]
2007-10-15 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
so we always recalculate the whole document instead of just the new part.
[Fixes bug #325082]
2007-10-15 Jonathan Pobst <monkey@jpobst.com>
* LineTag.cs: Fix a case where the GetCharIndex would not return 0
when the mouse was to the left of the first character in the line.
2007-10-15 Jonathan Pobst <monkey@jpobst.com>
* TextBox.cs, TextBoxBase.cs: When setting the document's password
character, use the property instead of the variable so that the
UseSystemPasswordChar property is taken into account.
[Fixes bug #333748]
2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* FolderBrowserDialog.cs: When a node is right clicked and the "New
folder" contex menu appears, actually add the new folder to it, even
if the node is not currently selected. Still use SelectedNode in case
there wasn't found a node under the pointer.
Fixes #325452.
2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: When retrieving the focused state, the index check
should be done only when ListView is in virtualmode, as it is an
expensive check for normal mode.
2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Make the focus state information be stored
in the ListView, not in the items. This is done to match the MS
behaviour for items that are not yet part of a ListView control;
besides that, since just one item can be focused at the same time,
we save a little space in our items.
Fixes part of #331643.
2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
* ComboBox.cs: When focus is lost, deselect the text. When setting
text of control, select all text. Do not hide selection when control
does not have focus. Fixes bug #333663.
2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
* TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
instead of ArgumentException when SelectionLength is set to negative
value. Added same check to SelectionStart. Code formatting.
2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
* TextBoxBase.cs: Invalidate selection before changing SelectionLength
or SelectionStart. Code formatting.
2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
indicating that there was not a previous drag-and-drop operation going
on.
Fixes part of #325071.
2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
AllowedEffect, don't let the drop operation happen.
Fixes #32580.
2007-10-12 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
2007-10-12 Jonathan Pobst <monkey@jpobst.com>
* Line.cs, LineTag.cs: Guard against an exception when Document.Clear
is called.
2007-10-12 Jonathan Pobst <monkey@jpobst.com>
* Line.cs: Add a method that finds the tag that contains an x-coord.
* LineTag.cs: Add a method that finds the character at an x-coord using
a binary search, the old way was a linear search.
* TextControl.cs: Change FindCursor to use the above new methods.
2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DragEventArgs.cs: Allow Effect to have a non allowed value (a
value different than AllowedEffect). This should be possible to
indicate that dragging is not possible in some control/area.
2007-10-11 Jonathan Pobst <monkey@jpobst.com>
* LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
descent internally when font changes instead of outside code being responsible
for setting it.
* Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
instead of accessing internal variables.
2007-10-09 Everaldo Canuto <ecanuto@novell.com>
* MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
remove special treatment for ArrangeIcons since it is already arranged.
2007-10-09 Jonathan Pobst <monkey@jpobst.com>
* TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
the Win32 backend uses Color.
* Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
Refactor to store a Color instead of a Brush for Color.
2007-10-09 Jonathan Pobst <monkey@jpobst.com>
* Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
away. I didn't realize I needed this when I refactored these earlier.
2007-10-09 Jonathan Pobst <monkey@jpobst.com>
* LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
store a Color structure and use the ResPool for back color instead of
holding onto brushes.
2007-10-09 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Fix how we calculate the end of the tag we are drawing.
[Fixes bug #325592]
2007-10-08 Jonathan Pobst <monkey@jpobst.com>
* MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
to recalculate its size. Fixes a part of bug #331052.
2007-10-08 Jonathan Pobst <monkey@jpobst.com>
* NotifyIcon.cs: Set the correct mouse button when handling right mouse
button. Fixes a part of bug #331052.
2007-10-08 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
the CreateParams.
* ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
decorations.
[Fixes bug #330986]
2007-10-08 Jonathan Pobst <monkey@jpobst.com>
* TextBoxTextRenderer.cs: Don't make this a static class, as static
doesn't exist in 1.1. (Thanks jb!)
2007-10-08 Jonathan Pobst <monkey@jpobst.com>
* TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
class to allow us to use different backends on different platforms.
Linux uses the current [Draw|Measure]String backend. Windows uses
the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
of GDI+. This leads to better looking text and more accurate measurements
on Windows, fixing many of the reported issues.
* Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* FolderBrowserDialog.cs: When running on Windows,
try to detect paths such "C:" and add Path.DirectorySeparatorChar,
since we must match both "C:" and "C:\" forms. A little hackish, but
works.
Fixes #325247.
2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When calling EndEdit (after editing an item),
create a new instance of LabelEditEventArgs to keep clean the fields
in case we get a new call to BeginEdit; also do Application.DoEvents
to have focus in synch. This is a fix similar to TreeView's #325244.
2007-10-07 Andreia Gaita <avidigal@novell.com>
* HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
* WebBrowserBase.cs: Added dialog support, calling the
WebBrowserDialogs classes for each specific dialog type.
2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When the last item is focused and is removed,
move the focus to the previous item (in Items order). This is what MS
does.
Fixes #330415.
2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
instead of the opposite (RemoveAt call Remove). This is a better
approach since we don't need to to a pair of traversals when using
RemoveAt.
2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeView.cs: When Keys.Left is pressed, before trying to Collapse
check that the node actually has nodes, and if not, move to the
parent node instead.
Fixes #325265.
2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeView.cs: Move the previous change to the general case (to
call Application.DoEvents in cases where the method was called by
different places).
2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeView.cs: When calling EndEdit and we need to hide the textbox,
call Application.DoEvents. This is neccessary when we get a call to
BeginEdit from an AfterLabelEdit handler, because the focus always
goes to the TreeView, even if we try to give it to our
LabelEditTextBox. The call do Application.DoEvents seems to
synchronize the focus, basically.
Fixes #325244.
2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
should be false. This also removes some nasty recursive paths. Fixes
part of #325244.
2007-10-04 Everaldo Canuto <ecanuto@novell.com>
* MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
state to normal. Also resize window when cascading. Fixes #325433.
2007-10-04 Jonathan Pobst <monkey@jpobst.com>
* RichTextBox.cs: When SelectionColor is set to Color.Empty, use
DefaultForeColor, as drawing empty colored lines isn't very useful.
[Fixes the not drawn lines part of bug #324358]
2007-10-04 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Move Line and LineTag classes into separate files to
make things easier to find.
* Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
* RichTextBox.cs: Capitalize LineTag.Length property access.
- This is purely an organizational/formatting change, no logic changed. -
2007-10-03 Everaldo Canuto <ecanuto@novell.com>
* ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
text is empty.
2007-10-03 Everaldo Canuto <ecanuto@novell.com>
* ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
text is empty.
2007-10-03 Everaldo Canuto <ecanuto@novell.com>
* ComboBox.cs: On contructor use backgound_color instead of BackColor to
prevent calling of OnBackColorChanged. Fixes #325321.
2007-10-03 Everaldo Canuto <ecanuto@novell.com>
* TextBox.cs: When check enabled uses Enabled property instead of is_enabled
because control can be disabled because owner is disabled.
2007-10-02 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: For the 1.1 profile, the default SelectedText is
string.Empty, test failed from previous change.
2007-10-02 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: For the 1.1 profile, the default SelectedText
is null, not String.Empty. See bug #323038.
2007-10-01 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Change the margins to match MS a little better.
Still not perfect for X11 due to some DrawString differences, but
is still an improvement over the old stuff.
Partially fixes #324467.
2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* FolderBrowserDialog.cs: When using MyComputer as
RootFolder, let absolute paths be considered as valid ones. Also, use
Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
for Windows compatibility.
Partially fixes #325247.
2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
method, since it causes the dialog to not select folders directly
under the root path (when setting SelectedPath property).
2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeNode.cs: When calling Expand/Collapse and need to call
ExpandBelow/CollapseBelow respectively, take into account
partially visible nodes (previously Expanding/Collapsing
a partially visible node in the bottom was not updating its +- sign).
2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeView.cs: When calling Expand on a TreeNode, and we need to
expand nodes below (ExpandBelow), scroll the entire Viewport
area if the node is above it and not visible (instead of scrolling
the area from node's Bottom, which applies only when the node is
visible).
Fixes #325266.
2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeView.cs: When calling ExpandAll, set SelectedNode to the top
node in the bottom area (as .Net does). This is done to preserve the
scroll position when ExpandAll is called before handle is created for
the 1.1 profile (bottom area, as opposed to top area in 2.0).
Fixes #324103.
2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeView.cs: When calling ExpandAll, don't move the scroll to the
bottom area if we are in fact not using the vertical scroll bar.
Fixes #324824.
2007-09-27 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Comment out a double buffering optimization that doesn't
take into account invalidates created in OnPaint, causing the control
to never be redrawn. It would take quite a bit of work to work around
this, but I left it commented with an explanation for later possible
optimization.
[Fixes bug #328681]
2007-09-27 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Ask parent to perform a layout if control is AutoSize and
the text changes.
* RadioButton.cs: Implement GetPreferredSizeCore.
[Fixes bug #328672]
2007-09-26 Jonathan Pobst <monkey@jpobst.com>
* RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
corcompare stuffs.
2007-09-26 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Move the sync context stuff to Run instead of RunLoop
so that it doesn't get uninstalled on modal forms.
* Control.cs: Install a sync context when a control is created.
* WindowsFormsSyncronizationContext.cs: Create a private static control
to invoke on. This is easier than trying to find a created control we
can use.
[Fixes bug #327608]
2007-09-25 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Install a WindowsFormsSynchronizationContext in the
run loop, and uninstall it when done.
* WindowsFormsSynchronizationContext.cs: Implement.
[Fixes the common case in bug #327608]
2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
* DataGridViewCellCollection.cs: Added argument checks for indexers.
Use case-insensitive lookup of column name in indexer. Code
formatting.
2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeNode.cs: When collapsing or expanding a node, check whether its
change will affect the visible area (we were previously doing a
IsVisible check, but that check is not enough since children nodes
could be still visible). Fixes part of #325266.
2007-09-21 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Always select the first node when the TreeView gets
focus if there is no currently selected node.
[Fixes bug #324279]
2007-09-21 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
node being selected is null.
[Patch from Yves Bastide fixes bug #326858]
2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
whether all the parent nodes are expanded.
* TreeNodeCollection.cs: When adding a new node an calling SetupNode,
call RecalculateVisibleOrder if all previous nodes are expanded.
Before that we were doing a IsVisible check, but sometimes the node
is not in the visible area, but _should_already be ready, because of
all previous nodes are expanded. Fixes #325259.
2007-09-20 Jonathan Pobst <monkey@jpobst.com>
* ToolStripSplitButton.cs: Call the ButtonClick event if the button
portion of the item is clicked.
2007-09-20 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Do not tell the system to move the cursor if the
textbox isn't focused. Fixes part of bug #322668.
2007-09-20 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: When there are no items, do not show the dropdown if
the down arrow is clicked. Fixes part of bug #322668.
2007-09-20 Jonathan Pobst <monkey@jpobst.com>
* ToolStripComboBox.cs: Manually set the size of this control in the
constructor, as it doesn't seem to be the same as DefaultSize.
Fixes a failing monobuild test.
2007-09-19 Jonathan Pobst <monkey@jpobst.com>
* DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
2007-09-19 Jonathan Pobst <monkey@jpobst.com>
* Theme.cs: FileDialogs should be using DesktopDirectory instead of
Desktop. This lets it work for people who have moved their desktops
from the default location on windows. For people who have not, both
values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
2007-09-18 Jonathan Pobst <monkey@jpobst.com>
* ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
but when the base constructor sets this, the control is null. Set it
again in the constructor. Fixes a failing monobuild test.
2007-09-18 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
get called.
* ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
called.
2007-09-18 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
will handle it themselves.
* ToolStripItem.cs: When deciding what the text of a tooltip should
be, use the Text property instead of the text field.
* ToolStripTextBox.cs: Handle tooltips.
[Fixes bugs #325417 and #325973]
2007-09-18 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDownButton.cs: Only drop down overflow menu with a
left click. Fixes the easy part of bug #325969.
2007-09-18 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
bug #325406, but set a minimum for StatusStrip to 22 to keep
bug #325390 fixed. I think this minimum would have been figured
up automatically if the grip was actually a ToolStripItem, but it
currently is not.
2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
as this is apparently the actual value used by .Net. Also apply
ItemPadding in Details view only, and decrease the general width padding,
to have only the needed. This should fix #324340 in Windows too.
2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Don't Invalidate item if parent is inside
a BeginUpdate/EndUpdate block. This prevents to have differences
between the ListView and items state, as well as avoid some exceptions
there.
* ListView.cs: Make 'updating' field internal.
2007-09-17 Jonathan Pobst <monkey@jpobst.com>
* ToolStripControlHost.cs: Realign control when ControlAlign changes.
* ToolStripItem.cs: Use ImageScalingSize when calculating preferred
size if appropriate.
Fixes reopened bug #325414.
2007-09-17 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
* ToolStripItem.cs: Invalidate before and after our new autosize when
text changes.
Fixes reopened bug #325390.
2007-09-17 Jonathan Pobst <monkey@jpobst.com>
* ToolStripMenuItem.cs: Make sure we invalidate when clicked so
mnemonics can be drawn or undrawn correctly. Fixes reopened bug
#325044.
2007-09-17 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ColumnHeader.cs: When drawing column text, use EllipsisCharacter
instead of EllipsisWord (by equistango at gmail.com). Fixes part of
#82734.
2007-09-14 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
item to select when the ToolStrip is selected.
* ToolStripControlHost: Realign the control when the bounds or visibility
change.
* ToolStripItem.cs: When selected, if it's a control host, focus the control.
* ToolStripOverflow.cs: When laying out the drop down, respect the item's
preferred height.
* ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
base.OnPaint. Was causing text not to be drawn.
2007-09-14 Jonathan Pobst <monkey@jpobst.com>
* SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeView.cs: When creating the label edit text box,
set is initially to Visible = false. This is done to
prevent a confusion in the layout which makes it to lose
focus when shown the first time. Fixes part of #82592.
2007-09-13 Andreia Gaita <avidigal@novell.com>
* WebBrowserBase.cs: add FocusOption enumeration for finer focus control
2007-09-13 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Take Margin into account when calculating preferred
size. Also, allow preferred size to get smaller than the explicit
size.
* ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
First step towards fixing bug #82747.
2007-09-13 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Applied patch from latency@gmx.de to not paint the
full row select background over the plus/minus glyph. Also, turn
off the focus rectangle for full row select since MS doesn't seem
to ever paint it. [Fixes bug #81839]
2007-09-13 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Don't FocusInternal if there is no selected item.
This was causing keyboard opened dropdowns to lose focus.
[Fixes bug #82803]
2007-09-13 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: If Rectangle.Empty is passed to Invalidate, use
ClientRectangle instead. [Fixes bug #82838]
2007-09-13 Jonathan Pobst <monkey@jpobst.com>
* SplitContainer.cs: We can't reset Visible on every layout because
someone may have set Visible = false explicitly on a SplitterPanel.
Make sure when we switch orientation the SplitterDistance does not
change. Fixes two failing tests.
2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeView.cs: Use MeasureTextInternal instead of MeasureText in
TextRenderer, since the latter is only available in 2.0.
2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
* Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
* SplitContainer.cs: Implement FixedPanel layouting.
2007-09-12 Andreia Gaita <avidigal@novell.com>
* WebBrowserBase.cs: setup shutdown routine
2007-09-12 Andreia Gaita <avidigal@novell.com>
* Application.cs: Let keyboard events that are targetted
to non-mwf windows hosted inside mwf (as in, webbrowser),
propagate properly. Fixes keyboard handling on the webbrowser.
2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When handling MouseUp event and we are
highligting a node with the mouse right button, don't trigger
Before/AfterSelecting event, since we are not actually selecting
the node.
2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TreeView.cs: When editing a node, modify the edit text box
depending on the text length (as you are typing), like MS does.
2007-09-12 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
Override GetPreferredSizeCore to perform calculations. Remove custom
autosize logic. [Fixes bug #82739]
2007-09-12 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Modified should default to false.
2007-09-11 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Update the anchoring distances even when layout is supspended.
Patch provided by George fixes bug #82805.
2007-09-11 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Provide a setter for ExplicitHeight.
* TextBoxBase.cs: Now that we have the implementation for explicit heights,
remove the hacks in here for requested_height.
[Fixes bug #82749]
2007-09-11 Jonathan Pobst <monkey@jpobst.com>
* ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
Maximum to lower that its current Value caused an ArgumentException by setting
the Value to the new Maximum.
2007-09-11 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
handle moves to the closest tick when it is being dragged.
[Fixes bug #82751]
2007-09-11 Jonathan Pobst <monkey@jpobst.com>
* ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
can't let them count as real items when calculating where to merge in the
user's items. [Fixed bug #82786]
2007-09-10 Jonathan Pobst <monkey@jpobst.com>
* ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
who want to add a menu item directly onto a toolstrip.
[Fixes bug #82775, part II]
2007-09-10 Jonathan Pobst <monkey@jpobst.com>
* StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
* ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
don't set it to available.
* ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
[Fixes bug #82727, part II]
2007-09-10 Jonathan Pobst <monkey@jpobst.com>
* StatusStrip.cs: Change item placement to None if not visible.
* ToolStripItem.cs: Invalidate when InternalVisible changes.
These should have been committed to fix 82723, but I missed them.
2007-09-10 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
Click, and that it is only called once.
* ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
* ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
dropped down.
[Fixes bug #82775]
2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
to match .Net.
* ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
instead of 8, just like above. Partially fixes #82734.
2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Patch by Ernesto Carrea <equistango at gmail.com>. Partially
fixes #82734.
* ListView.cs: Remove extra space between rows in Details view (match
.Net).
* ThemeWin32Classic.cs: Header text should use ListView.Font, not
the DefaultFont.
2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
* Application.cs: Modified ProductVersion to return value of
AssemblyInformationVersion if available, and fallback to assembly
version. Fixes bug #82746. Code formatting.
* BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
instead.
2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Control.cs: When updating ZOrder for a child control,
take into account the implicit ones (we need it in our controls
using them). Fixes #82642.
2007-09-07 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: Add support for animated images.
[Fixes bug #82726]
2007-09-07 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Make sure we aren't drawing anything that isn't
visible. [Fixes bug #82727]
2007-09-06 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
so we repaint using the new size. [Fixes bug #82723]
2007-09-06 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
option. [Fixes bug #81779]
2007-09-06 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Override HandleClick because the StandardClick style is
set to false. According to MSDN (and testing), the click events should
only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
2007-09-06 Jonathan Pobst <monkey@jpobst.com>
* ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
the border will disappear. Fixes reopened #82653.
2007-09-06 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: If the control is autosize, and its preferred size changes
when it lays out its children, tell its parent so it can be re-layed out.
Fixing some of the fallout from r85433.
2007-09-06 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
and CheckBox share some code.
2007-09-06 Jonathan Pobst <monkey@jpobst.com>
* TrackBar.cs: Only call OnScroll if we actually changed the Value of
the TrackBar, not every mouse move. [Fixed bug #82718]
2007-09-06 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
under 2.0 rendering. [Fixes bug #82657]
2007-09-06 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: If we found a TreeNode to display a context menu, but
it doesn't have one to show, let the TreeView display its menu
instead. [Fixes bug #82680]
2007-09-06 Jonathan Pobst <monkey@jpobst.com>
* ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
OnPaintInternal instead. Give the internal TextBox a Border property
so it can draw itself more correctly. [Fixes bug #82653]
2007-09-06 Zoltan Varga <vargaz@gmail.com>
* HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
2007-09-05 Everaldo Canuto <everaldo@simios.org>
* ComboBox.cs: Adjust combobox button state to reflect current state when
back to enabled = true. Fixes first issue of #82654.
2007-09-05 Everaldo Canuto <everaldo@simios.org>
* Control.cs: Fix last patch regression, prevent forms to update zorder when
setting visible property.
2007-09-05 Everaldo Canuto <everaldo@simios.org>
* Control.cs: Update zorder after control creation in SetVisibleCore, it
fix zorder for controls initially created as non visible. Fixes #82667.
2007-09-04 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
mimic win32 look. Fixes #82656.
2007-09-01 Zoltan Varga <vargaz@gmail.com>
* FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
Stubs for new net 3.5 classes.
2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: In ListViewItemCollection operations calculate
Layout for owner as well as invalidate it. Fixes part of #82642.
2007-08-31 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
when returning Enabled. [Fixes bug #82651]
2007-08-30 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Put item padding info in a single place
(Theme.ListViewItemPaddingWidth) to have working AutoResize on
columns again.
* ThemeWin32Classic.cs:
* Theme.cs: Likewise.
2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When a ListViewSubItem instance is invalidated,
invoke Invalidate on parent ListViewItem, not parent ListView.
Fixes #81570.
2007-08-30 Jonathan Pobst <monkey@jpobst.com>
* ListView.cs, ListViewItem.cs: corcompare stuffs.
2007-08-30 Jonathan Pobst <monkey@jpobst.com>
* BindingMemberInfo.cs: Implement == and != operators.
2007-08-30 Jonathan Pobst <monkey@jpobst.com>
* HtmlElementEventArgs.cs: Implement properties.
2007-08-29 Jonathan Pobst <monkey@jpobst.com>
* HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
2007-08-29 Jonathan Pobst <monkey@jpobst.com>
* TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
Add (string,string,string) to implement the imagekey. It turns out, we
use the requested imagekey whereas .Net does not. So I broke ours to match
theirs. :(
2007-08-29 Jonathan Pobst <monkey@jpobst.com>
* Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
2007-08-29 Jonathan Pobst <monkey@jpobst.com>
* ContainerControl.cs: Implement ValidateChildren and new Validate overload.
2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
* FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
up-to-date. Fixes bug #82618.
2007-08-29 Everaldo Canuto <everaldo@simios.org>
* TextBoxBase.cs: Call CalculateDocument after changes Lines property to
reflect document changes. Fixes #82367.
2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add/fix some override differences between 1.1 and 2.0,
as well as add new ones. This should make work the BackgroundImage
property for ListView again.
2007-08-28 Jonathan Pobst <monkey@jpobst.com>
* DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
2007-08-28 Jonathan Pobst <monkey@jpobst.com>
* Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
IsKeyLocked.
2007-08-28 Jonathan Pobst <monkey@jpobst.com>
* Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
* XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
2007-08-28 Jonathan Pobst <monkey@jpobst.com>
* RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
* Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
* CursorConverter.cs: Implement conversion to InstanceDescriptor.
2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Implement GetService.
2007-08-27 Jonathan Pobst <monkey@jpobst.com>
* LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
for label editting, make sure we focus back on the TreeView.
[Fixes bug #82590]
2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add some 2.0 overrides.
2007-08-27 Everaldo Canuto <ecanuto@novell.com>
* Form.cs: Uses opacity var instead of Opacity property in CreateHandle
because getter dont returns right value before handle creation. Thanks
to George. Fixes #82569.
2007-08-27 Everaldo Canuto <ecanuto@novell.com>
* Theme.cs: Revert last patch, it causes error under win32.
2007-08-27 Everaldo Canuto <ecanuto@novell.com>
* Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
Environment.SpecialFolder.Desktop in Places method, Desktop returns the
logical Desktop rather than the physical file system location. Fixes #82603.
2007-08-26 Everaldo Canuto <ecanuto@novell.com>
* MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
for the patch. Fixes #82568.
2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
methods.
2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewInsertionMark.cs: New stubbed class.
2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
* FolderBrowserDialog.cs: When adding folder, immediately create the
directory with temporary name and rename the directory when editing
finishes. This matches MS. Ensure the node for the new folder is
selected and LabelEdit is disabled, when editing is either finished
or cancelled.
2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
* TreeView.cs: When editing label of node, ensure node is visible.
2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
* PropertyGridView.cs: Set the value only if it has changed.
2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Some more code refactoring to add support sorting
with groups (now for Details view). Remove unused code also.
2007-08-24 Jonathan Pobst <monkey@jpobst.com>
* NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
Not a big fan of reacting immediately to a field in an EventArg, but that's
the way it's done. (This is part of the previous commit that got left out.)
2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
* FolderBrowserDialog.cs: Removed need for separate description field.
Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
has focus when dialog box is displayed again, regardless of what
button was pressed the previous time. Set RootFolder and SelectedPath
each time dialog box is displayed. This ensures the treeview is
refreshed, and fixes bug #82579. Do no hide selected node in TreeView
when it does not have focus. Added support for more special folders.
2007-08-24 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
before calling AfterLabelEdit. If the user calls BeginEdit in that event,
it resets the edit_args.
* TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
[Fixes bug #82577]
2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
* FolderBrowserDialog.cs: Modifies form caption and text of new folder
button to match MS. Provide more meaningful exception message for
invalid RootFolder value. Use zero-length string when SelectedPath
is set to null. Allow non-rooted paths in SelectedPath, but ignore
them in FolderBrowserTreeView. Allow folders to be created in
RootFolder. Fixes bug #82576.
2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Correctly compute the layout_ht (height) when using groups,
since we need to take into account the group headers and the margin
between them.
* ListViewGroup.cs: Add a rows field to store the number of rows per
group.
2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
Anyways, let's just follow the lead.
2007-08-24 Jonathan Pobst <monkey@jpobst.com>
* CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
* Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
controls in GetPreferredSizeCore.
* ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
[Fixes bug #82488]
2007-08-24 Jonathan Pobst <monkey@jpobst.com>
* PrintDialog.cs: Need to instantiate the form variable here too.
2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Do some reorganization to support sorting in groups,
by doing the layout sequentially in ListView.Items. Also add support
for the Default Group, which should be available for items with no
group assigned.
* ListViewGroup.cs: Add support for DefaultGroup. Include new members
for storing layout info also.
* ListViewGroupCollection.cs: Add a DefaultGroup as part of the
collection, as well as providing internal members to do a traversal
including the default group (needed when doing layout/drawing).
* ThemeWin32Classic.cs: When drawing group headers use internal
ListViewGroupCollection members to take into account the default
group.
2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
* FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
2007-08-23 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
been created. If handle is created, we want arror keys. If we are editing
a node, we want things like enter, esc, home, end, page up, page down.
Allows Esc to work for FolderBrowserDialog.
2007-08-23 Jonathan Pobst <monkey@jpobst.com>
* ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
they close when ESC is pressed. Thanks Andy!
2007-08-23 Jonathan Pobst <monkey@jpobst.com>
* CommonDialog.cs: Do not instantiate form, leave that for derived classes.
This way we can tell if this is a CommonDialog provided with mono, or one
that is being implemented outside by a developer. If it is an external one,
the developer is responsible for showing their own form. We were showing
our blank form after the developer showed his.
* ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
PageSetupDialog.cs: Instantiate form variable in our constructor.
[Fixes bug #82531]
2007-08-23 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
and always return true. [Fixes bug #81616]
2007-08-23 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
TextBox. [Fixes bug #82549]
2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
* FileDialog.cs: When Save/Open is clicked and no filename is selected
or entered then do not close the dialog. Fixes bug #82539. Removed
CWLs.
2007-08-22 Everaldo Canuto <ecanuto@novell.com>
* FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
code to this method. It is calling every time filter changes. This method
will help to fix the bug #80887.
2007-08-22 Jonathan Pobst <monkey@jpobst.com>
* CheckBox.cs: Implement AutoSize calculation.
2007-08-22 Jonathan Pobst <monkey@jpobst.com>
* CheckBox.cs: Use new 2.0 rendering for 2.0.
* Theme.cs: Method declarations for 2.0 rendering path.
* ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewGroupCollection.cs: Fix a typo of the previous patch.
2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewGroupCollection.cs: Implement AddRange the right way, to
only call Redraw on the parent one time.
2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
GetClipboardContent.
* DataGridViewCell.cs: Implemented GetClipboardContent,
GetEditedFormattedValue, GetFormattedValue.
* DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
2007-08-21 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutStyleCollection.cs: corcompare fix.
2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataObject.cs: Implemented retrieval of convertible / not convertible
objects.
2007-08-21 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: When changing the item's text, invalidate before we resize
ourselves. This ensures the entire old bounds are repainted, in case our new
size is smaller. [Fixes bug #82518]
2007-08-20 Everaldo Canuto <ecanuto@novell.com>
* XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
flag to make fast handle of mouse events, without this the mouse move is
handled in some manner, whether it is a mouse move or not. Fixes #81588.
2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When doing layout calculations don't use a ref
param to keep the current item; instead use its Index value (this
is specially important when doing the layout with Groups
and Items being sparse). Also don't take into account items added to
the Group but not yet added to the main ListView.Items collection.
2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewGroupCollection.cs: Forgot to mimic an issue
in the indexer (don't assign the ListView owner for new values).
2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewGroupCollection.cs: Make the string indexer use
the int based indexer to re-use code, instead of duplicate the code.
Also Redraw as needed and take into account null values.
2007-08-20 Jonathan Pobst <monkey@jpobst.com>
* StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
[Fixes bug #82481]
2007-08-20 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
when other buttons are clicked or navigated to.
2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
it's XplatUIX11 that attaches them.
2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridView.cs: If a column has been added, recreate the editing row.
Fixes #82226.
2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
of the tag to draw. Makes disappearing text show up again.
2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* StatusBar.cs: Take into account any icons when a panel has AutoSize =
Contents. Fixes #82487.
2007-08-19 Andreia Gaita <avidigal@novell.com>
* Added HtmlElement.cs, HtmlElementCollection.cs,
HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
2007-08-19 Andreia Gaita <avidigal@novell.com>
* BindingSource.cs: Implement this, dispose and getenumerator.
* DataGridViewRowCollection.cs: Move the InvalidOperationException
out of AddInternal, throw it only on public Add calls. The
UsingWebBrowser sample was blowing up with this when setting the
DataSource after adding DataBindings, so it's likely that .net
only throws this exception when Add is called directly.
* ToolStripControlHost.cs: Return the hosted control's text
property, and not the ToolStripItem one (it would always return
the initial value).
* HtmlDocument.cs: Implement GetElementById and All
* WebBrowser.cs: Remove exception on set_DocumentStream.
2007-08-19 Everaldo Canuto <ecanuto@novell.com>
* Form.cs: Fix the max and min value for opacity (0~1).
2007-08-19 Everaldo Canuto <ecanuto@novell.com>
[Fixes #80118]
* DataGridTableStyle.cs: Default header font is now null, on getter it
returns datagrid font when is null. On setter permits null.
* DataGrid.cs:
- When ResetHeaderFont set header font to null.
- On EndInit set grid_style.DataGrid.
2007-08-19 Everaldo Canuto <ecanuto@novell.com>
* TabControl.cs: Fix regression in default padding x.
2007-08-19 Everaldo Canuto <ecanuto@novell.com>
* TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
2007-08-19 Everaldo Canuto <ecanuto@novell.com>
* TabControl.cs: Fix first tab drawing, when selected it must have x = 0
not 2. Fixes #82229.
2007-08-18 Everaldo Canuto <ecanuto@novell.com>
* TabControl.cs: Fix tab size when image height is less than text height.
Partially fixes #81837.
2007-08-18 Everaldo Canuto <ecanuto@novell.com>
* Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
"alt + tab". It works only for Win32, for X11 theres no way to remove window
from taskbar and keep it on "alt_tab". Fixes #81722.
2007-08-18 Everaldo Canuto <ecanuto@novell.com>
* XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
Fixes #80877 and #79418.
2007-08-18 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Fix popup menu position when the size is larger than distance
between position and one of the screen borders. Fixes #82349.
2007-08-18 Everaldo Canuto <ecanuto@novell.com>
* MessageBox.cs: When there is no form that invoked the MessageBox, shows
the MessageBox in the taskbar. Fixes #82457.
2007-08-18 Everaldo Canuto <ecanuto@novell.com>
* MessageBox.cs: Fix form size when icon is set and text height is bigger
than icon. Fixes #82468.
2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
* InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
Refactored HandleNCCalcSize somewhat to avoid code duplication.
* Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
FormBorderStyle to decide if we're calculating a new size from the
client size or not. CreateParams: Don't fake tool windows, only the X11
backend manages toolwindows manually.
2007-08-17 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Only reset is_visible if !IsDisposed to prevent an
ObjectDisposedException.
2007-08-17 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Reset is_visible back to true after OnLoad. Setting this
in OnLoad should not have any effect. [Fixes bug #82470]
2007-08-17 Jonathan Pobst <monkey@jpobst.com>
* ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
paint for controls that create their own ToolTipWindow instead of
going through ToolTip.
2007-08-17 Jonathan Pobst <monkey@jpobst.com>
* ToolTip.cs: Make Hide internal instead of public to match MS API.
2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewGroupCollection.cs: Use generic List instead of an
ArrayList, since this collection is 2.0 only.
2007-08-17 Jeffrey Stedfast <fejj@novell.com>
* ToolTip.cs (Hide): Made public to make the build work (should
this not be public?).
2007-08-17 Jonathan Pobst <monkey@jpobst.com>
* ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
ToolTipWindow.
* ToolTip.cs: Add an internal Visible property to facilitate transition.
2007-08-17 Jonathan Pobst <monkey@jpobst.com>
* DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
PopupEventHandler.cs: Make these internal for 1.1.
* ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
use ToolTipWindow internals.
* ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
* X11Dnd.cs: Add a null check.
2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
* X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
nothing else succeeds. Fixes #82453.
2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIWin32.cs: PaintEventStart: validate the entire source client
rectangle if we're painting to another window than the one the paint
message was generated on. Simplify the code somewhat, which makes
PaintEventEnd also simpler.
2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: When changing parent of a form, let the form decide whether
XplatUI.SetParent should be called or not.
* Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
recreating the handle. If the new parent's handle isn't created, don't
recreate our handle, just destroy it. CreateParams: Check if the
parent's handle is created before fetching it.
2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
Update calls to PaintEventStart/End to take a Message argument.
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
take a Message argument.
* XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
Message argument, and handle the case where we don't paint to the window
for which the paint message was generated.
2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIWin32.cs: Don't call Win32GetLastError directly, use
Marshal.GetLastWin32Error. Plug nasty memory leak in
PaintEventStart/End, we were creating a DC we weren't releasing.
2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add Groups support in Details view. Also have a small
method to do the layout of the group header. Don't use a separate
method to do the groups calculation in Icons view, since our methods
are now a little simpler.
* ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
`Bounds'.
* ThemeWin32Classic.cs: Likewise.
2007-08-16 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Add FilterMessage method and rework our message loop
logic to use it.
2007-08-16 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Add some methods and stub a few methods that are
pretty much never used.
2007-08-15 Jonathan Pobst <monkey@jpobst.com>
* TreeNode.cs: Add some serialization methods.
2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: In ListViewItemCollection have a
'is_main_collection' field to not modify ListViewItem.ListView
when using it as ListViewGroup.Items (and not ListView.Items)
and also don't modify selection state (.Net behaviour).
Instead, set group for items contained in a ListViewGroup.Items collection.
* ListViewItem.cs: Simplify some code in Group setter.
* ListViewGroup.cs: use the new .ctor to pass the current instance
to the ItemsCollection.
* ListViewGroup.cs: Set the ListView property for ListViewGroup
instances when adding/removing. Also make Remove use RemoveAt, which
should perform better.
2007-08-14 Jonathan Pobst <monkey@jpobst.com>
* Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
that crept into the 1.1 profile.
2007-08-14 Jonathan Pobst <monkey@jpobst.com>
* ToolBarButton.cs: Implement ImageKey.
2007-08-14 Jonathan Pobst <monkey@jpobst.com>
* ToolBar.cs: Implement ScaleControl/ScaleCore.
2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
* PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
created, it might have gotten destroyed since we last checked. Fixes
#82405.
2007-08-11 Jonathan Pobst <monkey@jpobst.com>
* ToolTip.cs: Remove mouse in control check from mouseleave handler so
tooltip will hide when mouse is moved off the control.
[Fixes bug #82407]
2007-08-11 Andreia Gaita <avidigal@novell.com>
* WebBrowserBase.cs, WebBrowser.cs: add implementation
using Mono.Mozilla for loading and navigating webcontrol
with xulrunner.
The initial implementation was done on
/trunk/mozembed/tests/browser , and copied here.
2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
* ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
ToolTipWindow for drawing the tooltip. Fixes bug #82408.
2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridView.cs: Add support for an editing row. Fixes #82226.
RowTemplateFull: throw an exception if a column doesn't have a template.
* DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
add the row just before it.
* DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
selected.
* DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
DataGridView field to be able to reach the grid's editing row.
2007-08-10 Jonathan Pobst <monkey@jpobst.com>
* ToolTip.cs: If the control's handle hasn't been created when it has a
tooltip set on it, don't check to see if we need to show the tooltip. This
check was causing the control's handle to be created.
[Fixes bug #82399]
2007-08-10 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
1.1 2.0
Handle Not Created -1 0
Handle Created 0 0
[Fixes bug #82371]
2007-08-10 Jonathan Pobst <monkey@jpobst.com>
* ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
[Fixes bug #82348]
2007-08-09 Jonathan Pobst <monkey@jpobst.com>
* DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
* ToolTip.cs: Implement some properties and owner draw.
2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
show them again, since setting visibility causes a paint, causing an
endless loop (instead use a temporary and set it all when it's known if
they should be shown or not). Fixes #79265.
2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridView.cs: Only do a full column/row selection if a header was
clicked and we're in Column/RowHeader selection mode. If shift and ctrl
isn't pressed, deselect everything before selecting something.
2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
behaviour according to bug #81075 - they are returned in the order they
are selected. Fix HitTest to check if the point is within any of the
headers. Allow for row/column selection when in ColumnHeader or
RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
the row and column to call when their selected state changes, and
updated selected_[rows|columns] whenever SetSelected* is called.
* DataGridViewBand.cs: Initialize isRow correctly. Call
SetSelected[Row|Column]CoreInternal when the selected state changes, and
add a SelectedInternal to avoid StackOverflows.
* DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
ReadOnly no matter what.
* DataGridViewSelectedColumnCollection.cs,
DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
the items in reverse order (just as MS does...)
2007-08-09 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
itself, not part of a mnemonic. [Fixes bug #82378]
2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
* DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
the DGV, the column, the row, or the cell itself is readonly.
2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
* ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
OSVersion.Platform.
* FileDialog.cs: Same.
* TextRendered.cs: Same.
* FolderBrowserDialog.cs: Same.
* TextBoxBase.cs: Same.
* Application.cs: Same.
* Cursors.cs: Same.
* ThemeClearLooks.cs: Same.
2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
* XplatUI.cs: Added RunningOnUnix property to be used by controls
instead of duplicating these checks everywhere.
* FileDialog.cs: Use case-insensitive comparison for populating the
DirComboBox when not running on unix. Fixes bug #82385.
* OpenFileDialog.cs: to match MS, change label of DirComboBox to
"Look in".
2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridView.cs: SelectedRows: we need to check if selectionMode is
FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
cell and column selection with ctrl and shift pressed. Call the correct
BeginEdit/EndEdit whenever we start/end editing. Move painting code to
the corresponding virtual method (PaintBackground to paint background,
etc).
* DataGridViewCell.cs: Implement Selected correctly, we're selected if
either the column, row or the cell itself is selected.
* DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
OnRowsAdded.
* DataGridViewRow.cs: Moved some of the painting code from DataGridView
here. When the row is selected, don't select all cells. Each cell now
queries the row to see if the row is selected.
2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
SelectionMode.
2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: In ListViewItemsCollection check that owner is
not null before trying to access it (this happens quite often
using Groups). Also don't duplicate calls by calling CollectionChanged
method.
2007-08-08 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
when we are dismissed to clear keyboard mnemonics.
* MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
* ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
was activated by keyboard or the OS tells us to always draw them.
* ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
[Fixes bugs #82376, #82377]
2007-08-08 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
shot at having it because Alt was pressed.
* MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
the first real menu item.
* ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
a mnemonic if Text is null.
[Fixes bug #82374]
2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
search do check whether the item is already contained in the
collection or not; instead check if the owner of the item is the same
as ours. Also, remove a redundant check in the same method.
2007-08-08 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Allow the clip region to be set back to null.
* XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
[Fixes button still showing up in bug #82370 when Show Through is turned off]
2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
* GridEntry.cs: Add a null check.
* PropertyGrid.cs: When checking for existing grid entries, ignore category
entries. Fixes #82297.
2007-08-07 Jonathan Pobst <monkey@jpobst.com>
* OwnerDrawPropertyBag.cs: Make the serialization constructor protected
for 2.0.
2007-08-07 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Implement ScaleControl.
2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
have a menu strip.
* MdiWindowManager.cs: Don't create a maximized menu if the child or it's
parent has a menu strip. Fixes #81689.
2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ToolTip.cs: We don't get mouse events on all platforms in the exact same
moments, so apply some fuzzy logic to determine if the mouse is still
inside a control or not. Fixes #82288 (for the third time).
2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: CreateControl: create implicit children as well. Fixes #82344.
Don't create the child if it has been disposed already (may happen if
the user closes the form the Load event).
2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
#82288.
2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Add a null check in OnParentBindingContextChanged. The parent
might call us after we've been destroyed, in which case our own private
parent field is null. Fixes #82326.
2007-08-06 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
check for setting the dropdown's owner.
2007-08-06 Jonathan Pobst <monkey@jpobst.com>
* MdiClient.cs: Fix some failing tests on X11 by adding a null check
before removing system menu items.
2007-08-02 Jonathan Pobst <monkey@jpobst.com>
* MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
folding.
* MdiControlStrip.cs: Added. These are the menu items used in mdi
folding.
* ToolStrip.cs: Add a null check to mnemonics.
* ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
no ConnectedArea.
[Fixes most of bug #81689]
2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
* PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
Use InitialDelay if ReshowDelay is zero. Fixes #82288.
2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridViewCell.cs: EditType: returns
DataGridViewTextBoxEditingControl always.
2007-08-01 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: Remove the LineLimit string format flag from the
DrawString fallback method so that things like buttons that aren't
tall enough to draw a full line will still draw part of the text.
[Fixes part of bug #82272]
2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridView.cs: Implemented AutoResizeColumn(s).
* DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
according to the Alignment.
* DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
Implement alignment and padding when painting.
* DataGridViewRow.cs: SetValues: Don't create a cell if it already
exists.
* DataGridViewCell.cs: Implement BorderWidths in the most primitive
way.
* DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
a column is added.
2007-07-31 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
which is internal.
2007-07-31 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
hide GetPreferredSize from public API.
* ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
* ToolStripItem.cs: Stub out drag and drop methods and events.
* ToolStripManager.cs: Stub out Save/LoadSettings.
* ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
* ToolStripPanel.cs: Fix corcompare error.
* ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
* ToolStripSplitButton.cs: Fix AccessibleObject stuff.
* ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
2007-07-31 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
bounds height instead of PreferredHeight. Puts things back the way
they were for height while still fixing the width. Fixes broken unit
tests.
2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Binding.cs: Implement 2.0 constructors and add a null check.
2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
and fix row index (off by one).
2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
* PropertyGridView.cs: Remove debug output.
2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: We need to reset the is_created flags when the handle is
destroyed. Fixes #82187.
* XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
client coordinates if the window doesn't have a parent.
Win32GetParent returns the parent or the owner, and for top-level
windows with no parent (but with an owner) we were calculating the
location from the location of the owner.
* Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
form has been disposed.
* MdiClient.cs: Add a null-check.
2007-07-30 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
actually do auto-sizing. Override the internal GetPreferredSizeCore
so we can provide an implementation that returns the current width
and preferred height. Allows anchor = right to work with TextBox 2.0.
[Fixes bug #82233]
2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add support for navigating items in Groups mode, by
creating a big matrix containing all rows and cols of all groups. When
are in other mode than Details, pressing Up should have a similar
behaviour as that one of Down (moving to the next available column if
current one doesn't have an item in the requested row). Also, don't
proceed to use groups if ShowGroups is false.
* ListViewGroup.cs: Add an internal int field to store the starting
row of the group (used by the big matrix used for navigating the
ListView).
* ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
false.
2007-07-30 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDown.cs: When we do Show, start with the
DefaultDropDownDirection, but if our popup menu is going to off-screen,
modify the direction to keep it on screen. [Fixes bug #82210]
2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
* FileDialog.cs: Accept any FilterIndex value, and store it
unmodified. When FilterIndex is less than 1, or greater than number
of filters, then default to first filter. Only add filter extension to
file if user did not specifiy an extension. When type of dialog is
OpenFileDialog and DefaultExt is set, then only use filter extension
if: CheckFileExists is true and no file wih the default extension
exists, or CheckFileExists is false, and user specified file does not
exist. When CheckFileExists is true, then add first extension of
selected filter that matches existing file. Perform checks for
existing file, overwrite and create after extension has been added to
file name. When CheckFileExists is true and type is SaveFileDialog,
then only consider first filter extension if DefaultExt is set.
When CheckFileExists is true, then ignore DefaultExt if file with that
extension does not exist. Also perform check for existing file when
type is SaveFileDialog. Changed some field to constants.
2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Take into account the region used by header
control when doing the vertical scroll (this way we invalidate
the precise area, and don't get any dirty one).
2007-07-27 Everaldo Canuto <ecanuto@novell.com>
* FileDialog.cs: Check for valid filterIndex on button open/save.
Fixes #82184.
2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Update some layout calculations in details view
and clean the code in a pair of assignations.
2007-07-26 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
2007-07-26 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
performance of thread-safe Graphic methods. (Thanks rolf!)
2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When doing the layout calculations, don't calculate
scroll bars before handle is created. This is unnecessary and also
calculating them before handle creation item causes a number of random
bugs (which begin to appear after Chris' big patch for handle creation
fixes).
2007-07-26 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
for things that don't have a Graphics object. Currently, things just use
the static Hwnd.bmp_g which is not thread safe.
2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: ShowDialog: don't destroy handles if the dialog is a common
dialog. Fixes #82187.
2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridViewElement.cs: Initialize state.
* DataGridView.cs: Forward a few Mouse events to cells. Add
GetRowInternal and GetCellInternal that doesn't unshare rows.
Implement GetCellDisplayRectangle. HitTest: if the row is shared,
don't use the index, but look it up. Add
DataGridViewControlCollection.RemoveInternal to remove controls
that Remove won't remove (scrollbars, edit control).
* DataGridViewColumn.cs: Initialize State correctly.
* DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
implementing this.
* DataGridViewRowCollection.cs: Implemented shared rows.
* DataGridViewRow.cs: Throw exceptions as MS do.
* DataGridViewCell.cs: A few properties are implemented by a
Get<Property> method, so move implementation there and remove the
NIEX in the method. Add a bunch of OnXInternal that DataGridView
calls when necessary.
* DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
complicates matters.
* DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
unshare any rows.
2007-07-25 Jonathan Pobst <monkey@jpobst.com>
* UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
the children controls. Instead, we will just set up the proper docking for the
children controls so we don't have to worry about it. [Fixes bug #82188]
2007-07-25 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
canceling and correct Before/AfterLabelEdit properties as layed out in bug
81847. [Fixes bug #81847]
2007-07-25 Jonathan Pobst <monkey@jpobst.com>
* Label.cs: If AutoSize = true and a width or height is set, ignore it and
redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
an explicit size based on the design-time size of the text. Since our fonts
may not match this explicit size, we tend to cut off the ends of people's labels.
2007-07-24 Jonathan Pobst <monkey@jpobst.com>
* Menu.cs: Add some missing methods to MenuItemCollection.
2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
* DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
* DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
* DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
* DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
* DataGridViewElement.cs: State defaults to Visible.
* DataGridViewRowCollection.cs: Add: creates the new row based on a template.
* DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Minor 1.1 corcompare fix.
2007-07-23 Jonathan Pobst <monkey@jpobst.com>
* LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
DataGridViewSelectedColumnCollection.cs,
DataGridViewSelectedRowCollection.cs: Corcompare work.
2007-07-23 Jonathan Pobst <monkey@jpobst.com>
* PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
it is autoset by VS2005 designer and the effect is barely noticeable.
2007-07-23 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Implement HitTest.
2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
manually adding and removing the control from the Controls
collecftion.
* DataGridView.cs: Implement DataGridViewControlCollection. Add an
EditingControlInternal property that tracks the editing control.
Always keeping the scrollbars in the Controls collection, as MS
testing confirms is the right behaviour.
2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ScrollableControl.cs: Fix implementation of AutoScrollPosition
according to MSDN and new test.
2007-07-20 Jonathan Pobst <monkey@jpobst.com>
* TreeNode.cs: Implement ToolTipText.
* TreeView.cs: Implement tooltips, NodeMouse* events.
2007-07-20 Jonathan Pobst <monkey@jpobst.com>
* TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
2007-07-20 Jonathan Pobst <monkey@jpobst.com>
* TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
* TreeView.cs: Use the node's contextmenu[strip] if applicable.
2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
* Control.cs, Form.cs, ContainerControl.cs,
ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
for misc properties.
2007-07-20 Jonathan Pobst <monkey@jpobst.com>
* TreeNode.cs: Implement StateImageIndex and StateImageKey.
* TreeView.cs: Implement StateImageList.
2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: Don't check if the current form is the active form before
activating it. Fixes #81904.
2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: Don't check if the current form is the active form before
activating it. Fixes #81904.
2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: Don't try to position the form after loading if the form was
disposed. Fixes #81969.
2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
properties. Had to change ToolBar into ToolStrip, which required a
few #ifs.
2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
resized, fixes part of #79829 (vertical lines in toolbar).
PropertyGrid: Refactored Populate* to something that's easier to
follow at least for me, as well as splitting it up into several new
methods, required to update only subitems when something has
changed by a popup editor or listbox. Don't use events to check
when any values are changed, since the events are unreliable (we're
changing the objects the events are registered with, and if the
event handling requires the objects to be immutable (objects stored
in hashtables for instance), the events will never be raised).
* PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
everytime we change a value, since events are unreliable.
DropDownButtonClicked: For the same reason don't compare objects to
check if it has changed or not, it would require all objects to
derive Equals. Fix dialog location on windows, MS is doing weird
things when creating parented forms.
* GridEntry.cs: Add a SelectedObject setter.
2007-07-19 Jonathan Pobst <monkey@jpobst.com>
* TreeNode.cs: Add some corcompare attributes.
* TreeNodeCollection.cs: Implement 2.0 stuffs.
* TreeView.cs: Implement some 2.0 stuffs.
2007-07-18 Andreia Gaita <avidigal@novell.com>
* WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
for moma.
2007-07-19 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Implement custom tab offsets.
2007-07-18 Jonathan Pobst <monkey@jpobst.com>
* ToolStripContentPanel.cs: Support System renderer.
* ToolStripControlHost.cs: Set RightToLeft to default to No.
2007-07-18 Jonathan Pobst <monkey@jpobst.com>
* ScrollableControl.cs: Don't mess up the user's explicit bounds.
2007-07-18 Jonathan Pobst <monkey@jpobst.com>
* CheckBox.cs: Chain TextAlign to base implementation instead of
maintaining another one.
2007-07-18 Jonathan Pobst <monkey@jpobst.com>
* ButtonBase.cs: Fix an incorrect string constant.
2007-07-18 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: Use the static Graphics context in Hwnd instead
of creating one for measuring strings.
2007-07-18 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
Implement MaxItemSize.
2007-07-17 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
for DeviceContext. Instead, use the static one available in Hwnd.
Informal tests show this saves about 500k on formtest.exe.
2007-07-17 Jonathan Pobst <monkey@jpobst.com>
* ContainerControl.cs: Implement 2.0 AutoScaling.
2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ComboBox.cs: Work around bug #82120 (bug in mcs).
2007-07-16 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
Darken the focus color.
2007-07-16 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: When measuring items, if it's a CheckedListBox, add room
for the checkbox.
* ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
X, Y instead of a rect for drawing text.
- For ControlPaint.DrawCheckBox, center the check a little better when the
checkbox is odd width. When drawing a flat checkbox, use a white background
when state != inactive.
[Fixes bugs #82097, 82100]
2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
* ListControl.cs: When changing CurrencyManager, disconnect event
handlers from previous one. Fixes bug #81771. Code formatting.
2007-07-15 Andreia Gaita <avidigal@novell.com>
* PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
full preview invalidation from layout invalidation, and only invalidate
the layout when setting zoom or other properties. Invalidation should
always be done even when resetting properties with the same values as
what is there. Fixes #81744 and #79830.
2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Implement initial support for Groups. Split some of the
LayoutIcons code to render a partial list of the items (needed by
items contained in ListViewGroup instances). Let the
ListViewItemsCollection.ListView property be modifiable (needed when
using Groups, too).
* ListViewGroup.cs: Use a Bounds property rather than a Location
one. Also invalidate the bounds when they get changed.
* ThemeWin32Classic.cs: When drawing items, also draw the group header
if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
method as well.
2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When space gets pressed and CheckBoxes is true,
don't invoke the Begin and EndUpdate methods. We are generating
a redraw of the entire control without need to do so.
2007-07-13 William Holmes <billholmes54@gmail.com>
* Control.cs: Changing logic in FindFlatForward and
FindFlatBackward to handle multiple Controls with
the same TabIndex.
This fixes bug 81687.
2007-07-13 Jonathan Pobst <monkey@jpobst.com>
* OSFeature.cs: Enable IsPresent.
2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Don't do anything in WmShowWindow if the control has been
disposed. We can get WM_SHOWWINDOW after a control is disposed: a
control is created, put on a form, the control is disposed (the
form is never shown), and then we get a MapNotify, triggering a
WM_SHOWWINDOW.
* Form.cs: Exclude the current form when sending Deactivate to all
MdiChildren.
* NativeWindow.cs: Set WindowCreating to null as soon as possible,
there was a race condition because assigning the handle raises
events, we can get more messages, therefore trying to assign the
handle again, which would fail if any of those event handlers
closed/disposed the control.
2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: Make the fix for #80775 windows-only (fixes #81957).
2007-07-12 Jonathan Pobst <monkey@jpobst.com>
* SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DateTimePicker.cs: If there's no part format specifier, return an
empty string.
2007-07-12 Jonathan Pobst <monkey@jpobst.com>
* FlatButtonAppearance.cs: Throw NotSupportedException for a
Transparent BorderColor.
2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
TextBoxBase.cs, BindingNavigator.cs, Application.cs,
ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
Remove warnings.
* X11Structs.cs: Remove warnings, add ToString implementations.
2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: Translate min/max size according to the actual min/max
size, and not the current size. Fixes #81798.
2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
to the control yet).
2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
* PropertyGridTextBox.cs: Add a method that sends any forwarded
mousedowns to the contained textbox.
* X11Structs.cs: More ToString implementation.
* PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
#81791.
2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
* PropertyGridView.cs: Add a null-check, fixes a few tests.
2007-07-10 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutPanelCellPosition.cs: TypeConverter.
2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
[ Fixes #79761]
* PropertyGridTextBox.cs: Propagate any color changes to all contained
controls.
* PropertyGridView.cs: A few color fixes.
2007-07-10 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Remove some old unused text formatting stuff.
2007-07-10 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Update full row select invalidation to match the
newer DrawSelection... method.
- Make sure to invalidate the entire width when selecting a new
node, if we have full row selection enabled.
2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
* PropertyGridView.cs: Fix for #81800, makes text show up on initial
display of properties again.
2007-07-10 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: Add IntegerCollection and Add, Clear, Remove
to existing collections.
2007-07-09 Jonathan Pobst <monkey@jpobst.com>
* AccessibleObject.cs, RadioButton.cs: Fix some base classes
that changed between 1.1 and 2.0.
2007-07-09 Jonathan Pobst <monkey@jpobst.com>
* PowerStatus.cs: Added. This is just a data class, it is filled
in by SystemInformation.
2007-07-09 Jonathan Pobst <monkey@jpobst.com>
* Message.cs: Add op_Equality and op_Inequality.
2007-07-09 Jonathan Pobst <monkey@jpobst.com>
* MenuStrip.cs: Finish corcompare work.
2007-07-09 Jonathan Pobst <monkey@jpobst.com>
* LinkArea.cs: Add op_Equality and op_Inequality.
2007-07-09 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Add MessageLoopCallback delegate.
2007-07-09 Jonathan Pobst <monkey@jpobst.com>
* ListBox.cs: First set of 2.0 stuffs.
2007-07-09 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Make an internal Height property we can override
without messing up the public API.
* ListBox.cs: Override HeightInternal to always return the size
the user set. [Fixes bug #80466]
2007-07-08 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutPanel.cs: Add a null check so we don't NRE trying to
paint cell borders if we haven't calculated where they go yet.
[Fixes bugs #82040 and #82041]
2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: In Details view, set the location of item_control
in the (0,0) position (and the header_control is thus on the
item_control). This way the Bounds of the Items are relative to the
ListView control (before this, they had a Bounds value without the
header_control offset, which wasn't matching .Net). Fixes #82004.
2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControl.cs: When DataSource is set to null, pass an empty
array of object to SetItemsCore. This is done to clean the items
in the ListContol children. Fixes #81788.
2007-07-06 Jonathan Pobst <monkey@jpobst.com>
* ListControl.cs: Add 2.0 stuffs.
2007-07-06 Jonathan Pobst <monkey@jpobst.com>
* Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
Refresh is overkill for just about every repaint request.
2007-07-06 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
so remove my custom Get method and fix the property getter.
2007-07-06 Jonathan Pobst <monkey@jpobst.com>
* Label.cs: DefaultMargin for 2.0.
2007-07-06 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Override IsInputCharInternal and return true. Fixes
reported issue where other controls with mnemonics would steal strokes
from a selected ComboBox.
2007-07-06 Jonathan Pobst <monkey@jpobst.com>
* ScrollOrientation.cs: Make internal for 1.1.
* ScrollEventArgs.cs: Add 2.0 stuffs.
2007-07-05 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Implement the so-incredibly broken 2.0
VirtualItemsSelectionRangeChanged event.
2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When enter is pressed and selection is non empty,
an OnItemActivate event must be fired.
2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Store the FocusedItem information as an
int instead of a ListViewItem (needed by VirtualMode).
Update the calls to SetFocusedItem to pass an index instead of
an item.
* ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
the Focused state from the owner ListView.
2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Set ListView.focused_item from ListViewItem.Focused
property. Also, invalidate previous focused item in the mentioned
property (match .Net).
2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Implement 2.0 FocusedItem property setter.
2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Implement 2.0 TopItem property setter.
2007-07-03 Jonathan Pobst <monkey@jpobst.com>
* StatusStrip.cs: The default renderer is System.
* ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
if the user specifies it.
* ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
if we are ManagerRenderMode.
* ToolStripMenuItem.cs: Calculate our text color better.
* ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
from Professional to the base class based off working with the System renderer.
* ToolStripSystemRenderer.cs: Added.
2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
2007-07-02 Jonathan Pobst <monkey@jpobst.com>
* ToolTip.cs: Implement 2.0 Tag property.
2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Implement 2.0 HitTest methods.
2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
item is under the pointer or not (sugar). Also remove the TODO
regarding to the cursor changes in OneClick activation.
* ThemeWin32Classic.cs: When HotTracking is true and we are drawing
the subitems use the parent's HotFont if UseItemStyleForSubItems is
true; otherwise don't show the underline style.
2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: In ItemControl.ItemsMouseMove, refactor
the code to retrieve the item at position only one time. Also
change cursor when Activation is ItemActivation.OneClick as well
as invalidate the item if HotTracking is true (to show/hide the
underline style). Add an internal HotItemIndex property to retrieve
the current hot item's index.
* ListViewItem.cs: Add an internal HotFont property to cache the
font used when HotTracking is true and the pointer moves within the
item's borders.
* ThemeWin32Classic.cs: When drawing the item's text, use Font or
HotFont depending on the hot state of the item.
2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Implement 2.0 HotTracking property.
2007-06-21 Jonathan Pobst <monkey@jpobst.com>
* ToolStripControlHost.cs: If our hosted control never got created,
don't try to dispose it. [Fixes bug #81909]
2007-06-21 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
2007-06-21 Jonathan Pobst <monkey@jpobst.com>
* TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
Details view.
* DrawListViewColumnHeaderEventArgs.cs:
* DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
using the DrawText () methods.
2007-06-19 Jonathan Pobst <monkey@jpobst.com>
* ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
background which got erased in my changes yesterday.
2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Actually set bounds for subitems in Details view
(2.0 feature).
* ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
can invoke from the owner draw routines if we need it. Also, add
support for Owner draw in Details view.
2007-06-18 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
ShowImageMargin setting, properly align text in a ToolStripLabel
hosted on a ToolStripDropDown.
2007-06-18 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DrawListViewSubItemEventArgs.cs: Actually implement its methods.
2007-06-18 Jonathan Pobst <monkey@jpobst.com>
* ToolStripLabel.cs: If the label is on a dropdown, adjust the text
location to match ToolStripMenuItems.
2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DrawListViewColumnHeaderEventArgs.cs:
* ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
column headers in ListView.
2007-06-15 Jonathan Pobst <monkey@jpobst.com>
* UserControl.cs: Implement AutoSize.
2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DrawListViewItemEventArgs.cs:
* ListView.cs:
* ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
ListView.
2007-06-15 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDownItemAccessibleObject.cs: Added.
* ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
ToolStripTextBox.cs: corcompare work.
2007-06-14 Jonathan Pobst <monkey@jpobst.com>
* OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
corcompare.
2007-06-14 Jonathan Pobst <monkey@jpobst.com>
* OSFeature.cs: Add IsPresent.
* PrintPreviewControl.cs: Add RightToLeft.
* SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
* SplitterPanel.cs: Add AutoSizeMode.
2007-06-13 Jonathan Pobst <monkey@jpobst.com>
* LayoutEventArgs.cs: Add 2.0 AffectedComponent.
* MdiClient.cs: Add 2.0 ScaleControl.
* NativeWindow.cs: Implement 2.0 interface IWin32Window.
* NumericUpDownAccelerationCollection.cs: Add [ListBinding].
2007-06-13 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Implement some scaling methods, stub some RTL methods,
corcompare work.
2007-06-13 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: corcompare work.
* FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
2007-06-13 Jonathan Pobst <monkey@jpobst.com>
* ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
ControlPaint 2.0 stuffs.
2007-06-12 Jonathan Pobst <monkey@jpobst.com>
* ThreadExceptionDialog.cs: Add 2.0 stuffs.
2007-06-12 Jonathan Pobst <monkey@jpobst.com>
* UpDownBase.cs: Add 2.0 stuffs.
2007-06-12 Jonathan Pobst <monkey@jpobst.com>
* NumericUpDown.cs: Add 2.0 stuffs.
2007-06-12 Jonathan Pobst <monkey@jpobst.com>
* NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
2007-06-12 Jonathan Pobst <monkey@jpobst.com>
* ErrorProvider.cs: Implement 2.0 stuffs.
2007-06-12 Jonathan Pobst <monkey@jpobst.com>
* DomainUpDown.cs: Implement 2.0 stuffs.
2007-06-12 Jonathan Pobst <monkey@jpobst.com>
* CheckedListBox.cs: Fix RefreshItems signature.
2007-06-12 Jonathan Pobst <monkey@jpobst.com>
* PictureBox.cs: Implement 2.0 stuffs.
2007-06-12 Andreia Gaita <avidigal@novell.com>
* TabControl.cs: Check if there are tabpages before checking
the selected index - fix #81802 (font changes raise a ResizeTabs
call on controls.add, which blew up nicely with no tabpages)
2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs:
* ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs:
* ListViewItem.cs: In VirtualMode the selection information
resides in the ListView, rather than in the Items. Also, throw
InvalidOperationExceptions when VirtualMode is being used and
CheckedItemCollection is accessed.
2007-06-08 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Add ScaleControl.
2007-06-08 Jonathan Pobst <monkey@jpobst.com>
* ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
2007-06-08 Jonathan Pobst <monkey@jpobst.com>
* GroupBox.cs: Add 2.0 stuffs.
2007-06-08 Jonathan Pobst <monkey@jpobst.com>
* Panel.cs: Add autosize properties/event.
2007-06-07 Jonathan Pobst <monkey@jpobst.com>
* Control.cs:
- When we remove a control, remove it from the collection before performing the layout.
- Setup an internal property for explicit_bounds.
- Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
- Perform a layout when we set a new AutoSizeMode.
2007-06-07 Jonathan Pobst <monkey@jpobst.com>
* ScrollableControl.cs: Add 2.0 stuffs.
2007-06-06 Jonathan Pobst <monkey@jpobst.com>
* ScrollBar.cs: Add 2.0 stuffs.
2007-06-06 Jonathan Pobst <monkey@jpobst.com>
* Splitter.cs: Add 2.0 stuffs.
2007-06-06 Jonathan Pobst <monkey@jpobst.com>
* SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
to have BindingContext simply use base implementation.
2007-06-06 Jonathan Pobst <monkey@jpobst.com>
* ColumnHeader.cs: corcompare fix.
2007-06-06 Jonathan Pobst <monkey@jpobst.com>
* Button.cs: corcompare fixes.
* ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
2007-06-06 Jonathan Pobst <monkey@jpobst.com>
* Button.cs: Override GetPreferredSizeCore.
* ButtonBase.cs: PerformLayout after changing properties that can affect
AutoSize. Simplify some mouse/keyboard code.
* Control.cs: PerformLayout after changing Padding if AutoSize = true.
* MouseEventArgs.cs: Make Location internal for 1.1.
* TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
* Theme.cs: Add CalculateButtonAutoSize.
* ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
2007-06-05 Miguel de Icaza <miguel@novell.com>
* TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: We can't cache Bounds in VirtualMode
since we can get different item instances every time we retrieve it.
2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Work around for #81602, since an unkown an pretty
infrequent condition appears only in some systems (old linux boxes, it
seems).
2007-06-04 Jonathan Pobst <monkey@jpobst.com>
* Button.cs: Completely reformat and a little refactor to bring
this closer to Mono circa 2007.
2007-06-04 Jonathan Pobst <monkey@jpobst.com>
* CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
to be ButtonBase.Invalidate.
2007-06-04 Jonathan Pobst <monkey@jpobst.com>
* ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
2007-06-04 Jonathan Pobst <monkey@jpobst.com>
* ButtonBase.cs: Completely reformat and a little refactor to bring
this closer to Mono circa 2007.
2007-06-01 Everaldo Canuto <ecanuto@novell.com>
* Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
values for autosize. Fixes #80137.
2007-06-01 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Don't perform layout when AutoSize changes.
* Form.cs: Perform layout in AutoSize override. Don't set ClientSize
directly when autosizing, use SetBounds with BoundsSpecified.None.
Fixes unit tests my last commit broke.
2007-06-01 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Perform layout when AutoSize changes.
* Form.cs: Implement AutoSizing.
2007-06-01 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: remove the XXX'ed check at the top of
ProcessGridKey. fixes #80464.
2007-06-01 Chris Toshok <toshok@ximian.com>
* DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
adding idempotent (add/remove in Edit()), and also make sure we
don't add it until after we set the text, so it's not tripped in
Edit(). Fixes unit test regression.
2007-06-01 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: In UpdateBounds, only recalculate anchor distances if the
change is user explicit, not when the layout engine moves stuff. Fixes
anchoring to bottom and right. [Fixes bug #81790]
2007-06-01 Andreia Gaita <avidigal@novell.com>
* PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
2007-06-01 Andreia Gaita <avidigal@novell.com>
* ContainerControl.cs:
Fire enter event for common ancestor if it is not a ContainerControl.
Send focus to the active_control and not the 'value', the active
control might have been changed in one of the events fired.
Definitely fixes #80159.
2007-06-01 Andreia Gaita <avidigal@novell.com>
* DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
* PropertyGrid.cs: Anchor the help description to the bottom of the
help panel and refactor SelectGridItem into a
SelectGridItemInternal that can be set to null (and update it to
clear the help texts when it is set to null). Set root item to null
when there's no SelectedObject. Fixes #80438.
* ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
when we're recalculating after a resize (only).
2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Implement 2.0 RedrawItems method.
2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControl.cs: Disconnect PositionChanged and ItemChanged
handlers from previous data manager when DataSource is set to
null. Fixes #81771.
2007-05-31 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: These seem to be the correct values.
2007-05-31 Everaldo Canuto <ecanuto@novell.com>
* FileDialog.cs: When close dialog with ok set filterindex using combobox
value. Fixes #81784.
2007-05-31 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Implement 2.0 scaling methods.
2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
corcompare issues.
2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ProgressBar.cs: Implemented missing 2.0 members.
2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Corcompare issues.
* MessageBox.cs: Implemented missing 2.0 functions.
2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
* CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
Implemented more 2.0 members.
2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
null (strange, but it seems to happen when running unit tests).
2007-05-30 Andreia Gaita <avidigal@novell.com>
* ContainerControl.cs: Set active_control even earlier, before
firing any events, and undo it if validation returns false.
2007-05-30 Andreia Gaita <avidigal@novell.com>
* ContainerControl.cs: Raise Validation and Enter/Leave events
even if there is no Form and set active_control earlier, just
before firing Enter events (toshok's patches). Fixes #80647.
2007-05-30 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Redid the pageup/pagedown a little to simplify
things and fix bug #81311.
2007-05-30 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Now that we have our own event loop, we need to
cancel when we get a mouseup but it won't be accepted.
2007-05-30 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (set_CurrentCell): guard against negative
column/row.
* DataGridColumnStyle.cs (CheckValidDataSource): just use the
array index syntax instead of looping over the property names.
* DataGridTextBoxColumn.cs: add a changed handler on the textbox,
and set IsInEditOrNavigateMode to false there.
2007-05-30 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Make sure we don't get a bad visible order when
setting to the top node. Fixes some misc crashing in
ControlInspector.
2007-05-30 Andreia Gaita <avidigal@novell.com>
* UserControl.cs: Add 2.0 AutoSizeMode
2007-05-29 Everaldo Canuto <ecanuto@novell.com>
* DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
2007-05-29 Everaldo Canuto <ecanuto@novell.com>
* DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
lines. Fixes #80285.
2007-05-29 Everaldo Canuto <ecanuto@novell.com>
* DataGridColumnStyle.cs: Add char trimming column header text format.
2007-05-29 Everaldo Canuto <ecanuto@novell.com>
* DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
Fixes #80147.
2007-05-29 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: Fix off by one on calculating whether or not a node
is visible.
2007-05-29 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: ResumeLayout(false) should recalculate anchor distances.
* ScrollableControl.cs: Force an UpdateDistances when we move the
scrollbars.
[Fixes bug #80605]
2007-05-29 Andreia Gaita <avidigal@novell.com>
* PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
update the page setup screen.
2007-05-29 Andreia Gaita <avidigal@novell.com>
* PageSetupDialog.cs: Fix landscape mode.
2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
IconSizeHorizontalSpacing.
2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: The declaration of prev_tooltip_item should be inside
a NET_2_0 conditional (avoid a warning).
2007-05-28 Andreia Gaita <avidigal@novell.com>
* PageSetupDialog.cs: Implement PrintPreview control to display
the preview thumbnail. Change unit conversion to use
PrinterUnitConvert methods.
Note: there is a huge bug in ms.net where the default margins are
interpreted as centimeters (?), when in fact they are set in inches. When
loading the page setup dialog initially (ms.net), the default margins
are set to 1 inch, and the dialog shows them with value 10, when in fact
it should be 25 (properly converted). Our dialog doesn't have this bug.
* Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
RectangleF.
* ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs:
* ListViewItem.cs: Implement 2.0 ToolTipText support for listview
items.
2007-05-28 Andreia Gaita <avidigal@novell.com>
* X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
an IntPtr on csc (it builds fine on mcs, could it be a compiler
bug?), convert the ptr to Int32 first.
2007-05-28 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Add a timer, so after drop, if a finish is not
recieved, we will exit the dnd tracking loop.
2007-05-28 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Keep tracking until the xdnd finished event is
recieved. TODO: I should probably stick a timer on the dropped
event, and finish the drag if the XDND Finished event never shows
(because some apps don't seem to send it).
2007-05-28 Everaldo Canuto <ecanuto@novell.com>
* ToolBar.cs: Fix toolbar default width for button with image. Fixes
#81733.
2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MonthCalendar.cs: Only mark the keypresses we actually handle as
handled.
2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MonthCalendar.cs: Set the size after initializing all the relevant
variables. Fixes #81742.
2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* KeyEventArgs.cs: Fix typo.
2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
* DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
to match MS. Fixed MinDate to only accept value less than or equal
to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
Removed TODO's that are now verified by unit tests.
2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
* TreeNodeCollection.cs: Minor corrections to exceptions to match
MS.
2007-05-25 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Rework to make StartDrag a blocking call that runs
it's own message loop.
* XplatUIX11.cs: Remove some of the dnd hooks
2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
* XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
instead of MinimizedWindowSize.
2007-05-25 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Raise textchanged when cutting and pasting text.
2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
* KeyEventArgs.cs: Added SuppressKeyPress.
* Control.cs: Added support for SuppressKeyPress.
2007-05-24 Andreia Gaita <avidigal@novell.com>
* NumericUpDown.cs: Refactor code to fix regressions on #79950 and
problems with PieChart. suppress_validation should not be a counter,
if there are several BeginInit calls, the first EndInit will
activate validation. Fix exceptions thrown by set_Value.
* UpDownBase.cs: ValidateText only if it's the user editing it.
2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControl.cs: FilterItemOnProperty should return the filtered
item proeprty even if DataSource is null. The same applies for
GetItemText. Fixes #80427.
2007-05-24 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: If a control doesn't have a parent when it's Dock is
set, but it has children, it needs to do a layout. Fixes some nested
controls issues. [Fixes bug #81199]
2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ComboBox.cs: If there are few items in the drop down list, make it
the exact size the items need, no bigger. Fixes #81612.
2007-05-24 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: When we have captured the keyboard for a menu,
check for mouse down events in case we need to close the menu.
* Control.cs, Form.cs: Remove mouse down checks for menus.
2007-05-24 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Handle tabs in non multiline mode a little
differently.
2007-05-24 Jackson Harper <jackson@ximian.com>
* TextControl.cs: We need to manually break apart tabbed text and
move the tabs, since the system.drawing tabbing mechanism relies
on tab stops.
* TextBoxBase.cs: Move the caret properly when the user enters a
tab.
2007-05-24 Jonathan Pobst <monkey@jpobst.com>
* ContainerControl.cs: Don't check CanSelect before calling
ProcessMnemonic.
* ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
release a KeyboardActive on click if it's not ours.
2007-05-23 Andreia Gaita <avidigal@novell.com>
* ColumnHeader.cs: Add TypeConverter
2007-05-23 Everaldo Canuto <ecanuto@novell.com>
* LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
2007-05-23 Everaldo Canuto <ecanuto@novell.com>
* LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
2007-05-23 Everaldo Canuto <ecanuto@novell.com>
* LinkLabel.cs: Implement public Padding property.
2007-05-23 Everaldo Canuto <ecanuto@novell.com>
* LinkLabel.cs: Implement public FlatStyle.
2007-05-23 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Apply patch from George to call parent.PerformLayout
when Visible is changed. [Fixes bugs #81118, 81718]
2007-05-23 Everaldo Canuto <ecanuto@novell.com>
* MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
2007-05-23 Everaldo Canuto <ecanuto@novell.com>
* ContextMenu.cs: Implement ProcessCmdKey with control parameter.
2007-05-23 Everaldo Canuto <ecanuto@novell.com>
* ContextMenu.cs: Implement Collapse.
2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ToolBarButton.cs: Implement Name.
2007-05-22 Everaldo Canuto <ecanuto@novell.com>
* ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
use current_item, it prevents some NRE. Fixes #81675.
2007-05-22 Andreia Gaita <avidigal@novell.com>
* NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
without updating the text.
2007-05-22 Jonathan Pobst <monkey@jpobst.com>
* XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
without calling DeleteObject. [Should fix bug #81709]
2007-05-22 Jackson Harper <jackson@ximian.com>
* RichTextBox.cs: Set the line endings correctly, when flushing
RTF text.
2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
* XplatUIX11.cs: MinimumWindowSize on X11 is actually
{Width=0,Height=0}.
2007-05-22 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Setting top with a null node should set to the very
top.
2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: ShowDialog: destroy the handle when message loop is
finished, matches MS behaviour. Refactor parts of WmClose into
RaiseCloseEvents, that only raises events if they haven't already
been raised. Fixes #81688 and #81521.
* Application.cs: Don't call close on the form when exiting a modal
loop, it will raise all the (Form)Closed/Closing events again if
WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
which doesn'r raise any events it they have been raised before.
2007-05-22 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Add OnPrint.
* ToolStrip.cs: Add GetChildAtPoint.
* ToolStripContainer.cs: Add OnRightToLeftChanged.
* ToolStripRenderer.cs: Make CreateMirrorImage internal.
2007-05-22 Everaldo Canuto <ecanuto@novell.com>
* MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
* InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
isn't visible anymore. Fixes #81651.
2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: WmShowWindow: Update children's z-order after setting
their parent. SetParent may show the window, thereby corrupting
z-order, since the window will be shown on top.
* XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
multiple (and redundant) WM_SHOWWINDOW messages.
* MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
event has already been raised.
* Form.cs: Change is_changing_visible_state to a counter, since
SetVisibleCore can be called recursively. CreateHandle: when
creating mdi children, send (De)Activated events.
* MdiClient.cs: Update use of is_changing_visible_state.
* Application.cs: OnThreadException: Surround exception handling with
try/finally to ensure we always reset the error-handling state
before leaving.
2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
(#81704).
2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
SmallIcon views, now that we have a standarized horizontal spacing.
* ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
4, just like the other views (Match .Net).
2007-05-21 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Delay calculating anchor distances until we actually layout.
Always query the WM for the actual size and location it put us at instead of
only when we send negative values.
[Fixes bugs #81694, 81695]
2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Application.cs: Avoid a possible stack overflow when trying to exit
the application.
2007-05-19 Marek Safar <marek.safar@gmail.com>
* Theme.cs (GetHatchBrush): A key uses internal value instead of formated
enum value.
2007-05-19 Andreia Gaita <avidigal@novell.com>
* NumericUpDown.cs: Added 2.0 methods (spin acceleration)
* NumericUpDownAcceleration.cs,
NumericUpDownAccelerationCollection.cs: Added 2.0
implementation.
2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
* RichTextBox.cs: Recalculate the document after the ScrollBars
property is changed. Fixes bug #81681.
2007-05-18 Jonathan Pobst <monkey@jpobst.com>
* DataObject.cs: Implement 2.0 methods.
2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ThemeWin32Classic.cs: Draw the check marks in ListViewItems
in the center of the checkbox, not in the left-top corner.
Fixes #80037.
2007-05-18 Jackson Harper <jackson@ximian.com>
* RichTextBox.cs: Recalculate the document after the scrollbars
property is changed.
* TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
81486.
2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
* CreateParams.cs: Make HasWindowManager marginally faster.
* XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
into Hwnd so that other drivers can use it as well.
* XplatUIWin32.cs: CreateWindow: If the window has a window manager get
the default location from Hwnd. Fixes MDI client windows always
showing up at (0,0) in Windows (Win32 won't set the default
location since the window styles aren't correct).
2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
* TreeView.cs: Modified DoubleBuffered to just use the base
implementation.
2007-05-18 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Set the top node to the last child node when
expanding all
- When we get focus, if there is no selected node, use the top
node.
2007-05-18 Jonathan Pobst <monkey@jpobst.com>
* KeysConverter.cs: Add CanConvertTo.
* LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
* LinkConverter.cs: Added.
2007-05-18 Everaldo Canuto <ecanuto@novell.com>
* Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
it prevents error when file dont have write access. Fixes #81669 and #81667.
2007-05-18 Everaldo Canuto <ecanuto@novell.com>
* ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
button text. Fixes #79640.
2007-05-18 Everaldo Canuto <ecanuto@novell.com>
* Control.cs: According to MSDN controls created in the designer theres
keyboard accelerators visible by default. So included check for design
in ShowKeyboardCuesInternal.
2007-05-18 Everaldo Canuto <ecanuto@novell.com>
* ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
text. Fixes #81621.
2007-05-18 Everaldo Canuto <ecanuto@novell.com>
* Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
for 1.0, becuse ShowKeyboardCues is protected on 1.0.
2007-05-17 Everaldo Canuto <ecanuto@novell.com>
* Control.cs: Finish implementation of UI State using WmChangeUIState
to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
in some controls to check for show_keyboard_cues to draw accell keys "_".
2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: When calculating the horizontal scrollbar
in single column mode, don't use values less than 0 for
Maximum. Fixes #81474.
2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: Throw the some missing exceptions in
ListBox.ObjectCollection methods.
2007-05-17 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Recalculate the document when the word wrap
value has changed. This fixes 81488.
2007-05-17 Jonathan Pobst <monkey@jpobst.com>
* Clipboard.cs: Implement missing GetText overload.
2007-05-17 Chris Toshok <toshok@ximian.com>
* Control.cs (CheckDataBindings): remove the binding_context arg
to binding.Check.
* CurrencyManager.cs (OnItemChanged): fix this now that
BindingManagerBase is fixed. also remove the comment telling where
the fix should go. We set transfering_data to true/false around
the call to PushData to keep UpdateIsBinding from being called.
(ListChangedHandler): remove the extra OnMetaDataChanged call for
PropertyDescriptorAdded in the 1.1 case. The extra call is
actually generated by System.Data generating 2 metadata changed
events of its own per column add. The fix should go there. Add a
comment to that affect in our test's Assert.Ignore.
* BindingManagerBase.cs: Rework PullData and PushData slightly.
we keep a boolean flag (transfering_data) that keeps us from
calling UpdateIsBinding multiple times if we re-enter either of
them.
* ControlBindingsCollection.cs (AddCore): remove the
binding_context arg to binding.Check.
* Binding.cs (IsBinding): don't check if we're binding here, just
return our cached value. we update it in UpdateIsBinding.
(Check): don't take the binding_context arg, we'll just use our
control's. Also, for some reason MS doesn't use the data member
field when getting the bindingmanager for this binding. it just
uses the datasource. Make this method callable multiple times,
and only do the is_null_desc stuff if manager.Position != -1 (so
we don't get an exception accessing manager.Current).
(UpdateIsBinding): move the code from IsBinding here.
(PositionChangedHandler): call Check here to we can initialize
things that require a non- -1 position.
2007-05-17 Everaldo Canuto <ecanuto@novell.com>
* Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
control.
2007-05-17 Andreia Gaita <avidigal@novell.com>
* TabControl.cs: Add 2.0 methods and events, including
OnEnter / OnLeave and raises it for tabpages (fixes #79869)
* TabPage.cs: Add 2.0 methods
2007-05-17 Everaldo Canuto <ecanuto@novell.com>
* Control.cs: Implement WmUpdateUIState, show_focus_cues and
keyboard_cues is properly handled by message method.
2007-05-17 Jonathan Pobst <monkey@jpobst.com>
* TreeViewImageIndexConverter.cs: Add 2.0 methods.
2007-05-17 Jonathan Pobst <monkey@jpobst.com>
* ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
2007-05-16 Everaldo Canuto <ecanuto@novell.com>
* Control.cs:
- WmUpdateUIState added to handle state changes, it make call to
OnChangeUICues event.
- Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
SystemInformation.
2007-05-16 Jonathan Pobst <monkey@jpobst.com>
* ImageKeyConverter.cs: Added.
* TreeViewImageKeyConverter.cs: Added.
2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ToolTips.cs: Update Text if SetToolTip is called for a control
already showing the tooltip, as well as restarting its timer; show
tooltip if we are inside the control bounds by the time of calling
SetToolTip. Inside ShowTooltip remove the check to not show the
tooltip again for the active control (it is allowed by .Net to
show the tooltip on the same control multiple times).
2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MaskedTextBox.cs: Small fix for Text that fixes a broken test.
2007-05-16 Andreia Gaita <avidigal@novell.com>
* ContainerControl.cs: only process tab key if there are no
modifier keys present, otherwise the control does the
tab processing, if it needs to. Fixes #81622
* TabControl.cs: Fixes calculation for which tab to select on
shift+ctrl+tab.
2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MaskedTextBox.cs: Small fix for Text that fixes a broken test.
2007-05-15 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Make IsInputCharInternal to allow controls to
override it and still match MS API.
* TextBoxBase.cs: Override IsInputCharInternal and always
return true.
[Fixes bug #81616]
2007-05-15 Jackson Harper <jackson@ximian.com>
* TextBox.cs: Disable some of the menu options when using a
readonly textbox.
2007-05-15 Jackson Harper <jackson@ximian.com>
* TextBox.cs:
* TextBoxBase.cs:
* RichTextBox.cs: Some new 2.0 methods
2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
* FileDialog.cs: On 1.0 profile, do not support multidotted
extensions.
2007-05-14 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Implement some of the new 2.0 methods.
* RichTextBox.cs: We need to override these methods on 2.0.
* MaskedTextBox.cs: These are implemented now
* TextControl.cs: This was off by one.
2007-05-14 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Because the line endings are including in the
text, we don't need to add them in anymore.
2007-05-11 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Fix autosize and get it working only after hadle is created,
also prevent redraw in set_autosize if handle is not created. Fixes #81523.
2007-05-11 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Adjust size to default size when button theres no text and
image, it fixes remaining issues from #81524.
2007-05-11 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs:
- When not flat call redraw to recalculate sizes on creare handle to match
win32 behavior.
- Revert 77220 because it causes some regressions in toobar
button.
2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MaskedTextBox.cs: Update the base text whenever the text changes. MTB
now actually enters a usable state.
2007-05-11 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Check for handle created in redraw to prevent unneeded size
calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
3 buttons.
2007-05-11 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Save default_size on create handle to use later for buttons
without text, needed to mimic win32 behavior.
2007-05-11 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Fix button layour to best fit width or height according to
vertical or not. Fixes #81524.
2007-05-10 Everaldo Canuto <everaldo@simios.org>
* ToolBarButton.cs: When change style call ToolBar.Redraw to update
toolbar size info because different styles theres different sizes.
Fixes #81522.
2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ThemeWinClassic.cs: For .Net 2.0 don't draw any image
if we are using checkboxes, checked is true, and we have less
than two images in StateImageList; for the 1.1 in the same scenario
draw the first image if we have at least one image in StateImageList.
Fixes part of #81191.
2007-05-10 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs, ToolStripManager.cs: We need to remove items from
the owner's Items collection on merge.
2007-05-10 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
* ToolStripItemCollection.cs: Lots of fixes to when events get called
and parent/owner gets changed based on gert's unit tests.
2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MaskedTextBox.cs: Started implementing parts of it.
2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When clicking the checkbox on the items
take into account the double clicks even if we have only
one image in StateImageList (only for 1.0/1.1). Also
generate an extra change of checked state when we receive
the second click on checkbox (match .Net behaviour).
Fixes part of #81191.
2007-05-10 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
2007-05-10 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
even if OnLoad is overriden and base.OnLoad is not called.
[Fixes bug #81582]
2007-05-10 Andreia Gaita <avidigal@novell.com>
* TableLayoutSettings.cs: A big doh! fix and bowing down of head in
shame. (I blame my ever-persisting and annoying cold)
2007-05-09 Jonathan Pobst <monkey@jpobst.com>
* ListView.cs: Don't eat navigation keys. Let them flow through to
KeyDown/KeyPress routines. [Fixes bug #81569]
2007-05-09 Jonathan Pobst <monkey@jpobst.com>
* ListView.cs: When handling keys for selecting the item based off
keyboard input, do not consider keys pressed with Alt or Control. Also,
correctly handle keys when the Shift key is down. [Fixes bug #81578]
2007-05-09 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: When using UseWaitCursor, we have to store the requested
Cursor to use when UseWaitCursor is turned off.
2007-05-09 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Implement PreProcessControlMessage. Default IsInputChar
to false.
* Application.cs: Use PreProcessControlMessage instead of
PreProcessMessage.
* PreProcessControlMessage.cs: Make internal for 1.1.
2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Control.cs: Add InternalContains focus property, which hast the same
functionality of ContainsFocus, but also including implicit controls.
* ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
since we need to know if the focus is contained in our implicit
ItemControl when calculating Layout. Fixes part of #80888.
2007-05-08 Everaldo Canuto <everaldo@simios.org>
* ToolTip.cs: Remove center form string alignment as it must be align to
left.
2007-05-08 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItemCollection.cs: Set the new item's parent and owner
in Insert like we do in Add. [Fixes bug #81568]
2007-05-08 Jackson Harper <jackson@ximian.com>
* TreeView.cs: GotFocus differences between 1.1 and 2.0.
- Off by one error in SetTop
- Disable DoubeBuffering
2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ScrollableControl.cs: ScrollIControlntoView: we now only move the
control as much as necessary in order to make it entirely visible,
instead of centering the control in the container (matches MS
behaviour). CalculateCanvasSize: we need to take the current scroll
position into account when calculating the maximum canvas,
otherwise the following scenario will fail: resize so that the
scrollbars appear, use the scrollbars to scroll, resize again
smaller, and now the canvas size is too small. Recalculate: when
showing scrollbars make sure they start off at 0, and try to scroll
the active control into view. Fixes #79540. HandleScrollBar: don't
scroll anywhere if the scrollbar isn't visible.
2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: When focus changed, call Layout/Invalidate
in the focused item to update the selected state (should show
entire label when ListView is focused, and a part of it if is not).
* ListViewItem.cs: When doing layout for LargeIcon, take into account
for displaying the entire label not only the Focused state of the
item, but also the Focused state of the ListView (match .Net
behaviour).
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
Implement UseWaitCursor.
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
Applying contributed patch from Sergey Volk.
* Clipboard.cs: Implement SetDataObject retry logic and new overload
of SetDataObject.
* XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Implement DrawToBitmap.
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
Applying contributed patch from Stefan Noack.
* Control.cs: Add [Get|Set]AutoSizeMode.
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
* MdiClient.cs: Unmerge menus when the last child is closed.
2007-05-07 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Do not call BeginMerge on DropDowns.
* ToolStripManager.cs: Call Merge on DropDowns.
[Fixes bug #81477]
2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
uints.
* Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
visibility. We can't create forms visible, since we have to set the
owner before making the form visible (otherwise Win32 will do
strange things with task bar icons). The problem is that we set the
internal is_visible to true before creating the control, so
is_changing_visible_state is the only way of determining if we're
in the process of creating the form due to setting Visible=true -
this works because SetVisibleCore explicitly makes the form
visibile afterwards anyways. Fixes #80775.
2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ThemeWin32Classic.cs: When drawing ListViewItems,
use StringTrimming.EllipsisCharacter if the view is Tile, Details,
or LargeIcon _and_ item is not focused (match .Net behaviour).
2007-05-04 Jonathan Pobst <monkey@jpobst.com>
* Control.cs, Form.cs: Fix some obsolete method warnings.
2007-05-04 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
* GetChildAtPointSkip.cs: Make internal for 1.1 profile.
2007-05-04 Andreia Gaita <avidigal@novell.com>
* ContainerControl.cs: Fix active_control attribution when going
up the parent chain so that the first parent container gets the control
and the rest of the parent containers get the child containers (skips
non-containers). Fixes #80729
2007-05-04 Randolph Chung <tausq@debian.org>
* FileDialog.cs: Implement the SupportMultiDottedExtensions property.
[Fixes bug #81499]
2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
takes a size parameter, since the CreateParam's size isn't true for
minimized forms. Fixes #81518,
2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: Add OnDeactivateInternal.
* MdiClient.cs: Raise Deactivate event. Fixes #81409.
2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DateTimePicker.cs: CalculateDropDownLocation: do a null check before
accessing the parent. Fixes #81508.
2007-05-03 Chris Toshok <toshok@ximian.com>
* CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
2.0 block, pass listposition + 1 to ChangeRecordState when a row
was added before the current listposition. Fixes the
TestInsertRowBeforeCurrent unit test.
2007-05-03 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Add RaiseIdle.
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
XplatUIX11.cs: Implement RaiseIdle.
2007-05-02 Jonathan Pobst <monkey@jpobst.com>
corcompare work: N - Z
* NotifyIcon.cs
* ProgressBar.cs
* RadionButton.cs
* ScrollableControl.cs
* SplitContainer.cs
* SplitterPanel.cs
* StatusBar.cs
* SystemInformation.cs
* TabControl.cs
* TableLayoutControlCollection.cs
* TableLayoutPanel.cs
* TabPage.cs
* ToolBar.cs
* ToolBarButton.cs
* ToolStrip.cs
* ToolStripComboBox.cs
* ToolStripContainer.cs
* ToolStripContentPanel.cs
* ToolStripDropDown.cs
* ToolStripDropDownItem.cs
* ToolStripDropDownMenu.cs
* ToolStripItem.cs
* ToolStripItemCollection.cs
* ToolStripMenuItem.cs
* ToolStripPanel.cs
* ToolStripSplitButton.cs
* ToolTip.cs
* TreeNode.cs
* TreeNodeCollection.cs
* TreeNodeMouseHoverEventArgs.cs
* TreeView.cs
2007-05-01 Everaldo Canuto <everaldo@simios.org>
* ContextMenu.cs: Add public method Show with alignment property to 2.0
stuff. Thanks aatdark for the patch.
2007-05-01 Jonathan Pobst <monkey@jpobst.com>
* GridItem.cs: Implement 2.0 Tag property.
2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
* TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
count instead of Nodes.Length. [Fixes bug #81448]
2007-05-01 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
[Fixes bug #81506]
2007-05-01 Jonathan Pobst <monkey@jpobst.com>
corcompare work: A - M
* BindingNavigator.cs
* Button.cs
* ButtonBase.cs
* CheckBox.cs
* Control.cs
* FlowLayoutPanel.cs
* Form.cs
* Label.cs
* LinkLabel.cs
* ListView.cs
2007-05-01 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Give toolstrips a chance to process mnemonics.
* ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
2007-05-01 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Better preferred height, FixedSingle gets the
wider area too.
- Don't set the BoundsSpecified
2007-04-30 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: When using the toolstrip shortcut mechanism, allow the
message to pass through to a regular control if it hosted by a toolstrip.
* ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
2007-04-30 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: Use the flags argument when using the MeasureString
fallback algorithm.
2007-04-30 Jonathan Pobst <monkey@jpobst.com>
* MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
the MDI menu item. [Fixes bug #81483]
2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
* DataGridViewColumn.cs: Initialize value of headercell to zero-length
string. When setting Name to null, use zero-length string instead.
2007-04-29 Andreia Gaita <avidigal@novell.com>
* TabControl.cs: Implement missing 2.0 methods (SelectTab,
DeselectTab). Implement missing 2.0 TabPageCollection methods
(Add, ContainsKey, RemoveByKey, IndexOfKey)
2007-04-29 Pedro Martínez Juliá <pedromj@gmail.com>
* DataGridViewColumn.cs: Make HeaderText take preference over Name.
2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
* RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
Fixes bug #81479. Include details of exception when LoadFile fails.
2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
* DrawListViewSubItemEventArgs.cs: Added missing setter
2007-04-27 Andreia Gaita <avidigal@novell.com>
* ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
Hide methods (not complete). Implement missing 2.0 OnPopup event.
2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
removed in ly last commit (it was breaking the Label edit feature).
* ThemeWin32Classic.cs: When drawing a ListViewItem use
StringAlignment.Near for LineAlignment (match .Net).
2007-04-27 Andreia Gaita <avidigal@novell.com>
* TabControl.cs: Change SetTab so it adds the tabpage to the list
of controls if it isn't already there - was blowing up when doing
tabcontrol.TabPages[i]=new TabPage().
SetTab now does a replace by removing the page at the index.
Add a new InsertTab method that inserts a page in a given index
instead of replacing.
Implements TabPageCollection.Insert(int, TabPage).
2007-04-27 Chris Toshok <toshok@ximian.com>
* BindingManagerBase.cs: fill in CurrentItemChanged (and have an
internal handler that can be invoked from our subclasses.) Also,
add a comment to PushData about how we need to fix it.
* CurrencyManager.cs: tons of changes here. trying to get things
matching the behavior of .net wrt event orders (ItemChanged,
CurrentChanged, PositionChanged.) I've implemented a private .net
symbol (ChangeRecordState) that appears in stack traces because
it's actually easier to do this than to effective inline all its
various behaviors at every call site.
* RelatedPropertyManager.cs: guard against an exception here by
not using parent.Current if the position is set to -1 (if the
parent datasource is cleared, for instance).
* Binding.cs: don't parse data in PushData (this might be wrong,
but it jives with MS's behavior.) Also, don't call PushData when
we get a CurrentChanged event.
2007-04-27 Andreia Gaita <avidigal@novell.com>
* WebBrowser.cs,
WebBrowserBase.cs,
WebBrowserSiteBase.cs,
HtmlDocument.cs: Added stubbed out classes, no real implementations
yet.
2007-04-27 Everaldo Canuto <everaldo@simios.org>
* MainMenu.cs: In draw method without parameters call draw method with
PaintEvent, another one (just rect) adjust rectangle and we dont need it
as Rect property is already adjusted. Fixes #80694.
2007-04-27 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Need to handle keyboard menu deselection here.
* Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
navigation, allowing keyboard to work on X11.
* ToolStrip.cs: Don't worry about handling the Menu key here anymore.
2007-04-27 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
menu bar. It fixes some drawing issues in menu bar.
2007-04-27 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
when <alt> key is pressed.
2007-04-26 Everaldo Canuto <everaldo@simios.org>
* XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
example just set visible to false and make this prevent from other problems.
In SystrayAdd always remove pending expose. Fixes #81072.
2007-04-26 Marek Safar <marek.safar@gmail.com>
* TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
value is set.
2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
* ListView.cs: Added three missing 2.0 events and corresponding
EventHandlers. Added the OwnerDraw property.
* DrawListViewColumnHeaderEventHandler.cs: fixed typo
2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
* DrawListViewItemEventArgs.cs
* DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
* TextControl.cs: Fixed typo in constructor
2007-04-26 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Create a shortcut path so that currently selected
MenuStrips can intercept keyboard events without having focus.
* Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
* MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
generate WM_SYSCOMMAND message in X11 for other platforms.
* ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
* ToolStripSplitButton.cs: Add DefaultItem property.
2007-04-26 Everaldo Canuto <everaldo@simios.org>
* MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
fixes some menu draw problem on Windows with border diferent from default
it also fixes #81403.
2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: Refactor WndProc into separate methods, just like Control is
doing it.
2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: set_Text: move the call to the driver into a seperate
virtual method so that Form can override it.
* MaskedTextBox.cs: Corcompare fixes.
* Form.cs: Override UpdateWindowText and only update the styles if the
form has been shown (fixes #81405).
2007-04-25 Jonathan Pobst <monkey@jpobst.com>
* Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
the form lost focus or another control was clicked.
2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
* DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
fixed.
2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
DrawListViewItemEventHandler.cs,
DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
Added.
* X11Structs.cs: More ToString implementation.
2007-04-25 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
* ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Only raise OnVisibleChanged if we're not recreating the
handle.
* FormCollection.cs: Don't add a form if it's already in the
collection.
* Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
according to behaviour and MSDN. The ownerWin32 is the active
window at the moment when we call ShowDialog, not the context's
main form (the context's main form may open another form that opens
a form with ShowDialog, the win32 owner is the second form). Add
and remove forms to the Application.OpenForms in other places to
better match MS behaviour. Add an IsActive property that raises
On(de)Activated only if the active state has changed (we were
raising OnDeactivated before OnActivated while creating forms).
* Application.cs: Refactor Enabling/Disabling of windows for modal
dialog loops out to separate methods, and restore the thread
context when we quit the method. Fixes #81407.
2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: In ItemControl.HandleClicks, also fire
2.0 MouseClick or MouseDoubleClick events on the parent,
not only the Click/DoubleClick events.
2007-04-24 Andreia Gaita <avidigal@novell.com>
* TableLayoutSettings.cs:
- Added a GetControls method and a support structure to help the
TypeConverter to enumerate the controls for serialization.
- Added a new serialization constructor.
- Added a isSerialized flag initialized to true on the
serialization constructor so that the TableLayoutPanel.LayoutSettings
setter does not throw the designed NotSupportedOperation exception
when the object is built through deserialization.
- Implemented GetObjectData
* TableLayoutPanel.cs: Added check on LayoutSettings.
2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Report Click and DoubleClick events to the parent
from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
from breaking the click count state when using dialog forms (Control
reports the clicks in a similar fashion). In the previous behaviour
the last WM_LBUTTONUP message in a double click was sent to the
ListView's form, instead of the ListView, which was breaking the click
count for it. Fixes #80387.
2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
* BindingNavigator.cs : fixed bugs revealed by new nunit tests
2007-04-24 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
us from created dropdowns for menu items that do not have subitems.
* ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
Check HasDropDownItems before calling DropDown so a dropdown will not be
created if it isn't needed.
2007-04-24 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Set the first node to the selected node when we get
focus if there is no selected node.
2007-04-24 Andreia Gaita <avidigal@novell.com>
* MimeIcon.cs: remove using blocks so that image streams are
not disposed of. Fixes #80151
2007-04-24 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Fixup the height of textboxes when the control
is created.
2007-04-24 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
for each ToolStripItem when the parent's RightToLeftChanged is called.
2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
Fixes #80163.
* Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
property, so that the setter can be overriden too.
* TextBox.cs: Change GetContextMenuInternal() to use
ContextMenuInternal.
2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
#81406.
2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
#81406.
2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MaskedTextBox.cs: Commit this so nobody else starts working on it and
avoid duplicate work. Mostily skeleton code, it's not working at
all yet.
2007-04-20 Leszek Ciesielski <skolima@gmail.com>
* NotifyIcon.cs : stub for MouseClick event
* Application.cs: stub for SetUnhandledExceptionMode
2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
* BindingNavigator.cs : Initial (partial) implementation
2007-04-23 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Do not create the treeview's handle when setting
the scroll position.
- ExpandAll needs to compute the scrollbars so it knows which
position to set the bar too.
* TreeNode.cs:
* TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
2007-04-23 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
key. Fixes #81408.
2007-04-23 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: Make GetImageSize internal.
* ToolStripMenuItem.cs: Use GetImageSize to determine the size we
need to draw an item. Fixes a reported issue where images on menus
that were not 16x16 were drawing incorrectly.
2007-04-21 Miguel de Icaza <miguel@novell.com>
* Padding.cs: Use the converter, fixes the resgen2 issue with
XMLNotePad.
2007-04-21 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Dont try to unhighlight the selected node if there
isn't a selected node.
2007-04-21 Jackson Harper <jackson@ximian.com>
* UpDownBase.cs:
* TextBoxBase.cs:
* ListView.cs:
* ListBox.cs:
* TreeView.cs: Use the InternalBorderStyle property to set the
initial border style, this forces the client rectangle to be sized
correctly.
2007-04-20 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Simplify scrolling to the last node after expanding
all.
- Fix some off by ones with setting the bottom.
2007-04-20 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Use DefaultSize for Size, calculate ClientSize from
that. We were incorrectly doing it the other way around. Also,
update ClientSize if we change the BorderStyle before the control
is created.
2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
* XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
* XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
Caption to CaptionHeight.
* XplatUIX11.cs: Renamed Caption to CaptionHeight.
* Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
and FixedFrameBorderSize to return value from current XplatUI driver.
* XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
and FixedFrameBorderSize using win32 API. Renamed Caption to
CaptionHeight.
* XplatUIOSX.cs: Renamed Caption to CaptionHeight.
* SystemInformation.cs: Fixed typo in BorderSize.
2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
* XplatUI.cs: Added MenuAccessKeysUnderlined.
* XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
* XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
returning false.
* Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
value from XplatUI driver.
* XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
SystemParametersInfo.
* ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
override.
* XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
returning false.
2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs, Hwnd.cs: Remove warnings.
2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
2007-04-20 Jonathan Pobst <monkey@jpobst.com>
* ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
MenuStrips that contain ToolStripSeparators.
2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
DefineStdCursorBitmap.
* Cursor.cs: Add an internal constructor so that the Cursor knows if it
has been created off a standard cursor. This is used to get a
bitmap of the standard cursor when Draw or DrawStretched is called
in order to draw the cursor.
* X11Structs.cs: Added XcursorImage and XcursorImages.
* XplatUIX11.cs, XplatUIWin32.cs: Add and implement
DefineStdCursorBitmap.
* Cursors.cs: Update all relevant creations of Cursor to use the new
internal constructor.
2007-04-19 Jackson Harper <jackson@ximian.com>
* TextBox.cs: Move the has_been_focused into the base control, so
some of the text adding methods can manipulate it (probably time
for a better name for this flag too).
- Call a new version of selectall that doesn't scroll
* TextBoxBase.cs: When we append text, if the document is empty,
don't scroll. If the document has text already, we scroll to the
end of the appended text.
- When the text is changed, we reset the has_been_focused, so the
next time the control gets focused, all the text is selected.
2007-04-19 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Move the margins to the document, add a method
so the margin sizes can be updated.
* TextBoxBase.cs: When the border style is changed, update the
border sizes.
2007-04-19 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Respect DefaultPadding.
* GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
padding into account.
* ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
2007-04-19 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Oops, we need to use the ClientRect not the
bounds here.
2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: In ItemControl.ItemsMouseDown, take into
account the double clicks when CheckBoxes are used and
the pointer is inside the checkbox. Fixes part of #81191.
2007-04-18 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Pressing the end key shouldn't move the caret
past the line ending.
* TextBoxBase.cs: We can still delete if we are in the line
ending and the combine will just kill the existing line ending.
2007-04-18 Jackson Harper <jackson@ximian.com>
* TextControl.cs: We can't move lines, then invalidate their
bounds, we need to get the old bounds and combine that with the
new bounds.
* TextBoxBase.cs: Before combining two lines for a delete, we need
to invalidate the area of the old line, since that will be moved
in the combine operation.
2007-04-18 Everaldo Canuto <everaldo@simios.org>
* LinkLabel.cs: In OnPaint invoke draw background to fix problems
with transparent background. Fixes #80482.
2007-04-18 Jonathan Pobst <monkey@jpobst.com>
* PictureBox.cs: Refresh on resize when SizeMode = Zoom.
* ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
[Fixes bug #81391]
2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
* CreateParams.cs: Add a couple of helper methods and do a less string
concatenation in ToString.
* XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
overload that takes a Control parameter, since this method may be
called before a control is assigned to the hwnd (from
CreateWindow), and update CreateWindow to use the new overload. In
GetMenuOrigin subtract the title bar from the y position if the
form has a window manager (since we're painting it and not X).
* XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
CreateParams to calculate the origin (since border sizes may vary).
In ScreenToMenu only subtract the title height if we actually have
a title.
* MdiWindowManager.cs: Override MenuHeight to always return 0, since
mdi children never have menus of themselves.
* InternalWindowManager.cs: Implement menu handling like form does.
Added GetMenuOrigin to calculate the menu origin, can't use the
CreateParams from the form like normally since it's lying.
* Hwnd.cs: Implement GetBorderSize better (in the sense more
windows-like) and add Inflate and comparison operators to the
Borders type. When calculating MenuOrigin and it's a form with a
window manager, use the window manager to calculate it.
2007-04-17 Chris Toshok <toshok@ximian.com>
* Control.cs (CreateControl): turns out in 2.0 we don't need this
OnBindingContextChanged thing here. It's only generated from
ContainerControl.OnCreateControl. Fixes a newly written unit test
- BindingTest.BindingContextChangedTest4.
2007-04-17 Jackson Harper <jackson@ximian.com>
* ScrollBar.cs: When setting values, make sure the current
position stays within the new values range.
2007-04-17 Chris Toshok <toshok@ximian.com>
* Control.cs (CreateControl): talk about a bizarre corner case.
Don't emit OnBindingContextChanged here if we're a parentless
control (i.e. if we're a form.). Fixes
BindingTest.BindingContextChangedTest2.
2007-04-17 Everaldo Canuto <everaldo@simios.org>
* ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
from win32. Fixes #81255.
2007-04-17 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
already present in CalculateButtonTextAndImageLayout.
2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: When setting min/max size for a window we need to
translate the coordinates to x coordinates. Create an overload of
SetWindowMinMax that takes a CreateParams handling this, and change
SetWMStyles to call this function (can't use Control.FromHandle in
the SetWindowMinMax to get the control/CreateParams from the handle
because the handle might not have been assigned to the control
yet). Fixes #81371.
2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: In ItemControl.ItemMouseDown, don't change check state
if StateImageList is non-null and it has less than two items (match MS
behaviour). Also, in HandleNavKeys handle the Space key, calling
the new ToggleItemsCheckState method, which tries to change the
checked state of the selected items. Fixes part of #81191.
2007-04-16 Jackson Harper <jackson@ximian.com>
* RichTextBox.cs: namespace cleanup.
2007-04-16 Everaldo Canuto <everaldo@simios.org>
* XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
2007-04-16 Everaldo Canuto <everaldo@simios.org>
[Fixes #79447]
* Control.cs: Call invalidate in set_Region.
* XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
it dont works here.
2007-04-16 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: When enter is pressed, we need to update all
lines below the current.
2007-04-16 Jonathan Pobst <jpobst@monkey.com>
* MdiClient.cs: Implement implicit menu merging for MDI
children. When a child form is active, if it has a menustrip
and the parent form has a MainMenuStrip, automatically merge
the menus.
2007-04-15 Andreia Gaita <avidigal@novell.com>
* TabControl.cs: Refactored sizing methods to not repeat
code all over the place. Tab bounds are now calculated
as if alignment is top and single line, and only when
setting the bounds are the positions adjusted according
to alignment. Replaced hardcoded positions, spacings and
paddings by getting the values the ThemeEngine.
Fixes #79619.
* Theme.cs: Change TabControl properties and methods so
that all start with TabControl*. Added more properties
to help remove hardcoded values on tabcontrol.
Add CPDrawBorder3D declaration so the Theming classes
can access it.
* ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
* ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
on the Theming namespace, and call the appropriate methods here.
Change CPDrawBorder3D to public.
2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
the control after firing the OnMouseUp event, instead of sending
the message before the mentioned event. This is so we can match the
MS behaviour. Fixes part of #80385.
2007-04-13 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: Call the RightToLeftChanged event when setting the
RightToLeft property.
2007-04-13 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Add properties and internal methods to support merging.
* ToolStripItem.cs: Add MergeAction and MergeIndex.
* ToolStripItemCollection.cs: Add Insert and Remove methods that do
not trigger reparenting or layouts.
* ToolStripManager.cs: Add Merge and RevertMerge methods.
* ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
is hosting the overflow menu.
2007-04-13 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Set the line ending correctly for the first
inserted line.
2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
* Theme.cs: Update GetMethod to get the new definition for
KnownColors.Update (and fix theme color updates).
2007-04-12 Everaldo Canuto <everaldo@simios.org>
* MessageBox.cs: Fix some test and button position.
2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Form.cs: Consider the implicit controls in
GetRealChildAtPoint. We need it since this method
is called on Form when handling the some messages in
WndProc, and need to consider those implicit ones too.
Fixes #80385.
2007-04-12 Jonathan Pobst <monkey@jpobst.com>
* ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
if there are no ShortcutKeys set.
* ToolStripProfessionalRenderer.cs: If an item has had its BackColor
set, use it when painting.
2007-04-12 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Fix some off-by-one issues in line duplication
and insertion in the undo manager. Also, overwrite the first tag
of a line on insert, if it is just a zero lengthed tag. This
prevents us from getting an extra stranded tag at the beginning of
the first line.
2007-04-11 Everaldo Canuto <everaldo@simios.org>
* Label.cs: Remove check for handle created in CalcAutoSize, we need
to calculated proper size including when handle was not created yet.
2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiWindowManager.cs: When moving a form, allow the form to be moved
when the mouse is outside of it's parent's client rectangle. Fixes
#79982 (take 3, part 2).
2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
* X11Structs.cs: Add a few ToString() overrides.
* XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
the window location in a window-manager independent way. Reworked
FrameExtents, it now actually works. Reworked AddConfigureNotify
and ReparentNotify handling to use GetTopLevelWindowLocation
instead of the earlier, more hacky solution. Reworked SetWMStyles,
hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
for all other windows (fixes #81281 part 1), a toolwindow is hidden
from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
and generally refactored to do as few calculations as possible
inside the lock.
2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
* Theme.cs: Change "reflective-contract" between MWF and SD to
minimize # of calls, avoid Color serialization and avoid updating
every "known colors" each time a single one is updated.
2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
* DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
when not readonly and the text is explicitly set. Code style updates.
* DataGridTableStyle.cs: Removed extra line.
* DataGrid.cs: Code style updates. Removed extra whitespace.
* DataGridColumnStyle.cs: Code style updates. Removed extra
whitespace.
2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: Added comment that "fixes" #80021.
2007-04-09 Jackson Harper <jackson@ximian.com>
* TextControl.cs: We don't need this -1 on the line count anymore.
2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
* DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
entered value to underlying type, and convert it back to a string to
apply formatting. Modified GetFormattedValue to use TypeConverter
if available.
2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
* ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
Use SubItems property when we want to ensure there's at least one
subitem. Modified SubItems property to ensure there's always at least
one subitem. Avoid using ListViewSubItemCollection.AddRange to match
the NRE's reported by MS.
2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
* ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
ResetForeColor override on 2.0. Fixed a few API compatibility issues.
Spaces to tabs. Removed extra tabs.
2007-04-06 Jonathan Pobst <monkey@jpobst.com>
* ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
infinite loop. (Forgot to copy to the horizontal toolstrip case.)
2007-04-06 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: When a delete removes a line, recalculate all
lines below that line (they need to get offsets setup correctly)
and invalidate.
2007-04-05 Jackson Harper <jackson@ximian.com>
* TextControl.cs: We need to invalidate across the width of the
document when we are invalidating multiple lines.
* TextBoxBase.cs: Don't delete into the line ending.
2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Restore the check for the MouseHover event
in ListView. It looks like the ListView fires more than one MouseHover
event when HoverSelection is true _only_ in weird-corner scenarios, but
in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
event.
2007-04-05 Mike Kestner <mkestner@novell.com>
* ListView.cs : raise MouseDown before updating selection.
[Fixes #80373 tab 1&3]
2007-04-05 Jonathan Pobst <monkey@jpobst.com>
* ToolStripRenderer.cs: Add static method to mirror image.
* ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
and RightToLeftAutoMirrorImage.
* ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
2007-04-05 Jonathan Pobst <monkey@jpobst.com>
* ToolStripSplitStackLayout.cs: Support Alignment property.
* ToolStripItem.cs: Remove MonoTODO from the Alignment property.
2007-04-05 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Move around the line endings when crossing line
boundaries.
- When combining lines, strip the ending text off the first line.
2007-04-05 Jackson Harper <jackson@ximian.com>
* TextControl.cs:
* TextBoxBase.cs: Try to never move the cursor into the line
ending.
2007-04-04 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: Make sure we aren't firing mouse events when
the item is disabled. Also add a few missing methods.
2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: We don't need the MouseEnter/MouseLeave check
to fire just one MouseHover event when HoverSelection is true, since
.Net does fire more than one MouseHover event in that scenario. Also,
fix the selection in HoverSelection, by invoking UpdateMultiSelect
if MultiSelect is true, instead of only setting ListViewItem.Selected.
Finally, we need to reset the Hover logic in MouseMove, even when we
don't have a selected item.
2007-04-04 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Add several missing methods, properties, and events.
2007-04-04 Chris Toshok <toshok@ximian.com>
* DataGridTextBoxColumn.cs: set the bounds of the text box to
(0,0,0,0) in Commit, as MS does.
* DataGrid.cs: call EndEdit() from Select() as microsoft does, and
make sure we set CurrentRow on a row header click *before* calling
Select. This moves the current cell (and the textbox) to the new
row. The call to Select then hides the textbox, giving us the
correct behavior. Fixes #80362.
* CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
(ListChangedHandler): reorder the position/current changed events,
and call UpdateIsBinding in the ItemAdded case.
* GridColumnStylesCollection.cs: add some columns events, one of
which raises the CollectionChanged event.
2007-04-04 Jackson Harper <jackson@ximian.com>
* TextControl.cs: When we delete multiple selection lines
invalidate the selection area, don't need to do that for single
lines because the final update view will handle it.
2007-04-04 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: When we CreateControl, we need to also create all of the
control's children. The child's OnLoad must also fire before the parent's
OnLoad. Fixes the toolbox size in PDN.
2007-04-04 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: When the user presses enter, insert a line
ending into the text. (Maybe this would be a good spot for
Environment.NewLine).
* TextControl.cs: Remove undo manager hack, line endings get
inserted properly now.
2007-04-04 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs:
- Remove unneeded parameters in UpdateCursor.
- Fix UpdateCursor to check if menu is active.
- Call UpdateCursor when menu deactivate my click.
[Fixes remaining issues from #80410]
2007-04-04 Everaldo Canuto <everaldo@simios.org>
* Control.cs: GetRealChildAtPoint method added, it make an
recursive child control search for the point.
* Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
menu.
* MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
2007-04-03 Everaldo Canuto <everaldo@simios.org>
* Form.cs: Fix mouse position when send back mouse event after closes
menu.
2007-04-03 Everaldo Canuto <everaldo@simios.org>
* Form.cs: Simplify the BUTTONDOWN for active tracker.
2007-04-03 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Fix an issue where if a user resized a control inside
a sizing method like OnResize, we would overwrite their explicit
value. Also, only call DefaultSize once in the constructor instead
of 4 times. Also, do not call SetBoundsCore from SetBounds if
nothing actually changed.
2007-04-03 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Don't attempt to copy text for lines with no
text in them (technically this shouldn't happen, but we aren't
always inserting line endings when we should be).
2007-04-03 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Calculate the scrollbars before calculating the
document, because this sets some of the document size properties
that are needed.
2007-04-03 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: We need to calculate maximums even if this is
not a multiline control, because the maxs are used for scrolling.
- Display the caret after doing a page up/down, we need to
manually display it because a proper CaretMoved event isn't
triggered (this is because of the way the math is done to
determine how far to scroll).
2007-04-03 Jonathan Pobst <monkey@jpobst.com>
* ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
(ToolBar was relying on SetBoundsCore to default the values sent
base off of BoundsSpecified.)
2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DateTimePicker.cs: Change Text so that when a null value or empty
string is assigned to the test we always raise ValueChanged and
TextChanged (earlier implementation would only raise ValueChanged
if the current date value was different from DateTime.Now).
2007-04-03 Andreia Gaita <avidigal@novell.com>
* ButtonBase: Call update after invalidation, fixes #80194
2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
#79335.
2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: SetWMStyles: If the control is a form with
FormBorderStyle = None, don't give the window any decorations.
Fixes #81276.
2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
* CreateParams.cs: Fix IsSet, wasn't working correctly when the style
to check for is a mix of several styles (such as WS_CAPTION for
instance).
* Control.cs: Don't paint an area bigger than the client area when
painting the background colour. Add an internal GetCreateParams.
Update calls to XplatUI.CalculateWindowRect due to API change.
* XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
the size if it hasn't been handled by any windows. When creating
and moving windows, X wants the location of the entire window, but
the size of the client window, so add
TranslateClientRectangleToXClientRectangle,
TranslateWindowSizeToXWindowSIze and
TranslatedXWindowSizeToWindowSize to cope with this, and call them
before every window creation and move. Update CalculateWIndowRect
to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
In AddConfigureNotify don't do anything if the hwnd is a zombie
(fixes the BadWindow we were getting while running the tests),
always calculate the offsets when it's a parentless window, not
only when reparented, and translate the window size, since we're
getting the client size of the whole window, excluding entire
window.
* Theme.cs: Added BorderSizableSize.
* XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
anymore. Update calls to XplatUI.CalculateWindowRect due to API
chang
* Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
change. Fake the window styles here instead of in XplatUIWin32 so
that all back-ends get the same window styles (and it's Form that's
deciding when to use wm, not the Win32 backend anyways)
* Hwnd.cs: Completely reworked GetWindowRectangle and
GetClientRectangle - they are now passed a CreateParams and they
only use Style and ExStyle to determine the rectangles (they should
now work just like Win32AdjustWindowRectEx - though quite a few
special cases are probably missing). They should also be 100%
complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
== rect), and all numbers (borders, menu sizes) are taken from the
current theme. Added a GetBorders helper function that will return
the borders for any given CreateParams (including captions and
menus), and GetBorderSize that returns the given border size only.
* XplatUIOSX.cs: Update calls to CalculateWindowRect and
Hwnd.GetClientRectangle.
2007-04-02 Chris Toshok <toshok@ximian.com>
* DataGridBoolColumn.cs: rewrite things a bit, and fix up the
logic between the values we present to the user and the values
which are stored in the column's property. Also, don't call
GetPreferredSize - it's virtual. Along the way, fix bug #80965.
2007-04-02 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Scroll faster!
2007-04-02 Jonathan Pobst <monkey@jpobst.com>
* StatusStrip.cs: Layout fixes for PDN.
* ToolStrip.cs: Set item's available to true, and placement to main when
added.
* ToolStripItem.cs: Fix an Available issue, check that Parent is really
changing in setter before doing any work, add InternalVisible.
* ToolStripPanel.cs: Remove unused variable to fix compiler warning.
* ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
infinite loop.
2007-04-02 Jackson Harper <jackson@ximian.com>
* TextBox.cs: LBUTTON does not make the textbox select all of it's
text on focus.
2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIWin32.cs: Use the previous change in SetParent for forms only.
Makes ToolStripComboBoxes show up again.
2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add a hover_pending field in ListView
to fire just one OnMouseHover event for each MouseEnter/MouseLeave
cycle (we are resetting the MouseHover logic in XplatUI
to handle HoverSelection). Fixes #80429.
2007-04-02 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Make sure the attributes get set on the last
tag.
- Still have to do the end tag if we have stepped all the ways to
the end.
2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
* XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
on an internal libgdiplus call when the information is already
available via the public API.
2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Call ContainerControl.ChildControlRemoved whenever a
control is removed from a control collecftion.
* XplatUIX11.cs: The first location for toplevel form is (22, 22).
Fixes FormPropertyTest (failed on rare occasions).
* XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
of Win32SetParent (when changing from no parent to a parent it
might add the new parent's location in screen coordinates to this
window's location).
* Form.cs: Rework ChangingParent once again, now the handle is
recreated whenever a FormWindowManager is added or removed (that is
whenever a normal form is parented or abandoned). Also change
CreateParams so that all non-toplevel windows always get the
specified sice (StartupPosition is never considered for
non-TopLevel forms).
* ContainerControl.cs: Add ChildControlRemoved, the container control
needs to be notified when a control is removed from it's
collection, in the case the removed control is the active control.
2007-04-02 Jackson Harper <jackson@ximian.com>
* RichTextBox.cs: Use the new methods for setting the font and
color, these methods set the specified attribute without
overriding the other attributes.
2007-04-02 Jonathan Pobst <monkey@jpobst.com>
* ToolStripPanel.cs: Fixes for better layouts in PDN.
2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
* TextBox.cs: Added internal ChangeBackColor method to special-case
Color.Empty. Added check for invalid ScrollBars value.
* TextBoxBase.cs: Added internal ChangeBackColor method.
* RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
internal ChangeBackColor method to special-case Color.Empty. Added
check for invalid ScrollBars value.
2007-03-30 Everaldo Canuto <everaldo@simios.org>
* MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
2007-03-30 Jonathan Pobst <monkey@jpobst.com>
* ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
* ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
[Based on submitted patch from Olivier Duff.]
2007-03-30 Jackson Harper <jackson@ximian.com>
* TextBox.cs: Only select all on initial focus if the user has not
specified a selection area.
2007-03-30 Jonathan Pobst <monkey@jpobst.com>
* UserControl.cs: Override CreateParams.
2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
[ Fixes #80995 ]
* XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
* CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
check for is a mix of several styles (such as WS_CAPTION for instance).
* Control.cs: Don't paint an area bigger than the client area when painting
the background colour. Add an internal GetCreateParams. Update calls to
XplatUI.CalculateWindowRect due to API change.
* XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
hasn't been handled by any windows. When creating and moving windows, X
wants the location of the entire window, but the size of the client
window, so add TranslateClientRectangleToXClientRectangle,
TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
to cope with this, and call them before every window creation and move.
Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
removing DeriveStyles). In AddConfigureNotify don't do anything if the
hwnd is a zombie (fixes the BadWindow we were getting while running the
tests), always calculate the offsets when it's a parentless window, not
only when reparented, and translate the window size, since we're getting
the client size of the whole window, excluding entire window.
* Theme.cs: Added BorderSizableSize.
* XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
* Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
Fake the window styles here instead of in XplatUIWin32 so that all
back-ends get the same window styles (and it's Form that's deciding when
to use wm, not the Win32 backend anyways)
* Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
they are now passed a CreateParams and they only use Style and ExStyle
to determine the rectangles (they should now work just like
Win32AdjustWindowRectEx - though quite a few special cases are probably
missing). They should also be 100% complimentary (i.e. GetWindowRectangle
(GetClientRectangle (rect)) == rect), and all numbers (borders, menu
sizes) are taken from the current theme. Added a GetBorders helper
function that will return the borders for any given CreateParams
(including captions and menus), and GetBorderSize that returns the given
border size only.
* XplatUIOSX.cs: Update calls to CalculateWindowRect and
Hwnd.GetClientRectangle.
2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: Don't layout mdi children on MdiParent creation, the initial
layout of the mdi children is handled by CreateParams. Fixes
#79964,
2007-03-29 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
processed.
* Form.cs: When active tracker mouse down is not processed, send event
back to control inside mouse position. [Fixes #81227]
2007-03-29 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
stealing focus from the active form on Windows. (Control will be made
visible in ShowWindow.)
2007-03-29 Mike Kestner <mkestner@novell.com>
* ImageList.cs : add internal Changed event.
* ListView.cs : hook up to StateImageList.Changed to perform
invalidations when the the state icon list changes. [Fixes #81191]
2007-03-29 Jonathan Pobst <monkey@jpobst.com>
* ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
to prevent tooltips from stealing focus from the active form on Windows.
2007-03-29 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
* ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
2007-03-29 Everaldo Canuto <everaldo@simios.org>
* NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
balloons.
2007-03-29 Jackson Harper <jackson@ximian.com>
* TextControl.cs: When deleting text from non multiline textboxes,
we need to update the entire document, because line offsets will
be shifting.
2007-03-29 Everaldo Canuto <everaldo@simios.org>
* XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
added to theme, now we can create themes that uses diferent notify engines
like notification-daemon from galago project or growl for Mac OS.
2007-03-28 Everaldo Canuto <everaldo@simios.org>
* NotifyIcon.cs: Prevent Balloon to show in task bar.
2007-03-28 Everaldo Canuto <everaldo@simios.org>
* XplatUIX11.cs: Prevent system to open more than one balloon.
* NotifyIcon.cs: Prevent system to open more than one balloon and remove
some compiler warning messages.
2007-03-28 Everaldo Canuto <everaldo@simios.org>
[Fixes #79149]
* XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
* ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
implemented, this methods is used by NotifyIcon.BalloonWindow class.
* NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
systems.
2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Forgot to make Invalidate internal.
2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add a InvalidateSelection method to
invalidate methods which are currently selected, and call
it when setting FullRowSelect and HideSelection, instead of
calling Redraw.
2007-03-28 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (UnmapWindow): reindent this block.
* DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
the selection_start if we're moving the selection (that is, not
extending it). Fixes bug #80461.
2007-03-28 Jonathan Pobst <monkey@jpobst.com>
* ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
* ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
create private ControlCollection.
2007-03-28 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: We need to call OnVisibleChanged for our implicit
children as well as our normal children. Fixes scrollbars in
comboboxes not showing up.
2007-03-28 Jonathan Pobst <monkey@jpobst.com>
* Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
the check for IsHandleCreated first. The check in CreateHandle is not
good enough because CreateHandle can be overriden, and the override
should not be called if the handle is already created.
2007-03-28 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Remove MonoTODO for tooltips.
* ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
* ToolStripContainer.cs: Add custom ControlCollection class.
* ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
* ToolStripDropDown.cs: Add some missing properties/methods.
* ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
* ToolStripItem.cs: Remove MonoTODO for tooltips.
* ToolStripManager.cs: Add IsShortcutDefined.
* ToolStripOverflow.cs: Override LayoutEngine.
* ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
* ToolStripSeparator.cs: Add ImageKey.
2007-03-28 Jackson Harper <jackson@ximian.com>
* TextControl.cs: If a char delete removes a line ending, we need
to update the ending style.
- Make sure the line ending calcs get called.
2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: CreateWindow: Remove old default form location code,
it was making the new code not work. Fixed a typo in the new code
as well. Fixes #79826.
2007-03-27 Everaldo Canuto <everaldo@simios.org>
* XplatUIWin32.cs:
- NIF_STATE and NIF_INFO added to NotifyIconFlags.
- NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
- SystrayBalloon method implemented.
[Add support for notifyicon balloon on win32, #79149]
2007-03-27 Mike Kestner <mkestner@novell.com>
* ThemeWin32Classic.cs : update StateImageList selection to mirror
the ms behavior when only one image is added to the list.
[Fixes #81191]
2007-03-27 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Improvements to non multiline line ending
drawing/measuing.
2007-03-27 Everaldo Canuto <everaldo@simios.org>
* XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
2007-03-27 Everaldo Canuto <everaldo@simios.org>
* NotifyIcon.cs:
- Balloon message handling added.
- Call XplatUI.SystrayBalloon in ShowBalloonTip.
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
to SystrayBalloon to me like other Systray method, also a
handle parameter added.
2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Show scrollbars even when items.Count == 0
but the columns Width is bigger than the ListView.Width.
Also, when columns.Count == 0 set layout_wd and layout_ht
to the ClientRectangle values, so we don't show any scrollbar
in that case.
2007-03-27 Everaldo Canuto <everaldo@simios.org>
* XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
2007-03-27 Jackson Harper <jackson@ximian.com>
* RichTextBox.cs: The RTF library decodes the text properly for us
now.
2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Display HeaderControl even when columns.Count == 0.
* ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
ListView header (HeaderControl), instead of Control.BackColor.
2007-03-27 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
Fixes tab control issues where controls would not show up because they
never received their OnVisibleChanged call.
2007-03-27 Everaldo Canuto <everaldo@simios.org>
* NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
BalloonTipShown).
2007-03-27 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
* Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
the handle. Fix WindowState by using the internal variable until we are
sure that we've been shown.
* XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
max or min.
[Fixes bug #81198]
2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
(at least borders). Fixes #79386 on Linux (with a small difference
in behaviour: when trying to resize a caption-less window metacity
shows the sysmenu. Resizing is still possible though).
* XplatUIWin32.cs: When setting window styles send request an extra
WM_NCCALCSIZE when it's a form without title (due to no text and no
caption), since Win32 seems to calculate it wrong the first time we
get the message, though the second time things work as they should.
* Form.cs: Reorder a few statements in ChangingParent, otherwise the
newly reparented window might show up unparented. Update
CreateParams to exclude WS_DLGFRAME if ControlBox is false and
there's no title text. Fixes #79386.
2007-03-27 Mike Kestner <mkestner@novell.com>
* ListBox.cs : don't perform invalidations if the handle hasn't been
created. [Fixes #80753]
2007-03-27 Mike Kestner <mkestner@novell.com>
* ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
[Fixes #80428]
2007-03-26 Everaldo Canuto <everaldo@simios.org>
* XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
needed to implement Balloon.
2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: In the constructors that take
an array of strings, don't use ListViewSubItemCollection.AddRange
method to add items, since we need to have a different behaviour (in
the constructors we add an item for each null string, opposed to
the behaviour of AddRange, which adds nothing).
2007-03-26 Andreia Gaita <avidigal@novell.com>
* NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
2007-03-26 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Draw and measure line endings when in non
multiline mode.
- When searching the text, count the end of the last line as a
word boundary.
2007-03-26 Jackson Harper <jackson@ximian.com>
* RichTextBox.cs: The selection_start and selection_end don't
really track the correct tags for the selection. So we'll manually
compute the correct tag here.
2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
and Continuous styles. Fixes #79469.
2007-03-26 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Implement Tooltips.
* ToolStripItem.cs: Create internal method for determining tooltip.
2007-03-26 Jonathan Pobst <monkey@jpobst.com>
* PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
2007-03-26 Everaldo Canuto <everaldo@simios.org>
* NotifyIcon.cs: On disposing verify if icon is visible and hide it,
it prevents a problem thak keeps icon visible after application
closes on win32.
2007-03-26 Everaldo Canuto <everaldo@simios.org>
* NotifyIcon.cs: Balloon properties and methods created.
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
2007-03-25 Jonathan Pobst <monkey@jpobst.com>
* ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
2007-03-24 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
parameter indicates which aspects were explicit/user-set.
* ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
2007-03-24 Jonathan Pobst <monkey@jpobst.com>
* ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
* ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
SmallChange, and Value (2.0).
* Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Always set item_control.Width in LayoutDetails
if View is Details. Setting it later in CalculateScrollBars
in a not-so-corner scenario (the sum of columns width is
not bigger than the ListView width when handle is created, and then
that sum gets bigger by increasing the width of the columns)
causes a very weird recursion path (which shouldn't be happening,
since header_control sets it in CalculateScrollBars too). This bug
appeared after Chris' fixes for handle created issues, so probably
it's related to some handle-creation time.
2007-03-23 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (GetVisibleRowCount): increase the row count in the
case where there's an add row, just so we don't end up in a case
where it's not displayed (this happens when the row is partially
obscured). Fixes bug #79574.
2007-03-23 Jackson Harper <jackson@ximian.com>
* TextControl.cs:
* TextBoxBase.cs:
* RichTextBox.cs: Preserve line endings in the lines text buffer,
also added an enum that represents the line ending type.
2007-03-23 Andreia Gaita <avidigal@novell.com>
* NumericUpDown.cs: Fix logic so Text and Value properties are not
messed with in every method call, but only from DownButton,
UpButton, UpdateEditText() and ValidateText. Fixes #80346
2007-03-23 Chris Toshok <toshok@ximian.com>
* DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
format objects if the format spec is "". Fixes bug #80889.
2007-03-22 Miguel de Icaza <miguel@novell.com>
* ToolStripPanel.cs (Join): added stubs to build PDN3
* Control.cs (AutoScrollOffset): Add.
* SystemInformation.cs (MouseWheelScrollDelta): Expose this
property, its only implemented for Win32, on X11 it defaults to
some hardcoded value.
* ToolStripItem.cs (AllowDrop): Add property
2007-03-22 Mike Kestner <mkestner@novell.com>
* ListView.cs : in FullRowSelect Details mode, only enable box
selection if the user clicks over the "item" column outside of the
text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: ChangeParent: Call Form's ChangingParent even if the
handle is not created yet.
* Form.cs: Select: Don't call CreateHandle if the handle is already
created, avoids a stack overflow on Windows when we are recreating
controls.
* ScrollableControl.cs: Set the correct z-order for the scrollbars when
they are made visible, and override AfterTopMostControl to keep
them on top when other controls are brought to front.
CalculateCanvas: Scrollbars are only visible if auto_scroll is true
or force_*scroll_visible is true (old implementation always shows
scrollbars when needed, no matter what auto_scroll was set to).
* InternalWindowManager.cs: UpdateWindowDecorations: Add a
IsHandleCreated check.
2007-03-22 Andreia Gaita <avidigal@novell.com>
* DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
row or col separator.
* DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
2007-03-22 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
2007-03-22 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
cursor for child controls. In ShowWindow and HideWindow now call SetCursor
every time. Fixes #80410.
2007-03-22 Chris Toshok <toshok@ximian.com>
* BindingSource.cs (AddNew): partially implement.
remove a couple of NotImplementedException's
to get bug #81148 closed.
2007-03-22 Everaldo Canuto <everaldo@simios.org>
[Fixes #80380]
* Control.cs:
- UpdateCursor method added to update the screen cursor.
- GetAvailableCursor method added to return cursor for enabled tree,
it searches for cursor on control and it's parent's for enabled control.
- Call UpdateCursor method on setter of Cursor property.
- On setter of Enabled call UpdateCursor when it is false, we need to
change cursor to normal (or to this parent cursor) because cursor
setting theres no effect to disabled controls.
- Some minor source changes to follow the coding style guidelines.
* XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
controls.
2007-03-22 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: ignore the BadPicture errors cairo+render
generates.
2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: Implement default locations for forms.
* Form.cs: Completely rework startup location for forms. Fixes #79964.
* Hwnd.cs: Add previous_child_startup_location (to track the current
startup location for any child forms of the current form) and
previous_main_startup_location (to track the startup location for
the current toplevel form).
2007-03-21 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Don't trigger a layout if an implicit control is added
that isn't visible. Also, don't notify the owner when an implicit control
is added. (Owners shouldn't even know about their implicit controls.)
2007-03-21 Jonathan Pobst <monkey@jpobst.com>
* ScrollableControl.cs: Add implicit controls with AddRangeImplicit
to save some re-layouts.
2007-03-21 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: In ProcessKeys returns false when key is not processed.
[Fixes #81203]
2007-03-21 Jonathan Pobst <monkey@jpobst.com>
* FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
2007-03-21 Mike Kestner <mkestner@novell.com>
* ListView.cs : disable selection update for non-left button clicks
with mods and over selected items. [Fixes #80524]
2007-03-20 Jackson Harper <jackson@ximian.com>
* TextControl.cs:
* TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
\r\r\n, \n.
2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
very probably a more complicated calculation there. Update the
textbox' ForeColor and BackColor when the ComboBox' colors are
changed. Change the border change in LayoutComboBox to only affect
the textbox, not all the calculations there. Seems to fix most of
#79436.
2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ComboBox.cs: Handle Home and End keys as well as all combinations of
modifiers + navigation keys as input keys, enables advanced text
selection in the combobox (like Shift+Left Arrow for instance).
ComboTextBox now overrides Focused and returns whatever
ComboBox.Focused returns, since it really should be focused
whenever the ComboBox is. Fixes #80795. Also make the border around
the text box one pixel bigger, as mentioned in #79436.
2007-03-20 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Don't offset the images, this was causing some
artifacts when expanding/collapsing with images that were the
exact height of the treenode.
2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* TrackBar.cs: Query the theme for the correct value when the mouse
moves and the thumb is pressed.
* Theme.cs: Added TrackBarValueFromMousePosition
* ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
implementation was updating the trackbar value when drawing, now
the drawing methods only draw. Fixes #80900. Refactored the
calculations out to TrackBarValueFromMousePosition and
GetTrackBarDrawingInfo, so that TrackBar can get the correct value
according to the mouse position whenever it wants to. Changed the
light coloured pen when drawing the thumb from ControlLight to
ControlLightLight, because the ControlLight is the same colour as
the background so the 3D effect is lost.
2007-03-20 Everaldo Canuto <everaldo@simios.org>
* Form.cs: In ShowDialog uses MainForm as transient form when no form is
defined. Fixes #80784.
2007-03-20 Marek Habersack <mhabersack@novell.com>
* ContextMenuStrip.cs: align with the change introduced in
revision 74664.
2007-03-20 Everaldo Canuto <everaldo@simios.org>
* XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
in SetTopmost.
2007-03-19 Chris Toshok <toshok@ximian.com>
* Control.cs (WmPaint): don't make use of the Handle property
after an event is emitted, as the user could have closed the
form/destroyed the control. Store the Handle in a local variable
and make use of that. Fixes bug #80768.
2007-03-20 Everaldo Canuto <everaldo@simios.org>
* XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
behavior in X11 environments.
2007-03-20 Everaldo Canuto <everaldo@simios.org>
* Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
because on setter of topmost we dont call SetTopmost when handle is not
created.
2007-03-20 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Need to use SelectionLength () not
selection_length, since that var is reset to -1.
- Draw the caret when we don't have focus.
* TextBox.cs: The selectall actually doesn't occur until the first
focus.
* TextBoxBase.cs: Need to update the caret position after a
selectall.
2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Enable scrolling when using Tile view.
2007-03-20 Everaldo Canuto <everaldo@simios.org>
[Fixes #80902]
* XplatUIDriver.cs: Abstract SetOwner method created.
* XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
must be implemented and was masked as todo.
* XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
GWL_HWNDPARENT.
* XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
cheking for null owner to remove transient. The SetTopmost will be change
on a decond step.
* Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
SetTopmost. Now owned forms will work properly in win32 and X11.
2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiWindowManager.cs: Update function name.
* Form.cs: After closing a form MdiParent is always null.
* MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
better what it should do: necessary book-keeping when the form is
closed, it should not close the form itself.
2007-03-19 Andreia Gaita <avidigal@novell.com>
* ListViewItem.cs: Fix back and fore color. The subitems only
use their own colors if they are set, otherwise use the listview's
colors. Don't set default colors on constructor for subitem.
Fixes #79315.
2007-03-19 Mike Kestner <mkestner@novell.com>
* ListView.cs : make box selection for Details views with
FullRowSelect conform to MS behavior when clicking in the "item"
column and clicking outside the defined columns.
[Fixes case 5-6 of #80374]
2007-03-19 Chris Toshok <toshok@ximian.com>
* ScrollableControl.cs: create the controls from within the ctor,
but don't actually add them until our handle is created. this
fixes a NRE possibility jpobst found (if you override OnLayout in
a subclass, it's called before your ctor). Also, add a
IsHandleCreated guard to UpdateSizeGripVisibility as well.
2007-03-19 Jackson Harper <jackson@ximian.com>
* TextBox.cs: Reduce the amount of invalidation we do.
* TextBoxBase.cs: Make shortcuts enabled true by default, at least
some of them are true by default on MS.
- Add some functions to reduce the amount of invalidates we do.
* TextControl.cs: Less invalidation.
2007-03-19 Chris Toshok <toshok@ximian.com>
[ Fixes #81773, and *seems* to fix #81553 as well ]
* XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
AccumulateDestroyedHandles. We need to do it *after* we send
WM_DESTROY, as the user's code can access Control.Handle in
OnHandleDestroyed, and this shouldn't cause a recreation. Also,
move the WM_DESTROY/zombie handling to before the call to
XDestroyWindow. For some reason without this ordering
FormTest.RecreateHandle hangs. This ordering is semantically
equivalent, however, as XDestroyWindow is async anyway.
2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
* RichTextBox.cs: Reset backcolor_set after setting default.
2007-03-19 Chris Toshok <toshok@ximian.com>
* ScrollableControl.cs: the scroll position should not effect the
canvas size. commit patch from georgegiolfan@yahoo.com, which
fixes some really bizarre behavior on resizing. Fixes bug #80778.
2007-03-19 Chris Toshok <toshok@ximian.com>
* ScrollableControl.cs: clean this up a bit. create the
scrollbars in the ctor and just show/hide them as needed. Also,
make hscroll_visible/vscroll_visible internal to Recalculate, and
just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
everywhere else. This seems to fix the scrollbars appearing
beneath the content for me (i have *no* idea why that is,
however.)
2007-03-19 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
some redundacy for stuff in Anchor and Dock that base will take care of.
[Fixes #80762]
2007-03-19 Mike Kestner <mkestner@novell.com>
* ListView.cs : make box selection for Details views without
FullRowSelect dependent on the text bounds, not item bounds.
* ListViewItem.cs : add an internal property to obtain the TextBounds
in Details view. [Fixes case 1-4 of #80374]
2007-03-19 Andreia Gaita <avidigal@novell.com>
* PaintEventArgs.cs (Dispose): Only dispose of graphics object if
we're < 2.0. #78448 && #80316
2007-03-19 Jonathan Pobst <monkey@jpobst.com>
* FontDialog.cs: Don't crash when we switch to a new font that doesn't
have the same style available as the previously selected one. Also,
support FixedPitchOnly property. [Fixes bugs #80918, #80947]
2007-03-19 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Add an alignment property that all new lines
will be given.
- Make sure to use the align shift when calculating the line's X
position.
* TextBox.cs: Set the alignment on the document as well as on all
the document lines.
2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
throw if setting the parent of an mdichild that already has an
mdiparent. Update signature for 2.0 profile. ProductName: If there's no
AssemblyProductAttribute in the assembly, use the type's namespace (as
MS seems to do). CreateControl: don't create the handle if the control
is not visible (according to MS behaviour and spec). SetTopLevel: Only
create handle if the control is not a form. Change FocusInternal to
virtual so that it can be overriden by Form.
* TextBox.cs: Update call to FocusInternal.
* Form.cs: Always create the handle when calling Focus on a MdiChild. The
form is not a toplevel form when it's a mdi child, so update is_toplevel
accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
hasn't been created. Show (IWin32Window): Don't allow this overload for
toplevel windows. CenterToParent/CenterToScreen/Select: create the
handle as MS does. SetVisibleCore: if called on a MdiChild and the
parent isn't visible yet, save the visibility and restore it when the
parent is made visible.
* ScrollableControl.cs: Refactor out scrollbar visibility code to separate
methods, since the visibility of the scrollbars can be changed from
several places, not only from AutoScroll.
[Fixes #81179]
2007-03-19 Jackson Harper <jackson@ximian.com>
* RichTextBox.cs: Enable shortcuts by default.
* TextBoxBase.cs: Add conditional shortcuts.
2007-03-19 Everaldo Canuto <everaldo@simios.org>
* MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
2007-03-19 Chris Toshok <toshok@ximian.com>
[ Fixes bug #80604]
* XplatUIX11.cs (WaitForHwndMessage): change this to actually
swallow the message we're waiting on, instead of delivering it, as
this is only used for the WM_SHOWWINDOW raised from
MapWindow/UnmapWindow, and the message needs to be generated
(MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
before doing the Map/Unmap. Also make sure that the Hwnd is still
alive after the message has been handled.
*before* the window is shown.
* Control.cs (CreateControl): guard a few more things inside the
if (!is_created) block, as we might end up being called again -
yay .net.
(WmShowWindow): call CreateControl if we're showing the control.
2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Fix 2.0 signature for Invoke. Support invoking on
controls without a handle if they have any parent with a handle. In
Dispose add a check whether the handle is created or not before
calling BeginInvoke, this removes the need of the extra disposing
parameter (which was bogus anyway since it didn't prevent the
invoke from happening, it only skipped the check for an existing
handle, meaning that the invoke would call on an inexistent
handle).
2007-03-19 Everaldo Canuto <everaldo@simios.org>
* MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
appears in taskbar.
2007-03-18 Everaldo Canuto <everaldo@simios.org>
* MessageBox.cs:
- Fixed a problem that dont show help button for messages with 3 buttons.
- Refactory button size and position calculations, now dont use fixed
values, also fixed button sizes (#80043) and form's border space.
- AddButton method created, now all other AddButton methods call this one.
- Some other source code cosmetic changes.
2007-03-18 Jackson Harper <jackson@ximian.com>
* RichTextBox.cs: Don't do this all fonts must match check if
there is only one char selected.
2007-03-18 Jackson Harper <jackson@ximian.com>
* TreeView.cs: ScrollWindow works properly now, so we don't need
to screw around with the scroll area. This fixes some artifacts
when expanding and collapsing.
2007-03-18 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Allow updating the selection position when the
cursor is outside the textarea, but we have a capture.
* TextControl.cs: A special case for when the cursor is outside
the bounds of the TB.
2007-03-18 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Remove image pasting code for now. There is no
way to get an image on the clipboard right now anyways.
* TextControl.cs:
* RichTextBox.cs: Use the new RTF Picture class for pictures.
2007-03-18 Everaldo Canuto <everaldo@simios.org>
* MessageBox.cs:
- Set window properties in constructor intead of on CreateParams.
- Remove topmost from Window ExStyle.
- Set ShowInTaskbar to false.
- Set form border to FixedDialog.
- Some cosmetic changes and remove unneeded comments.
- It fixes itens 2,3 and 4 of bug #80043.
2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
* TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
none was explicitly set. Fixes part of bug #79949.
2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
* ToolStripComboBox.cs: Add AutoComplete*.
2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
* ToolStripComboBox.cs: Add FlatStyle.
2007-03-16 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs, ToolStripProfessionalRenderer.cs,
ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
CheckBox.cs, RadioButton.cs, BindingSource.cs,
DataGridColumnStyle.cs: Remove warnings.
2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Menu.cs: MergeMenu: Check menu argument for null before looping over
it.
* MdiWindowManager.cs: Add IsVisiblePending to track the pending
visibility of mdi child forms. FormSizeChangedHandler: update the
maximized size if size has changed while maximized.
* MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
creating the handle.
* InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
avoid creating the handle if not created.
* XplatUI.cs: Update debug output.
* XplatUIStructs.cs: Added ToString's for a couple of structs.
2007-03-16 Jonathan Pobst <monkey@jpobst.com>
* ContainerControl.cs: Give ToolStripManager the opportunity to handle
ProcessCmdKey().
* ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
Implement keyboard shortcuts.
2007-03-15 Everaldo Canuto <everaldo@simios.org>
* CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
ColorDialog and all derived classes.
2007-03-15 Everaldo Canuto <everaldo@simios.org>
[ Fixes bug #79828 ]
* ToolBar.cs:
- Rename ToolBarButtonInfor to ToolBarItem.
- Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
- Maintain an array of ToolBarItem, used instead of ToolBarButton
collection to be able add same button more than one time on a toolbar.
- Refactory all properties and methods to use ToolBarItem.
* ToolBarButton.cs:
- Remove all propeties and methods that is now in ToolBarItem.
- Rectangle propery now gets the rectangle from first ToolBarItem to
mimic win32 behavior.
- Size calculation and layout methods also removed.
* ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
ToolBarItem instead of ToolBarButton to right drawing buttons when
same button/separator was added more than one time to ToolBar.
* ThemeNice.cs: Same as above.
2007-03-15 Andreia Gaita <avidigal@novell.com>
* XplatUIX11.cs: Fire extra MouseMove events right after
MouseDown and MouseUp, emulating win32's <censored> behaviour
for apps that rely on it.
2007-03-15 Jackson Harper <jackson@ximian.com>
* TextControl.cs:
* TextBoxBase.cs: On MS, a fixed single border is not in NC area,
it is drawn on the controls client window and there is no NC
area.
- Set the background color to gray on 2.0 when we are readonly.
2007-03-15 Chris Toshok <toshok@ximian.com>
[ Fixes bug #81144 ]
* XplatUIX11.cs: implement VirtualScreen independently of
WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
property.
2007-03-15 Chris Toshok <toshok@ximian.com>
* Hwnd.cs: add an internal field for the cached_window_state.
* XplatUIX11.cs: cache the window state, invalidating the cache
(and thus re-querying the X server) only when we see an update to
the _NET_WM_STATE property.
2007-03-15 Chris Toshok <toshok@ximian.com>
* BindingSource.cs: get a lot of the unit tests working.
2007-03-15 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Modify UpdateStyles to store distances when bounds >=
0 instead of just bounds > 0. [Fixes bug #80912]
2007-03-15 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs, ToolStripItem.cs: Implement several new properties
and methods.
2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
* ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
2007-03-15 Chris Toshok <toshok@ximian.com>
[ Fixes #81101 ]
* Control.cs: add Ivan's fix for 81101, with a slight modification
- you can set control.Target to null.
2007-03-14 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: If our OwnerItem is null, we can't use
HideDropDown, use Hide instead to prevent an NRE.
[Fixes bug #81147]
2007-03-14 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Mess with the creation stuff a little. We need
to calculate the document before the handle is created, in some
cases. (Actually just one case).
2007-03-14 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Need to display the caret after letting the base
wndproc handle the focus methods, because the caret display
methods check the focus state.
- Try to display the caret after updating it's position with SelectWord.
- Don't need to do an immediate update on this recalc, since there
will be an invalidate anyways.
2007-03-14 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Some workarounds so that we can match event order a
little better.
2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
* ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
#80803. Avoid NullReferenceException when Control does not have
parent. Fixed different blinkstyle issues. Only subscribe to Tick
event a single time. Only draw error icon when control is created and
visible. Fixes failing unit tests.
2007-03-14 Andreia Gaita <avidigal@novell.com>
* TabControl.cs: Add support for 2.0 Deselecting, Deselected and
Selecting events. Fire Leave and Enter events when changing tabs.
2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
* TreeView.cs: Add TreeViewNodeSorter.
* TreeNodeCollection.cs: Add sorter parameter to Sort method.
2007-03-14 Chris Toshok <toshok@ximian.com>
* Form.cs: go ahead and remove the RecreateHandles that jpobst
removed earlier and I had him add back it. It turns out metacity
*does* in fact handle the MOTIF_WM_HINTS property changing, it
just doesn't redraw the window titlebar until you resize the
window. This also means we aren't recreating the entire window
hierarchy on X when you change this property. And it looks better
on windows, too.
2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs:
* ListView.cs: Collecting selection information
is now done in SelectedIndexCollection rather than in
SelectedListViewItemCollection. This is done so we can
have the selection information code in one single place
(virtual mode selection information entirely depends on
SelectedIndexCollection).
2007-03-13 Miguel de Icaza <miguel@novell.com>
* ErrorProvider.cs: Add stubs for ISupportInitialize
2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
in the right order with the right values, from the Checked property,
just as MS does (instead of triggering them from ListView).
* ListView.cs: Make OnItemCheck and OnItemChecked internal.
2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Implement ItemChecked 2.0 event. Also cast to
the correct handler in OnItemCheck method (ItemCheckEventHandler
instead of EventHandler). This used to throw an InvalidCastException.
2007-03-13 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Calculate the document before the handle is
created, so there isn't an extra invalidate called.
2007-03-13 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Don't set owner in ShowDialog until we are sure
that we aren't going to throw an exception. [Fixes bug #80773]
2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
* TreeView.cs: Make it compile.
2007-03-12 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Another place we don't call SizeFromClientSize.
* Form.cs: Another place we don't call SizeFromClientSize.
[Fixes bug #81125]
2007-03-12 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Basically emulating some strangness here with
exanding nodes and setting node positions when windows aren't
created.
- Also attempting to walk the node tree less than previously, and
just use visible order calculations for determining offsets.
- oops made scrolling backwards.
* TreeNode.cs: We need to start nodes with a zero visible order,
because the order calcs are based on the first nodes order.
2007-03-12 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Don't exit the program if RecreateHandle is called on
the main form.
2007-03-12 Chris Toshok <toshok@ximian.com>
* XEventQueue.cs: remove the use of PostQuitState.
* XplatUIX11.cs: remove the use of PostQuitState. If we get a
WM_QUIT message in GetMessage, return false (and if we're in the
nested WaitForHwndMessage, repost the WM_QUIT message).
2007-03-12 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Don't call RecreateHandle when we change the MinimizeBox
or the MaximizeBox properties. [Part of bug #80640]
2007-03-12 Everaldo Canuto <everaldo@simios.org>
* LinkLabel.cs: When calculate pieces make LinkArea empty if theres
no links.
2007-03-12 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: Fix some tests I broke by checking Visible
instead of visible.
2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
* FileDialog.cs: Use text of File name combobox to determine what
files the user selected. Added tokenizer to parse the file names.
Fixes bug #81123.
2007-03-12 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: We can't call SizeFromClientSize in the constructor,
but we still need to do the same work, so make an internal version.
[Fixes bug #80621]
2007-03-12 Jackson Harper <jackson@ximian.com>
* TreeView.cs:
* TreeNode.cs:
* OpenTreeNodeEnumerator: Match MS better for IsVisible and
IsExpanded.
2007-03-12 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Now that the handles are being created a little
later, we need to make sure that the document is recalculated when
the handle is created.
2007-03-11 Everaldo Canuto <everaldo@simios.org>
* Theme.cs: GetLinkFont abstract method added.
* LinkLabel.cs:
- Remove CalcTrimRectangle, no longer needed.
- Factor also remove, position issues must be fixed in libgdiplus.
- Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
- GetPieceFont, CreateLinkFont and link_font removed, theme must be
care about font used to draw links.
- Set TabStop to true when control is "Selectable", control is selectable
when have one or more links. Fixes #80501 (test case is also added).
- Set the LinkArea values after links change, LinkArea values must be
based in first link position and size, a test case was created.
- Fix ControlStyles.Selectable value, now is based on LinkArea value,
the attribute must be true LinkArea.Length > 0. The same was applied to
TabStop.
* ThemeWin32Classic.cs:
- LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
in draw method.
- Use CPDrawStringDisabled to draw disabled text instead of hard code
color change.
- Draw focus rectangle for every parts focused, including parts that
is on another line, its because regions returns various rectangles
and not only one. Needed to mimic W32 look.
- Uses Graphics.Clip to delimite region painted, it mean that now
complete text is passed to DrawString, with this we solve layout
issues without create another text renderer.
- Uses Region.Intersect to fix some flickers problems, now only needed
parts will redrawed.
- This changes fixes #79614 and some other unreported issues, on Linux
some layout problems still remain, the problem is under
MeasureCharacterRanges but it is an libgdiplus bug.
2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
* TextBox.cs: Set for foreground color.
* TextBoxBase.cs: Remove Invalidate when setting BackColor, since
this is already done in Control.
2007-03-10 Jackson Harper <jackson@ximian.com>
* TextBox.cs: Set the background color, but reset the
backcolor_set flag which is just for the user setting the
background color.
2007-03-09 Chris Toshok <toshok@ximian.com>
* Control.cs: really remove the call to XplatUI.SetVisible from
CreateHandle(), like I said I did when I merged the branch.
* BindingSource.cs: implement some more of this stuff.
2007-03-09 Jackson Harper <jackson@ximian.com>
* TextBox.cs: Don't explicitly set our background colors.
* TextControl.cs:
* TextBoxBase.cs: Draw readonly text.
- Need to invalidate when backcolor or readonly are changed.
2007-03-09 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Don't set the forecolor until the handle is
created.
- Do not raise OnPaint, and removed some old debug code.
2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
* ScrollableControl.cs: Fix mouse wheel scrolling.
2007-03-09 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Wire up MouseDoubleClick event.
2007-03-09 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Rework AutoSize to adjust height when docked to the
top or bottom.
* ToolStripItem.cs: Make Image drawing take ImageScaling into account.
* ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
item is added. This logic was moved to ToolStrip.OnItemAdded.
[Fixes bug #81090]
2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
2007-03-08 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Show the correct image for selected node (this used
to work, not sure how the code got deleted). Also implemented 2.0 feature
SelectedImageKey.
2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs:
* ListViewItem.cs: Cache index in items when retrieving them
in VirtualMode.
2007-03-08 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: Don't return the explicit_size if we are using
AutoSize. Fixes invalidation issue when user has explicitly set a
size and has AutoSize = true.
2007-03-08 Jonathan Pobst <monkey@jpobst.com>
* XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
* DataGridView.cs: Remove event handler from DataView when a
DataTable is used as DataSource.
2007-03-08 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Create internal setter for client_size to allow it to be
set without triggering resizing code.
* Form.cs: Calculate client_size in constructor, only change client_size
in FormBorderStyle property if Handle has been created.
[Fixes #80574, #80791]
2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
* SystemInformation.cs: Add TerminalServerSession.
2007-03-07 Jonathan Pobst <monkey@jpobst.com>
* TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
TreeView code.
2007-03-07 Jonathan Pobst <monkey@jpobst.com>
* XplatUIWin32.cs: The no_activate stuff was forcing us to create a
Handle before we were supposed to. Now checks ActivateOnShow property
in Control.
* Control.cs: Add internal ActivateOnShow property.
* ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
for ActivateOnShow.
* Hwnd.cs Remove no longer needed no_activate field.
2007-03-07 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Implement owner draw tree nodes. And a couple more
2.0 properties
* DrawTreeNodeEventHandler.cs: Add
* DrawTreeNodeEventArgs.cs: Correct default value.
2007-03-07 Chris Toshok <toshok@ximian.com>
* XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
to be called before NativeWindow.WndProc. Put the HwndCreating
magic there to hook up our Hwnd's to handles.
2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
* DataGridView.cs: Comment out debug code.
2007-03-07 Chris Toshok <toshok@ximian.com>
[merge -r72718:73765 from mwf-handle-branch, and include 2 changes
to make the rest of the world happy]
* Control.cs (CreateHandle): there's no need to call
XplatUI.SetVisible here, it's effectively done by
XplatUI.CreateWindow on X now, and always was on windows.
* XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
shortcircuit out of the loop if we have a message loop running on
this thread.
[Changelog from merge]
2007-03-05 Chris Toshok <toshok@ximian.com>
* Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
causes handle creation.
2007-02-28 Chris Toshok <toshok@ximian.com>
* ApplicationContext.cs: Add a flag to make sure we only raise the
ThreadExit event once (ExitThreadCore can be indirectly called
from a few places.) I don't like the additional flag, but it
makes the event ordering/count correct.
* Application.cs (MWFThread.LoopCount): don't use an enumerator
without locking the collection. An enumerator doesn't give us any
protection from modification anyway. Lock the thread hash and
replace the complicated enumerator loop with a foreach.
(Application.CloseForms): make internal so it can be called from
ApplicationContext. This should probably be moved to MWFThread.
(Application.ExitThread): don't call MWFThread.Current.Exit()
here. just call XplatUI.PostQuitMessage. We'll exit the thread
when the runloop exits (in response to WM_QUIT.)
(Application.RunLoop): add a comment (and check) for
context.MainForm being null after setting context.MainForm.Visible
= true. This is because you're perfectly free to dispose of a
form in VisibilityChanged. Chalk this up to another case where we
need to synchronously generate WM_ACTIVATE from Control.Show.
Also, add handling for WM_QUIT here so we'll exit the loop.
* XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
fact that we don't wait if we're only unmapping the whole_window
makes me a bit nervous, but it doesn't seem to cause any problems
yet.
also, add a comment about the stupid, broken and wrong resetting
of PostQuitState to false in GetMessage().
In PostQuitMessage, we need to add a WM_QUIT message to the
thread's queue. We use the FosterParent to get the right
handle/hwnd/queue.
Lastly, in SetVisible, we need to unmap both windows, since the
waiting only happens when we're unmapping the client window. So
now, the *only* time we unmap just the whole_window is in the hack
for resizing a control to 0,0.
2007-02-21 Chris Toshok <toshok@ximian.com>
* Application.cs (CloseForms): rewrite this so that we don't
modify the list while we're traversing it.
2007-02-20 Chris Toshok <toshok@ximian.com>
* ListBox.cs (.ctor): move the Control.AddImplicits here instead
of OnHandleCreated.
(HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
handle is created. otherwise we'll create it here.
(VerticalScrollEvent): same here.
* Application.cs (CloseForms): call Form.Dispose, don't post
WM_CLOSE_INTERNAL.
* Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
here. Application should Dispose() of the Form's.
* XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
WM_DESTROY as well.
(MapWindow,UnmapWindow): only actually do the waiting for
SHOWWINDOW if the control we're dealing with is a Form.
(CreateWindow): if the control isn't a form, SendMessage
WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
* Control.cs (SetVisibleCore): always use is_visible here, not
value. If we use value, we can end up re-setting something
visible if, for instance, you do Control.Hide() in a delegate
attached to VisibleChanged as we do in FormTest.ShowDialogTest.
2007-02-20 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
the message we need. PeekMessage returning false should not be a
condition under which we exit the loop.
2007-02-15 Chris Toshok <toshok@ximian.com>
* Control.cs (Refresh): only refresh if we've got a handle and are
visible.
(CreateAccessibilityInstance): CreateControl() here.
(UpdateChildrenZOrder): complicate the code loop even more by
taking into account controls that haven't had their handle
created, and those that aren't visible. But on the flip side,
simplify the code by splitting it into two loops. one which
builds up the list of child controls we're interested in, and the
other that sets the z order of those children.
2007-02-14 Chris Toshok <toshok@ximian.com>
* Control.cs: Control.AccessibilityObject causes the control to be
created, not just the handle.
2007-02-14 Chris Toshok <toshok@ximian.com>
* Control.cs: rework UpdateChildrenZOrder to correctly handle the
problem on X where a window might have its handle created (and be
visible) while the window is unmapped. calling XConfigureWindow
on an unmapped window is bad, and generates X errors.
2007-02-13 Chris Toshok <toshok@ximian.com>
* Control.cs (CreateHandle): don't loop over our children setting
their parent here. do it when in WndProc when we're shown.
(UpdateChildrenZOrder): make this internal so we can call it from
ScrollableControl.
(WndProc): for WM_SHOWWINDOW, reparent the child control after
creating its handle. Also, remove the calls to PerformLayout from
here. they're done in ScrollableControl.OnVisibleChanged. Also,
OnVisibleChanged only seems to be called directly here for the
toplevel control. It's propagated down the window hierarchy by
calls to child.OnParentVisibleChanged.
(OnVisibleChanged): don't do layout here - it's done (oddly
enough, according to a glance at stack traces on ms.net..) in
ScrollableControl.
* ScrollableControl.cs (OnVisibleChanged): make sure we update the
z order of our children before calling PerformLayout.
2007-02-12 Chris Toshok <toshok@ximian.com>
[big change, fixes #80020]
* AccessibleObject.cs: we need to make owner internal again to fix
some of ControlAccessibleObject.
* Control.cs: lots of changes here. add support for WM_CREATE,
for which we generate OnHandleCreated. Remove the OnHandleCreated
call from CreateHandle. Also add support for WM_SHOWWINDOW where
we create child controls. leave the MonoTODO's for the
accessibility calls, but fix the exceptions so the tests pass.
Add the InvalidOperationExceptions to Invoke methods, and remove a
couple of InvokeInternal methods we aren't using.
Also, add a couple of CreateHandle calls in places where we know
the handles are being created but our code doesn't reference
.Handle.
Make SetVisibleCore call OnVisibleChange if the handle isn't
created. If the handle is created, we rely on XplatUI.SetVisible
generating the event synchronously.
Lastly, make sure we don't use this.Handle inside CreateHandle,
because we can call back into client (and that code can dispose of
the control).
* XplatUIStructs.cs: misc/cleanup.
* XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
although we don't populate the wParam properly.
(CreateWindow): generate WM_CREATE.
(MapWindow,UnmapWindow): make these calls synchronous, at great
performance expense (particularly in the unmap case), to match
win32 behavior.
* Form.cs (.ctor): remove the call to UpdateBounds. we don't need
to call it.
(set_MdiParent): don't recreate the handle unless it's been
created already.
* MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
it's created.
* NativeWindow.cs: this is probably the weirdest part of the
patch. We need a way to link up the window being created to the
WM_CREATE message. Since we can only be creating one window at a
time on a given thread, we keep track of a per-thread reference so
we can dispatch it properly. We also need to keep track of the
Hwnd currently being created so that the win32 backend doesn't
have problems.
* XplatUIWin32.cs: a similar change to the one we made in
NativeWindow.cs.
2007-03-07 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: Make CalculatePreferredSize virtual.
* ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
to draw the menu shortcut string.
2007-03-07 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: Add the 2.0 collapse method.
2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
* DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
* DataGridView.cs: Change DataSource will clear column and row
lists. Call Invalidate() to reflect DataSource change.
2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
* DataGridView.cs: Add rows when DataSource is System.Data.DataView
and a new row is added to it.
2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
* DataGridView.cs: Add columns when DataSource is en empty list but
is a System.Data.DataView (from a System.Data.DataTable).
2007-03-06 Andreia Gaita <avidigal@novell.com>
* Label.cs: Implement AutoEllipsis (2.0)
2007-03-06 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Implement 2.0 TopNode setter property.
- Use a local var instead of the skipped_nodes field for computing
how many nodes to skip. Otherwise we won't scroll because the
valuechanged handler checks if skipped_nodes is equal to the new
value.
- Implement 2.0 Sort method.
- Add useless 2.0 DoubleBuffer property
- Implement 2.0 LineColors property. Lets you change the color of
the lines in the tree. Terribly useful for creating non cohesive
desktops.
- Implement 2.0 image key feature.
2007-03-06 Jackson Harper <jackson@ximian.com>
* TreeView.cs: We can't get the bounds of the nodes before raising
the AfterSelect event, because that event could change the node's
bounds (scrolling, font change, etc).
2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
* Form.cs: Don't recreate handle when creating FormWindowManager, just
update window styles. In CreateParams us VisibleInternal instead of
VIsible to get the actual visible flag set for this form.
* FormWindowManager.cs: Activate the form whenever the mouse clicks on
the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
handle the case when the form is already maximized, in which case
it should be restored. Fixes #81043.
2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
2007-03-05 Jackson Harper <jackson@ximian.com>
* TreeViewHitTestInfo.cs: implement.
2007-03-05 Jackson Harper <jackson@ximian.com>
* InternalWindowManager.cs: class status fix.
2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
* InternalWindowManager.cs: All windows that have a parent
are confined to their parent when they're being moved.
Fixes #80822.
2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
* SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
buttons invisible before deciding which ones should be visible
(fixes minimize/maximize buttons showing up in toolwindows). Remove
an unused variable.
* InternalWindowManager.cs: Remove warning.
2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add a check in ListViewItemCollection.RemoveAt
to throw an InvalidOperationException is virtual mode is being used.
2007-03-02 Jonathan Pobst <monkey@jpobst.com>
* SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
driver.KeyboardDelay from XplatUI.KeyboardDelay
* XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
(patch by Sergey Volk)
2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ToolWindowManager.cs: Added, contains logic for
tool windows.
* CreateParams.cs: Add a few helper methods and an
internal variable to know which control the CreateParams belongs
to.
* Control.cs: Call Form.ChangingParent when the
parent is about to be changed.
* XplatUIX11.cs: DeriveStyles (): Set
caption_height for all windows that have captions and are children.
Update to use ToolWindowManager instead of InternalWindowManager
for ToolWindows.
* XplatUIWin32.cs: Set fake window styles for all
windows that have window managers.
* MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
now duplicated for mdi windows when they are
maximized, first for the buttons the window itself has, then for
the buttons that appear in the menu bar. Makes things a little
easier). Updated UpdateWindowDecorations, SetWindowState and the
mouse eventhandlers accordingly.
* Form.cs: Add ChangingParent (), contains the
logic of what should happen when the parent changes. In MdiParent
don't set things that ChangingParent () is doing. When handling
WM_CLOSE, we can close the form if there are any other modal forms
and the current form is a descendent of the modal form.
* InternalWindowManager.cs: A lot of refactoring,
the title buttons are now extracted to a separate container class
that takes care of all button code (clicks, tooltips, etc). Moved
Iconic|Maximized|Normal Bounds properties to this class from
MdiWindowManager, so that the window state logic can succeed for
other than mdi wm's. Implemented general window state change logic.
Moved CreateButtons to ThemeWin32Classic, since the theme might
override which buttons are available when as well as the exact
location.
* FormWindowManager.cs: Added, contains logic for
normal forms.
* ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
which buttons go where (and if they are at all visible).
Removed special handling of maximized windows, since they aren't special.
In DrawManagedWindowDecorations don't try to draw the text if it is
empty.
* MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
use whatever the wm gives us.
2007-03-02 Jonathan Pobst <monkey@jpobst.com>
* ButtonBase.cs: Add 2.0 properties.
* Button.cs: Override Draw for 2.0.
* Control.cs: Add Entered and Selected properties.
* FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
TextRenderer.cs: Make internal for 1.1 to unify drawing code.
* Theme.cs: New abstract functions for drawing Standard, Flat, Popup
buttons.
* ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
2007-03-01 Jonathan Pobst <monkey@jpobst.com>
* XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
2007-03-01 Jonathan Pobst <monkey@jpobst.com>
* XplatUIWin32.cs: Register a new class with Windows each time we get
a new ClassStyle. [Fixes bugs #79432, #80817]
* Controls.cs: Set the correct ClassStyle in CreateParams.
* ToolStripDropDown.cs: Don't request an invalid ClassStyle.
2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
* ListView.cs: Add fireEvent argument to ReorderColumn since the
ColumnReordered event must not be signaled when modifying DisplayIndex
of a ColumnHeader. Added internal ReorderColumns method which takes
care of drawing, and updating the internal DisplayIndex of the
ColumnHeader. Added AddColumn method which is invoked from
ColumnHeaderCollection when adding or inserting columns, and which
ensures that reorder_columns_indices is kept in sync. Avoid redrawing
after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
Recalculated dispay indices after removing a ColumnHeader.
* ColumnHeader.cs: Save DisplayIndex separately from ListView to
match MS. Allows last display index to be returned after ListView
is disposed. Update actual location of ColumnHeader when DisplayIndex
is modified.
2007-03-01 Everaldo Canuto <everaldo@simios.org>
* LinkLabel.cs: Improve CalcTrimRectangle.
* ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
2007-02-28 Everaldo Canuto <everaldo@simios.org>
* LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
get rectangle as a result value.
2007-02-28 Everaldo Canuto <everaldo@simios.org>
* LinkLabel.cs: Theres some diferences between rectangle return from
MeasureCharacterRanges and the area used for DrawString to fix this
CalcMeasurementFactor method was created, it calcules the diferences
to be use later to adjust rectangle in draw operations. Fixes #80473.
* ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
to adjust draw rectangle.
2007-02-27 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
text and some other changes to reduce and optimize source code.
2007-02-27 Jonathan Pobst <monkey@jpobst.com>
* RadioButton.cs: Implement 2.0 event.
* RelatedImageListAttribute.cs: Implement new class.
2007-02-27 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
2007-02-27 Jonathan Pobst <monkey@jpobst.com>
* CheckBox.cs: Implement 2.0 functionality.
2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Refactor Add and AddRange methods of
ListViewItemCollection, to not update the ListView
everytime an item is added in AddRange. Also move the update
code to a new CollectionChanged method, and call it
from other methods that need it as well (this should also fix some
bugs when Sorting is used).
2007-02-27 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Try to never let the caret stay in a non-text
tag.
* TextBoxBase.cs: Update the caret.
2007-02-26 Jonathan Pobst <monkey@jpobst.com>
* XplatUIStructs.cs: Add some convenience methods for POINT structure.
* XplatUIWin32.cs: Add some convenience methods for RECT structure,
delete POINT structure, duplicate of one in XplatUIStructs.
* TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
* ListView.cs: Initialize LabelEditEventArgs after setting Text of
edit box since otherwise the Label would immediately be set (even if
the user did not modify the label). In OnKeyDown set Handled to true
if Return or Escape was pressed. In ColumnHeaderCollection unlink
columns that are to be removed. In ListViewItemCollection unlink items
that are to be removed.
2007-02-24 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: If we set a GDI clip region, we need to clear
it when we are done. [Fixes bug #80949]
2007-02-23 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: I forgot to commit the changes for ListView
in my previous patch.
2007-02-23 Jonathan Pobst <monkey@jpobst.com>
* Clipboard.cs: Partially implement an overload of SetDataObject.
* Form.cs: Implement ShowWithoutActivation.
* XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
This is a first set of changes to make the Virtual mode works,
by avoiding the retrieval of ListViewItem instances until
draw time.
* ListView.cs: Store item position in the ListView instead of the
ListViewItem, this way we don't request the Bounds property of
ListViewItem inside the ListView calculations, as well as cache the item
size in item_size field. Store indexes instead of ListViewItem
instances in the matrix used by icon view. Add a ItemMatrixLocation
struct to hold the row and col info of the matrix info.
* ListViewItem.cs: Don't store the location anymore, and only cache
the rectangles for GetBounds. Use the ListView.GetItemLocation
method to retrieve the actual location.
2007-02-23 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: Add clipping support, thanks to George.
[Fixes bug #80949]
2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
* ListViewItem.cs: Cancel label edit when item is removed from
ListView.
* ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
event before the edit textbox is displayed. Added CancelEdit method
which is used end to editing while ignoring the value set by the
user. In EndEdit, set focus to ListView to avoid losing focus to
other controls. In ListViewItemCollection.Clear, cancel editing of
any of the items. In Remove, cancel editing of item being removed.
Avoid udplicate code by modifing RemoveAt to invoke Remove.
2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
* FileDialog.cs: Update FSEntry when move is successful. Fixes
bug #80948.
2007-02-23 Everaldo Canuto <everaldo@simios.org>
* MainMenu.cs: Change Draw method to take care about MenuOrigin to be
compatible with non X11 systems. Fixes #80901.
2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
* ListView.cs: Added bool argument to UpdateMultiSelection to specify
whether the item should be unselected and reselect. We do no want this
when we're starting to edit the label. Do not fire the
SelectedIndexChanged event from ListView when its already been fired
by modifying ListViewItem.Selected. Fixes bug #80943.
2007-02-23 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: Previos commit logic was backwards.
2007-02-23 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: Don't add padding on MeasureText if we were
sent the NoPadding flag.
2007-02-23 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
after DrawButton. To prevent image overlaps button borders SetClip and
ResetClip added before and after draw image. Fixes #79129.
2007-02-23 Everaldo Canuto <everaldo@simios.org>
* FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
window size, it fix problem when you run under win32 that theres
Size diferent than ClientSize. Also fix controls size and positions
to mimic Win32. Fixes #80837.
2007-02-22 Everaldo Canuto <everaldo@simios.org>
* Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
menu area to fix some problems for non X11 systems. Fixes #80613.
2007-02-22 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: When a node is expanded, set its is_expanded flag
even if it doesn't have any children.
2007-02-22 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Calculate the top node 'on the fly', this
eliminates issues where you need to click on the tree before
scrolling it to get the top node computed correctly.
* TreeNodeCollection.cs: We don't need to mess with the top node
anymore.
2007-02-22 Jackson Harper <jackson@ximian.com>
* DataGridViewRow.cs: Fix typo so height can actually be set.
Patch by Peter Grimm.
2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
* FileDialog.cs: Fixed support for renaming files and directories.
* ListView.cs: Do not lose focus when edit is canceled. Process
Escape as regular key (to prevent closing of dialogs).
2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
* ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
spaces. Changed spaces to tabs. Removed unnecessary init of bools.
2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
* FileDialog.cs: LabelEditEventArgs.Label now returns null when user
did not modify label.
* ListView.cs: Only set LabelEditEventArgs.Label if user actually
modified the text. Reset Label when user presses Escape in edit mode.
Move focus to ListView after having cancelled or finished editing the
label.
2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
* ComboBox.cs: Removed unnecessary initializations. Marked items field
private. Clear textbox when Text is set to null and SelectedIndex is
already -1.
* FileDialog.cs: Removed unnecessary initializations. Removed
workarounds for ComboBox bugs that are now fixed. Modified
DefaultExt, InitialDirectory and Title property to change null to
zero-length string in getters. Avoid directly accessing fields.
2007-02-20 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Remove RecalAlignments call, that was some
debugging leftovers.
- Don't use the line indent when we shouldn't.
* RichTextBox.cs: Add support for paragraph left indents.
2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Fix BeginInvoke signature for 2.0 profile.
Seems like the class status pages doesn't catch params differences.
2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
* ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
* ComboBox.cs: Setting Text should have no effect if item text of
selected item exactly matches value. First lookup text using
case-sensitive comparison, and fallback to case-insensitive comparison.
FindString(Exact) returns -1 if search string is null. On 2.0 profile,
allow startIndex to be last index. Changed ArgumentOutOfRangeException
paramname to match MS. Restart from first item if string is not found
after startIndex. Fixed paramname of ArgumentNullException that is
thrown for null value in ObjectCollection.Contains.
2007-02-19 Everaldo Canuto <everaldo@simios.org>
* XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ListControl.cs: In SelectedValue use value.Equals to compare for
equality instead of ==, otherwise it will fail for strings.
Fixes #80794.
2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
since the caret won't show up unless ShowSelection is true.
Fixes #80795.
2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Application.cs: When disabling all forms but the main form, do not
disable any descendants of the main form (such as mdi children or
other parented forms). Fixes #80822 on Windows.
* Form.cs: If we have a parent, set the WS_CHILD style.
* Control.cs: Update the window styles if the control whose parent has
changed is a form (the WS_CHILD style has to be switched).
2007-02-19 Everaldo Canuto <everaldo@simios.org>
* XplatUIStructs.cs: MsgUIState structure added.
2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
* FileDialog.cs: Removed need for separate fileName field. On 2.0
profile, do not check filename(s) for illegal character if filename(s)
were set non-interactively but always check on 1.0 profile. Fixed NRE
in DefaultExt and only strip off first leading dot. Improve exception
message when invalid Filter is set. Do not ignore InitialDirectory if
it does no exist. Store specified Title, and if empty use default
title (depending on type of dialog). Added an internal DialogTitle
property for retrieving dialog title. Fixed logic of displayed dir to
more closely match MS. Avoid setting ComboBox.Text to a zero-length
string as its buggy.
* OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
FileName is a zero-length string (it can never be null). Override
DialogTitle property to set default title of dialog box.
* SaveFileDialog.cs: Override DialogTitle property to set default
title of dialog box.
2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
* FileDialog.cs: Modify default text of filename and filetype labels
to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
after we've updated the SelectedIndex. Fixes part of bug #80887.
* SaveFileDialog.cs: Set text of filetype label.
2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* LabelEditEventArgs.cs: New internal SetLabel method, to set the
label field. Needed by latest Jackson's fixes for ListView.
2007-02-16 Andreia Gaita <avidigal@novell.com>
* PrintPreviewControl/PrintPreviewDialog: Properly dispose of
print preview images.
2007-02-16 Jackson Harper <jackson@ximian.com>
* ListView.cs: Make AfterLabelEdit work correctly.
* FileDialog.cs: After changing the name of the folder, we have to
make sure that it is created, or that we pop up an error because
it already exists.
2007-02-16 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Implement aliases on mime handlers, so things like
System.String are mapped to text.
- Handle dataobjects, getting all the possible formats out of them
- We dont need the drag event args before we give feedback. This
allows feedback cursors to be immediate before selections have
been converted.
2007-02-16 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Modified the method for inserting images to
taking a line and position instead of tag and position.
* RichTextBox.cs: Handle PngBlip data by inserting the png image
into the RTF file.
* TextControl.cs: Allow images to be inserted as the first tag of
a line.
- Fix some off by one issues when we assume the first tag is a
text tag, not an image tag.
2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Set focus to ListView when ItemControl gets a
WM_RBUTTONDOWN message, to mimic .Net behaviour.
Fixes part of #80467.
2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DateTimePicker.cs: Call RecreateHandle if the Format changes and
validate Text input (if null or empty string reset Value to default
value). Fixes #80830.
2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Set owner as null for columns and items when
Dispose is invoked. Fixes #80607.
2007-02-14 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
showing DropDowns, don't show a Grip when doing Flow layout.
[This fixes the toolbox in PDN 2.72.]
* ToolStripItem.cs: Add Anchor property and some internal properties to
reduces needed changes to FlowLayout.
* ToolStripOverflow.cs: Remove unused variable.
* ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
use it in the layout calculations.
2007-02-13 Everaldo Canuto <everaldo@simios.org>
* ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
reported in #79640.
* ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
size calculation.
2007-02-13 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
MeasureString format, it can make button very large in some cases, it is
strange but is what win32 do.
2007-02-13 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
size calculation.
* ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
rendering, the value is based on MenuAccessKeysUnderlined.
2007-02-13 Everaldo Canuto <everaldo@simios.org>
* Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
for most themes.
* ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
* ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
and use MenuAccessKeysUnderlined instead.
2007-02-13 Andreia Gaita <avidigal@novell.com>
* ContainerControl.cs: Focus fix for nunit treeview selection bug.
A selected control would not get a Focus call if:
- the default active control of the container is the same as
the one that was selected
- we are switching from one container to another
Under these conditions, the container being selected already has
an active_control, which is the same as the one being activated,
so set_ActiveControl would always return and not send the Focus
call. Fix to check if the currently active control of the container
is actually focused.
2007-02-13 Jonathan Pobst <monkey@jpobst.com>
* StatusStrip.cs: Implement the spring layout.
* ToolStripControlHost.cs: Make sure the hosted control's visibility
always matches the host.
* ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
and TextAfterImage.
2007-02-13 Andreia Gaita <avidigal@novell.com>
* Control.cs: Code reorganization only.
- Reorganize the WndProc cases so that each case has it's own handling method,
to help with the no-line-numbering stack traces.
- Formatting changes (it's vstudio's fault, really :p)
2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
Thread.CurrentUICulture to match DateTimePicker's (and MS)
behaviour.
2007-02-12 Jackson Harper <jackson@ximian.com>
* RichTextBox.cs:
* TextBox.cs: By default we have a non multiline document
- use the multiline property instead of the internal variable
* TextBoxBase.cs: Treat multiline and non multiline the same in
most places.
- Use the documents multiline flag instead of tracking it ourself
* TextControl.cs: Attempt at getting multiline to match MS
behavior. Lines now track an offset, which is either their X or Y
offset depending on whether or not we are in multiline mode.
- Update all the methods to understand that lines have an X value.
- Fix crash in Undo::Duplicate when empty lines are deleted.
2007-02-12 Everaldo Canuto <everaldo@simios.org>
* Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
code moved to properties PreferredHeight and PreferredWidth. It solve the
all problems when preferred sizes must be recalculated. Fixes #80801.
2007-02-12 Everaldo Canuto <everaldo@simios.org>
* Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
font height when compatible_text_rendering is false. Partially fix #80801.
2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
* Form.cs: Fixed typo in exception message. Fixes bug #80779.
2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
* Form.cs: Improved exception messages in ShowDialog.
2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
* PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
if not set. Fixes bug #80764. Avoid accessing current_settings field
directly.
2007-02-08 Everaldo Canuto <everaldo@simios.org>
* Theme.cs: An new property MenuAccessKeysUnderlined added with default value
false.
* SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
public in 2.0 and for easy maintenance and dont break compatibility it is
internal in 1.1.
2007-02-08 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: Implement using images from ImageList.
2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DateTimePicker.cs: Change default date-formatting culture from
CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
seems to be the way MS does it.
2007-02-08 Andreia Gaita <avidigal@novell.com>
* PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
(the 6 was cut off on the right side)
2007-02-08 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Tell MenuStrips to close when the form is clicked.
* MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
support for Overflow, where items that do not fit are automatically
reparented to a drop down menu.
* ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
Also: fixes bug #80747.
2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ComboBox.cs: Remove warning (unused code).
* ScrollableControl.cs: Remove warning for 1.1 profile.
2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: Remove a warning.
2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
'g' specifier, not documented anywhere, but seems to always show up
as a single space (might have something to do with the DateTime 'g'
specifier, which is the era format, but since DateTimePicker can't
go earlier than 1753 it wouldn't matter) . Fixed quote handling,
won't crash if the format has an unmatched quote. Now shows
single-character formats correctly. Fixes #80744.
2007-02-08 Jonathan Pobst <monkey@jpobst.com>
* StatusStrip.cs: Stretch property needs to call base.Stretch,
not this.Stretch to fix stack overflow. [Fixes bug #80760]
2007-02-07 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
background color. it overwrites the background image we've
already painted. Fixes #80599.
2007-02-07 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: return immediately from Edit() when there are no
columns. Fixes #80662.
2007-02-07 Chris Toshok <toshok@ximian.com>
* MessageBox.cs: fix #80625. don't always show the Help button in
2.0. use the displayHelpButton parameter to determine if we
should show it. Also, make the internal show_help field private.
2007-02-07 Chris Toshok <toshok@ximian.com>
* Control.cs (SetVisibleCore): check in the proposed patch for
80604, and set is_visible before calling CreateControl.
2007-02-07 Jonathan Pobst <monkey@jpobst.com>
* ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
MonoInternalNote. This is added automagically by VS2005, so let's not crash
on it.
2007-02-06 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: hotkey_active internal field added, it is required because
we need to know when hotkeys must be draw, before this change a keystate
Navigating was used but we can have menu in navigating state without
hotkeys. Fixes #80694.
* ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
corresponding events and methods to be internal for 1.1 profile and
public for 2.0 profile (required by SizeGrip).
* Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
implicit control list). Don't set the size nor the location of the
SizeGrip anymore as it's not needed.
* SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
draw directly on the captured control (fixes #80656). Removed
ShowGrip (it wasn't used anywhere), redraw (always true), added
GetDefaultSize and GetDefaultRectangle to calculate defaults.
* ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
be called from SizeGrip.
2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Timer.cs: Throw ArgumentException if Interval <= 0.
2007-02-05 Jackson Harper <jackson@ximian.com>
* TreeView.cs: We need to check scrollbar visibility when window
visibility is updated, because non visible trees don't ever add
scrollbars.
* Cursor.cs: We want the override cursor to be reset to NULL when
we set current cursor to the default cursor.
2007-02-05 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Don't have crlfs when we are non multiline.
- Consolidate the line position.
2007-02-05 Jackson Harper <jackson@ximian.com>
* X11Keyboard.cs: BACK+CTRL gets a special char code.
2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
handling LeaveNotify->NotifyUngrab in order to send
WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
after calling XUngrabPointer, so we call WindowUngrabbed directly
from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
* Control.cs: Handle WM_CAPTURECHANGED in order to raise
MouseCaptureChanged correctly. Also create handles if changing
Capture (matches MS behaviour).
2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
* SizeGrip.cs: Make the last change 2.0 only.
2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
* SizeGrip.cs: If resizing and the capture is lost, revert any size
changes to initial size (fixes #80597).
2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
* SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
* SizeGrip.cs: Only draw sizegrip if enabled (but always draw
background) and only allow dragging if enabled. This way the
sizegrip can be used to fill the open square that otherwise would
have been shown in the bottom right corner of ScrollableControl
when ScrollableControl is not suppose to support sizing.
* ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
sizegrip is shown and enabled, and hook up with necessary events.
2007-02-01 Chris Toshok <toshok@ximian.com>
* DataGridTextBoxColumn.cs: clean up the
GetFormattedString/GetColumnValueAtRow combination of functions.
Also fix UpdateUI, and the initial state of
IsInEditOrNavigateMode.
* DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
aren't supposed to scroll the textbox here, we're supposed to
scroll the datagrid.
2007-02-01 Chris Toshok <toshok@ximian.com>
* ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
setting the position.
2007-02-01 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
here, since the most recent focus fixes keep us from generating
the Leave event when our textbox gets focus.
(Edit): we should be passing null for the column style's
instantText parameter.
2007-02-01 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDownItem.cs: Make sure DropDownOpening event is
raised. Fixes menu text/icons not showing up in PDN.
2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Remove code in constructor that makes every
control with WS_CHILD set have initial location -1, -1.
2007-01-31 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Take the keyboard on init to reduce coupling with
XplatUIX11.
* XplatUIX11.cs: Give teh keyboard to teh dnd.
2007-01-31 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Use IDataObject instead of the DataObject class.
- Remove some debug code.
2007-01-31 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: If you set the override cursor during a grab, it
should actually override the grab cursor. This comes into play
when you are setting custom cursors in a DND feedback method.
2007-01-31 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Add support for handling the QueryContinue and
GiveFeedback events.
- Cancel drag and drop actions when the escape key is clicked.
* XplatUIX11.cs: Let the dnd subsystem get key events, so that it
can handle the ESCAPE key.
- Allow dnd to swallow BUTTONUP messages if it needs to. This is
done when dnd events are continued after the button is released.
- Add a new helper method so that dnd can translate key events.
2007-01-31 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
make it more obvious what is happening.
2007-01-30 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Don't break when handling button release in drag
and drop operations. We need that BUTTONUP message to get through
so capture is released.
* X11Dnd.cs: We don't need to manually grab the pointer anymore,
this is handled automatically when the mouse is down.
2007-01-30 Jackson Harper <jackson@ximian.com>
* FileDialog.cs: OnClickCancelButton gets called whenever the dialog
is closed, so we need to make sure that we aren't changing the
dialog result when the OK (Open or Save) button has been clicked
and we are closing the window ourselves. Note we don't need to
worry about the cache being written in this case, because it was
already done in the previous FilOk call.
2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DateTimePicker.cs: Remove a warning.
* ComboBox.cs: Remove a couple of warnings.
2007-01-29 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: don't crash, and remove the icon if the user has
set one, if SetIcon is passed a null icon.
2007-01-29 Andreia Gaita <avidigal@novell.com>
* TextBox.cs: Redraw when the password characters changes
* TextControl.cs: Check if textbox has a password char and draw
a line of password chars instead of the text in the line. LineTag gets
an extra Draw() method which allows document.Draw to override the text
that will be drawn. Removes 1024 char limitation on length of passworded
lines.
2007-01-29 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Deleting sections of text is undoable. Deleting
single chars is not.
2007-01-28 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
one pixel. Fix a StackOverflowException caused by an overload wrongly
calling itself.
2007-01-26 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
also remove ProcessArrowKey and put the code inside ProcessKeys.
2007-01-26 Jonathan Pobst <monkey@jpobst.com>
* PaddingConverter.cs: Added.
2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ThemeWin32Classic.cs: Only draw the text of a StatusBar if
ShowPanels is false (fixes #80600). Only draw up to 127 characters
of text (fixes #80601). For panels clip the text to draw to the
panel (fixes #80603).
2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ComboBox.cs: Fixed implementation of ResetText.
2007-01-25 Jackson Harper <jackson@ximian.com>
* TextControl.cs: For the last char of a line we need to use the
line size, not that chars width, since it won't actually be
computed since the right side of a char is based on the start of
the left side of the next char, and the next char does not exist.
2007-01-25 Chris Toshok <toshok@ximian.com>
* Splitter.cs: fix the new unit tests, and reindent some switch
statements.
2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ComboBox.cs: Implemented 2.0 methods and events.
* TextBoxBase.cs: Added OnTextUpdate, so that
ComboBox.ComboTextBox can inform ComboBox of it.
2007-01-25 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Respect ShowSelection when deciding whether or
not to display the caret, this allows comboboxes to have carets
when the combotextbox does not have focus.
2007-01-25 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Add a Suspend/Resume for updating, basically the
same as the Suspend/Resume for recalc, except this will do actual
Invalidates.
- New Undo manager, works much like the MS version.
- Implemented Redo
* TextBoxBase.cs: The Cut operation is undoable.
2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
* TextBoxBase.cs: Don't antialias text. Makes it look way better
on Windows (no difference on Linux).
2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
we don't want to activate any windows. Fixes #79433.
2007-01-25 Jonathan Pobst <monkey@jpobst.com>
- ButtonBase.cs: Fix capitalization of parameter: disposing.
[Fixes bug #80609]
2007-01-25 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs:
- Move to using System.ComponentModel.EventHandlerList
- Replace Refresh with Invalidate
- Clear the mime filecache on closing
- Some other memory reducing work. After beeing closed FD now uses
only about 300 KB for the fdo mime stuff plus the memory of the
cached icons.
* Mime.cs: Changed coding style and removed unnecessary commented
code. Some more memory memory reducing work.
2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
a few other missing 2.0 properties.
* Theme.cs: Added DrawFlatStyleComboBox.
* ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
2007-01-24 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: fix the wake_waiting logic - we always clear the
wake_waiting flag, not just when there's data to be read. if we
don't, then future wakeup's won't reach us and we'll be doomed to
wait for the entire 1 second timeout forever (unless there are X
events to be had).
2007-01-24 Jonathan Pobst <monkey@jpobst.com>
* ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
until you pass Items.Count, not Items.Count - 1 like 1.1.
2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
* ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
2007-01-24 Jonathan Pobst <monkey@jpobst.com>
* ToolStripContainer.cs: The recent Dock fix exposed that I was
adding the panels in the wrong order.
2007-01-24 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: When we move the caret we also need to move the
selection, this fixes some random crashing after doing select
text, unselect, delete a char, paste.
2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
2007-01-23 Everaldo Canuto <everaldo@simios.org>
* Control.cs: In OnParentBackgroundImageChanged remove conditions to call
OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
* ToolBar.cs: Force redraw in BackgroundImageChanged.
2007-01-23 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs:
- Implement support for vertical toolbars. Fixes #80539;
- Call LayoutToolBar when resize, it fix some other problems in layout.
- Rename requested_height to requested_size, as we can have width on it
when toolbar is vertical.
- Create a private property "Vertical" that uses Dock to verify when
toolbar is vertical or not.
- Set ControlStyles when change Dock property.
- Refactory in LayoutToolBar to have better variables names and to support
vertical toolbars.
- Fixes default value for ButtonSize when button count is equal zero, size
must be (39, 36) test case writed.
2007-01-23 Chris Toshok <toshok@ximian.com>
* Control.cs: fix the checks so that they work correctly for mdi
parents/children.
2007-01-23 Chris Toshok <toshok@ximian.com>
* Control.cs: ControlCollection seems to have super-secret
abstraction breaking knowledge of Mdi containers. allow MdiClient
to add toplevel controls.
2007-01-23 Chris Toshok <toshok@ximian.com>
* Control.cs: throw an ArgumentException if a toplevel control is
added to our control collection from ControlCollection.Add, as
well as from ControlCollection.IList.Add. This fixes the
ControlSetTopLevelTest.TestTopLevelAdd unit test.
Also, in ControlCollection.IList.Add, don't through an
ArgumentNullException, throw an ArgumentException, when value ==
null. This matches MS.
2007-01-23 Chris Toshok <toshok@ximian.com>
* BindingSource.cs: initial, incomplete, implementation of
BindingSource.
2007-01-23 Jackson Harper <jackson@ximian.com>
* TextControl.cs:
* TextBoxBase.cs: Checking in some pieces of the undo stuff so
that I can fix a broken unit test (TextBoxTest::ClearUndo)
2007-01-23 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Add status fields to ToolBarButtonInfo.
2007-01-23 Andreia Gaita <avidigal@novell.com>
* TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
* TreeNodeCollection.cs: New Add() methods, ContainsKey and
IndexOfKey() for 2.0
2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
to prevent it from changing z-order.
* MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
leave UI updates in MdiWindowManager.
* InternalWindowManager.cs: Check for 0 sized nc areas and make them
1 sized (NC handling goes weird on Linux otherwise).
* MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
remove a few NCRequestRecalcs. Changed calculations in IconicBounds
to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
and SetWindowState(s) to allow for changing the size of an activated child
before activating it (reduces a lot of flicker).
2007-01-22 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Changing FormBorderStyle has different semantics based
on whether the Form is visible or not. If not visible, don't change
the Size. But InvalidateNC needs to be called to force the window
to pick up the changes and redraw itself. [Fixes bug #80574]
2007-01-22 Jonathan Pobst <monkey@jpobst.com>
[Moma work]
* ContainerControl.cs: ProcessCmdKey.
* ErrorProvider.cs: new constructor.
* Form.cs: fix AutoValidateEvent compiler warning.
* Label.cs: fix OnAutoSizeChanged compiler warning.
* MenuStrip.cs: fix CanOverflow compiler warning.
* TabControl.cs: SelectTab, OnSelected methods, Selected event.
* TextBox.cs: Dispose.
* ToolStrip.cs: CanOverflow, re-enable double buffering.
* ToolStripControlHost.cs: fix CausesValidation compiler warning.
* ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
* ToolStripItem.cs: Overflow, RightToLeft properties.
2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: Move the layout of the main form to MdiWindowManager.
* MdiWindowManager.cs: If WindowState changes from or to Maximized,
do a layout of the main window to update MdiClient's client area to
the right area. Fixes #80533. Remove the calculation of nc size,
it was just wrong and the correct one is the same as for
InternalWindowManager.
2007-01-20 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Setting Anchor or Dock needs to reset the other
to its default. [Fixes bug #80556]
2007-01-20 Chris Toshok <toshok@ximian.com>
* CheckedListBox.cs: class status changes.
* ScrollableControl.cs: same.
* RichTextBox.cs: same.
* ContainerControl.cs: same.
* ListView.cs: same.
* NotifyIcon.cs: same.
* MenuStrip.cs: same.
* RadioButton.cs: same.
* CheckBox.cs: same.
* PrintPreviewDialog.cs: same.
* Form.cs: same.
2007-01-19 Jonathan Pobst <monkey@jpobst.com>
* TreeNode.cs: Apply Alan's patch for Name property.
2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: Implemented SizeGripStyle.
* SizeGrip.cs: Check for minimum and maximum size for the
control being resized and only resize if size has actually
changed.
2007-01-19 Chris Toshok <toshok@ximian.com>
* DataGridColumnStyle.cs: stop setting _readonly in the
PropertyDescriptor setter. fixes a unit test failure.
also, rename ParentReadOnly to TableStyleReadOnly, and have it
just consult our table style (if we have one). We don't need to
consult the datagrid readonly attribute because that's passed in
as the _ro arg to Edit. this simplifies things a little.
* DataGrid.cs: use CurrentColumn instead of
current_cell.ColumnNumber just to simplify some of the code.
switch the order of some things in the CurrentCell setter to keep
the previous cell from getting a textbox again -
EnsureCellVisibility causes scrolling to happen, which calls Edit.
So we need to set the new cell before calling it.
call Edit in OnEnter, as does Microsoft.
also, make sure the current table style isn't the one we create
initially when checking to see if it's different than the one
we're setting it to in BindColumns (this fixes #80421).
* GridTableStylesCollection.cs: table styles can have "" for a
mapping name. part of the fix for #80421.
* DataGridTextBoxColumn.cs: simplify the readonly calculation in
Edit significantly.
2007-01-18 Jonathan Pobst <monkey@jpobst.com>
* TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
and less GDI object leaky-er.
2007-01-18 Andreia Gaita <avidigal@novell.com>
* LinkLabel.cs: Add opaque control style
2007-01-18 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Calculate width properly.
- Don't store the tag's X offset, this can be figured out very
easily.
- When getting the caret tag make sure to get the last empty tag.
2007-01-18 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Recalculate our size after setting a new FormBorderStyle.
[Fixes bug #79959]
* Control.cs: Color.Empty shouldn't count for previous transparent
redraw changes.
2007-01-18 Jackson Harper <jackson@ximian.com>
* TextBox.cs:
* RichTextBox.cs:
* TextControl.cs: Starting to merge in some pieces of my older
undo work. Basically just some slight cleanup of the undo API.
2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
* TrackBar.cs: Fix signature of RightToLeftLayout.
* StatusBar.cs: Implemented missing 2.0 methods and attributes.
* StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
* Application.cs: Implemented UseWaitCursor.
2007-01-18 Jackson Harper <jackson@ximian.com>
* TextControl.cs: We can't skip tags if any part of the tag is
visible.
2007-01-18 Jonathan Pobst <monkey@jpobst.com>
* ContainerControl.cs: Override OnLayout.
2007-01-18 Jonathan Pobst <monkey@jpobst.com>
* NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
* ContextMenuStrip.cs: Make sure context menu is shown on top of
everything else.
2007-01-18 Chris Toshok <toshok@ximian.com>
* ContainerControl.cs: remove the partial handling of LBUTTONDOWN
(leftover from the container_selected days, I'd wager). fixes bug
#80546.
2007-01-18 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Apply patch from George to fix the new testcase on
bug #80451. We can't just check for Color.Transparent, we need
to check if the back color's alpha channel is < 255.
2007-01-18 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Move setting show_icon = true to before the constructor
so that the base constructor has that information when it calculates
the form's size. Was causing forms to be (6, 6) bigger than they
were supposed to be. Thanks for catching this Rolf!
2007-01-18 Jackson Harper <jackson@ximian.com>
* TextControl.cs: When replacing a selection we need to invalidate
from the initial selection start, because selection start is moved
to the end of the replacement.
2007-01-18 Andreia Gaita <avidigal@novell.com>
* LinkLabel.cs: Missing ControlStyles. Fixes #80482
2007-01-18 Chris Toshok <toshok@ximian.com>
* DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
I just added.
2007-01-17 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
layout methods and properties from ToolBarButton must be available
into ToolBarButtonInfo.
2007-01-17 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: If the control has a transparent background, we
need to refresh it when it moves and when it's parent's background
image changes. [Fixes bug #80451]
2007-01-17 Jonathan Pobst <monkey@jpobst.com>
* XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
2007-01-17 Jonathan Pobst <monkey@jpobst.com>
* XplatUIWin32.cs: Implement proper double buffering for Windows.
[Fixes bug #80447, and probably speeds up things as well]
2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: Caption height for MDI children is 19, not 26.
* XplatUIWin32.cs: We need to recalculate NC size after changing
window style to toolwindow (otherwise the client rectangle will be
3 pixels to small for some reason).
* MdiWindowManager.cs: Revert NC size calculations to match how
they are calculated only based on window styles (to match
Win32AdjustWindowRectEx, since otherwise when setting size or
location, Control will call Win32AdjustWindowRectEx to update client
size, which would provoke a paint, then we'd get a NCCALCSIZE and
calculate a different value of client size causing another paint
(and flickering))
* InternalWindowManager.cs: When moving or resizing a window only
update size or location if they actually changed.
* ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
(seems to match Windows behaviour better). Cleaned up
ManagedWindowDecorations to draw what's needed and nothing else
(was drawing borders and lines where they shouldn't be)
* Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
(style = 0xFFFF) and takes into account caption height when
calculating window rectangle.
2007-01-16 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
can be added to toolbar multiple times, we need to maintain a list of
button information for each positions.
2007-01-16 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Some small stetic changes.
2007-01-16 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
that allow us to have nested recalc = false blocks.
- Add paste support for images in the RichTextBox
* RichTextBox.cs: flush the text after the color is changed, so
the change takes effect.
- Use SuspendRecalc
- Some extra debugging info
* TextControl.cs: Tags no longer track their length, it is just
computed from the next tags length, this makes things a little
simpler and reduces places that we have to track length changes.
- Refactored the linetag class a little so we could make it
a base class for different kinds of tags
- Created a image tag, a tag that can have a single image inserted
into it
- Replace the norecalc flag with a Suspend/Resume Recalc pair, so
that we can call suspend multiple times.
- Add some debugging methods
2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiClient.cs: Add ActivatePreviousChild for
mdi child window navigation.
* Form.cs: Use MdiClient.ActivateNextChild/
ActivatePreviousChild instead of Form.SelectNextControl
to select the next/previous child since
SelectNextControl doesn't do it in the same order
as mdi children should do it.
2007-01-16 Chris Toshok <toshok@ximian.com>
* Control.cs: remove container_selected field.
2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiClient.cs: Update main form's ActiveChild when
updating keyboard focus for the mdi child.
2007-01-16 Jonathan Pobst <jpobst@novell.com>
* Control.cs: PreferredSize fix.
* Form.cs: Add several 2.0 events, properties, and methods.
2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
* Form.cs: Provide meaningful message when MdiParent is assigned a
Form that is not an MdiContainer.
2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiClient.cs: Update main form's ActiveChild when
activating a mdi child.
2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiWindowManager.cs: Fix NRE when merging menus and main form
doesn't have a menu.
* Form.cs: Request NCRecalc after creating a mdi child window.
Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
* MdiClient.cs: Add new method SendFocusToActiveChild that either
sends keyboard focus to the active child, or to the MdiClient
if there are no child forms.
2007-01-15 Chris Toshok <toshok@ximian.com>
* ListView.cs: drop the *Internal overrides, just do our work in
ItemControl's WndProc instead.
* UpDownBase.cs: a few large changes. Fix up the Selectable state
of the various controls, and forward the events properly (in the
same manner as MS) from the textbox to the UpDown. Also the
ActiveControl of the UpDownBase gets set properly now. Finally,
we don't call UpdateEditText from the ctor. Fixes bug #79957.
* NumericUpDown.cs: set Text in the ctor.
* DomainUpDown.cs: call UpdateEditText in the ctor.
* TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
so even a Selectable = false textbox can be focused if you click
in it. Go figure.
* Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
just add their handling in their respective WndProc's. Also add
an explicit FocusInternal method that doesn't consult CanFocus
before calling Select(this).
* TextBoxBase.cs: deal with removal of the FocusInternal calls -
do our work in WndProc instead.
* TabControl.cs: same.
* ComboBox.cs: same.
2007-01-15 Everaldo Canuto <everaldo@simios.org>
* Menu.cs: implement MergeItems and Replace for MenuMerge method.
Fixes #80006.
2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs:
* ThemeWin32Classic.cs: Don't draw the item text outside
item bounds in Details view, as well as use trimming.
Fixes bug #80376.
2007-01-15 Jonathan Pobst <jpobst@novell.com>
* Form.cs: Implement Form.ShowIcon.
* XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
null, which when combined with the DlgModalFrame window style removes
the icon from the title bar.
2007-01-15 Jonathan Pobst <jpobst@novell.com>
* Control.cs: Call OnMouseClick after OnClick. (2.0)
2007-01-15 Everaldo Canuto <everaldo@simios.org>
* MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
menu when mdi child windows theres a menu, uses insert to get icon
at first position. Partially fix #80006.
2007-01-15 Jonathan Pobst <jpobst@novell.com>
* Clipboard.cs: Implement 2.0 methods.
2007-01-15 Everaldo Canuto <everaldo@simios.org>
* Menu.cs: Implement Insert method of MenuItemCollection class
to fix MenuMerge.
2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Implement 2.0 FindItemWithText method.
2007-01-11 Everaldo Canuto <everaldo@simios.org>
* Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
to calculate menu bar size. Fixes #80290.
2007-01-11 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Fix position of menuitem check mark.
2007-01-11 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
initial form.
2007-01-11 Chris Toshok <toshok@ximian.com>
* LinkLabel.cs: make sure to call base.Select in our Select method
if it turns out we're going to be selected (i.e. if we have a link
that is going to receive focus). That way our container's
ActiveControl is updated properly.
2007-01-11 Chris Toshok <toshok@ximian.com>
* LinkLabel.cs: turns out that LinkLabels are only Selectable if
they have 1 or more links. this fixes the crash gert reported.
2007-01-11 Andreia Gaita <avidigal@novell.com>
* ContainerControl.cs: Remove ContainerSelected flag, not needed
anymore.
* Control.cs (Controls.Add): Check if control to be added to the collection
is a top level control, and throw an ArgumentException if it is.
Remove ContainerSelectedFlag, not needed anymore.
* XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
top most control doesn't activate the form. This fixes a problem in the
MessageBox, where the default button wouldn't get focus because the form
was activated before being Loaded - when the Owner is set, SetTopMost is
called, and it would activate it.
2007-01-11 Jonathan Pobst <jpobst@novell.com>
* Button.cs: When clicked and setting the parent form's DialogResult,
use FindForm instead of Parent, since parent could be a container
control and not the Form. Fixes bug #80495.
2007-01-10 Chris Toshok <toshok@ximian.com>
* Form.cs: move the call to SendControlFocus into the same
is_loaded check.
2007-01-10 Chris Toshok <toshok@ximian.com>
* UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
It breaks in the face of the new ActiveControl stuff, and should
be unnecessary.
* Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
activecontrol's focus if it's not already set, after we set
ActiveControl, but before we call OnActivated. Re-fixes #79667
after the previous focus/active control fixes regressed it.
* Control.cs: reindent some code.
2007-01-10 Chris Toshok <toshok@ximian.com>
* Splitter.cs: clearing some outstanding changes from my tree.
Replace all accesses (not writes) to the internal dock_style field
with the Dock property.
2007-01-10 Chris Toshok <toshok@ximian.com>
* Control.cs: make FireEnter, FireLeave, FireValidating, and
FireValidated virtual.
* Form.cs: override and don't chain up calls to FireEnter and
FireLeave.
2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add more text padding space when using
auto resize for columns (the previous value didn't work fine).
* ThemeWin32Classic.cs: Update text position inside columns,
to match the appeareance of .Net.
* ColumnHeader.cs: When using auto resize, only the Width should
depend on the sub items, not the Height. Also, set width after
auto resizing (the value of Width should never remain as -1 or -2).
2007-01-10 Chris Toshok <toshok@ximian.com>
* Application.cs: fix compilation errors when debug is enabled.
2007-01-10 Chris Toshok <toshok@ximian.com>
* ContainerControl.cs (set_ActiveControl): rework this a bit (and
add some nice ascii art pictures and explanation of the process).
(GetMostDeeplyNestedActiveControl): new utility function we need
because our ActiveControl can refer to a child container with its
own ActiveControl.
* Form.cs (OnActivated): remove the call to SelectActiveControl
from here, since you can override this method and not chain up,
and winforms still sets the active control.
(OnCreateControl): also remove the unnecessary SelectActiveControl
call from here.
(WndProc): it's actually called from the WM_ACTIVATE block, just
before calling OnActivated.
* Control.cs (Select (Control)): move the call to XplatUI.SetFocus
inside the else. the ActiveControl setter will end up setting
focus on @control. This keeps us from setting it again (and
generating an extra LostFocus/GotFocus pair).
(Select (bool, bool)): reindent.
2007-01-10 Jonathan Pobst <jpobst@novell.com>
* FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
ToolStripTextBox.cs: Another wave of corcompare work.
2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ColumnHeader.cs: Implement 2.0 AutoResize method using
the Width property.
* ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
methods by callling Column.AutoResize method on columns.
2007-01-09 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Provide proper implementations of PreferredSize
and GetPreferredSize (2.0).
2007-01-09 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Remove one character (!) to make my previous OnClosing
stuff work for modal windows like MessageBox.
2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs:
* ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
ListView.Columns to get the last displayed column. Fixes #80452.
2007-01-09 Everaldo Canuto <everaldo@simios.org>
* Label.cs, LinkLabel.cs: Source code identation fixes.
2007-01-08 Everaldo Canuto <everaldo@simios.org>
* ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
we dont need to invalidate only borders because when we invalidate four
border lines the invalidate's generates a complete redraw of button,
because it now invalidate a complete rect some other redraws operations
are fixed. Fixes #80196.
* Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
Remove ToolBarInvalidateEntireButton as it is not used.
2007-01-08 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Make sure that both OnClosing and OnFormClosing are
called for 2.0 profile.
* CloseReason.cs: Make class internal for 1.1.
2007-01-08 Jonathan Pobst <monkey@jpobst.com>
* ToolStripManager.cs: Implement FindToolStrip functionality.
* ToolStrip.cs: Register and unregister with ToolStripManager.
2007-01-07 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: This was messy. 2.0 moves much of ControlCollection
to ArrangedElementCollection. Implemented this with as few #if's as
possible (which is still too many).
2007-01-07 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Implement SizeFromClientSize() [2.0].
2007-01-07 Everaldo Canuto <everaldo@simios.org>
* Hwnd.cs: On GetClientRectangle add a new parameter border_static,
use Theme.BorderSize to calculate area instead of static value 1,
by the way use new BorderStaticSize instead Border3DSize when
border_static is true. Fixes #79537.
* XplatUIOSX.cs: Fix call to GetClientRectangle.
* ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
it is not needed.
2007-01-06 Everaldo Canuto <everaldo@simios.org>
* Hwnd.cs: Gives more code legibility to GetWindowRectangle.
2007-01-06 Everaldo Canuto <everaldo@simios.org>
* Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
* Hwnd.cs:
- border_static field added, it will used to define when a control
theres 3D border but it must be static (thin).
- In GetWindowRectangle use Theme.BorderSize to calculate area
instead of static value 1, by the way use new BorderStaticSize instead
Border3DSize when border_static is true.
* XplatUIX11.cs, XplatUIOSX.cs:
- When WS_EX_STATICEDGE ExStyle is set define border_static as true.
* Theme.cs: BorderStaticSize field added.
2007-01-05 Everaldo Canuto <everaldo@simios.org>
* XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
2007-01-05 Everaldo Canuto <everaldo@simios.org>
* Control.cs: Under InternalBorderStyle call RecreateHangle to
mimic same behavior than win32 that set border only in CreateParams,
it fix problems under CreateParams overrides. Fix #79442 and partial
fix #79537.
* XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
of thi control you must call recreate handle.
* XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
need to do anything as RecreateHangle will take care about borders.
2007-01-05 Mike Kestner <mkestner@novell.com>
* ListView.cs: hack to eliminate Lost/Got focus notifications on
cycles between the ItemControl and parent. Fixes #80388.
2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
* Control.cs: Lazy init layout engine. Do not directly use
layout_engine since LayoutEngine may be overridden (on 2.0 profile).
2007-01-05 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: don't forceably rebind columns in SetDataSource
unless our list manager has changed (i.e. unless we have reason to
believe our columns have changed). Fixes #80422.
also, disable the call do BindColumns in
OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
1.1 the event isn't raised in response to a column addition on a
table.)
2007-01-05 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
that inheritors can not call it if they choose. Fixes bug #80456.
2007-01-05 Andreia Gaita <avidigal@novell.com>
* XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
doesn't blow up with a null exception on marshalling.
2007-01-05 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Implement several 2.0 protected properties and methods.
Ensure that all necessary events are being called when properties
are set.
2007-01-05 Mike Kestner <mkestner@novell.com>
* ListView.cs: implement PgUp/PgDn for Details view. Also
fixes First/LastVisibleIndex to use the item_control.ClientRect
instead of the parent control. Fixes #80378.
2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
* PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
determine whether to use yard-pound or not (bug #78399).
2006-01-04 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Sebastien fixed the libgdiplus png alpha
problems. So it is time to bring back the old popupbutton colors.
2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ColumnHeader.cs:
* ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
property by using the internal information of the
columns order in ListView.
2007-01-04 Jonathan Pobst <monkey@jpobst.com>
* CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
Add 2.0 Tag properties.
* LinkArea.cs: Add 2.0 ToString method.
2007-01-03 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: the Alt+0 handling was wrong, it should have been
Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
when we're editing, which fixes #80047.
2007-01-03 Chris Toshok <toshok@ximian.com>
* Form.cs: apply patch contributed by Dominik Seichter. fixes
#80404.
2007-01-03 Jonathan Pobst <monkey@jpobst.com>
* MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
property and implementation.
* Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
for MdiWindowListItem property.
* ToolStripDropDown.cs: Don't consider hidden menu items while
laying out the menu.
2007-01-03 Andreia Gaita <avidigal@novell.com>
* SendKeys.cs: window handle is not needed in win32, so just
get the active window for X after parsing keys and don't use
it when building the message; it is passed by parameter to the
Xplat method and used there to build the message instead. Also,
wait for events to be processed on SendWait, as opposed to Send,
which doesn't wait :) Playing with threads and Send() completely
hangs on ms.net, only SendWait() works.
XplatUIX11.cs
X11Display.cs: Check for valid window handle.
2007-01-03 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Need to prevent wrap calculations when replacing
text (this was there before i removed it accidently).
- Don't update the cursor during the positioning, just set it to
selection_start at the end of the operaion.
2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs:
* NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MonthCalendar.cs: Added Click and DoubleClick events again,
but this time they only hide Control's Click and DoubleClick.
2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
* Theme.cs: Re-enabled DefaultFont change. Use const to refer to
System.Drawing assembly. Spaces to tabs. Removed extra tabs.
2007-01-02 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: We move the caret with the split now, so we
don't need to explicitly move the caret after splitting. This
fixes the caret bumping down an extra line on Enter.
2007-01-02 Miguel de Icaza <miguel@novell.com>
* ContainerControl.cs: Add AutoValidateChanged event (for PDN
2.72).
* ScrollableControl.cs: Add Scroll event.
2007-01-02 Mike Kestner <mkestner@novell.com>
* ListView.cs: one more try with help from georgegiolfan@yahoo.com
to fix all hdr height padding codepaths. Fixes #80207.
2007-01-02 Chris Toshok <toshok@ximian.com>
* StatusBar.cs (.ctor): remove the Anchor setting, as it's just
setting it to the Control defaults anyway, and it being after the
Dock set was screwing up layout.
(set_Dock): don't short circuit out of setting base.Dock. Also,
no need to call UpdateStatusBar here, as it'll be re-layed out if
it needs to be.
2007-01-02 Mike Kestner <mkestner@novell.com>
* ListView.cs: patch from georgegiolfan@yahoo.com to add padding
to header height for width == -1. Fixes the rest of #80207.
2007-01-02 Mike Kestner <mkestner@novell.com>
* ListView.cs: rework the mouse event forwarding everaldo added
to translate the coordinates to the parent control not
raise the parent events until after we've done our work. Hover
needs more work, in the case where HoverSelection is on, because
the item control receives more than one MouseHover per Enter
event, so we need to ensure only the "first" hover gets forwarded.
Opening a minor bug for that.
2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
* CheckedListBox.cs: Fixed SelectionMode to match MS.
* ListControl.cs: Implemented AllowSelection property. Removed extra
tabs.
* ListBox.cs: Implemented AllowSelection property.
2007-01-02 Everaldo Canuto <everaldo@simios.org>
* MenuItem.cs: In MdiWindowClickHandler uses sender instead of
SelectedItem, it prevent for errors when you must disable item
before perform click. Fixes #80409.
2007-01-02 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Prevent second level and beyond submenus to close
until first level when move out side of popup.
2007-01-02 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs:
- Down submenu positin in three pixels.
- Closes sub menu when mouse leaves from menu. Fixes #80402.
2007-01-02 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs:
- Fix popup menu size adding one pixel on the top.
- Down menu item border from two to one to mimic Win32.
- Some source identation fixes.
2007-01-01 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Use float numbers to calculate size and
position of menu arrows, it fix wrong arrow size.
2007-01-01 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
instead of line, it simplify draw operation and fix it using 3D
borders to mimic Win32.
2007-01-01 Jonathan Pobst <monkey@jpobst.com>
* StatusStrip.cs: Add implementation of the sizing grip.
* ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
StatusStrip rendering.
2006-12-31 Chris Toshok <toshok@ximian.com>
* ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
override the layout style (anchor/dock) of the control. assign to
Dock instead. Fixes bug #80416.
* ToolStrip.cs: same.
2006-12-31 Andreia Gaita <avidigal@novell.com>
* ContainerControl.cs: Use ContainerSelected flag to check if
a Container is directly selected, or if Select is called on a
non-container. If a container is directly selected, focus events
should not be raised.
Apply #80411 patch to throw exception on set_ActiveControl if
control is the same as the current one.
* Control.cs: Use ContainerSelected flag (see above).
Add invalidation check to raise event but not invalidate if
dimensions are 0.
Apply #80411 patch.
2006-12-31 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: After click, dont close popup menu when menu is
ContextMenu. Fixes #80399.
2006-12-30 Chris Toshok <toshok@ximian.com>
* ContainerControl.cs: make sure we throw the exception if the
container control doesn't contain the control we're setting
ActiveControl to.
2006-12-30 Chris Toshok <toshok@ximian.com>
* Control.cs (SetTopLevel): fix the exception raised by
SetTopLevel for child controls.
(set_Anchor): call UpdateDistances when setting the anchor type.
This fixes bug #80336.
2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
* Theme.cs: For now, revert back to 8pt font.
2006-12-29 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Set popup as active when open a ContextMenu.
Fixes #80395.
2006-12-29 Chris Toshok <toshok@ximian.com>
* Control.cs: reorder the code in OnResize to give the same event
ordering as MS.
2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
TileHorizontally and TileVertically.
2006-12-29 Alexander Olk <alex.olk@googlemail.com>
* ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
Corrected copyright and email adress.
2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
* TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
of Exception in FullPath property if no TreeView is associated with
the TreeNode.
2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
* Theme.cs: Marked default_font as private, and initialize it in ctor
with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
on 2.0 profile.
* ThemeGtk.cs: Removed default_font intialization.
* ThemeWin32Classic.cs: Removed default_font initialization.
2006-12-28 Chris Toshok <toshok@ximian.com>
* Control.cs: fix a couple of place where we were creating handles
more aggressively than we should be. Fixes ControlRefresh unit
tests.
2006-12-28 Chris Toshok <toshok@ximian.com>
* Control.cs: contrary to what the comment said, Control.Dock does
not supercede Control.Anchor - the last one you assign to decides
the layout behavior. so we need to keep track of which was the
last set. Also, fix some of the affected property arguments in
PerformLayout calls, and remove an redundant parent.PerformLayout
call in OnResized.
Add a VisibleInternal property, which returns is_visible. We
can/should get rid of all the usage of this field elsewhere.
2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
control style, not DoubleBuffer. Added UseDoubleBuffering property
that indicates whether doublebuffering is enabled and supported.
(comment from and code based on Gert Driesen's patch in #80324).
Fixes #80324.
2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Fixed a NRE.
2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* TrackBar.cs: Fix SmallChange and LargeChange exceptions
for 2.0.
2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Rewrote double buffering, now a seperate
class handles all the buffering, no Graphics is disposed of
until the painting is finished (earlier implementation
would crash if the control was resized in the OnPaint,
since it would cause the double buffer to be recreated
and the old one disposed), a separate Graphics is
created for every paint (MS behaviour and anyways the state
of the Graphics would have to be saved and restored otherwise)
* XplatUIDriver.cs:
* XplatUIX11.cs:
* XplatUI.cs: Added and implemented GetOffscreenGraphics
so that we can get the graphics for the back buffer without
having to create a new one and remove the offscreen_dc parameter
from CreateOffscreenDrawable and DestroyOffscreenDrawable.
2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
Also make virtual all the key-related methods.
* ListViewItem.cs: Make virtual the key related methods for
ListViewSubItemCollection.
2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs:
* ListViewItem.cs:
* ThemeWin32Classic.cs:
* Theme.cs: Initial support for Tile view in ListView,
as well as the implementation of the required bits for it (Item
and Subitem).
2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
* MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
Provide useful exception messages.
2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
* TrackBar.cs: Remove a warning.
* MonthCalendar.cs: Moved back to using Capture to hide the calendar
when used by DateTimePicker, fixes #80287. This also requires that
MonthCalendar implements it's own drawing for the yearly updown control,
otherwise the Capture tracking would be too complicated. Removed the Click
and DoubleClick events (according to comments they were hiding the base class
event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
raise these events, not that they cannot be raised. It is possible to raise
them by calling OnClick and OnDoubleClick). Added two internal fields in
HitTestInfo in order to track give more tracking info needed by MonthCalendar.
* ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
* DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
event, no longer needed.
2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
* ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
true if new value differs from current value.
2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
* Control.cs: ControlCollection.Count must be public. Fixed build of
unit tests.
2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
* ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
* ComboBox.cs: Mergable=>MergableProperty. Fixes build.
2006-12-26 Everaldo Canuto <everaldo@simios.org>
* Control.cs: Invalidates control including when Width and Height is
equal zero or is not visible, only Paint event must be care about
this. Fixes #79913.
2006-12-26 Chris Toshok <toshok@ximian.com>
* CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
more corcompare work.
* DataGridView.cs: fix compiler warning.
* ColumnHeader.cs: some corcompare work, and also take the
opportunity to make the internal fields private.
* ListView.cs: fix the fallout from the above field change.
2006-12-26 Jonathan Pobst <monkey@jpobst.com>
* ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
ToolStripTextBox.cs: Fixes to events and corcompare.
2006-12-26 Everaldo Canuto <everaldo@simios.org>
* ListView.cs: Call owner.OnMousexx event to propagate events from
item to ListView. Fixes #80367.
2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
* ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
if value is less than one. ItemHeight should not be set to a value
less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
Removed extra tabs.
2006-12-26 Jonathan Pobst <monkey@jpobst.com>
* ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
* ToolStripStatusLabel.cs: Add Spring for Moma.
2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
* DataGridView.cs: Fixed several NullReferenceException in On* methods.
Fixed code formatting. Removed debug code.
* DataGridViewTextBoxEditingControl.cs: Removed debug code.
2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
* DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
ArgumentOutOfRangeException if ColumnCount is negative. In
ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
less than 4 or higher than 32768.
* DataGridViewCellStyle.cs: Fixed default value for NullValue.
Fixed FormatProvider to return CurrentCulture unless explicitly set.
Fixed IsFormatProviderDefault to return true if FormatProvider has
not been explicitly set.
2006-12-25 Chris Toshok <toshok@ximian.com>
* Application.cs: add a couple of 2.0 events.
2006-12-25 Chris Toshok <toshok@ximian.com>
* Control.cs: fix compiler warning.
* AxHost.cs: corcompare fixes.
* ApplicationContext.cs: corcompare fixes.
2006-12-25 Chris Toshok <toshok@ximian.com>
* Control.cs: only update dist_right/dist_bottom if the
width/height is > 0. this fixes anchored controls being resized
smaller until they disappear and then resized larger again.
2006-12-25 Chris Toshok <toshok@ximian.com>
* Control.cs: a couple of changes. Remove dist_left and dist_top,
since they're nothing more than X/Left and Y/Top, respectively.
Also, move back to a per-control Bitmap/Graphics for
DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
MT case. Go with a tiny bitmap though, 1x1, instead of Width x
Height.
2006-12-25 Miguel de Icaza <miguel@novell.com>
* MessageBox.cs: Implemented overload that takes a new "bool
displayHelpButton" by adding a new internal field "show_help".
When clicked this will raise the HelpRequested on the owner or the
main form.
From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
* ListView.cs: Add support ColumnWidthChanged and
ColumnWidthChanging.
Add support for ColumnReordered event.
(ReorderColumn): Add NET_2_0 specific support for cancelling the
reorder.
Very nice codebase!
* TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
2006-12-24 Chris Toshok <toshok@ximian.com>
* GridTablesFactory.cs: 2.0 corcompare work.
* ToolStripContainer.cs: add "override" to
ContextMenuStripChanged, and remove the local event object.
* ToolStripDropDown.cs: same with a couple properties.
* ToolStripPanel.cs: same with AutoSizeChanged event.
* TextBoxBase.cs: add "override" to AutoSizeChanged.
* Form.cs: add the remaining 2.0 events, and do some corcompare
attribute work.
* DateTimePicker.cs: add "new" to padding.
* ButtonBase.cs: use Control's use_compatible_text_rendering.
* ToolStripContentPanel.cs: use base.AutoSizeChanged.
* DataGridView.cs: PaddingChanged is overridden.
2006-12-24 Chris Toshok <toshok@ximian.com>
* Control.cs: corecompare work here too.
* DataGridViewElement.cs, DataGridView.cs,
DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
work.
2006-12-24 Miguel de Icaza <miguel@novell.com>
* Control.cs: Switched the error message on the console for a
todo. A review of the code will have to cope with this anyways
(since its a large feature, it is in our radar) and it was
producing too much output when running PDN.
* ToolStripComboBox.cs: Set the text when the SelectedIndex
changes. Applications depend on this (PDN 2.72)
2006-12-23 Chris Toshok <toshok@ximian.com>
* TableLayoutSettings.cs: finish up the corcompare work for this
class.
2006-12-23 Chris Toshok <toshok@ximian.com>
* Control.cs: make SetImplicitBounds internal, do some futzing
with LayoutEngine so that it's available in 1.1, and remove the
entire duplicated code mess from PerformLayout. Use
System.Windows.Forms.Layout.DefaultLayout instead.
* LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
2006-12-23 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Add MainMenuStrip property.
2006-12-23 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Add ContextMenuStrip property and implementation.
Fix ContextMenu implementation to show menu centered on control when
activated using the keyboard instead of showing at screen (0,0).
* ToolStripDropDown.cs: Fix needed overload of Show ().
2006-12-23 Everaldo Canuto <everaldo@simios.org>
* Menu.cs: Name property added for 2.0 profile.
2006-12-23 Everaldo Canuto <everaldo@simios.org>
* Menu.cs: Update information about FindMenuItem, method to be
implemented soon.
2006-12-23 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: When deselect items deselect also selected subitems.
2006-12-23 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: When hides menu set Wnd to null, it prevents
FindSubItemByCoord to found itens that is not active, also an
cheking added to FindSubItemByCoord to search for items only
in visible popup windows. Fixes #80274.
2006-12-22 Everaldo Canuto <everaldo@simios.org>
* UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
internal property, it be care about change ExStyle.
2006-12-22 Andreia Gaita <avidigal@novell.com>
* ContainerControl.cs: set activeControl for parent forms up the
tree when the new activecontrol is a container.
When validating the active control, if it is a container, also
raise up the validation for it's active control. Fixes #80280
* Control.cs: Add internal property flag and check to prevent
Focus events from getting raised when Select() is called for
a ContainerControl. There are still too many focus events being
raised at the moment though.
Cleaned up the code a bit.
2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Added all missing 2.0 events.and
fixed a couple of corcompare issues.
* TrackBar.cs: Implemented missing 2.0 bits.
* MonthCalendar.cs,
* DateTimePicker.cs,
* MdiClient.cs: Fixed some corcompare issues.
2006-12-21 Jonathan Pobst <monkey@jpobst.com>
* ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
SplitterPanel.cs: corecompare work.
2006-12-21 Jonathan Pobst <monkey@jpobst.com>
* ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
Clean up warnings for BackgroundImageChanged and PaddingChanged
events now that they are implemented in Control.cs.
2006-12-21 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Make sure layout_engine isn't null before using it (2.0).
* TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
of TableLayoutPanel and supporting cast.
2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIWin32.cs:
- GrabWindow now confines the mouse pointer to the confine window.
- Added Win32ClipCursor and Win32GetClipCursor.
* Control.cs:
- Added CaptureWithConfine to be able to capture and confine
mouse pointer.
* InternalWindowManager.cs:
- Call CaptureWithConfine instead of Capture if we're an
MdiChild (fixes #79982).
2006-12-21 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: guard against the initial state of selection, where
selection_start == -1. make sure we only select from index >= 0.
Fixes bug #80291.
2006-12-21 Chris Toshok <toshok@ximian.com>
* Control.cs: we don't need to be so draconian with
UpdateDistances, and we thusly don't need to call it before
calling PerformLayout in ResumeLayout. Fixes bug #80289.
2006-12-21 Daniel Nauck <dna@mono-project.de>
* ComboBox.cs,
TextBox.cs: Implemented AutoComplete properties.
2006-12-20 Chris Toshok <toshok@ximian.com>
* DataGridView*.cs: some corecompare work.
2006-12-20 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: We need to hide the caret when deleting it,
otherwise you get carets left lying around everywhere.
* TextBoxBase.cs: Kill then redraw the caret when scrolling. This
prevents getting some weird half drawn caret tracers when
scrolling.
* TextControl.cs: Attempt to reduce the number of times we need to
recreate the caret.
2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
* MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
* DateTimePicker.cs:
- Implemented missing 2.0 bits.
- Changed some default values to match MS.
2006-12-20 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: When changing the font across the document we
can't recalculate after changing each line, since that will cahnge
the line count.
- PreferredHeight is a little different than i thought.
- When backspacing, move the caret before we do the actual char
delete, because when that delete crosses a wrap boundary the
positional information will change.
2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Added some missing 2.0 bits:
BackgroundImageLayout, BackgroundImageLayoutChanged,
OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
add IBindableComponent and IDropTarget implementation.
* MonthCalendar.cs:
- Added all missing 2.0 features:
BackgroundImageLayout, RightToLeftLayout,
OnHandleDestroyed, RightToLeftLayoutChanged,
BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
PaddingChanged.
- Rewrote all the BoldDate code, it was completely broken.
- Fixed all the tests (the tests can now be re-enabled, the
problems were not with the tests, but with the control, it was
mostly broken).
* DateTimePicker.cs: Changed the location where the
MonthCalendar is shown.
2006-12-19 Chris Toshok <toshok@ximian.com>
* DataGridView.cs: add IDropTarget implementation.
* ToolStripPanel.cs: add IDropTarget implementation.
2006-12-19 Jackson Harper <jackson@ximian.com>
* TextControl.cs: soft now means something different than what it
used to mean, we want to move the caret regardless of whether or
not this break was soft (would we really have wanted the caret
to not move with the break in the old context?)
* TreeView.cs: Make sure we factor in the vert scrollbar when
calculating the horizontal scrollbar's maximum.
2006-12-19 Andreia Gaita <avidigal@novell.org>
* SendKeys.cs: Fix Send() behaviour, clear keys after sending,
check for keywords in alternate casing, close bug #80049.
2006-12-19 Chris Toshok <toshok@ximian.com>
* ToolStripItem.cs: add the implementation of the 4 IDropTarget
methods (which all do nothing).
* IDropTarget.cs: add the 4 missing methods.
2006-12-19 Chris Toshok <toshok@ximian.com>
* TableLayoutRowStyleCollection.cs: corcompare work.
* TableLayoutSettings.cs: same.
* TableLayoutStyle.cs: same.
* TableLayoutColumnStyleCollection.cs: same.
2006-12-19 Jonathan Pobst <monkey@jpobst.com>
* ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
TableLayoutPanel I've had in my local tree for way too long.
2006-12-19 Miguel de Icaza <miguel@novell.com>
* TableLayoutSettings.cs: Finish the public API (still needs all
the logic to update on changes).
* TableLayoutPanelCellPosition.cs: new file.
* TableLayoutRowStyleCollection.cs,
TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
TableLayoutSettings.cs: Track the final 2.0 table api.
2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
and Image List 2.0 members for ColummnHeader.
* ListView.cs: Add key-related 2.0 methods for
ColumnHeaderCollection.
2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
* ListViewItem.cs: Changed AddRange overloads to match MS: throw
ArgumentNullException if items argument is null. Ignore null item in
arrays. Removed extra tabs.
2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
* MonthCalendar.cs: Fixed InvalidCastException.
2006-12-19 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Don't increment the position here.
- When calculating char positions only add in the line break size
for hard line breaks.
2006-12-19 Andreia Gaita <avidigal@novell.org>
* SendKeys.cs: Changed some things to match ms.net behaviour
when parsing shifted capital letters.
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
Add window handle as parameter to SendInput. X11 needs the
window handle, and the handle being passed to it in the keys
queue is the active control handle (which windows needs), not
the window handle.
XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
to support SendKeys on X.
* X11Keyboard: Implement helper method to lookup a linux keycode
given the virtual keycode. Added table of keycode-2-virtualkey
values to support this.
2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add support for SelectedIndexCollection
and SelectedItemCollection 2.0 methods. Implement support
for ImageKey too.
* ListViewItem.cs: Add support for ListViewSubItemCollection
2.0 methods. Also, fix an incorrect behavior of AddRange method
(it shouldn't call Clear).
* ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
2006-12-19 Jackson Harper <jackson@ximian.com>
* RichTextBox.cs:
* TextBoxBase.cs: New args for FormatText
* TextControl.cs: Rewrote the main drawing method, this version
feels a little easier to understand and debug to me. Hopefully it
does to others also
- Fix FormatText to OR in the new formating values. Added
FormatSpecified param, basically this works in the same way as
BoundsSpecified in Control.
- Set the caret properties when the caret is positioned.
- When wrapping text make sure that we calculate the width of the
last character
- when calculating alignments we might have wrapped down to the
next line, so don't search for an individual tag, search for the
end of the line
- We need to invalidate the selection area when we replace the
selection.
2006-12-19 Daniel Nauck <dna@mono-project.de>
* Application.cs: add Restart () 2.0 support
2006-12-18 Everaldo Canuto <everaldo@simios.org>
* MenuItem.cs: Invalidate menu item rectangle after change Enable
property. Fixes #80268.
2006-12-18 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Dont trigger select event when closes top menu
item. Fixes #80270.
2006-12-18 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: When you click on menuitem only trigger onselect
event for top menu itens. Fixes #80271.
2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiWindowManager.cs: Make IconicBounds depend on
the bottom of MdiClient, not the top (fixes #80267)
2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiClient.cs: Added missing 2.0 attribute
2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Add Name and Tag 2.0 properties, as well
as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
2006-12-18 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Fix click when menuitem is not popup,
this regression was caused by last commit (#80272).
2006-12-17 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: When a non-toplevel menuitem is clicked dont
fire click event or close menu. Fixes #80272.
2006-12-17 Daniel Nauck <dna@mono-project.de>
* ListViewHitTestInfo.cs: add
2006-12-17 Daniel Nauck <dna@mono-project.de>
* ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
* FlatButtonAppearance.cs: add
* DockingAttribute.cs: add
2006-12-17 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: hook up MetaDataChanged event on the list manager,
and rebind our columns when it does - this way, if you make
changes to the DataTable (or set the Table attribute on a DataView
after setting it as the DataGrid's DataSource, the changes are
made visible.) Fixes bug #80107.
2006-12-17 Daniel Nauck <dna@mono-project.de>
* ListViewGroup.cs: add internal Location property for layouting.
* Theme.cs: add abstract ListViewGroupHeight function.
* ThemeWin32Classic.cs: implement ListViewGroupHeight function.
2006-12-16 Andreia Gaita <avidigal@novell.com>
* TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
Added reset of selected index to 0 when adding first tab page.
Fixes #80264
* NumericUpDown.cs: Fix NET_2_0 check
2006-12-16 Daniel Nauck <dna@mono-project.de>
* ListViewGroup.cs: fixed DefaultValueAttribute value
2006-12-16 Daniel Nauck <dna@mono-project.de>
* AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
2006-12-15 Miguel de Icaza <miguel@novell.com>
* Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
TextBoxBase.cs, ListView.cs, ContainerControl.cs,
ScrollableControl.cs: Add a handful of methods that are
overwritten in 2.0
2006-12-15 Chris Toshok <toshok@ximian.com>
* XplatUIWin32.cs: initial implementation of the Reversible
drawing functions. there are some problems. DrawReversibleFrame
doesn't seem to work at all for Dashed FrameStyle, and in the
Thick case there are drawing errors at the corners (we probably
need to bind Rectangle instead of doing moveto/lineto's.)
2006-12-16 Andreia Gaita <avidigal@novell.com>
* SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
to send blocks of key messages. Send accumulates keys to send with Flush,
while SendWait sends all keys immediately.
* XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
XplatUIX11.cs, XplatUIX11-new.cs:
- Define SendInput and stubs for OSX and X11, implements Win32 with a call
to Win32 SendInput.
- Added INPUT support structures to XplatUIWin32 for Win32SendInput
Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
testing for ms.net on this class is very tricky, as the tests run too fast
to allow the hook to release, essentially freezing the keyboard and the
test. So, barring a win32 miracle, they'll be commited in the ms-notworking
category :p
2006-12-16 Daniel Nauck <dna@mono-project.de>
* Padding.cs: fixed serialization compability to MS ("_var" field names),
added missing attributes.
2006-12-15 Daniel Nauck <dna@mono-project.de>
* ListViewGroup.cs: Added missing attributes.
* ListViewGroupCollection.cs: Added missing attributes.
2006-12-15 Daniel Nauck <dna@mono-project.de>
* ListViewItem.cs: fixed ListViewSubItem text property.
2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Added missing 2.0 attributes
2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiClient.cs: Added missing 2.0 attribute.
* MonthCalendar.cs: Added some missing 2.0 attributes
and properties.
2006-12-15 Daniel Nauck <dna@mono-project.de>
* ListView.cs: implemented ListViewItemCollection Add 2.0 support.
2006-12-15 Jonathan Pobst <monkey@jpobst.com>
* MainMenu.cs: Add the new 2.0 constructor to help out people
using the MainMenu in VS2005.
2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiChildContext.cs: Removed it, no longer used.
* MdiClient.cs: Added missing 2.0 attributes.
2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
* InternalWindowManager.cs: Fix a NullRef with previous
changes for toolwindows.
2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs:
- Added AfterTopMostControl to allow for certain controls
to always stay on top when normal controls are brought to
front.
* XplatUIWin32.cs:
- (DrawInversibleRectangle): Get window rectangle from Win32
in stead of from control, since Win32 doesn't calculate
screen coords correctly from control's Location if it
have docked siblings.
* MdiWindowManager.cs:
- Correct the control menu popup location when clicked on
the maximized form icon. (fixes #80223.1)
- Don't show moving rectangle if mouse hasn't moved from
the original clicked point.
- Removed FormGotFocus handler (not used).
- Calculate the control buttons location from the main
window's size and not client size (fixes #79770).
- Form is now closed when the form icon is double-clicked
(fixes #79775).
- Correct NCCalcSize numbers a little bit (fixes #80223.2)
* InternalWindowManager.cs:
- Moved some MDI-only methods to MdiWindowManager.
- Removed unused properties and methods.
- Unified method naming for methods handling wm messages.
- Moved all message handling to seperate methods for
each message.
* ThemeWin32Classic.cs:
- DrawManagedWindowDecorations now draws the title bar
with a gradient brush.
- Add a CPDrawButtonInternal that allows us to specify
light, normal and dark colors for the buttons (control
buttons for MDI children were drawn with the same light
color as the background, therefore loosing the 3D effect).
* SizeGrip.cs:
- Add a CapturedControl property that is used to
determine the control to resize (defaults to parent).
Needed for MdiClient, since its SizeGrip's parent is
MdiClient, but the control to resize is the main form.
* MdiClient.cs:
- Set SizeGrip's CapturedControl to the main form in order
to resize the main form and not the MdiClient.
- Override AfterTopMostControl to leave the scrollbars
always on top.
2006-12-15 Daniel Nauck <dna@mono-project.de>
* ListView.cs: fixed ListViewItemCollection AddRange and
implemented ListViewItemCollection AddRange 2.0 support.
2006-12-15 Daniel Nauck <dna@mono-project.de>
* ListViewGroup.cs: Add.
* ListViewGroupCollection.cs: Add
* ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
* ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
stub for ImageKey 2.0 support.
2006-12-14 Mike Kestner <mkestner@novell.com>
* ListView.cs: add text padding to the autocalculation for columns
of width -2. Fixes #80207.
2006-12-14 Mike Kestner <mkestner@novell.com>
* ListView.cs: add some index guarding for partial row navigation
logic. Fixes #80250.
2006-12-14 Mike Kestner <mkestner@novell.com>
* ListView.cs: throw ArgumentExceptions when parented ListViewItems
are added or inserted to the collection. Fixes #81099.
2006-12-13 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Closes menu when right click out side of popup
it fix problem in ContextMenu and MainMenu. Fixes #80252.
2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListViewItem.cs: Fix dumb error.
* ListView.cs: Add Find and ContainsKey methods in
ListViewItemCollection, and also return true for IsReadOnly
and IsFixedSize (changes for 2.0).
2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
* Control.cs: Allow Region to be set to null.
2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiWindowManager.cs: Remove unused (commented out) code.
* Form.cs: When the MdiChild is maximized, the form needs
WM_NCMOUSELEAVE, so request it.
* InternalWindowManager.cs:
- Added tooltips to control buttons.
- Removed duplicated control button handling code.
- Removed unused (commented out) code.
2006-12-12 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
was used because we must set cursor without trigger ChangeCursor event
and without change Cursor control property. Fixes #79963.
2006-12-12 Andreia Gaita <avidigal@novell.com>
* Control.cs: Check if Region setter value is null, and ignore
2006-12-12 Jackson Harper <jackson@ximian.com>
* TextControl.cs: We were almost always drawing one more line then
needed, since the GetLineByPixel will return the last line found
at that pixel. In most cases though, we were invalidating up to
the junction between two lines.
- Improve debug code.
2006-12-12 Chris Toshok <toshok@ximian.com>
* XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
and FillReversibleRectangle.
* XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
and FillReversibleRectangle.
* XplatUIWin32.cs: add stubs which do nothing for
DrawReversibleFrame, DrawReversibleLine, and
FillReversibleRectangle.
* XplatUIOSX.cs: add stubs which raise NIE for
DrawReversibleFrame, DrawReversibleLine, and
FillReversibleRectangle.
* XplatUIX11.cs: add working implementation for
DrawReversibleFrame, DrawReversibleLine, and
FillReversibleRectangle.
* ControlPaint.cs: implement DrawReversibleFrame,
DrawReversibleLine, and FillReversibleRectangle, by calling into
the appropriate XplatUI method.
2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: Make MdiClient have the focus even if it's
not selectable, since it should receive WM_KEY* and WM_MOUSE
messages. Fixes #79907.
2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Hwnd.cs: Save the CreateParams.ExStyle so that it can be
queried after the window is created.
* XplatUIX11.cs: Added SendParentNotify to implement
WM_PARENTNOTIFY logic. Fixes #79965.
* Control.cs: Added MakeParam.
2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiClient.cs: Resume Layout before setting window
states (fixes #80201).
2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MenuAPI.cs: Deselect a menu item after performing
the click (fixes #80197).
2006-12-11 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: We need to cap this value, since Maximum -
ViewPortHeight can be less than zero.
- Only do selection with the left mouse button.
* TextBox.cs: Don't tell the world that we have a context menu.
* Control.cs: New method so that we can control whether or not the
context menu is visible outside MWF.
2006-12-11 Everaldo Canuto <everaldo@simios.org>
* ToolBarButton.cs: Fix text positon.
2006-12-11 Miguel de Icaza <miguel@novell.com>
* ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
* Control.cs (DoubleBuffered): Add implementation.
* Application.cs (OpenForms): Add.
2006-12-11 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Use opacity instead of Opactiy to determine if we need
to set the WS_EX_LAYERED bit. [Fixes bug #80185]
2006-12-11 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Fix NRE if Control.Site was set to null.
2006-12-11 Chris Toshok <toshok@ximian.com>
* Control.cs: ControlCollection.Remove should return if the arg is
null, and ControlCollection.SetChildIndex should raise a ANE.
2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
* Control.cs: Verify value set for Dock property. Code formatting
updates.
2006-12-11 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Draw the caret and the selection when a flag is
set on the owner.
* TextBoxBase.cs: We want to draw the caret and the selection for
TextBox but not for TextBoxBase.
- If the window is resized and scrolling is no longer needed (the
whole doc is visible) set the scroll position to zero.
- The default SelectWord (the one TextBox uses) should move the
caret to the end of the word.
- SelectAll moves the caret to the end of the selection.
* TextBox.cs: We don't selectall on focus, we just do it when the
control is created.
2006-12-11 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
2.0 support.
* ListViewItem.cs: Add Name 2.0 property.
2006-12-11 Andreia Gaita <avidigal@novell.com>
* TabControl.cs: Set visibility on selected or default tab
when tabcontrol handle is created, so that it's contents
actually show up (duh). Fixes #80193
Don't redraw the control if there is no handle created, as
the selected index might be completely invalid. Added some tests
to check for this.
2006-12-11 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Uses maximun width and height of all buttons as
button rectangle when ButtonSize specified, it looks strange but
is what happens in Win32. Fixes #80189.
2006-12-11 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Need to track undo levels ourself, since
compound actions will mess them up.
2006-12-10 Andreia Gaita <avidigal@novell.com>
* TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
SelectedIndex value is changed (even if it's not valid).
Reset SelectedIndex to 0 when the handle is created and if
the current index is invalid.
Fixes SelectdeIndex unit tests and #80128
2006-12-08 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
calls EndEdit, it needs to be called before we set current_cell to
its new value. Otherwise, we end up committing the value in the
textbox to the new cell as well. Fixes bug #80160.
2006-12-08 Chris Toshok <toshok@ximian.com>
* Form.cs (set_CancelButton): if the button's DialogResult is
None, set it to Cancel. Fixes bug 80180.
2006-12-08 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
to watch ourselves when setting the canvas size and setting the
scrollbar values.
2006-12-08 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: comment out the two MakeTransparent calls for the
time being so people using trunk (and not 1.2.2) on windows can
actually use the datagrid. This deals with bug #80151.
2006-12-08 Jonathan Pobst <monkey@jpobst.com>
* ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
Graphics.DrawImage (image, int, int, int, int) overload instead
of Graphics.DrawImage (image, int, int). GDI+ can't figure out
the dpi difference and was blurring images it drew.
[Fixes bug #79960]
2006-12-08 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs (DataGridPaintRows): handle case where
rowcnt is 0 (such as with an empty datasource), and make sure we
initialize not_usedarea.Y to cells.Y, so we don't draw over the
other areas (caption, parent row, etc, etc). Fixes bug #80095.
2006-12-08 Chris Toshok <toshok@ximian.com>
* DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
grid.
2006-12-08 Chris Toshok <toshok@ximian.com>
[ Fixes bug #80167 ]
* ThemeWin32Classic.cs: don't draw the image if the button's flat
style is FlatStyle.System.
* ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
ButtonBase.flat_style private, and switch uses of it to the public
property.
2006-12-08 Chris Toshok <toshok@ximian.com>
[ Fixes bug #80121 ]
* ThemeWin32Classic.cs: center the caption text in the datagrid
when we draw it.
* DataGrid.cs: lessen the amount we add to the caption height from
6 to 2. 6 was making it huge.
2006-12-08 Andreia Gaita <avidigal@novell.com>
* UpDownBase: Handle MouseWheel call directly instead of capturing
the inner textbox's OnMouseWheel. Fixes #80166
2006-12-08 Jackson Harper <jackson@ximian.com>
* TextControl.cs: We need to invalidate the textbox when we empty
it (how had this not been discovered before?)
2006-12-08 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Reworked the mouse down code so I could get it
to behave like MS, we now ignore the eventargs.Click and just
track state ourself, which we were already doing anyways.
- Constrain the double click handler to the double click size.
2006-12-08 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: the mousewheel code shouldn't try to scroll in a
direction if that scrollbar isn't shown. fixes bug #80158.
2006-12-08 Andreia Gaita <avidigal@novell.com>
* NumericUpDown.cs: Update value on getter. Fixes #79950
2006-12-08 Chris Toshok <toshok@ximian.com>
* MenuItem.cs: add back in the event cloning code. I didn't know
how to do it in the face of the EventHandlerList work i'd done
last week. Fixes bug #80183.
2006-12-08 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Add an invalidate to the BackgroundImage setter.
[Fixes 80184]
2006-12-07 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip*: Add some small properties reported by MoMA, fix event
firing and default properties based off of unit tests, and add some
attributes based off of the class status page.
2006-12-07 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Take HideSelection into account when determining
whether or not to show the selection.
* RichTextBox.cs: After inserting the RTF into the document move
the cursor to the beginning of the document.
2006-12-07 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Remove static ArrayList "controls" which maintained
a reference to every control created.
* Application.cs: Create a static FormCollection to maintain a reference
to every form created. Use it in places that formerly enumerated through
the controls one looking for forms.
* Form.cs: Add and remove self from above FormCollection.
2006-12-07 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
not libgdk (though it makes me wonder why I didn't have any
problems)
2006-12-07 Chris Toshok <toshok@ximian.com>
[ you had to know this was coming after that last commit...]
* XplatUIX11.cs: implement the 3 Offscreen functions in terms of
XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
XCopyArea).
2006-12-07 Chris Toshok <toshok@ximian.com>
* XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
all the behavior we need for double buffering.
* XplatUIDriver.cs: implement the 3 double buffer methods using a
client side Bitmap, just like the old Control-based double buffer
code did. The methods are virtual, so each XplatUI driver
subclass can replace the implementation to use a faster, platform
specific approach.
* Control.cs: make use of the 3 Offscreen XplatUI calls in the
double buffer code, and clean things up a bit in the process.
2006-12-06 Chris Toshok <toshok@ximian.com>
* Control.cs: reindent WndProc.
2006-12-06 Chris Toshok <toshok@ximian.com>
[ I wanna be like BenM when I grow up ]
* Hwnd.cs: create a single static Graphics object on the static
Bitmap we create. use this for our text measurements.
* Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
This was causing us to allocate a backbuffer for every control,
even when it wasn't flagged as double buffered. Instead use the
single graphics instance. This might have implications for
multithreaded applications. If we run into problems we can switch
to creating 1 Graphics per control, on the static Hwnd bitmap.
this change nets us a 7M savings in private dirty mappings when
running FormsTest.exe.
2006-12-06 Chris Toshok <toshok@ximian.com>
* ListView.cs: the BackgroundImage override is just to set
attributes. chain up to base.BackgroundImage.
* RichTextBox.cs: same.
* ToolBar.cs: same, but we need to also redraw the toolbar when it
changes, so instead a handler for BackgroundImageChanged.
* Control.cs: make background_image private.
2006-12-06 Chris Toshok <toshok@ximian.com>
* ScrollBar.cs: change the assignment of cursor to Cursor. not
sure we even need this assignment, but roll with it for now.
* Control.cs: make the cursor field private.
2006-12-06 Chris Toshok <toshok@ximian.com>
* Form.cs: we don't need to explicitly set ImeMode to
ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
behavior in the face of ImeMode.Inherit.
* ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
change the ctor's assignment to use ImeMode instead of ime_mode.
* Control.cs (get_ImeMode): don't assume DefaultImeMode ==
ImeModeInherit. Only check for the parent's imemode (and return
NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
This fixes the button unit test, which sets both ImeMode and
DefaultImeMode to ImeMode.Disable.
also make the ime_mode field private.
2006-12-06 Chris Toshok <toshok@ximian.com>
* Control.cs: make control_style private.
* TextBoxBase.cs: fix the HandleClick override. it was explicitly
setting the styles to true, then setting them to false instead of
reverting to their previous values.
also, call SetStyle on the scrollbars instead of using
control_style directly.
2006-12-06 Jonathan Pobst <monkey@jpobst.com>
* FormCollection.cs: Implement. [2.0]
2006-12-06 Chris Toshok <toshok@ximian.com>
* Control.cs: make tab_stop private.
* Label.cs: set TabStop, not tab_stop. reformat some event
add/remove methods to make them more compact.
2006-12-06 Chris Toshok <toshok@ximian.com>
* RadioButton.cs: fix TabStop handling.
2006-12-06 Chris Toshok <toshok@ximian.com>
* TextBox.cs: remove the explicit assignments to has_focus.
Control does that.
* ButtonBase.cs: remove the assignment to has_focus. Control will
manage that.
2006-12-06 Chris Toshok <toshok@ximian.com>
* ButtonBase.cs: remove all uses of is_enabled from this code.
it's always true when any of the code containing the checks is
executed.
2006-12-06 Chris Toshok <toshok@ximian.com>
* ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
with different semantics (some are present in both 1.1 and 2.0
profiles) so that we match MS's behavior in our unit tests.
2006-12-06 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Make this operation undoable.
* TextBoxBase.cs: Factor the border width into the preferred
height.
- implement Modified as per the spec.
2006-12-06 Chris Toshok <toshok@ximian.com>
* Timer.cs, Control.cs, Menu.cs: make control_tag private.
2006-12-06 Chris Toshok <toshok@ximian.com>
* Control.cs: make right_to_left and context_menu fields private.
2006-12-06 Chris Toshok <toshok@ximian.com>
* AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
Control.child_controls private. switch all uses over to
Control.Controls.
2006-12-06 Chris Toshok <toshok@ximian.com>
* System.Windows.Forms/GroupBox.cs,
System.Windows.Forms/AccessibleObject.cs,
System.Windows.Forms/ErrorProvider.cs,
System.Windows.Forms/Control.cs,
System.Windows.Forms/UpDownBase.cs,
System.Windows.Forms/ScrollBar.cs,
System.Windows.Forms/DateTimePicker.cs,
System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
System.Windows.Forms/ToolTip.cs,
System.Windows.Forms/RadioButton.cs,
System.Windows.Forms/LinkLabel.cs,
System.Windows.Forms/Splitter.cs,
System.Windows.Forms/TextBoxBase.cs,
System.Windows.Forms/ToolStripTextBox.cs,
System.Windows.Forms/ContainerControl.cs,
System.Windows.Forms/ThemeWin32Classic.cs,
System.Windows.Forms/SizeGrip.cs,
System.Windows.Forms/ToolStripDropDown.cs,
System.Windows.Forms/ScrollableControl.cs: Make Control.parent
private. switch all uses over to Control.Parent.
2006-12-06 Chris Toshok <toshok@ximian.com>
* RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
Control does this before calling emitting these events.
* TabControl.cs: same.
* ThemeWin32Classic.cs: use Control.ClientRectangle instead of
Control.client_rect.
* ButtonBase.cs: use the ClientSize property instead of the
client_size field.
* ScrollableControl.cs: same.
* Control.cs: another pass at making properties private. also,
move the initialization of tab_stop to the ctor.
2006-12-05 Andreia Gaita <avidigal@novell.com>
* TabControl.cs: Let the selected index be set freely if the
control handle is not yet created.
2006-12-05 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Revert dist_top, dist_right, and dist_bottom to
internal until I can rewrite DefaultLayout.
* ToolStrip.cs: Fix build error and some general cleaning.
* ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
Fix build errors caused by making some of Control's fields private.
2006-12-05 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Redo Insert a little so that it use IndexOf
instead of Split, this prevents it from messing up on things like
\n\n\n. Also more effecient since the split array doesn't need to
be created.
* TextBoxBase.cs: AppendText doesnt handle multiline and non
multiline text differently, this is the first of many fixes that
will make multiline/non-multiline the same thing as far as the
TextBoxBase is concerned.
- Don't split the text and insert lines, this can lose some line
endings (like is the last line a soft or hard break). Instead use
the new Insert.
- Fix an off by one when combining all the lines in the Text
getter.
- Remove separate multiline handling from the Text getter/setter.
2006-12-05 Chris Toshok <toshok@ximian.com>
* ButtonBase.cs: a few changes:
- don't reinitialize internal Control fields in the ctor when they
have the same values as Control sets them.
- don't set has_focus in OnGotFocus/OnLostFocus. Control does
this before calling those methods.
- we don't need to call Refresh for anything. use Invalidate
instead.
- OnEnabledChanged doesn't need to redraw at all - Control.cs
calls Refresh in its OnEnabledChanged.
- several of the events we were registered for in the ctor to
redraw ourselves already include calls to Invalidate in the
property setters that raise the events. remove the extra
invalidation.
- reformat a switch statement that was 83274658 columns wide.
2006-12-05 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: fix a unit test regression from a TextBox
SelectionLength return of -1 when there's no selection.
2006-12-05 Chris Toshok <toshok@ximian.com>
* Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
cleaning up some of the internal Control fields being used by
subclasses.
2006-12-05 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: fix some Simple mode regressions. Set Visible on the
listbox after AddImplicit calls since it defaults to hidden. Add a
hack to preserve requested heights across DropDownStyle changes.
2006-12-05 Jonathan Pobst <monkey@jpobst.com>
* PropertyGrid.cs: Hide FindFirstItem method from public API.
2006-12-05 Chris Toshok <toshok@ximian.com>
* DataGridView.cs: fix compiler warnings.
* PrintControllerWithStatusDialog.cs: same.
* ToolBar.cs: same.
* FolderBrowserDialog.cs: same.
* Splitter.cs: same.
* DataGridViewComboBoxCell.cs: same.
* XplatUIWin32.cs: same.
* PictureBox.cs: same.
* Win32DnD.cs: same.
* PageSetupDialog.cs: same.
* FileDialog.cs: same.
* PrintDialog.cs: same.
* DataGridTextBoxColumn.cs: same.
* DrawTreeNodeEventArgs.cs: same (and fix corcompare)
2006-12-05 Chris Toshok <toshok@ximian.com>
* TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
System.ComponentModel.EventHandlerList work.
2006-12-05 Jonathan Chambers <joncham@gmail.com>
* DrawTreeNodeEventArgs.cs: Added.
2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
* InternalWindowManager.cs: Remove an unused field.
2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
* InternalWindowManager.cs:
- Save the point where the title bar is clicked.
* MdiWindowManager.cs:
- Only allow moving of the window as long as the
clicked point on the title bar does not get out of
MdiClient's rectangle. Fixes #79982.
* MdiClient.cs:
- Added Horizontal/VerticalScrollbarVisible.
- Simplified the scrollbar sizing algorithm.
- Cache the difference in scrolled value in
H/VBarValueChanged and move the calculation out
of the for loop.
2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: Make the Console.WriteLine in WndProc
write more info.
2006-12-05 Chris Toshok <toshok@ximian.com>
* ToolStripManager.cs, ToolStripButton.cs,
ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
ToolStripSplitButton.cs, ToolStripSeparator.cs,
ToolStripRenderer.cs, ToolStripDropDownItem.cs,
ToolStripProgressBar.cs, ToolStripContainer.cs,
ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
to using System.ComponentModel.EventHandlerList.
2006-12-04 Chris Toshok <toshok@ximian.com>
* LinkLabel.cs: fix up compiler warnings.
* TableLayoutSettings.cs: same.
* TreeView.cs: same.
* ToolBar.cs: same.
* TabControl.cs: same.
* RichTextBox.cs: same.
* ListViewItem.cs: same.
* PropertyGrid.cs: same.
* DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
* ToolTip.cs same.
* TextRenderer.cs: fix up compiler warnings.
* Label.cs: same.
* Form.cs: corcompare fixes.
* PictureBox.cs: fix up compiler warnings.
* ImageListStreamer.cs: same.
* TrackBar.cs: corcompare fix.
* Control.cs: fix up compiler warnings.
* SplitterPanel.cs: same.
* NumericTextBox.cs: same.
* ImageList.cs: same.
* StatusStrip.cs: same.
* ProgressBar.cs: corcompare fix.
* ToolStripButton.cs: fix up compiler warnings.
* ToolStripStatusLabel.cs: same.
* ToolStripSplitButton.cs: same.
* ToolStripSeparator.cs: same.
* ToolStripProgressBar.cs: same.
* ToolStripDropDownMenu.cs: same
* ToolStripDropDown.cs: same.
* ToolStripDropDownButton.cs: same.
* ToolStrip.cs: same.
* ToolStripControlHost.cs: same.
* ToolStripContentPanel.cs: same.
* ToolStripDropDown.cs: same.
* ToolStripContainer.cs: same.
* ToolStripPanel.cs: same, and add "new" where we need it to work
with the new ArrangedElementCollection.
* ToolStripItemCollection.cs: add "new" where we need it to work
with the new ArrangedElementCollection.
2006-12-04 Andreia Gaita <avidigal@novell.com>
* TabControl.cs: Fix default tab selection to after TabControl
gets focus and not before. Fixes #80128
2006-12-04 Chris Toshok <toshok@ximian.com>
* DataGridTableStyle.cs: remove the gross calling of
datagrid.Refresh from here. It's a broken idea and it doesn't
work anyway.
* DataGrid.cs: instead, just register/unregister from the
DataGridTableStyle events in CurrentTableStyle. we play it
conservatively and EndEdit + CalcAreasAndInvalidate on any event,
even though some would most likely not require it. Fixes bug
#80115 (and one portion of #80117 as a side effect).
2006-12-04 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
so the textbox (if any) goes away. Fixes bug #80117.
2006-12-04 Chris Toshok <toshok@ximian.com>
* DataGridColumnStyle.cs: set the column's readonly property
initially based on the property descriptor's IsReadOnly. Fixes
bug #80044.
2006-12-04 Chris Toshok <toshok@ximian.com>
* ComboBox.cs: wrap the dropdown style changing work in
SuspendLayout/ResumeLayout. Fixes bug #79968.
2006-12-04 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Fix off by one, since these are one-based.
* TextBox.cs: Select all the text when we get focus. The TextBox
does this but the RTB does not.
2006-12-04 Chris Toshok <toshok@ximian.com>
* DataGridTextBoxColumn.cs: remove some spew.
* DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
but some part of me is saying "it shouldn't be here.." At any
rate, it fixes bug #80046. Call IEditableObject.EndEdit after
setting the value.
2006-12-04 Chris Toshok <toshok@ximian.com>
* DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
to reassign the propertydescriptor.
2006-12-04 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs:
* TextControl.cs: Remove some unused variables. Maybe this will
patch things up between mike and I.
- don't split lines less then one char wide, if the viewport is
that small text won't be visible anyways.
2006-12-04 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Default selection length is -1, need to do some
more testing on windows to see when this is used for the property.
- Redid the Lines [] property to that we properly remove soft line
breaks
- added support for preserving carriage returns
- CanUndo is not a variable like 'is undo enabled' it just returns
true if there is undo operations available.
- AppendText doesn't need to grab the last tag itself anymore,
this happens automatically when we move the cursor.
* TextControl.cs: Add CompoundActions to the undo class. This
allows combining the other operations into one big option. ie a
paste will combine { delete old, insert new, move cursor }
- Add InsertString undo operation
- New method for deleting multiline text
- Add carriage returns to lines. So we can preserve carriage
returns when text is 'roundtripped'
2006-12-04 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
minimum 0. Fixes the scrollbar exception in bug #80136.
2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiClient.cs:
* MdiWindowManager: Removed unused fields and methods.
2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
* StatusBar.cs: Update all panels when a AutoSize=Contents
panel needs updating.
* StatusBarPanel.cs: Remove twidth and only use initialize.
Fixes #80031.
2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: When a form's MdiParent is set add it directly
on top of the z-order in stead of relying on MdiClient's
ActivateChild to do it. Fixes #80135.
* MdiClient.cs:
- Remove original_order, mdi_child_list is already doing
the same thing.
- Create mdi_child_list on construction in
stead of first use (avoids a few null checks).
* MenuItem.cs: Use an already existing list of mdi children
to get the correct order of children and remove the other
redundant list.
2006-12-04 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs: cached_splitter_location is only used in
!DOUBLEBUFFER code.
* PropertyGrid.cs: implement the ComComponentNameChanged event
using Events, hoping that would fix the warning. Looks like a
compiler bug instead (#80144).
* PropertyManager.cs: remove unused method.
2006-11-04 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
include parentesis to fix expression evaluation. Fixes #79634.
2006-11-02 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs:
- Changes to fix behavior in Menu control, some reported in #80097
and other detected during behavior refactory like a select event
problems.
- Remove unneded "if's" conditions.
- Created an internal to flag when popup is active in control, we need
it because in .NET you can have menu active but without popup active
when you active menu using popup without visible items.
- Mimic win32 behavior for Select and Popup events.
- Dont open popup menu when you dont have visible subitems.
- Do nothing when click on disabled menu item.
- Some small changes to follow the coding style guidelines.
- Unselect menu only when another control gives focus. Fixes #80097.
- Remove unused code.
* MenuItem.cs: internal VisibleItems method to check if menu
theres visible subitems, it will be usefull to fix some
behavior in Menu control.
2006-11-01 Everaldo Canuto <everaldo@simios.org>
* Timer.cs: Tag property for 2.0 profile.
2006-12-01 Chris Toshok <toshok@ximian.com>
[ after removing all warning suppressions, this cleans up over 100 warnings. ]
* Win32DnD.cs: comment out some unused fields.
* XplatUIWin32.cs: comment out some unused pinvokes, and remove
some unused properties/methods.
* XplatUIX11.cs: fix MousePosition so we override the base class's
property instead of conflicting with it.
* PictureBox.cs: comment out some unused fields
* OSXStructs.cs: make some struct fields public.
* XplatUIOSX.cs: comment out some unused pinvokes, and fix
MousePosition so we override the base class's property instead of
conflicting with it.
* X11Dnd.cs: comment out some unused fields
* X11DesktopColors.cs: fix some struct field visibility to quiet
the compiler.
* X11Dnd.cs: remove some debug code.
* ThemeClearlooks.cs: comment out unused field.
* ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
* ThemeGtk.cs: comment out some unused pinvokes.
* Timer.cs: remove some unused fields.
* ThemeClearlooks.cs: comment out unused field.
* UpDownBase.cs: comment out unused field.
* DataObject.cs: comment out unused field.
* DataGridBoolColumn.cs: reomve unused field.
* DataGrid.cs: remove unused field.
* Cursor.cs: remove old ToBitmap code.
* ControlPaint.cs: remove unused method.
* ScrollBar.cs: remove unused fields.
* ComboBox.cs: remove unused field, and chain up to
AccessibleObject ctor.
* ListBox.cs: remove unused field.
* ButtonBase.cs: wrap a couple fields in NET_2_0.
* GridEntry.cs: remove unused fields.
* Binding.cs: remove unused fields.
* AxHost.cs: remove unused method.
* ContainerControl.cs: remove unused field.
* ScrollableControl.cs: remove unused fields.
2006-12-01 Chris Toshok <toshok@ximian.com>
* XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
the Where/WhereString stuff. it's easy enough to CWL
Environment.StackTrace.
* XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
unused private fields.
2006-12-01 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Do not update the view while inserting multiline
text. If we update the view we might wrap lines, before entering
the new lines, which causes the new line insertion calculations to
be totally fubared.
- Remove an old TODO
- Make debug output a little nicer
2006-12-01 Chris Toshok <toshok@ximian.com>
* ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
2006-12-01 Chris Toshok <toshok@ximian.com>
[ fix the majority of the CS0108 warnings we've been suppressing ]
* TreeView.cs: mark BackgroundImageChanged as 'new'.
* ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
to "LayoutToolBar" to quiet mcs.
* TabControl.cs: mark our ControlCollection class as 'new'.
* TextBoxBase.cs: mark some events as 'new'.
* Splitter.cs: TabStop is 'new'.
* ControlBindingsCollection.cs: mark a few methods as new since
they change the visibility from protected to public.
* RadioButton.cs: DoubleClick -> base class, and remove unused
HaveDoubleClick.
* MonthCalendar.cs: ImeMode property -> base class, and mark many
events as new.
* NumericUpDown.cs: TextChanged -> base class.
* CheckedListBox.cs: mark our ObjectCollection class as new to
quiet mcs.
* FolderBrowserDialog.cs: make HelpRequest event new and have it
muck with the base class.
* StatusBar.cs: fix some mcs warnings about Update being the same
name as a base class method.
* RichTextBox.cs: mark some events as new, and make them do things
to the base class impl.
* UserControl.cs: mark TextChanged as new, and have it manipulate
base.TextChanged.
* UpDownBase.cs: mark some things new.
* CheckBox.cs: mark DoubleClick "new", and add some text about
what we need to look at.
* Panel.cs: make the events "new", and manipulate the base
version. these are just here for attributes.
* AccessibleObject.cs: make owner private.
* Control.cs: deal with AccessibleObject.owner being private.
cache our own copy if we need it.
* Button.cs: add "new" to the DoubleClickEvent.
* ListBox.cs: no need to track our own has_focus here. let
Control.has_focus do it for us. Also some other work to clear up
warnings about not overriding base class methods of the same name.
* ComboBox.cs: clear up some warnings about not override base
class methods of the same name.
2006-12-01 Chris Toshok <toshok@ximian.com>
* Form.cs: flag a few things as "new" to quiet some of the mcs
warnings.
* AxHost.cs: same.
* PrintPreviewDialog.cs: same.
* DataGridView.cs: fix a ton of corcompare warnings. not all, but
now DGV isn't so horrible on the class status page. also, move
all events to using System.ComponentModel.EventHandlerList. my
wrists hurt.
2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiWindowManager.cs:
- Set form to active mdi child if shown,
and update the active mdi child to the next
remaining child in the z-order if the form is hidden.
* Form.cs:
- Track if the form has been visible and if its
visibility is beeing changed, so that the MdiClient
can properly decide the ActiveMdiChild. The MdiClient
cannot track this since the form can change visibility
before MdiClient is created.
* MdiClient.cs:
- Don't activate anything of the parent form is changing
its visibility.
- Rework ActiveMdiChild to only return visible mdi
children and take into account several other corner
cases.
2006-12-01 Chris Toshok <toshok@ximian.com>
* IBindableComponent.cs: new 2.0 interface.
2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
* DataGrid.cs: Font for caption area is bold by default.
2006-12-01 Everaldo Canuto <everaldo@simios.org>
* Menu.cs: Tag property for 2.0.
2006-11-01 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Adjust menu separator drawing.
2006-12-01 Chris Toshok <toshok@ximian.com>
* TreeView.cs: doh, the Begin* events should be
TreeViewCancelEventHandler.
2006-12-01 Chris Toshok <toshok@ximian.com>
* Form.cs: Form.ControlCollection already stores off the
form_owner field. don't access the base class's internal "owner"
field.
* Control.cs: make all the fields in Control.ControlCollection
private. there's no need for any internal fields here.
2006-12-01 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: call SetDataSource instead of CalcGridAreas in
OnHandleCreated. Fixes bug #80109.
2006-12-01 Chris Toshok <toshok@ximian.com>
* Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
SplitContainer.cs, Control.cs, StatusStrip.cs,
DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
do most of the work to convert our code over to use
System.ComponentModel.Component.Events for
adding/removing/dispatching events.
2006-11-30 Jonathan Pobst <monkey@jpobst.com>
* DataGridView.cs: Fix an ArgumentNullException reported
twice today in IRC.
2006-11-30 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: fix the scrollbar mouse event forwarding in the
grabbed listbox. Fixes #80036 and #80101.
2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Message.cs: Changed ToString() to match MS.
2006-11-30 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: You can still change the selected text on a read
only textbox.
* TextControl.cs: Lower magic number for wrap calculations. This
lets text get closer to the right (far) edge.
2006-11-30 Jonathan Pobst <monkey@jpobst.com>
* Control.cs: Tweak 2.0 layout properties.
* Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
* TextRenderer.cs: Add a new overload.
* ToolStrip*: Huge amount of changes and new features.
2006-11-30 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: fixes for LargeChange and Maximum to get the
scroll range correct. Fixes #79994.
2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiWindowManager.cs: Update main form's text when
a form is closed. (fixes #80038)
2006-11-30 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs:
- Fix an regression in ButtonSize.
- Get ImeMode default value change to "Disable".
- Get ShowTooltips default value change to true, default value is
"false" but after make a test in .NET we get "true" result as default.
2006-11-29 Jonathan Pobst <monkey@jpobst.com>
* ToolStripDropDown.cs: Fix for SupportsTransparency change.
2006-11-29 Chris Toshok <toshok@ximian.com>
* XplatUIWin32.cs (GetWindowTransparency): check return value of
GetLayeredWindowAttributes. if it's 0, return 1.0, as
SetWindowTransparency hasn't been called.
2006-11-29 Chris Toshok <toshok@ximian.com>
* Form.cs (set_TransparencyKey): only call SetWindowTransparency
if it's supported.
(set_AllowTransparency): reorder things a little so that the
WS_EX_LAYERED style is removed properly.
2006-11-29 Chris Toshok <toshok@ximian.com>
[ totally cosmetic eye-candy feature, fixes bug #80089 ]
* Form.cs: only call the XplatUI transparency method (get/set) if
SupportsTransparency says it's supported. Otherwise fallback to
doing nothing (in the set case) or returning the instance field we
cache (in the get case).
* XplatUIStructs.cs: add TransparencySupport flag enum.
* XplatUIDriver.cs: add abstract GetWindowTransparency, and track
change to SupportsTransparency.
* XplatUIOSX.cs: stub out GetWindowTransparency, and return
TransparencySupport.None from SupportsTransparency.
* XplatUIX11.cs: Stub out GetWindowTransparency, and return
TransparencySupport.Set from SupportsTransparency.
* XplatUIWin32.cs: implement GetWindowTransparency calling
GetLayeredWindowAttributes, and implement SupportsTransparency by
checking whether or not both
GetWindowTransparency/SetWindowTransparency are available
entrypoints. We need to do this since SetWindowTransparency is
available as of win2k, but GetWindowTransparency requires winxp.
yay win32 api.
* XplatUI.cs: Add GetWindowTransparency, and change
SupportsTransparency to allow for either/both Get/Set.
2006-11-29 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: keep from going into an infinite loop redrawing a
datagrid that has no datasource. Fixes bug #80033.
2006-11-29 Chris Toshok <toshok@ximian.com>
* MenuItem.cs: fix the NRE when we assign text (and therefore call
Invalidate) before the mainmenu has been assigned to a control.
2006-11-29 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: detect when we should be double the double click
row/column autosize stuff, although that codepath has yet to be
written. part of the work for bug #79891.
2006-11-29 Chris Toshok <toshok@ximian.com>
* Binding.cs (SetControl): fix unit test.
2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PageSetupDialog.cs: Validate the margins and set them in
PageSettings.
* NumericTextBox.cs: New class to mimic the behavior of the
textboxes used in the printing dialogs.
2006-11-29 Andreia Gaita <avidigal@novell.com>
* Form.cs: Revert previous change (remove call UpdateBounds
from form constructor), because it messes with the handle creation
order, and that one needs lots and lots of love.
* PrintPreviewDialog.cs: Revert change to CreateHandle (add check
for valid printer and throw InvalidPrinterException if document
is set but printer not valid), adding a MonoTODO. Once
handle creation is done properly, we can put this back in.
2006-11-28 Everaldo Canuto <everaldo@simios.org>
* MenuItem.cs: Create a invalidate method for menu item, to be
calling from set text, it make text changes to imadiate update
on screen. Fixes #80013.
2006-11-28 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Fixes and simplify toolbar button layout, it
fixes bug #80070 and some other problem on toolbar buttons
layout.
2006-11-28 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Paint toolbar toggle button background
with dotted brush. Fixes #79564
2006-11-28 Andreia Gaita <avidigal@novell.com>
* Form.cs: Removed call to UpdateBounds on Form
constructor, it was causing a call to CreateHandle
before it was supposed to.
* PrintControllerWithStatusDialog: Applied patch
by Chris Toshok to hide controller when there are
no printers available.
PrintDialog.cs: initialize printer settings to
null - correct DefaultValues test #5
* PrintPreviewControl.cs: Move PrintController
initialization to GeneratePreview
* PrintPreviewDialog.cs:
- Remove Preview generation from Document_set(). It is
called on OnPaint
- Throw InvalidPrinterException on CreateHandle if
a Document is set but there are no printers or
printer is not valid.
* ThemeWin32Classic: don't paint PrintPreviewControl
if there is nothing to paint
2006-11-28 Miguel de Icaza <miguel@novell.com>
* Form.cs: Add another popular method.
* TabPage.cs: ditto.
2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MenuItem.cs: Fixed a warning.
* InternalWindowManager: Fixed a warning.
2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MenuItem.cs:
- When cloning a menu also clone MdiList and clone the
window menu items properly (as the forms and menuitems
are kept in an internal hashtable, these need updating
as well)
- Rewrote the window menu code, menu items are added in the
order the forms were added to their parent, and they are
updated every time the window menu is shown (before the
list was only generated once, in the current order of the
forms, and would never be updated). A checkmark is shown
next to the item corresponding to the active mdi child.
2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIStructs.cs:
- Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
* XplatUIWin32.cs:
- Added TME_NONCLIENT to TMEFlags.
- Handles WM_NCMOUSEMOVE in GetMessage to
generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
* MdiWindowManager:
- Now merges mdi child menu to parent menu when maximized.
- Recalculate NC areas of both mdi child and mdi parent.
Fixes #79757 (4).
on window state and size changes.Fixes #79844 (3).
- Handle WM_NCCALCSIZE to properly calculate borders.
* Form.cs:
- Add/remove to the mdi containers list of mdi children
in the order they are added.
- Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
to the maximized mdi child.
* InternalWindowManager.cs:
- Only execute a click on the control buttons on the mouse up,
not on the mouse down. Show the state of the button
(was only showing Normal state, never Pressed state). The
pressed button now follows the mouse (if you click the Close
button and move the mouse over the Maximize button, the
Maximize button will be shown as pressed). Since Win32 does
not generate WM_NCLBUTTONUP if you release the button outside
of the nc area, we need to handle WM_NCMOUSELEAVE and treat
it as a mouse up.
* ThemeWin32Classic.cs:
- Draw a missing border around mdi child forms. Fixes #79844 (2).
* MdiClient.cs:
- Added a list of forms which contains the order the forms are
added to the mdi parent.
- Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
- Handle WM_NCCALCSIZE to properly calculate the 3D border.
- If the active form changes set the scrollbars to the top
of the Z order, otherwise the form could hide them.
- Scrollbars are now sized according to ClientSize, not
to Size, and they take into account the other scrollbar
to determine maximum.
2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUI.cs:
* XplatUIDriver.cs:
* XplatUIX11.cs:
* XplatUIWin32.cs:
* XplatUIOSX.cs:
- Added RequestAdditionalWM_NCMessages for windows to
opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
Currently only implemented in XplatUIWin32.
2006-11-27 Chris Toshok <toshok@ximian.com>
* Hwnd.cs: only add the hwnd to the windows hash in
set_WholeWindow and set_ClientWindow if whole_window/client_window
are not IntPtr.Zero. also, remove the unused SetObjectWindow.
2006-11-27 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: remove redundant OnDropDown call. It is called
from the ComboListBox.ShowWindow code. Fixes #79969.
2006-11-27 Chris Toshok <toshok@ximian.com>
* Hwnd.cs: remove the setters for ExposePending and
NCExposePending - noone uses them.
2006-11-27 Jackson Harper <jackson@ximian.com>
* TextControl.cs: new param for ReplaceSelection which determines
whether we select the new selection, or set the cursor to the end
of the new selection.
* TextBoxBase.cs: Use new param for ReplaceSelection. When
pasting, select the new text.
* RichTextBox.cs: Use new param for ReplaceSelection.
2006-11-27 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Set the selection to the caret after the caret
is moved, otherwise they get out of sync.
2006-11-26 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
it fixes #80015
2006-11-26 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs:
- Fix toolbar drop down arrow position.
- Fix drop down appearance when ToolBar.Appearance is normal,
it fixes #80018.
2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
* ProgressBar.cs: GetStyle fixes for 2.0 profile.
* Control.cs: Same.
* UpDownBase.cs: Same.
* ButtonBase.cs: Same.
* ScrollBar.cs: Same.
* TrackBar.cs: Same.
* PictureBox.cs: Same.
* UserControl.cs: Same.
* Label.cs: Same.
* ListControl.cs: Same.
* TextBoxBase.cs: Same.
* ListView.cs: Same.
* RichTextBox.cs: Same.
* TreeView.cs: Same.
2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
* PrintDialog.cs:
- Text label for where
- Text label comment was not shown
2006-11-23 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
* InternalWindowManager.cs:
- Handle WM_PARENTNOTIFY to activate the form
if any child control is clicked.
- The form is only sizable if not minimized.
* MdiWindowManager.cs:
- Save the IconicBounds if the form is moved.
- Rework SetWindowState, now the window bounds
are stored only if the old window state is Normal.
* MdiClient.cs:
- In SetWindowStates store the old window state if
the window is maximized and restore window state if
the window looses focus.
- Don't handle any scrollbar value changes if
initializing the scroll bars. Fixes #79771.
- Reworked ArrangeIconicWindows. Current algorithm
tests bounds agains all other minimized windows, if
any intersections create new bounds (going left to
right, bottom to top) and then test again. When
successful the bounds are saved and never computed
again. Fixes #79774.
2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
* InternalWindowManager.cs: Added HandleTitleBarUp.
2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
* NumericUpDown.cs: In .NET 1.1, user entered text is still
hexadecimal in ParseUserEdit.
2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiWindowManager.cs:
- Handle a click on the form's icon to show the
system menu (when maximized). Fixes #79775.
- Change the existing click handler for the form's
icon when not maximized to show on MouseUp.
Fixes #79776.
* Form.cs: In OnResize only layout the mdi child's
parent if it actually has a parent. Might not if
the window is closing.
2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
* MdiClient.cs: Ignore active MDI client for text of parent, if
child has no text set.
2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
* ToolBar.cs: Fixed ToString to match MS.
2006-11-22 Andreia Gaita <avidigal@novell.com>
* NumericUpDown:
- Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
update inner values on set. Fixes #79966.
- Override OnLostFocus to update value on NET 2. Fixes #79950.
- Fix hexadecimal parsing.
* UpDownBase: Override OnGotFocus and OnLostFocus to notify
parent. Fixes #79957
2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: After calling SetWindowsPos in SetBoundsCore
the actual size has to be queried, since if height /
width is negative Win32 changes it to 0.
Fixes #79999 on Windows.
* XplatUIX11.cs: Set height / width to 0 if negative
in SetWindowPos. Fixes #79999 on Linux.
2006-11-22 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Fix text redenring when button is
pressed.
2006-11-22 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Fixes behavior when menu is opened by kerboard
and later navigate by mouse. Fixes #79528.
2006-11-21 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Set default value for TabStop to false in
constructor, it fixes remaining behavior of bug #79863.
2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
* MdiWindowManager.cs:
* InternalWindowManager.cs:
- Moved a few methods specific to Mdi from
InternalWindowManager to MdiWindowManager.
Fixes #79996.
2006-11-21 Chris Toshok <toshok@ximian.com>
* XplatUIOSX.cs: stub out InvalidateNC.
* XplatUIWin32.cs: implement InvalidateNC using the call I found
at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
* XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
* XplatUIDriver.cs: add InvalidateNC abstract method.
* XplatUI.cs: add InvalidateNC.
2006-11-21 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Invalidate complete button area when pressed status
was changed.
* ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
* ThemeWin32Classic.cs: Increase vertical and horizontal position
by 1 when button is pressed.
2006-11-20 Everaldo Canuto <everaldo@simios.org>
* ToolButton.cs: Invalidate middle of DropDown button when
ToolBar theres DropDownArrows.
* ThemeWin32Classic.cs: Change position of DropDown arrow and
fix DropDown drawing operations.
2006-11-20 Chris Toshok <toshok@ximian.com>
* NativeWindow.cs: fix the formatting of functions ('{' on the
following line), and enable the thread exception dialog.
* Application.cs: remove the duplicate exception catching from
here.
2006-11-20 Everaldo Canuto <everaldo@simios.org>
* Toolbar.cs: Triggers button click event when click on icon
of dropdown ToolBarButton. Fixes #79912.
2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Theme.cs:
* ThemeWin32Classic.cs:
- Added a property WindowBorderFont to enable themeing
of mdi child windows' Text.
2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
* InternalWindowManager.cs:
* Form.cs:
* MdiClient.cs:
* MdiWindowManager.cs:
- If mdi child is maximized, set mdi parent's
text to "Parent - [Child]". Fixes #79770.
- If there is any maximized mdi child windows, only the active
window (and any new windows) is maximized, the rest are normal.
- On a WindowState change only save mdi child's window bounds
if the old window state was normal. Fixes #79774.
- The scroll bars are now calculated on hopefully all
necessary events. Fixed #79771 / #79844->6 / #79906.
- MdiClient.SizeScrollBars() now takes into account docked
controls in the parent when calculating available space.
- InternalWindowManager now always repaints the entire title
area. Fixes #79844->1/4/5.
- Added RequestNCRecalc on mdi child windowstate changes.
Fixes #79772.
2006-11-20 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
in the MouseUp handler of the listbox and move the return handling
code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
2006-11-20 Everaldo Canuto <everaldo@simios.org>
* Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
2006-11-17 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
working in 1.2.x anymore. So, updated.
2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
* NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
NumberGroupSeparator of current culture instead of assuming en-US.
Fixed bug #79967.
2006-11-17 Mike Kestner <mkestner@novell.com>
* Control.cs: Add the concept of implicit bounds setting so that
dock/undock round trips preserve explicitly set size/locations.
Fixes #79313.
2006-11-17 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
can't handle those filters. (Fixes bug #79961)
2006-11-17 Chris Toshok <toshok@ximian.com>
[ fixes the exit/crashes associated with #79835. it's clearly
suboptimal though, we need to figure out a better way to solve
this. ]
* PrintPreviewControl.cs: deal with the new invalid printer
exceptions.
* PageSetupDialog.cs: if the printer is invalid, pop up a dialog
and return false (so CommonDialog.ShowDialog doesn't actually show
the form.)
* PrintDialog.cs: enable/disable the Ok button depending on
whether or not the printer is valid.
* CommonDialog.cs (ShowDialog): only actually show the form if
RunDialog returns true.
2006-11-17 Jackson Harper <jackson@ximian.com>
* TextControl.cs: When soft splitting a line, mark it as a soft
split line. Also carry over the current line break to the next
line.
2006-11-17 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: when scrolling a window with an invalid area, we
only want to shift the part of the invalid area that overlaps the
area we're scrolling. we also don't want to clear the invalid
area unless the invalid area was entirely contained within the
scrolling area.
2006-11-16 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
also make sure to free the memory returned by XGetWindowProperty
in GetText().
* X11Structs.cs: remove the TimerEvent stuff, it's unused.
2006-11-16 Chris Toshok <toshok@ximian.com>
* XplatUI.cs: add a new super secret way to get at the totally
unsupported X11 backend.
2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
* NumericUpDown.cs: Allow lowercase letters when in hex-mode.
2006-11-16 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Allow more explicit setting of top node position
for scrollbars. Slower algo, but more accurate.
- CollapseAll should maintain the current top node.
* TextBoxBase.cs: When positioning the caret, use the line, pos
method, since the x, y method does not grab the correct tag, and
the caret height never gets set correctly. (Maybe I should just do
away with the caret having its own height, and always use the
carets current tag for height).
2006-11-16 Jonathan Pobst <monkey@jpobst.com
[Fixes 79778, 79923]
* XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
Parent to the FosterParent instead.
2006-11-16 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Need to recalc the topnode when we expand or
collapse. The scrolling methods can't handle this on their own,
since they use differences between the last scroll position, and
those difference get completely messed up since we are expanding
nodes. This problem should probably be fixed in the scrolling
methods, so they can figure out exactly where they are, but this
will slow things down a little.
* ThemeWin32Classic.cs: Special case for groupboxes with empty
strings, makes nunit-gui look a lot nicer.
2006-11-16 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: nasty, nasty, nasty changes required because of
the broken multithreaded event handling we have in here. File
this entry under "Why we should move to the new X11 backend".
Any thread can make it into UpdateMessageQueue, which gets events
from the X socket - some of which could belong to hwnds being
managed by a different thread. We can also have multiple threads
in UpdateMessageQueue at the same time, with each one reading from
the X socket. This leads to many problems, with the following
solutions:
We can't use hwnd.Queue.Enqueue anywhere in here and must use
EnqueueLocked.
The MotionNotify compression we do can't work across threads
(without locking the entire queue, perhaps) since we call
hwnd.Queue.Peek, so we just punt and don't compress motion events
unless the owning thread is the one which got the X event.
ConfigureNotify is another fun one, since it modifies the hwnd's
bounds and then enqueues the event. We add a lock to Hwnd which
is held when setting configure_pending to true (and enqueuing the
event).
There is a race wrt the wake socket. we need to make sure that
only 1 thread is waiting on that socket, or else a thread could
sleep waiting for data that never comes. It's difficult (but not
impossible) to make happen, because it seems to require something
like the following:
1. Thread 1 polls on wake_receive
2. poll returns saying there's data to be read on
wake_receive.
3. Thread 2 polls on wake_receive and immediately returns
saying there's data to be read.
4. Thread 2 reads the wakeup byte from wake_receive
5. Thread 1 attempts to read the wakeup byte from
wake_receive.
6. Thread 2 exits (due to a form closing, perhaps).
7. Thread 1 blocks forever.
Fun, eh?
Fixing the Expose handling isn't done yet, and the races inherent
in that piece of code are responsible for the drawing mistakes you
see when generating expose events in a MT app (like NPlot). This
one is the likely to be the hardest to bandaid, and it doesn't
appear to cause anything but drawing problems. The other issues
caused apps to exit or hang.
* XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
called from a different thread than the one that should be calling
these functions.
* Hwnd.cs: add some locks to be used by the XplatUIX11 code.
2006-11-15 Chris Toshok <toshok@ximian.com>
* Application.cs: null out the context's MainForm when we exit
RunLoop. Fixes a newly checked in unit test as well as the last
ODE from bug #79933.
2006-11-15 Chris Toshok <toshok@ximian.com>
* Form.cs (set_Owner): allow a null value so we can clear the
form's owner.
(Dispose): set all our owned_form's Owner properties to null, and
clear the owned_forms collection.
(WM_CLOSE): clean up this a little bit.. still not right though.
* ApplicationContext.cs: OnMainFormClosed should only call
ExitThreadCore if the main form isn't recreating. Fixes unit
test.
2006-11-15 Jonathan Pobst <monkey@jpobst.com>
[Fixes 78346]
* ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
2006-11-15 Jonathan Pobst <monkey@jpobst.com>
[Fixes 79433]
* Hwnd.cs: Add a flag to show a window, but not activate it, to
keep popup window types from stealing focus from the main form
on Windows.
* XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
* MenuAPI.cs: Set above flag to true.
2006-11-15 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
the button being released is not in wParam.
2006-11-15 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Add the released button to MouseEventArgs.Button
for the OnMouseUp call to the MenuTracker. Fixes menu clicking
on Win32.
2006-11-15 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
GetText(). untested because it's unused in our implementation.
Control.Text always caches the text, even if
ControlStyles.CacheText is not set.
fixes bug #79939.
2006-11-15 Chris Toshok <toshok@ximian.com>
[ fixes #79933 ]
* Form.cs: in Close() don't do anything after we send the WM_CLOSE
message. no hiding, no disposing.
in the WM_CLOSE handler, hide the form if it's modal.
2006-11-15 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: use AddExpose instead of sending a message.
fixes textbox border drawing.
2006-11-15 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs: keep from crashing on mouse move/down when
the property grid is empty.
2006-11-14 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Make PageUp and PageDown more like the MS
versions.
* TextBoxBase.cs: When we set the text property position the
cursor at the beginning of the document.
2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Form.cs: if a mdi child's WindowState has changed
before it's creation, it would display wrong control
buttons.
2006-11-14 Alexander Olk <alex.olk@googlemail.com>
* TreeView.cs: De-uglify TreeView checkbox checkmarks.
(Fixes bug #79927)
2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
the window gets to paint its borders even if the window is
getting smaller.
* Form.cs: on a WM_NCPAINT invalidate the entire menu,
otherwise the old control buttons would still be painted
if the window gets bigger.
* PaintEventArgs.cs: add an internal method so that the clip
rectangle can be changed.
2006-11-13 Chris Toshok <toshok@ximian.com>
[ fixes bug #79745 ]
* NotifyIcon.cs: lots of cleanup.
* X11Structs.cs: add an enum for XEMBED messages.
* XplatUIX11.cs: reindent one of the giant switch statements, it
was taking up an additional tab stop, and this file is already way
too wide for my laptop's screen.
Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
we get it, resize the hwnd to the WMNormalHints max_width/height.
2006-11-13 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Compute the value changes for the mouse wheel
teh simple way.
2006-11-13 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
#79898. force a reference to the Region to stick around so the
unmanaged object isn't collected (rendering our handle in the MSG
stale).
2006-11-13 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: fix #79917 for window managers which support
using XStoreName on the raw utf8, and we need to convert to
COMPOUND_TEXT if it's non-latin1.
2006-11-13 Chris Toshok <toshok@ximian.com>
* Form.cs (set_DialogResult): we need to set closing to false if
we're setting our result to None. fixes bug #79908.
2006-11-13 Jackson Harper <jackson@ximian.com>
* TextControl.cs: When formatting text, compute the adjusted tag
lengths correctly, using FindTag for the end tag instead of trying
to figure it out outselves.
* TreeNode.cs: Use ActualItemHeight, which is the actual height of
the item, ItemHeight doesn't work, because trees with large
imagelists use those for their height
* TreeView.cs: ActualItemHeight factors in the image height
- compute left edge of checkboxes correctly
- when expanding/collapsing move the bottom down one pixel, so we
aren't moving part of the node
2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
* XplatUIX11.cs: The PaintEventArgs is also added to the drawing
stack in PaintEventStart so that it won't get disposed by the gc
before reaching PaintEventEnd.
2006-11-13 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Don't select the word if we are on a line with
no text.
- We don't need to position the caret on mouse up, since the mouse
move handler should be doing this
- When double clicking a blank line, the caret is advanced to the
next line.
2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
* TreeNodeCollection.cs: Avoid duplicating indexer code.
2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
* ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
Fixes part of bug #79910.
2006-11-11 Alexander Olk <alex.olk@googlemail.com>
* ColorDialog.cs: Fix a NRE when adding a color to custom colors
(bug #79903). Some minor string updates to match ms.
2006-11-10 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Don't add an extension if the filename
already ends with that extension.
2006-11-10 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Use the currently highlighted node for the
BeforeSelect event.
* TextBoxBase.cs: There is no need to expand selection on
MouseMove.
- CanUndo means 'is there any undo operations', not 'is undo
allowed on this textcontrol. Fixed ClearUndo unit test.
2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
* Button.cs: only perform click when button is Selectable (so as
not to activate default buttons when they're disabled)
* Control.cs: Rewrite of the SelectNextControl and related
methods. HandleClick now selects next control if the current one
is being disabled.
* Form.cs: OnActivated selects next active control only if Load
has already occurred. If Load hasn't run, there's no point in
selecting here, Load might change the state of controls.
* FocusTest.cs: Tests marked as working again for these fixes
2006-11-10 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: a couple of fixes.
- use XInternAtoms with almost all the atoms we need to register,
instead of many, many calls to XInternAtom. should help a bit on
startup time, at the expense of making the code look a little
worse.
- fall back to setting TransientFor on TOOLWINDOW's if their hwnd
isn't reparented (which seems to be a clue that we're running fon
compiz) and they have an Owner form. This fixes the tool windows
in paint.net when running under compiz.
- when setting the opacity of a window, support both the case
where the window has been reparented and also when it hasn't been.
Since compiz/beryl doesn't seem to reparent windows, and these are
the only window managers which support translucency, I'm not sure
why we need the hwnd.reparented case at all.. but leave it in.
now we get translucent windows in paint.net under compiz/beryl.
2006-11-10 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Always return the value for FilterIndex that
was set. Internally convert it to values that make sense.
2006-11-10 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Fix drowp down arrow borders.
2006-11-10 Everaldo Canuto <everaldo@simios.org>
* Toolbar.cs: Change default value of DropDownArrows to true, the
signature still using false to make it compatible with MS but the
initial value is true. Fixes #79855.
2006-11-10 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
only available on Linux.
2006-11-09 Everaldo Canuto <everaldo@simios.org>
* Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
reduce number of calls to redraw method during toolbar creation.
2006-11-09 Mike Kestner <mkestner@novell.com>
* ListView.cs : raise SelectedIndexChanged when an item is selected
programmatically via the Item.Selected property. Gert's nice
ListViewSelectedIndexChanged test fixture now runs clean.
2006-11-09 Mike Kestner <mkestner@novell.com>
* ListView.cs : raise SelectedIndexChanged when a selected item is
removed from the item collection using Remove or RemoveAt.
2006-11-09 Mike Kestner <mkestner@novell.com>
* ListView.cs : raise SelectedIndexChanged once per selected item
for compat with MS. Fixes #79849+.
2006-11-09 Chris Toshok <toshok@ximian.com>
* TabControl.cs: initialize row_count to 0, and set it to 1 when
we need to (if we have any tab pages). Fixes unit test.
2006-11-09 Chris Toshok <toshok@ximian.com>
* Label.cs (CalcPreferredWidth): if Text == "", our preferred
width is 0, not 3. Fixes a unit test.
2006-11-09 Mike Kestner <mkestner@novell.com>
* ListView.cs : use Implicit scrollbars so that focus isn't
stolen from the listview when they are clicked. Fixes #79850.
2006-11-09 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs (OnPaint): only call DrawGridItems if we
have a root item. Fixes #79879.
2006-11-09 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs:
- Fix ToString ()
- An ArgumentException is now thrown if a wrong filter
is applied (matches ms). The previous filter doesn't change
anymore if an exception is thrown.
- Changing the FileName property also affects FileNames
* ColorDialog.cs: The length of the CustomColors array is always
16. It doesn't matter if we use a smaller array or null to update
or change the custom colors property.
* FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
for RootFolder if we get a undefined value.
2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
* StatusBarPanel.cs:
- Width is set to MinWidth if Width is smaller than
MinWidth. Fixes #79842.
- MinWidth now always overrides Width (MSDN says MinWidth
is set to Width when AutoSize = None, but they do not
behave like that).
- Style has now the the correct default value.
2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
* TrackBar.cs:
- The control is completely invalidated on
Got/LostFocus to draw the focus rectangle correctly.
- When AutoSize then height is always 45 (width for
vertical controls).
* ThemeWin32Classic.cs: The TrackBar thumb is now centered
on the mouse when moved and it doesn't move when grabbed
until the mouse moves as well. Also fixed some wrong
calculations when clicking on the thumb (control thought
click was outside of thumb and didn't grab it).
Fixes some of the issues in #79718.
2006-11-08 Everaldo Canuto <everaldo@simios.org>
* Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
2006-11-08 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs: only call ToggleValue if the item is not
readonly.
2006-11-08 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: The RichTextBox and textbox have very different
word selection methods. Implement the textbox's simple word
selection here, and let the RichTextBox override and provide it's
own.
- Don't do extra selection on mouseup
* RichTextBox.cs: Use the documents word selection algorithm, I
think ideally, this function will be pulled into the
RichTextBox.cs code someday.
2006-11-08 Chris Toshok <toshok@ximian.com>
* RootGridEntry.cs: new class to represent GridItemType.Root.
* CategoryGridEntry.cs: reformat, and add boilerplate.
* GridEntry.cs: remove the UIParent stuff - turns out .Parent
returns the UI parent anyway, and we need special handling to
implement the GetTarget method in the face of it. Also, implement
Select().
* PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
a root grid item, and use that instead of PropertyGrid.grid_items.
Also, make use of TypeConverters (and add limitted support for
ICustomTypeDescriptors) when initially populating the grid.
Arrays now show up more or less properly.
2006-11-08 Chris Toshok <toshok@ximian.com>
* Application.cs: set the modal dialog to non modal after we close
it. Fixes bug #79866.
2006-11-08 Jackson Harper <jackson@ximian.com>
* TextControl.cs: When combining lines carry over the line end
style from the end line.
- Invalidate the selected area when setting it, if it is visible.
* TextBoxBase.cs: Only rich text box can do full line selects.
- Make sure to set the cursor position when there is a click,
otherwise two clicks in separate areas could cause a large chunk
to be selected.
2006-11-07 Everaldo Canuto <everaldo@simios.org>
* Toolbar.cs: Release flat button borders when Toolbar lost focus.
Fixes #79863.
2006-11-07 Everaldo Canuto <everaldo@simios.org>
* Toolbar.cs: Prevent toolbar to open more than one tooltip at same
time. Remove tooltips when ToolButton click events. Fixes #79856.
2006-11-07 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Ignore right click for menu actions and fixes
menu border when clicked. Fixes #79846.
2006-11-07 Everaldo Canuto <everaldo@simios.org>
* XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
MouseState after create wParam for message, this fixes mouse button
equal none in mouse up events.
2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
* Control.cs : Focus() now calls Select to set the Container's
Active Control and to give it focus. To avoid infinite recursion
(because ActiveControl also calls Focus at one point), a check
is made in Focus with the help of a new internal variable
is_focusing.
2006-11-07 Mike Kestner <mkestner@novell.com>
* ListView.cs : raise OnSelectedIndexChanged in CreateHandle
if there's a selection. Fixes #79849.
2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
* PropertyGrid.cs: Avoid fixed height of help description label.
Fixes part of bug #79829.
2006-11-07 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: fix #79790 again, by using the
_NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
2006-11-07 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Fix left click checking.
2006-11-07 Chris Toshok <toshok@ximian.com>
* ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
2006-11-07 Chris Toshok <toshok@ximian.com>
* RelatedPropertyManager.cs: set property_name in our ctor. fixes
PropertyManager unit tests.
* PropertyManager.cs: make property_name internal.
2006-11-07 Chris Toshok <toshok@ximian.com>
* ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
pass a unit test. Also, don't set image_index to anything in
response to setting the ImageList property.
2006-11-07 Everaldo Canuto <everaldo@simios.org>
* ToolBar.cs: Ignore click events when mouse button is not a
left button, only accepts other button for dropdown menus.
Fixes #79854.
2006-11-07 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: make the back and parent row buttons a little less
ugly.
2006-11-07 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: When converting to Text don't put line breaks in
for soft line breaks.
* TextControl.cs: There is an initial "fake" line in the document,
this is now a soft break line, so that an extra line feed doesn't
get added to the end of documents.
2006-11-07 Chris Toshok <toshok@ximian.com>
[ fix bug #79778 ]
* CurrencyManager.cs: if the list is readonly, don't bother
checking if IBindingList.AllowNew is true.
* ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
for non-DataRowView datasources.. or rather, make it not crash.
(DataGridPaintRelationRow): make sure we limit the row painting to
the area not covered by the row header, and make our cell width at
least large enough to cover the relation area. This allows grids
that have relations but no rows to render correctly.
(DataGridPaintRowContents): same type of changes here.
(SetDataSource): move back to always calling
CalcAreasAndInvalidate. this fixes a crash/drawing problem when
navigating back through relations.
(HitTest): handle the case where we have no cells but have
relations. Right now we generate a hit in cell 0 of whatever the
row is, not sure if this is strictly correct, but it works for our
purposes.
* DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
bother doing anything.
2006-11-07 Jonathan Pobst <monkey@jpobst.com>
* StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
early version of StatusStrip. Not responsible for eaten
application or firstborn children.
2006-11-06 Chris Toshok <toshok@ximian.com>
* TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
call GetTabRect with a -1 index. Fixes #79847.
2006-11-06 Jackson Harper <jackson@ximian.com>
* TreeNodeCollection.cs: Update scrollbars after clearing.
2006-11-06 Chris Toshok <toshok@ximian.com>
* NumericUpDown.cs: fix the ToString method for some unit test
love.
2006-11-06 Chris Toshok <toshok@ximian.com>
* PropertyGrid.cs:
- set the initial SelectedGridItem if we can.
- Exclude non-mergable properties only if we're merging > 1
object. Merging 1 object isn't really merging, obviously.
- Handle PropertySort.NoSort just like Alphabetical, which is
wrong of course, but at least gets things on the screen.
* PropertyGridView.cs:
- Add method "FindFirstItem" which finds the first property grid
item, so we can select it by default.
- make use of GridEntry.CanResetValue.
- Don't call RedrawBelowItemOnExpansion here anymore, the
individual GridEntry's will do that.
- Remove the ITypeDescriptorContextImpl internal class.
* GridEntry.cs:
- this class needs to implement ITypeDescriptorContext, as it's
what MS's PropertyDescriptorGridEntry does, which means we can
remove the ITypeDescriptorContextImpl internal class from
PropertyGrid.cs. This fixes the crashing portion of bug #79829.
- keep a reference to our PropertyGridView, and move the call to
RedrawBelowItemOnExpansion here from PGV. This means
programmaticly setting Expanded actually does something visible.
- add a CanResetValue() function which takes into account our
possibly multiple "selected_objects" in the merged case. Shifting
PropertyGridView to use this method fixes another unreported
crasher found running the test for #79829.
- when Top or Bounds is updated, make sure the PropertyGridTextBox
is updated to reflect this.
* CategoryGridEntry.cs: the ctor takes the PGV now.
2006-11-06 Jackson Harper <jackson@ximian.com>
* TextControl.cs: These are 1 based.
* TextBoxBase.cs: When setting the selected text, don't change the
selected text tags, this is done by ReplaceText, just position the
cursor at the end of the new text.
2006-11-06 Alexander Olk <alex.olk@googlemail.com>
* ListView.cs: Allow label edit only when, when LabelEdit is
set to true.
2006-11-06 Jackson Harper <jackson@ximian.com>
* TextControl.cs: If a suitable wrapping position isn't found,
just wrap right in the middle of a word.
2006-11-06 Alexander Olk <alex.olk@googlemail.com>
* ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
bug #79820.
2006-11-06 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Can't use the VisibleCount property when setting
scrollbar heights, because this doesn't take into account whether
or not the horz scrollbar just came visible.
2006-11-05 Everaldo Canuto <everaldo@simios.org>
* MenuAPI.cs: Deactivate menu on mouse up when menus it is already
activated. Fixes #79369, #79832.
2006-11-05 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
had to remove support for links that point to a directory. FileInfo
returns no usefull information (means, the directory they point to)
for such links. Replaced some empty string ("") with String.Empty.
2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
* TreeNodeCollection.cs: To match MS, in 1.0 profile throw
NullReferenceException when attempting to remove node that is not in
collection. Throw NullReferenceException when null is passed to
Remove. Allow first element of the collection to be removed. Fixes
bug #79831. In GetEnumerator ().Current return null if positioned
before the first element of the collection. In GetEnumerator ().Reset,
position before first element of the collection.
2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
* PropertyGrid.cs: To match MS, remove default title and description
for panel. Fixed tooltips for Categorized and Alphabetic toolbar
buttons.
2006-11-04 Chris Toshok <toshok@ximian.com>
* Theme.cs: add a Clamp method, just for kicks.
* ThemeWin32Classic.cs: clamp all color components to [0..255].
2006-11-04 Chris Toshok <toshok@ximian.com>
* Form.cs: if the form isn't visible, Close() does nothing.
2006-11-03 Chris Toshok <toshok@ximian.com>
* Form.cs (Close): if the form is modal, don't Dispose of it, only
Hide it.
(WndProc): don't Dispose after handling the WM_CLOSE message.
* Application.cs (RunLoop): toplevels is a list of Forms, so treat
them as such, instead of using casts from Control to Form. Also,
don't Dispose of the modal dialog when we fall out of the loop -
Close() it instead.
fixes bug #79813.
2006-11-03 Chris Toshok <toshok@ximian.com>
* Control.cs (Dispose): only go through the dispose thing if we're
@disposing, and we haven't already been disposed. Fixes bug
#79814.
* Form.cs: no reason to call "base.Dispose()" here instead of
"Dispose()".
2006-11-03 Mike Kestner <mkestner@novell.com>
* ComboBox.cs : use ToString instead of casts in AddItem for
sorting functionality. Fixes #79812.
2006-11-03 Chris Toshok <toshok@ximian.com>
* Application.cs: pave the way for actually using the thread
exception dialog. it's ifdefed out at the moment.
2006-11-03 Chris Toshok <toshok@ximian.com>
* ThreadExceptionDialog.cs: until we get a better layout, actually
hide the details textbox and label when we shouldn't see them.
2006-11-03 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Don't bail from the scrollbar calcs for non
multiline textboxes anymore. This method also determines the
width/height of a textboxes canvas area.
- Sorta a revert of the last patch. For multiline just position
the controls, then bail. This way the scrollbar width won't be
altered.
2006-11-03 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
it dont need. Fixes #79537.
2006-11-02 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
send the status after firing the DndOver event.
2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
* TrackBar.cs: Now orientation only switches height / width if
the control's handle is created (Win32 does it like this). Also
fixed a typo in ToString() for a test to pass, changed the
exception thrown in set_LargeChange and set_SmallChange to
match Win32 behaviour, and added TrackBar tests to the unit
tests.
2006-11-02 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
not _NET_WM_STATE_NO_TASKBAR.
2006-11-02 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Increment count by one, since in the update view
count - 1 is used.
2006-11-02 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Use client rectangle not bounds for checking if
the mouse is in the client rectangle (duh).
2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
* TrackBar.cs: Fixed trackbar jumping around when clicking
on it - the trackbar was not detecting correctly at which
side of the thumb the click was done. (fixes #79718)
2006-11-02 Everaldo Canuto <everaldo@simios.org>
* ListBox.cs: scroll visible area when change SelectedIndex to
a non visible area. Fixes #79481.
2006-11-01 Jackson Harper <jackson@ximian.com>
* TextControl.cs: When replacing the selection move the selection
start/end/anchor to the end of the new text.
2006-11-01 Jackson Harper <jackson@ximian.com>
* XplatUIWin32.cs: When setting the parent change the controls
visibility to it's visibility flag, not to it's old parents
visibility (.Visible walks the parent chain).
2006-11-01 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: revert the #79790 fix, as the simple.
XSetTransientForHint fix breaks paint .net's tool windows. more
work needed for that one.
2006-11-01 Chris Toshok <toshok@ximian.com>
* ScrollBar.cs: throw ArgumentException instead of Exception in
LargeChange/SmallChange setters. fixes unit tests.
2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
* ContainerControl.cs: reverted rev.67183 (which was itself
a reversion of rev.66853... eh).
* Control.cs: Fixes Reflector hang by changing Focus() call
to what it was before rev.66643 (calling Select() here sets
ActiveControl, which in some situations calls back Focus and
eventually does a stack overflow). Temp fix.
Changes to GetNextControl() to not look for children to select when
parent cannot be selectable (so it looks for siblings instead)
2006-10-31 Mike Kestner <mkestner@novell.com>
* CheckedListBox.cs : off by one error in returned index from
ObjectCollection.Add. Fixes #79758.
2006-10-31 Chris Toshok <toshok@ximian.com>
* UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
calls for the textbox/spinner, to keep from recursing to the point
where we crash. Fixes #79760.
2006-10-31 Chris Toshok <toshok@ximian.com>
* ListControl.cs (set_SelectedValue): don't throw exceptions on
null/"" value, just return. matches ms's behavior and fixes some
failing tests.
2006-10-31 Chris Toshok <toshok@ximian.com>
* Control.cs (set_Capture): make a logic a little easier to
follow.
* XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
if it's being destroyed. A necessary fix surely, but a bandaid
also, to fix the stuck capture problem in bug #78413.
2006-10-31 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: fix a couple of compiler warnings, and follow the
convention of clearing hwnd.ClientRect when we set the
width/height (so it'll be recalculated by Hwnd).
2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
* ContainerControl.cs: reversed Contains check from
ActiveControl due to hanging problems. This fix
partly regresses #79667 (button does not have
initial focus), so this might be a symptom for
a larger parenting problem (set_ActiveControl
is being called but the child control does
not have the parent set yet?)
2006-10-31 Mike Kestner <mkestner@novell.com>
* MenuAPI.cs : fix keynav when menu is click activated.
2006-10-31 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip*: Version 0.2.
* MenuStrip.cs: Version 0.1.
* Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
2006-10-30 Chris Toshok <toshok@ximian.com>
[ fixes the oversized notify icon issue in bug #79745 ]
* NotifyIcon.cs: scale the icon down to the size we're given by
the XplatUI layer (this would be faster if we did it once instead
of whenever we paint..) Also, remove the WM_NCPAINT handling,
since it's never invoked.
* XplatUIX11.cs: the gnome and kde systrays use icons that are 24
pixels high by default, so let's hardcode our systray icon to that
size. The SYSTEM_TRAY protocol should really have a way for
client apps to query for the correct icon size.. but oh well. A
couple of patches to deal with the screwy client_window ==
whole_window notifyicon stuff (we don't want to PerformNCCalc, for
instance, and also make sure we don't XSelectInput twice).
2006-10-30 Chris Toshok <toshok@ximian.com>
* Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
recreating forms. Control recreation is the bane of my existence.
Fix it in a way that keeps everyone happy.
2006-10-30 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
just non-CHILD ones. otherwise sometimes scrollbars end up with
client_windows not being resized to the proper size (ReportBuilder
shows this extremely well).
2006-10-30 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
for non-WS_EX_APPWINDOW windows. This is what keeps them from
showing up in the gnome taskbar. Fixes bug #79790.
2006-10-30 Chris Toshok <toshok@ximian.com>
* ApplicationContext.cs: guard against a NRE.
* Application.cs: null out the old MainForm for the context, so we
don't try to use it again once it's disposed. Fixes bug #79783.
2006-10-30 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (set_DataSource, set_DataMember): if we have a
BindingContext, set the data source directly, otherwise do the
lazy approach - the actual ListManager will be created when we get
a BindingContext. Fixes bug #79700.
2006-10-30 Jonathan Pobst <monkey@jpobst.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
XplatUIX11.cs: Remove old 2 parameter SetVisible.
* Control.cs: Use the new 3 parameter SetVisible with activate = true.
2006-10-30 Jonathan Pobst <monkey@jpobst.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
of SetVisible that allows a window to be shown, but not activated.
This is needed on Windows for MenuStrip, and can probably be used
with MainMenu and ComboBox to fix the focus stealing issues on
Windows.
* XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
2006-10-30 Alexander Olk <alex.olk@googlemail.com>
* PictureBox.cs: Fix the output of the ToString method.
2006-10-29 Chris Toshok <toshok@ximian.com>
* Control.cs (get_TopLevelControl): fix bug #79781.
2006-10-29 Chris Toshok <toshok@ximian.com>
* ListControl.cs (set_DataSource): throw Exception here, not
ArgumentException, to match MS behavior.
2006-10-29 Chris Toshok <toshok@ximian.com>
* Form.cs: remove the try-catch's around calls to GetWindowState.
We can just check the return value.
* XplatUIX11.cs: don't throw exceptions from GetWindowState.
Instead return -1.
* XplatUI.cs: Add note about additional return value for
GetWindowState.
2006-10-29 Chris Toshok <toshok@ximian.com>
* Control.cs (CreateHandle): when we create our handle, we also
create the handles of our child controls. Fixes one of the
Control unit tests (CH11).
2006-10-28 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
2006-10-28 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs: A little speedup.
2006-10-27 Chris Toshok <toshok@ximian.com>
* Control.cs: implement Control.FromChildHandle in a way that
matches the docs (and fixes the failed test.)
2006-10-27 Chris Toshok <toshok@ximian.com>
* DataGridTableStyle.cs: reproduce buggy MS behavior (with
comments).
* DataGrid.cs: implement ResetForeColor such that the tests
succeed.
2006-10-27 Chris Toshok <toshok@ximian.com>
* ToolBarButton.cs: setting text/tooltiptext to null results in it
being set to "". Fixes bug #79759.
2006-10-27 Jackson Harper <jackson@ximian.com>
* TextControl.cs: We need to clear the entire selection area when
setting the start, otherwise multiline selections are still
visible.
2006-10-26 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs:
- ifdef all the code specific to the double
buffer case, and provide some alternatives in the non-doublebuffer
code, which makes heavy use of XplatUI.ScrollWindow to move things
around without having to invalidate (and cause flicker). There
are still some drawing problems in the non-doublebuffered case, so
DOUBLEBUFFER is defined by default.
- Fix the way dropdowns are handled. now we explicitly watch for
the events which might cause the dropdown to close, and break out
of the nested event loop there. This gets rid of all Capture
code, at the expense of the Msg special casing. Seems to work,
though, and fixes bug #79743.
2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Control.cs: SetIsRecreating now recreates implicitly added
child controls as well. Finally fixes #79629. The flag passed to
SetIsRecreating has also been removed since it wasn't used.
2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PageSetupDialog.cs: Clean some code, fix some bits,
add some checks, and add a printer sub-dialog.
2006-10-26 Chris Toshok <toshok@ximian.com>
* PropertyGrid.cs: make set_SelectedObject call
set_SelectedObjects, and move the duplicate logic to the
SelectedObjects setter. Also, raise SelectedObjectsChanged.
* PropertyGridView.cs: hide the textbox when we get a
SelectedObjectsChanged event.
Fixes bug #79748.
2006-10-26 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs: deal with the type converter not supporting
GetStandardValues() or GetStandardValues() returning null, which
is does in the default case. Fixes #79742.
2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
* CheckedListBox.cs: nunit no longer crashes when selecting
Project/Edit menu option
2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
* MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
is no menu selected. fixes #79739
2006-10-25 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs: factor out the splitter invalidation code
into the SplitterPercent setter, and for kicks implement the
Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
amount in either direction.
2006-10-25 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs: do some cleanup of the brush used to draw
text - read only fields should be grayed out. not sure how to do
this with the textbox, though. but the textbox's should also be
readonly now at least. Also, hide/show the textbox when resizing
the control.
* CursorConverter.cs: use System.Reflection when getting the
properties of Cursors, as TypeDescriptor.GetProperties isn't
returning static properties.
2006-10-25 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs: factor out the up/down handling, and reuse
it for page up/down. also add End/Home support.
2006-10-25 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs:
- ensure the selected grid item is visible in the scrolled area,
fixes bug #79572.
- fix Keys.Down handling when you're on the last item in the
propertygrid.
2006-10-25 Mike Kestner <mkestner@novell.com>
* MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
clicks too. Fixes #79725.
2006-10-24 Chris Toshok <toshok@ximian.com>
* PropertyGrid.cs: use property.Converter instead of
TypeDescriptor.GetConverter(property.PropertyType), so we catch
TypeConverters declared on the property as well as on the
PropertyType. Fixes bug #79678.
2006-10-24 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs, Mime.cs:
Fallback to the default platform handler if no shared mime info
stuff exists (fixes #79693).
2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
* ContainerControl.cs: Incorrect contains check in ActiveControl
from previous fix (duh).
2006-10-20 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs: the dropdown should be MIN(number of items
in list, 15). Fixes #79551.
2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
Fixes #79384, #79394, #79652, #79667
* Application.cs:
- Modal windows are now destroyed in the proper order for windows
* ContainerControl.cs:
- ActiveControl setter has more conditions on when to return:
- if we're reselecting the active control, but it actually
didn't have focus (window hidden or some such), it runs
- if the active control being selected doesn't actually
exist in the container, it returns
* Form.cs
- The ShowDialog now gets the current form as the owner when
invoking without parameters, and correctly activates the owner
when returning
* MessageBox.cs
- MessageBox now catches the Escape key to exit
2006-10-20 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs: fix a number of issues (bug #78565, and
most of bug #79676):
- you can navigate around the property grid with the arrow keys.
- the dropdown is sized properly when the pg has a vertical
scrollbar.
- fix the indentation for subentries, and properly select the
entire label rect.
- fix the gray bar's drawing (only draw it to the last element,
not for the height of the control. Also make sure we draw that
last horizontal grid line.
- use the same mechanism the datagrid uses wrt the editing textbox
when scrolling/resizing/etc. Namely, we hide it first, do the
operation, then show it again (if it's still visible).
- aggressively remove a lot of unnecessary refreshes (and also
calls to Invalidate(). call more limited variants, and only redraw
what we need.)
* PropertyGrid.cs:
- when we're populating the merged collection, fill in the UI
parent with either the passed in item, or the category item we
create.
- remove the Refresh call from the BorderHelpControl.OnSizeChanged.
* GridItem.cs: drop some fully qualified names.
* GridEntry.cs: add a "UIParent", which is basically the parent
treenode.
* GridItemCollection.cs: add an IndexOf method.
2006-10-20 Mike Kestner <mkestner@novell.com>
* MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
a working win32 NC invalidation mechanism, we can't invalidate
menus. [Fixes #79705]
2006-10-20 Mike Kestner <mkestner@novell.com>
* ListBox.cs : don't update the VScrollbar if the list is empty,
just hide it. [Fixes #79692]
2006-10-20 Jackson Harper <jackson@ximian.com>
* RichTextBox.cs: Handle some special chars better, and don't skip
the entire group when we encounter a special char that we don't
handle correctly.
2006-10-18 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs: address a number of issues from bug #79676,
mostly of the cosmetic variety.
- The highlight rectangle for indented items not extends all the
way to the left.
- Indented items aren't indented so much.
- the dropdown is properly sized width-wise if the pg has a
vertical scrollbar.
2006-10-18 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
systray stuff is rather convoluted to begin with.
systray icons are a single window for some reason (that I haven't
figured out yet), and for them, client_window == whole_window.
Given the way the tests are structured elsewhere to determine
which paints are pending (client vs. nc), that situation will
always yield PAINT, not NCPAINT. So, if we have a pending
nc_expose and no pending expose, remove the hwnd from the paint
queue, and also set nc_expose_pending to false, to keep us from
blocking further expose's adding the hwnd to the paint queue.
phew. like i said, a rather convoluted change. Fixes the
notifyicon repaint issues in bug #79645.
2006-10-18 Chris Toshok <toshok@ximian.com>
* Form.cs: when getting the backcolor of the form, don't get
base.BackColor, as this allows parents to influence the background
color. This breaks mdi forms. Instead, if the background_color
is empty, return the default.
2006-10-18 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: change some debug ifdefs, and return XGetParent
to being private instead of internal static.
* Control.cs: remove all the stupid ParentWaitingOnRecreation
crap, it wasn't working for more deeply nested controls anyway,
and we already have the is_recreating flag - use that instead.
Before calling DestroyHandle in RecreateHandle, recurse through
the control tree setting it to true. this returns the recreate
code to much of its original simplicity, while now guaranteeing we
actually recreate everything we're supposed to. This change gets
fyireporting actually showing mdi children.
2006-10-17 Chris Toshok <toshok@ximian.com>
* Form.cs: remove some debug spew, and collapse some duplicate
code at the end of SetClientSizeCore.
* XplatUIX11.cs:
- add some more debug spew here too wrt Destroy handling.
- don't call hwnd.Dispose in DestroyWindow, it's effectively done
in Control's handling of WM_DESTROY.
- Remove the handling of zombie window DestroyNotifies from the
event loop - we don't need it. Now the only DestroyNotifies we
actually handle are ones generated by X.
- When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
match gtk's (functioning) handling of this. This keep metacity
from leaving droppings in the form of wm borders with no window
contents all over the place.
* Control.cs:
- add a bunch of debug spew wrt control recreation.
- fix a bug where we weren't tracking Visible properly on
recreated hwnds.
- fixed the WM_PAINT double buffer handling to support re-entrant
calls (yes, i know it's gross, but it's happening to us).
2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
* ThemeWin32Classic.cs: changed drawing of selected days
to make them look better.
2006-10-16 Chris Toshok <toshok@ximian.com>
* Hwnd.cs: replace the user_data/client_dc/non_client_dc with
drawing_stack. Nuke the ClientDC/NonClientDC properties.
* XplatUIX11.cs: move away from using hwnd.client_dc and
hwnd.non_client_dc and on to a stack of dc's (and in window's
case, PAINTSTRUCT's), so we can deal with nested Paint calls
without puking or not disposing of Graphics objects.
* XplatUIOSX.cs: same.
* XplatUIWin32.cs: same.
2006-10-03 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Don't call on_directory_changed inside
OnSelectedIndexChanged (it changes the SelectedIndex too).
Instead move it to OnSelectionChangeCommitted.
2006-10-13 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: more Destroy work. the current code does the
following things, in order:
1. Enumerates all handles of all controls at or below the one
being destroyed, in pre-order. As it is doing this, it marks the
handles as zombie and clears all references to them.
2. calls XDestroyWindow on the window passed in.
3. SendMessage's WM_DESTROY to all he handles in the accumulated
list.
2006-10-13 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: set hwnd.zombie to true before calling
SendMessage (WM_DESTROY). this keeps us from marking the new
window a zombie, and also keeps us from calling sendmessage at
all.
2006-10-13 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Do not show the caret and selection at the same
time. Reduces ugliness by 35%.
2006-10-13 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
zombie after we do the recursive call, so we actually do call
SendMessage on the children controls.
(GetMessage): if we find a pending paint event for a zombie hwnd,
remove the hwnd from the paint queue, or else it will always be
there (and we'll effectively loop infinitely)
2006-10-13 Mike Kestner <mkestner@novell.com>
* MenuItem.cs : add Selected format under keynav too.
Fixes #79528.
2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
* PropertyGrid.cs: Fixed some NRE's and small difference between our
implementation and that of MS.
2006-10-13 Chris Toshok <toshok@ximian.com>
* Control.cs (OnInvalidated) only futz with the invalid_region if
the control is double buffered. this fixes the apparent hang in
the ListView unit tests. Someone needs to make the
BeginEndUpdateTest not call OnInvalidated 15004 times, though..
2006-10-13 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs:
- do a little refactoring so that only one place calls
dropdown_form.Hide, and that is CloseDropDown. make everywhere
else call that. Also make it Refresh, since there are redraw bugs
otherwise (we should take a look at that...)
- do a little more refactoring work to share the body of code
involved with the drop down. it was duplicated in the code
dealing with the listbox handling and in the code dealing with the
UITypeEditors.
- add a Capture to the dropdown form's control once it's
displayed, and add a MouseDown handler that checks to make sure
the position is inside the control. If it's not, close the
dropdown. This fixes #78190.
- in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
if the value is different than the initial value.
2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
* Control.cs: see #78650
- Fixed GetNextControl for several cases:
- Changed FindFlatForward to return
correct sibling control when more than one
control has same TabIndex as the currently
focused one.
- Changed FindFlatBackward to loop children
from last to first and apply same logic as in
FindFlatForward
- Changed FindControlForward to search for
children when control is not a container
but has children, or search for siblings if
control is a container...
- Changed FindControlBackward to continue
searching for child controls when hitting
Panel-like parents
- Fixed Focus method to update ActiveControl
(FocusTest.FocusSetsActive failure)
* TabControl.cs:
- Focus rectangle now refreshes when gaining
or losing focus
- Removed grab for Tab key on IsInputKey that
was keeping tab navigation from working (#78650)
2006-10-13 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs:
- Rewrite SetPropertyValue to loop over SelectedGridItem's
SelectedObjects.
- Deal with GridItem.Value == null a few places.
* PropertyGrid.cs:
- replace the PopulateGridItemCollection with a pair of methods
which compute the intersection of all the properties in the
SelectedObjects array. Fixes #79615.
- Throw ArgumentException from set_SelectedObjects if there's a
null in the array.
- Add GetTarget method which can be used to traverse up the
GridItem.Parent chain. It depends on the assumption that
selected_objects for different GridEntries are always in the same
order (a safe assumption). Use this method and loop over all the
selected objects in the entry when calling RemoveValueChanged and
AddValueChanged.
* GridEntry.cs: Make this handle multiple selected objects.
.Value returns null if not all the selected objects share the same
value.
2006-10-12 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
ToolStripTextBox.cs: Add accessibility, fix attributes/API and
add additional functionality.
2006-10-12 Mike Kestner <mkestner@novell.com>
* ErrorProvider.cs : new ToolTipWindow ctor sig.
* HelpProvider.cs : new ToolTipWindow ctor sig.
* ToolTip.cs : remove ToolTip param from Window sig since it is
not used.
* ToolBar.cs : add tooltip support. Fixes #79565.
2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
* ComboBox.cs: move the events in set_SelectedIndex to
after the call to HighlightIndex in order to avoid
possible recursion and subsequent problems with the call
to HighlightIndex and include a range check in
set_HighlightIndex. Fixes #79588
2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
* MonthCalendar.cs: When FirstDayOfWeek is default set firstday
to ui thread's settings instead of sunday.
* ThemeWin32Classic.cs: Localize the day string. Fixes #79563
2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
* DateTimePicker.cs
* MonthCalendar.cs
* ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
and implement missing functionality (selecting different parts
of the date and edit them individually with the keyboard).
2006-10-11 Chris Toshok <toshok@ximian.com>
* Control.cs (OnInvalidated): fix NRE relating to last change.
2006-10-11 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
atoms in _NET_WM_STATE here if the window is maximized. We need
to do this because we're *replacing* the existing _NET_WM_STATE
property, so those atoms will be lost otherwise, and any further
call to GetWindowState will return Normal for a window which is
actually maximized. Fixes #79338.
2006-10-11 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Special case for setting selection end to
selection start, we basically kill the anchor.
- some todo comments.
2006-10-11 Chris Toshok <toshok@ximian.com>
* Control.cs: switch to using an "invalid_region" to track which
parts of the image buffer need updating. This is more code than
the simple fix from r66532. That version just attempted to always
fill the entire buffer on redraw, which turns out to be
inefficient when invalidating small rectangles. This version
simply adds the invalid rectangle to the invalid region. When we
get any WM_PAINT message we see if it can be filled using the
image buffer, and if it can't (if the paint event's clip rectangle
is visible in the invalid region) we first fill the image buffer.
So, the image buffer is still a cache, we just fill it lazily.
* PaintEventArgs.cs: remove the SetClipRectangle method, we don't
need it any longer.
2006-10-11 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (SetWindowPos): we need to update both position as
well as size after calling XMoveResizeWindow. This keeps us from
ignoring future SetWindowPos calls. Fixes the disappearing
DateTimePicker in the ToolBarDockExample from bug #72499.
2006-10-11 Chris Toshok <toshok@ximian.com>
* TextBoxBase.cs: reorder things a bit when it comes to
resizing-causing-recalculation. we were recalculating the
document when our position was changed, which shouldn't happen.
We only care about size changes. Clear up some more redundant
recalculation calls while I'm at it. This makes the toolbar dock
example snappy when you're just dragging toolbars around (since it
causes a relayout whenever you move one.)
2006-10-11 Chris Toshok <toshok@ximian.com>
* ToolBarButton.cs (get_Rectangle): this only returns
Rectangle.Empty if Visible == false, or Parent == null.
Parent.Visible doesn't matter.
2006-10-10 Chris Toshok <toshok@ximian.com>
* Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
by .net 1.1, so switch to an internal method instead.
2006-10-10 Chris Toshok <toshok@ximian.com>
* Control.cs (WM_PAINT): when a control is double buffered we draw
initially to the ImageBuffer and then copy from there. But when a
parent control which has child controls is double buffered, the
initial drawing doesn't encompass the entire ClientRectangle of
the parent control, so we end up with uninitialized bits (this is
easily seen by dragging the top toolbar in
wf-apps/ToolBarDockExample to the right, quickly). The fix is to
manually set the ClipRectangle of the paint_event (only the one we
use to populate the ImageBuffer) to ClientRectangle. Fixes more
of the nastiness in bug #72499.
* PaintEventArgs.cs: Add an internal setter for ClipRectangle,
which we use in Control.cs's WM_PAINT handling.
2006-10-10 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Finish off the autoscrolling stuff.
2006-10-10 Chris Toshok <toshok@ximian.com>
* Cursor.cs: Apply a slightly different patch to the one suggested
in #79609.
2006-10-10 Jackson Harper <jackson@ximian.com>
* MenuItem.cs: Make sure to put the mdi child in the hashtable,
not the parent form.
* TextControl.cs: use difference in old line count vs new count to
calculate how many lines were added, this takes into account soft
line breaks properly.
2006-10-10 Chris Toshok <toshok@ximian.com>
* LinkLabel.cs: don't call MeasureCharacterRanges against a
rectangle located at 0,0 and the size of the text. Use
ClientRectangle instead. This fixes rendering of non-left aligned
link labels.
2006-10-10 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: When we set the selection start position the
caret.
* TextControl.cs: Need to update the caret when we decrement it to
zero.
- Make sure that the selection_visible flag gets reset to false if
the selection isn't visible. Before this you could get it set to
visible by changing the selection start, then changing the end to
equal the start.
2006-10-09 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Don't update scrollbars when we aren't visible.
* TreeNodeCollection.cs: Only need to update scrollbars if being
added to an expanded visible node or the root node.
2006-10-09 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (SendMessage): fix NRE.
2006-10-09 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Implement horizontal autoscrolling.
* TextControl.cs: Add a movement types that allows moving forward
and backwards without wrapping.
2006-10-09 Mike Kestner <mkestner@novell.com>
* ListViewItem.cs : layout changes for wrapped LargeIcon labels
with focus "expansion" of labels. Fixes #79532 and then some.
* ThemeWin32Classic.cs : add LineLimit to ListView label format
when wrapping.
2006-10-09 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Set the default max values to MaxValue since
we use the scrollbar for autoscrolling and the default value is
100. If we don't do this the caret won't keep up with typing
after about 18 characters.
* TextControl.cs: Make sure the selection is offset by the
viewport x. This fixes selection when using auto scrolling.
2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
* Form.cs: The active control should be selected after the
OnLoad so that any child control initialization that affects
the selection is done. Fixes #79406
2006-10-06 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: This is perhaps a dangerous change, but it seems
to have no evil effects.
- Stop selecting StructureNotifyMask on non-toplevel windows.
The only way children should be resized is by using the SWF api,
and we already send WM_WINDOWPOSCHANGED messages in those cases.
Toplevel windows can be interacted with via the window manager,
and so we keep the input mask there.
The other event StructureNotifyMask gives us (that we care
about) is DestroyNotify. The code is already structured such
that it assumes we won't be getting a DestroyNotify event for
the window we pass to XDestroyWindow (which is what
StructureNotifyMask is supposed to guarantee.) So, that code
shouldn't be affected by this either.
- Stop selecting VisibilityChangeMask altogether.
We weren't doing anything with the resulting events anyway.
This vastly reduces the number of X requests and events we see
when resizing/laying out a large ui.
2006-10-06 Chris Toshok <toshok@ximian.com>
* ScrollableControl.cs (DisplayRectangle): we need to take into
account the DockPadding regardless of whether or not auto_scroll
== true. rework this slightly to this effect, and fix bug #79606,
and part of #72499 (you can now see the drag handles and drag
toolbars around).
2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
* ListViewItem.cs: Collections of selected and checked items are now
dynamically rebuilt. Whenever an item is (un)checked or (de)selected
we mark the collection "dirty".
* ListView.cs: Marked collections readonly. Modified UpdateSelection
to only clear SelectedItems when a new item is selected and MultiSelect
is enabled. CheckedItems and SelectedItems now subscribe to Changed
event of ListViewItemCollection, and mark its list dirty whenever
that event is fire. This allows us to return selected/checked items
in the same order as they are in the Items collection. This matches
the MS behavior.
2006-10-06 Chris Toshok <toshok@ximian.com>
* NotifyIcon.cs (HandleMouseUp): only show the context menu on
right mouse clicks. Fixes bug #79593.
2006-10-06 Chris Toshok <toshok@ximian.com>
* Splitter.cs: doh, fix splitters that don't want to cancel the
movement when you drag them. Also, impose the limits on the
values we send to the SplitterMovingEvent. Fixes #79598.
2006-10-06 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
since we use this for auto scrolling also.
2006-10-05 Chris Toshok <toshok@ximian.com>
* DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
beginning to think that most datagrid column types don't need this
method. Fixes bug #79392.
2006-10-05 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: move back to a more lazy scheme for creating the
CurrencyManager, so we aren't updating it every time you set
either DataSource or DataMember. Also, don't call
RecreateDataGridRows if the currency manager hasn't changed.
2006-10-05 Chris Toshok <toshok@ximian.com>
* ComboBox.cs: by the time the OnSelectionChangeCommitted event is
emitted, SelectedIndex should already be updated. Fixes bug
#78929.
2006-10-05 Jonathan Pobst <monkey@jpobst.com>
* ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
ToolStripTextBox.cs: Initial commit.
* ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
2006-10-05 Jackson Harper <jackson@ximian.com>
* TabControl.cs: We need to invalidate the tab control area when
new ones are added (duh).
2006-10-03 Chris Toshok <toshok@ximian.com>
* Form.cs (ProcessDialogKey): if the focused control is in this
form and is a button, call its PerformClick method here. Fixes
#79534.
2006-10-04 Jackson Harper <jackson@ximian.com>
* TabPage.cs: Ignore setting of Visible, and add an internal
method for setting the controls visibility. TabPage's Visible
property is a little strange on MS, this seems to make us
compatible, and fixes cases where people set all the tab pages to
visible.
* TabControl.cs: Use the new internal setting on tab pages
visibility.
2006-10-03 Mike Kestner <mkestner@novell.com>
* ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
2006-10-03 Mike Kestner <mkestner@novell.com>
* ListView.cs : use is_visible instead of Visible to check if
scrollbars should be placed/sized. Also some max_wrap_width
love for LargeIcon view. [Fixes #79533]
2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
* TextControl.cs :
Make set_TextAlign() do actually update the align. Fixed #78403.
2006-10-03 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: fix a crash when switching datasources if the
vertical scrollbar is at someplace other than Value = 0. Also,
reduce the number of recalculation passes we do in SetDataSource
from 2 to 1.
2006-10-03 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Move the if value the same bail check up, we
don't want to empty the document if it is already empty, this
seems to severly mess up the caret. TODO: I should probably fix
the empty statement to update teh caret somehow.
2006-10-03 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
reflection, an internal row type, properties on said type, etc.)
will work with our datagrid. Fixes #79531.
2006-10-03 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Don't crash if a path is not accessible
(System.UnauthorizedAccessException). Fixes #79569.
* MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
a ':' too. Return unknown icon for those paths/files.
2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
* ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
GetContainerControl returns null.
2006-10-02 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
call to XGetWindowAttributes instead of "handle". fixes an X
error using notifyicon after the NotifyIconWindow to Form base
class switch.
2006-10-02 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (QueryPointer): new function, encapsulating the
server grab and looping we need to do to get down to the most
deeply nested child window.
(SetCursorPos): use QueryPointer instead of GetCursorPos, and call
QueryPointer again after the WarpPointer so we can generate a
proper (fake) MotionNotify event to be enqueued in the destination
window's queue.
(GetCursorPos): call QueryPointer.
Fixes #79556.
2006-10-02 Jackson Harper <jackson@ximian.com>
* NotifyIcon.cs: Derive the notify icon from a form, so things
like FindForm work on it.
- Swallow the WM_CONTEXTMENU message, since that is generated on
mouse down, and context menu is a mouse up kinda guy. I believe
the correct fix here is probably to make the notify icon entirely
NC area, but this seems to work fine for anyone not manipulating
WndProc.
2006-10-02 Jonathan Pobst <monkey@jpobst.com>
* ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
ToolStripItemCollection.cs, ToolStripLabel.cs,
ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
Initial implementation.
* TextRenderer.cs: Provide padding to MeasureText.
2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
* ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
of ButtonBaseAccessibleObject. Fix bug #79552.
2006-10-02 Jackson Harper <jackson@ximian.com>
* MdiWindowManager.cs: When maximizing use the containers client
rect, not it's bounds, so nc area is accounted correctly.
- Use the parent form's size for the menu position, since the
client isn't always the full form size.
2006-10-01 Chris Toshok <toshok@ximian.com>
* ScrollableControl.cs: make sure neither right_edge or
bottom_edge are < 0, since they're used as LargeChange for the
horiz/vert scrollbars respectively. Fixes #79539.
2006-10-01 Chris Toshok <toshok@ximian.com>
* NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
the xplatuix11 code can cause us to destroy/recreate our handle.
* XplatUIX11.cs
(SystrayAdd):
- this code can be invoked many times for the same Hwnd. Make
sure we only destroy the client window once (the first time this
method is called). This fixes bug #79544.
- Remove the call to the improperly bound XSync. why we had two
bindings to this, I will never know, but this call resulted in
events being discarded from the queue(!).
- correct a misunderstanding of _XEMBED_INFO - the second atom is
not our current state but the state we wish to be in. So, 0 if
we don't want to be mapped. Change it to 1.
(SystrayRemove): The XEMBED spec makes mention of the fact that
gtk doesn't support the reparent of client windows away from the
embedder. Looking at gtksocket-x11.c seems to agree with this.
The only avenue we have for removing systray icons is to destroy
them. We don't want the handle to go away for good, though, so
call InternalRecreateHandle on the NotifyIconWindow. Fixes
#79545.
2006-10-01 Chris Toshok <toshok@ximian.com>
* Form.cs (WndProc): inline the native_enabled variable usage into
the cases in which it's used. Fixes #79536.
2006-09-29 Mike Kestner <mkestner@novell.com>
* ListView.cs : toggle the selection state for ctrl clicks in
multiselect mode. [Fixes #79417]
2006-09-29 Mike Kestner <mkestner@novell.com>
* ListView.cs : kill CanMultiSelect and refactor the selection
code to support multiselection in the absence of mod keys. Steal
arrow/home/end keys by overriding InternalPreProcessMessage to
restore regressed keynav behavior.
[Fixes #79416]
2006-09-29 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Repaint the titlebars when the active window is
changed.
2006-09-29 Chris Toshok <toshok@ximian.com>
* Application.cs: when entering a runloop with a modal, make sure
the hwnd is enabled. Fixes #79480.
2006-09-29 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (CurrentCell): if we try to navigate to the add row
when ListManager.CanAddRows == false, bump us back one.
* DataGridColumnStyle.cs (ParentReadOnly): remove the
listmanager.CanAddRows check. This makes ArrayLists uneditable
using a datagrid, which is not right.
(SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
is an IEditable, but call property_descriptor.SetValue regardless.
fixes #79435.
2006-09-29 Chris Toshok <toshok@ximian.com>
* DataGridBoolColumn.cs: we need to test equality in the face of
possible null values (as is the case with the default NullValue).
This patch keeps us from crashing in that case.
2006-09-29 Jackson Harper <jackson@ximian.com>
* TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
here, since it will get called for every node collection in the
tree. This is now done in the treeview once the sorting is
finished.
* TreeView.cs: Recalculate the visible order, and update the
scrollbars after sorting, set the top nope to the root so that the
recalc actually works.
2006-09-29 Chris Toshok <toshok@ximian.com>
* LinkLabel.cs: more handling of the default link collection in
the face of LinkArea manipulation. The default link collection
contains 1 element (start=0,length=-1). If the user sets LinkArea
to anything and the links collection is the default, clear it.
Then only add the link if its nonempty. Fixes #79518.
2006-09-29 Chris Toshok <toshok@ximian.com>
* LinkLabel.cs (CreatePiecesFromText): calculate the length of a
piece correctly when we hit a '\n'. Fixes #79517.
2006-09-29 Chris Toshok <toshok@ximian.com>
* MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
change the binding of gdk_init_check to take two IntPtr's, and
pass IntPtr.Zero for both of them. Fixes #79520.
2006-09-29 Mike Kestner <mkestner@novell.com>
* ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
[Fixes #78779]
2006-09-28 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: When translating NC messages make sure we go from
whole window to screen, not client window to screen.
* MdiClient.cs: Remove the calls to PaintWindowDecorations, this
method doesn't exist
- Skip over controls that aren't forms when arranging.
2006-09-28 Jackson Harper <jackson@ximian.com>
* XplatUIWin32.cs: Clip the rect to the parent window.
* XplatUIStructs.cs: Add clipping modes struct.
* InternalWindowManager.cs: New private method that factors title
bar heights in when calculating the pos of an NC mouse message.
- Use SendMessage to force a paint when the form's size is changed
instead of painting the decorations immediately.
- Don't let the NC button click messages get to DefWndProc,
because they will attempt to handle windowing themself, and this
messes up z-order (it will put them in front of the scrollbars).
* XplatUIX11.cs: Make sure that we don't reset window managers if
we already have one (ie the window is an MDI window).
2006-09-28 Chris Toshok <toshok@ximian.com>
* MainMenu.cs: fix #79405 by way of a disgusting hack. all the
menu code really needs going over.
2006-09-27 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
window is maximizable. So, we need to make sure that even if we
clear the border/wm frame of those functions, they're still
available (basically, we remove the decoration without removing
the function). Half the fix for #79338.
2006-09-27 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
Fixes bug #79515.
2006-09-27 Chris Toshok <toshok@ximian.com>
* Splitter.cs: reorder things a bit so that we don't actually
draw/move the splitter until after calling OnSplitterMoving. This
lets users cancel/disallow the movement by explicitly setting
event.SplitX/SplitY. Fixes #79372.
2006-09-27 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Don't hide the caret when it is being destroyed,
because it is most likely on a window being destroyed, and that
will give us an X11 error.
2006-09-27 Chris Toshok <toshok@ximian.com>
* PropertyGridView.cs: half of the fix for #78190. Clicking on
the dropdown button now toggles between showing and hiding the
dropdown. Also, get rid of dropdown_form_showing and just use
dropdown_form.Visible. We still don't do a grab, but I'll leave
that part to someone who has handled Capture-fu before.
2006-09-27 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: return false if alt isn't pressed when '0' is
pressed. this keeps the '0' key from being swallowed, and fixes
bug #79350.
2006-09-27 Chris Toshok <toshok@ximian.com>
* ComboBox.cs: use Invalidate when scrolling the dropdown list.
Calling Refresh (in response to a scrollbar event) screws up the
scrollbar painting. Fixes bug #78923.
2006-09-27 Chris Toshok <toshok@ximian.com>
* Theme.cs (SystemResPool): make the "if hashtable[key] == null
then insert into hashtable" blocks threadsafe.
2006-09-27 Chris Toshok <toshok@ximian.com>
* MessageBox.cs (CreateParams): the styles should be |'ed with our
baseclass's, since otherwise the
ControlBox/MinimizeBox/MaximizeBox assignments above have no
effect. This gets the close button back in messageboxes.
2006-09-27 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
flag, not just != 0. this makes flags that are actually multiple
bits (like WS_CAPTION) work. fixes bug #79508.
2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
* PageSetupDialog.cs: add support for getting and settings the
paper size, source and orientation.
2006-09-26 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
and caption == "", we need to remove the resize handles as well as
the title bar.
* Control.cs (set_Text): turns out that setting Text on a form
should change the WM styles on the window, since if ControlBox ==
false, the only way to get a window border is to have a non-""
Text property. check winforms/forms/text.cs for an example. so,
call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
update both window styles and title. This fixes a lot of dialogs
(including the preferences dialog in MonoCalendar.)
2006-09-26 Chris Toshok <toshok@ximian.com>
* XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
control isn't a Form), call Win32ShowWindow to hide the window,
but don't update the control Visible property. When we reparent
back to a parent control, call SetVisible in order for the
window's visibility to be reinstated.
* XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
the FosterParent.
* Control.cs (ControlCollection.Remove): remove that value.Hide()
call for good, since it breaks MonoCalendar (and other things I'm
sure.) Also, set all_controls to null *after* the owner calls,
which end up regenerating it.
(ChangeParent): allow new_parent to be == null, passing
IntPtr.Zero down to XplatUI.
this fixes #79294 the right way.
2006-09-26 Mike Kestner <mkestner@novell.com>
* GridEntry.cs : internal SetParent method.
* PropertyGrid.cs : attach to property changed on the proper
target if we have a hierarchical grid with subobjects. Setup
GridItem.Parent for hierarchical items.
* PropertyGridView.cs : Set value on the correct target for
hierarchical grids. [Fixes #78903]
2006-09-26 Chris Toshok <toshok@ximian.com>
* Control.cs (ChildNeedsRecreating): this should return true if
either we're being recreated and the child is in our list, or our
parent is waiting for our recreation.
2006-09-26 Chris Toshok <toshok@ximian.com>
* Control.cs (ControlCollection.Remove): reinstate the
value.Hide() call as suggested in bug #79294.
2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
* XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
coordinates (versus a relative move).
2006-09-26 Chris Toshok <toshok@ximian.com>
* Control.cs: rework child recreation a little bit. It turns out
that we race between the DestroyNotify the WM_DESTROY message. If
the parent gets its DestroyNotify before the child gets the
WM_DESTROY message, the child ends up not recreating (since the
parent finishes its recreation on DestroyNotify, and the child
checks ParentIsRecreating.)
So, instead we store off a list of all the child controls which
need to be recreated when the parent control starts to recreate
itself. Then, when child controls get their WM_DESTROY message we
check to see if they're in the parent's pending recreation list,
and if so, we recreate. This removes all dependency on ordering
from the code and fixes the initial MonoCalendar upgrade dialog.
2006-09-26 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Use the Line to get the length of the line,
since soft line breaks can change the end line.
2006-09-26 Chris Toshok <toshok@ximian.com>
* Control.cs (ControlCollection.AddImplicit): don't add the
control again if it's already in one of our lists. This keeps us
from adding controls over and over again for comboboxes when their
handle gets recreated (as the combobox adds implicit controls in
OnHandleCreated). Fixes the X11 errors in bug #79480.
2006-09-26 Jackson Harper <jackson@ximian.com>
* TextControl.cs: When deleting characters make sure that any
orphaned zero lengthed tags get deleted.
- Fix ToString for zero lengthed tags.
2006-09-25 Jackson Harper <jackson@ximian.com>
* TextControl.cs: When getting a tag at the location there can be
multiple tags at the same spot, these are 0-lengthed tags that
appear when extra formatting has been stuck in a location. We
need to pull out the last of these 0 lengthed tags.
2006-09-25 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Fix print out in debug method.
* TextBoxBase.cs: When text is set bail if we are setting to the
previous value.
2006-09-24 Alexander Olk <alex.olk@googlemail.com>
* FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
It is now possible to change the selected index in a FontXXXListBox
with the up and down arrow keys from the FontXXXTextBoxes.
Also, send the FontXXXTextBox mouse wheel event to the corresponding
FontXXXListBoxes to match ms.
2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
* SystemInformation.cs: Return a clone of the theme's MenuFont because
anyone can dispose it, anytime. All other properties returns enums,
structs or basic types so they don't need such tricks.
2006-09-22 Jackson Harper <jackson@ximian.com>
* XplatUI.cs:
* XplatUIWin32.cs:
* Clipboard.cs:
* DataFormats.cs:
* XplatUIOSX.cs:
* XplatUIDriver.cs: Update interface to add a primary selection
flag, so the driver can use the primary selection buffer if
needed.
* XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
* RichTextBox.cs: We need to supply the data object to paste now
(so we can choose to supply CLIPBOARD or PRIMARY).
* TextBoxBase.cs: Supply data object to paste (see above).
- Middle click uses the primary selection data object.
2006-09-21 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: first little cleanup of the StyleSet (...) block
of SetWMStyles. It's still a rat's nest and is largely
order-dependent which I dislike immensely. This also fixes the X
button disappearing from toplevel forms.
2006-09-21 Mike Kestner <mkestner@novell.com>
* ListBox.cs: move Jordi's click/dblclick raising code to the
mouse up handler.
2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
* ListBox.cs: Fixes 79450
2006-09-21 Mike Kestner <mkestner@novell.com>
* TreeView.cs: guard against disposed conditions in UpdateScrollbars
to deal with people updating the TreeNodeCollection after the tree
is disposed. "Fixes" 79330.
2006-09-20 Jackson Harper <jackson@ximian.com>
* TextControl.cs: Push the cursor record onto the undo stack
before the delete action. This fixes 78651.
2006-09-20 Jonathan Chambers <joncham@gmail.com>
* PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
CreateParams. Fixes 79329.
2006-09-19 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: a couple of blanket code massage passes to clean
things up a bit. First, get rid of the NetAtoms array (and the NA
enum), and just embed the atoms as static fields. Also, add a
couple of functions (StyleSet and ExStyleSet) to clean up all the
bitmask testing of styles.
* X11Structs.cs: remove the NA enum, not needed anymore.
2006-09-19 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
(mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
added cleanup to get MessageBox titles appearing again, which were
broken by my earlier fix for caption-less/ControlBox-less windows.
2006-09-18 Jonathan Pobst <monkey@jpobst.com>
* ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
Inital import.
* ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
ToolStripButton.cs: Stubs needed for above.
* ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
2006-09-15 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs:
- make the MessageQueues hashtable Synchronized.
- SendMessage: if the Hwnd is owned by a different thread, use the
AsyncMethod stuff to dispatch the SendMessage on the hwnd's
thread. Fixes bug #79201.
2006-09-15 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
ControlBox == false, we disallow maximize/minimize/close. If the
form Caption is "" we also disallow move (and get rid of the Title
decoration). Unfortunately, regardless of how things are set,
we're stuck with the Title and WM menu.
2006-09-15 Chris Toshok <toshok@ximian.com>
* Application.cs: add locking around the static message_filters
ArrayList, part of #79196.
2006-09-15 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
Form.ControlBox == false, the window has no titlebar nor resize
handles. fixes bug #79368.
2006-09-15 Chris Toshok <toshok@ximian.com>
* TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
>= 0. Fixes bug #79370.
2006-09-15 Jonathan Pobst <monkey@jpobst.com>
* FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
* Control.cs:
Add properties: LayoutEngine, Margin, DefaultMargin.
Add method: GetPreferredSize.
Move layout logic from PerformLayout to layout engines.
2006-09-13 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: more destroy work. Jackson pointed out that my
fix for #79326 broke #78718, so this change addresses that.
- in SendWMDestroyMessages remove the call to
CleanupCachedWindows, since we might be recreating the control and
need to maintain the references to right Hwnd handles. Also, set
the zombie flag to true for each of the children in the hierarchy
instead of calling hwnd.Dispose. This will cause GetMessage to
ignore all events for the window except for DestroyNotify.
- In GetMessage, ignore messages except for DestroyNotify for
zombie hwnds.
* Control.cs: revert the is_recreating fix from the last
ChangeLog. It's definitely "right", but it breaks switching from
an MDI form to a non-MDI form. Will need to revisit that.
* Hwnd.cs: add a zombie flag, which means "the
client_window/whole_window handles are invalid, but we're waiting
for the DestroyNotify event to come in for them". Set the flag to
false explicitly if setting WholeWindow/ClientWindow, and also
when Disposing.
2006-09-13 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: rework window destruction slightly.
- when destroying the windows associated with a control, we don't
need 2 separate XDestroyWindow calls. Just the one for the
whole_window (or for client_window if whole_window is somehow
IntPtr.Zero -- can this happen?) is enough.
- reworked SendWMDestroyMessages slightly, so we always dispose
the child control hwnd's after sending the messages.
- refactored out the ActiveWindow/FocusWindow/Caret clearing from
the two places it was used (one was even using hwnd.Handle and the
other hwnd.client_window. ugh), adding another call in
SendWMDestroyMessages. We need this new call because now the
DestroyNotify events in the queue will be ignored for the child
controls (as their hwnd's were disposed, and the window id's
removed from the hashtable in SendWMDestroyMessages.) fun, eh?
- this fixes bug #79326.
2006-09-13 Chris Toshok <toshok@ximian.com>
* Control.cs: don't always set is_recreating to false at the end
of RecreateHandle, since sometimes we're not done (and won't be
until WndProc handles the WM_DESTROY message). Also, set
is_recreating to false in the WM_DESTROY handling code. Part of
the fix for bug #79326.
2006-09-13 Miguel de Icaza <miguel@novell.com>
* X11DesktopColors.cs: Start the droppage of debugging messages.
* FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
2006-09-13 Jonathan Pobst <monkey@jpobst.com>
* SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
2006-09-12 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (get_ListManager): if the list_manager is null, try
to create it using SetDataSource. Fixes bug #79151.
2006-09-11 Chris Toshok <toshok@ximian.com>
* XEventQueue.cs: add a DispatchIdle property.
* XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
either the queue is null, or the queue has DispatchIdle set to
true.
(DoEvents): set queue.DispatchIdle to false around the
peek/translate/dispatch message loop in this method. This keeps
Application.Doevents from emitting idle events. Part of the fix
for #78823.
2006-09-11 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (set_DataSource): make this work for both the
winforms/datagrid test and ReportBuilder. It seems as though when
we've created a ListManager (or maybe it's if we have a
BindingContext?), when we set the DataSource it clears the
DataMember to "". otherwise we reuse the datamember. Fixes bug
#79333.
2006-09-11 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: deal with queue being null, which happens in all
the Clipboard functions. Fixes one of the two problems mentioned
in #78612.
2006-09-11 Chris Toshok <toshok@ximian.com>
* MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
button on various spots (including outside the menu) works closer
to MS, and doesn't crash. Fixes #79343.
2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
* ListView.cs: Do not initialize item_sorter in init. To match MS,
return null for ListViewItemSorter if View is SmallIcon or LargeIcon
and the internal comparer is set. When a new ListViewItemSorter is set,
sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
was specified. No further processing is necessary if SortOrder is set
to it's current value. If Sorting is modified to None, and View is
neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
(either custom or our internal ItemComparer) to null, on 1.0 profile
only set item_sorter to null if its our internal IComparer. If Sorting
is modified to Ascending or Descending, then use our internal IComparer
if none is set, and if the current IComparer is our internal one then:
on 2.0 profile always replace it with one for new Sorting, and on 1.0
profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
Enum.IsDefined to verify whether a valid View value is specified in
its setter. Automatically sort listview items when listview is
created. In Sort, do nothing if ListView is not yet created, or if
no item_sorter is set (no Sorting was set, Sorting was explicitly set
to None or ListViewItemSorter was set to null). Added Sort overload
taking a bool to indicate whether the ListView should be redrawn when
items are sorted (we use this in ListViewItemCollection to avoid double
redraws). Modified our internal IComparer to take the sort order into
account. In Add and AddRange methods of ListViewItemCollection, also
call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
view), but use overload with noredraw option to avoid double redraw.
On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
true when View is Tile, and do the same when attempting to set View to
Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
for selected/checked indices, as it involves overhead when sorting is
done while these collections are not used all that often. Instead
we'll build the indices on demand. Modified IList implementation of
CheckedIndexCollection to use public methods if object is int.
Modified CheckedListViewItemCollection to hide checked items if
ListView.CheckBoxes is false. Removed LAMESPEC remark in
ListViewItemCollection as the .NET SDK docs have been fixed. Modified
IList implementation in SelectedIndexCollection to use public methods
if object is int. Modified SelectedListViewItemCollection to hide
selected items if listview is not yet created.
* ListViewItem.cs: CheckedIndices list no longer needs to be
maintained separately (see ListView changes). Also clone font, fixes
test failure.
2006-09-11 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: if we are updating the contents of the currently
selected index, refresh the control or the textbox selection.
[Fixes #79066]
2006-09-11 Mike Kestner <mkestner@novell.com>
* ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
the 'specified' logic has been moved there. This seems like a bug
in Control.cs, since our current SetBoundsCore completely ignores
the specified parameter. Peter's commit seems to indicate that is
the way the MS control implementation works. [Fixes #79325]
2006-09-10 Jonathan Chambers <joncham@gmail.com>
* XplatUI.cs: Set default_class_name to be composed
of current domain id. This allows MWF to be loaded in multiple
domains on Win32.
2006-09-09 Miguel de Icaza <miguel@novell.com>
* X11Keyboard.cs: If we are unable to obtain the input method, do
not call CreateXic to create the input context. Should fix
#78944/79276.
2006-09-08 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
Simplified gnome support by adding more pinvokes to get the
icon for a file or mime type.
2006-09-08 Jackson Harper <jackson@ximian.com>
* MenuAPI.cs: Deslect popup context menu items before closing the
window, so that you don't see the previously selected item
selected when you reopen the menu.
* TextControl.cs: Update the cursor position even if we don't have
focus. This fixes typing in things like the ComboBox. I'm not
totally sure we should always set the visibility if we don't have
focus, but couldn't find any corner cases where the cursor showed
up when it shouldn't.
2006-09-08 Chris Toshok <toshok@ximian.com>
* X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
our arrays are length 256. & 0xff before indexing. Fixes the
crash in bug #78077.
2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ThemeWin32Classic.cs:
* DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
is true. Handle that check box too.
2006-09-07 Chris Toshok <toshok@ximian.com>
* MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
79244.
2006-09-07 Chris Toshok <toshok@ximian.com>
* Control.cs: in set_BackColor only do the work if
background_color != value.
* XplatUIX11.cs: move the clearing of invalid areas (both client
and nc) to the same block of code where we set (nc_)expose_pending
to false. That is, move it from PaintEventEnd to PaintEventStart,
so things that cause invalidates from within OnPaint will trigger
another call to OnPaint. Fixes bug #79262.
2006-09-07 Alexander Olk <alex.olk@googlemail.com>
* Theme.cs: Use correct icon for UIIcon.PlacesPersonal
* FileDialog.cs: Fix typo
2006-09-07 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
for tab pages if they have any.
2006-09-06 Mike Kestner <mkestner@novell.com>
* Splitter.cs: use the "current" rect when finishing drag handle
to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
2006-09-06 Mike Kestner <mkestner@novell.com>
* Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
support offset splitters. [Fixes #79298]
2006-09-06 Alexander Olk <alex.olk@googlemail.com>
* Mime.cs: Fixed a bug that could override the global mime type
result.
2006-09-05 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Better calculation method for setting the slider
pos. Prevents crashes on really wide tabs.
- Draw Image on tab pages if an image list is used.
2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* MonthCalendar.cs: When Font changes, the Size should be
updated to fit the new font's space requirements.
2006-09-02 Alexander Olk <alex.olk@googlemail.com>
* ListBox.cs: If the items are cleared with Items.Clear set
top_index to 0.
2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* MonthCalendar.cs: Handle arrow keys as input keys. Also
fire DateChanged event instead of DateSelected event when
the date was changed by keyboard interaction.
2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DateTimePicker.cs: Handle DateChanged for the associated
month_calendar control, and set month_calendar.Font from
OnFontChanged method, as well as resize the height of the
control when needed. Make PreferredHeight proportional.
2006-09-01 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: grr, stop overthinking the DataMember/DataSource
properties.
* BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
* FileDialog.cs: Set ClientSize instead of window size, to allow space
for decorations (Fixes #79219)
2006-09-01 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: first stab at sorting plus some selection handling
fixes to bring us more in line with MS behavior. Also switches back
to index based selection. Alternative patches for index-based
selection were provided by Jackson Harper, Carlos Alberto Cortez,
and latency@gmx.de on bug 78848. I assume they were similar to this
code I've had simmering in my tree forever.
[Fixes #78848]
2006-09-01 Chris Toshok <toshok@ximian.com>
* CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
when setting list position guard against ending up with a -1 index
(the other part of the fix for #78812). Should probably make sure
we don't need the analogous fix in the ItemDeleted case.
* DataGrid.cs:
- in SetDataSource, work around the fact that the way
OnBindingContextChanged is invoked will cause us to re-enter this
method. I'll remove the hack once I investigate
OnBindingContextChanged.
- fix the logic in set_DataSource and set_DataMember (basically
what to do if the other of the two is null.)
- in OnListManagerItemChanged, we need to take into account the
edit row when deciding whether or not to call RecreateDataGridRows
(part of the fix for #78812).
2006-09-01 Jackson Harper <jackson@ximian.com>
* Splitter.cs: Don't do anything if there is no control to affect
(prevents us from crashing in weird tet cases).
* TreeView.cs: Bounding box for the mouse movement reverting
focus/selection back to previously selected node. This matches
MS, and makes the tree a lot more useable.
* GroupBox.cs: Instead of drawing over the lines of the groupbox,
use clipping so they are not drawn. This fixes when the control
is set to have a transparent background, or if it was over an
image.
2006-09-01 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: Improved handling for reading default icons when
using gnome (2.16 made it necessary). Check and read svg icons
first, then 48x48 and then 32x32 icons.
2006-08-31 Chris Toshok <toshok@ximian.com>
* DataGridTextBoxColumn.cs: only hide the textbox if it's still
visible.
* DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
ProcessKeyPreview. Fixes part of #77806.
* DataGrid.cs: big patch.
- revert the queueing up of DataSource/DataMember if inside
BeginInit/EndInit calls. That's not the way the datagrid achieves
its delayed databinding. Instead, call SetDataSource in
OnBindingContextChanged. This mimic's MS's behavior, and fixes
#78811.
- Also, it wasn't mentioned in #78811, but the test case exhibits
behavior that was lacking in our datagrid implementation - Columns
that have mapping names that don't exist in the datasource's
properties aren't shown. Yuck. To fix this I added the bound
field to the column style, and basically any calculation to figure
out anything about columns uses a loop to find the bound columns.
still need to investigate if I can cache an array of the bound
columns or if the indices must be the same.
- When setting CurrentCell, we no longer abort if the cell being
edited was in the add row. This fixes the other part of #77806.
- The new code also fixes #78807.
* ThemeWin32Classic.cs: perpetrate the same disgusting
column.bound field hack, and only render bound fields.
2006-08-31 Chris Toshok <toshok@ximian.com>
* DataGridColumnStyle.cs: add bound field. this field is true if
the datasource has a property corresponding to the mapping name.
* DataGridTableStyle.cs: set the bound field on the column styles
depending on whether or not we have a column for that property.
2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
* Splitter.cs (SetBoundsCore): Don't ignore width/height of the
splitter control (fixes #79228)
2006-08-31 Chris Toshok <toshok@ximian.com>
* DataGridColumnStyle.cs: we need to delay the assignment of
property descriptor until the last possible moment due to the lazy
databinding stuff in the datagrid. Also, fix the exceptions
thrown by CheckValidDataSource to match MS.
2006-08-31 Jackson Harper <jackson@ximian.com>
* Form.cs: When activated select the active control, if there is
no active control, we select the first control.
* XplatUIX11.cs: If there is no focus control when we get a
FocusIn event, find the toplevel form and activate it. This
occurs when you popup a window, it becomes the focus window, then
you close that window, giving focus back to the main window.
2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* MonthCalendar.cs:
* ThemeWin32Classic.cs: Cache Font in bold style, as well
as StringFormat with Center alignments in MonthCalendar,
instead of creating new ones when drawing the control.
Also, draw the month name in bold style.
2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- PerformLayout(): It would seem MS performs the fill even if the
control is not visible (part of #79218 fix)
- ResetBackColor(): Use the setter to reset the color, to allow
overriders to catch the change.
* Form.cs:
- .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
- CreateHandle(): dito (part of $79218 fix)
- Don't set an icon if we have a dialog
* ScrollableControl.cs:
- set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
- ScrollIntoView(): No need to scroll if control is already visible
(resolves fixme and fixes #79218)
2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* MonthCalendar.cs: Change proportions in SingleMonthSize
to match the aspect of the original control.
2006-08-29 Alexander Olk <alex.olk@googlemail.com>
* XplatUIX11.cs: Fix for a metacity/X problem where windows don't
get updated when they get maximized.
2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
2006-08-29 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
2006-08-29 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Need to track selected node and highlighted node,
they aren't always the same thing, when the mouse is down on a
node it is hilighted, but not selected yet.
- Do the HideSelection stuff right
- Need to focus on rbutton mouse down. And redraw selection when
right click is mouse upped.
2006-08-29 Mike Kestner <mkestner@novell.com>
* ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
when SubItems.Count < Columns.Count. [Fixes #79167]
2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs (FindCursor): Fix math error (Fixes #78402)
2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Preempt the roundtrip for getting the location back
from X. Only send based on ConfigureNotify if we don't have the
correct location in hwnd (if the window manager moved us)
2006-08-28 Mike Kestner <mkestner@novell.com>
* ListView.cs: remove a TODO.
* ThemeWin32Classic.cs: implement HideSelection support for ListView.
[Fixes ListView part of #79166]
2006-08-28 Mike Kestner <mkestner@novell.com>
* ListView.cs: move wheel handler to parent since it is focused
instead of the item_control now. [Fixes #79177]
2006-08-28 Mike Kestner <mkestner@novell.com>
* ThemeWin32Classic.cs: only highlight subitems in fullrowselect
when the control is focused. [Fixes #79171]
2006-08-28 Mike Kestner <mkestner@novell.com>
* ListView.cs: size the item and header controls for empty and
unscrollable views.
* ThemeWin32Classic.cs: draw disabled backgrounds.
[Fixes #79187]
2006-08-28 Chris Toshok <toshok@ximian.com>
* Form.cs: remove unused "active_form" static field.
* Hwnd.cs: lock around accesses to static windows collection.
* Application.cs: lock threads in Exit ().
2006-08-28 Chris Toshok <toshok@ximian.com>
* NativeWindow.cs: lock around accesses to window_collection.
2006-08-28 Chris Toshok <toshok@ximian.com>
* Control.cs: err, fix this the right way, by locking on controls
when using it. not by making it synchronized.
2006-08-28 Chris Toshok <toshok@ximian.com>
* Control.cs: make the static "controls" field synchronized, as it
gets updated from multiple threads.
2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
Prevent other threads from exiting when calling thread sets quit state.
* XEventQueue.cs: Added PostQuitState property
2006-08-27 Chris Toshok <toshok@ximian.com>
* AsyncMethodData.cs: add a slot for the window handle.
* XplatUIX11.cs (SendAsyncMethod): send the event to the right
window (the destination control's window, not the foster window).
* Control.cs (BeginInvokeInternal): store the window's handle in
the AsyncMethodData.
2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs:
- PostQuitMessage: Removed resetting S.D display handle, we might have
another loop started after calling PostQuitMessage (Fixes #79119)
- Created destructor to reset S.D handle
2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs (Insert): Update the caret position even if we don't
have a handle yet, just don't call the driver in that case.
* TextBoxBase.cs (set_SelectedText): Set the Start and End selection
to the end of the new selection text (Fixes #79184)
2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs (Activate): Only activate if the handle is created)
* Control.c:
- Mark window as invisible when it's disposed
- Check if window handle is created when setting window visible,
instead of relying just on the is_created variable
- Check if object is disposed when creating the control (Fixes #79155)
2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
* ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
when allowing layout again. Otherwise we re-generate the anchoring
distance to the border again and actually alter what the user wanted
This is ugly, it'd be better if we used DisplayRectangle instead of
ClientRectangle for Control.UpdateDistances, but that causes us to
have other problems (initial anchoring positons would be wrong)
(Fixes #78835)
2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- The size and location setters shouldn't go directly to
SetBoundsCore, but to SetBounds, which triggers layout on the
parent, then calls SetBoundsCore. (Related to fix for #78835)
- SetBounds: Moved actual location update code into this function
from SetBoundsCore, to match MS. Added call to PerformLayout if
we have a parent (to trigger resizing of anchored parents if the
child size has changed (see testcase for #78835)
* ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
new control code
* ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
System.Drawing when a toplevel window gets closed; there might
be other toplevel windows belonging to the same app (Fixes #78052)
2006-08-26 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: After reading FileDialog settings from mwf_config
use Desktop prefix only if a real folder doesn't exist anymore.
* FontDialog.cs: Added char sets.
It is now possible to select the font, size or style with the
textboxes.
2006-08-25 Kornél Pál <kornelpal@gmail.com>
* PrintPreviewDialog.cs: Use assembly name constants.
2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
scrollbar from whacking it's buttons)
2006-08-24 Chris Toshok <toshok@ximian.com>
* ScrollableControl.cs: fix #78271. There's a lot of misc stuff
in this patch (aggregating setting Left/Top/Width/Height to
setting Bounds on the scrollbars), but the crux of the fix is in
Recalculate, where we scroll by the remaining scroll_position if
we're hiding a scrollbar. The 2*$5 reward in the comment is
serious.
2006-08-24 Jackson Harper <jackson@ximian.com>
* MdiClient.cs:
* MdiWindowManager.cs: If the form is made a non-mdi window we
need to remove the form closed event so that closing forms works
correctly.
2006-08-24 Jackson Harper <jackson@ximian.com>
* Control.cs: Make IsRecreating internal so that the driver can
check it
- Temporarily remove the Hide when controls are removed, its
making a whole bunch of things not work because visibility isn't
getting reset elsewhere correctly
* Form.cs: Need to do a full handle recreation when the mdi parent
is set.
* XplatUIX11.cs: If we are recreating handles don't dispose the
HWNDs. What was happening is the handles were being recreated in
SendWMDestroyMessages, but then flow continued on in that method
and destroyed the new handles.
2006-08-23 Jackson Harper <jackson@ximian.com>
* Form.cs: MdiClient is always at the back of the bus
* Control.cs: When the order of items in the collection is changed
we need to reset the all_controls array
- do the same sorta setup thats done when adding a control when a
control is set on the collection.
2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs (get_Text): Return an empty array if our document
is empty (fixes #79052)
2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: We should call IsInputChar on only on WM_CHAR but not
on WM_SYSCHAR messages (fixes #79053)
2006-08-23 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: fix flickering when scrolling vertically.
2006-08-23 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (EndEdit): only invalidate the row header when we
need to.
2006-08-23 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
methods. fixes the flicker when scrolling around.
2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
* FileDialog.cs: Making sure the control is created before we get a
chance to use it with BeginInvoke (Fixes #79096)
2006-08-23 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
width to use when painting the rows.
2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs:
- Throw ArgumentException if a negative value is passed to SelectionLength
- Update the selection end if start is moved. end needs to be always
after start. (Fixes #79095)
- Track selection length; MS keeps the selection length even if start
is changed; reset on all other operations affection selection
2006-08-22 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Make sure both scrollbars get displayed and sized
correctly when the other bar is visible.
- Use the original clip rectangle for checking if the area between
the two scrollbars is visible, not the viewport adjusted clipping
rectangle.
2006-08-22 Jackson Harper <jackson@ximian.com>
* Binding.cs: We don't use IsBinding because it requires the
control to be created, which really shouldn't be necessary just to
set a property on the control.
2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: Some CB.ObjectCollection methods must throw
ArgumentNullReferenceException when the argument is null.
2006-08-21 Jackson Harper <jackson@ximian.com>
* Timer.cs: Track the thread that the timer is started in (NOT
CREATED), this way messages for it will only be triggered on its
queue.
* XEventQueue.cs: Track the timers here, this makes timers per
thread, like MS.
* XplatUIX11.cs: The timers are moved to the XEventQueue.
2006-08-19 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: after further communication with pdb, we get the
best of both worlds. SetZOrder working for un-Mapped windows, and
no X errors for un-mapped windows.
2006-08-19 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
as it was causing pdn toolbars to not have the correct stacking.
2006-08-18 Mike Kestner <mkestner@novell.com>
* ListView.cs : guard against negative ClientArea.Width in scrollbar
calculation. Not sure why control should ever be setting a negative
width though. Fixes #78931.
2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: Throw ArgumentNullException when adding/modifyng
null items in ObjectCollection class.
* ListBox.cs.: Likewise.
2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
* ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
as the base method in ThemeWin32Classic should work fine.
Fixed bug #78607.
2006-08-18 Jackson Harper <jackson@ximian.com>
* Binding.cs: When validating if the value entered doesn't convert
properly reset to the old value.
* RadioButton.cs: Don't fire click when we get focus.
2006-08-18 Jackson Harper <jackson@ximian.com>
* FileDialog.cs: Paint the selection on the directory combobox the
same way as on MS.
2006-08-17 Jackson Harper <jackson@ximian.com>
* ErrorProvider.cs: Don't allow the error control to be selected.
* Control.cs: Don't send the SetFocus messages, the control
activation will do this, and if we do it blindly here validation
does not work.
2006-08-17 Jackson Harper <jackson@ximian.com>
* Control.cs:
* ContainerControl.cs: Make validation events fire in the correct
order. TODO: For some reason the first validation event is not
getting fired.
2006-08-17 Mike Kestner <mkestner@novell.com>
* ComboBox.cs : some null guarding for ComboListBox.Scroll.
2006-08-17 Mike Kestner <mkestner@novell.com>
* ComboBox.cs : implement scroll wheel support for popped-down
state. Fixes #78945.
2006-08-17 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Specify treeview actions (old patch that didn't get
committed for some reason).
- Don't let the mouse wheel scroll us too far. Just want to make
the bottom node visible, not scroll it all the ways to the top.
2006-08-17 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Mouse wheel events go to the focused window.
2006-08-17 Mike Kestner <mkestner@novell.com>
* ComboBox.cs : don't do mouseover selection in simple mode.
2006-08-16 Jackson Harper <jackson@ximian.com>
* Form.cs: Fire the closing events for all the mdi child windows
when a window is closed. If the cancel args are set to true, the
main window still gets the event fired, but it doesn't not close.
* MdiWindowManager.cs: Do this closing cleanup in a Closed
handler, instead of when the button is clicked, so cancelling the
close works correctly.
* ComboBox.cs: Send the mouse down to the scrollbar.
2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: When passing 'null' to SelectedItem,
set SelectedIndex to -1, to unselect items. This is the
observed behaviour in .Net.
2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
MS flags saying there won't be any. (fixes #78800)
* Control.cs (HandleClick): Made virtual
2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
* PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
cultures. Fixed bug #78399.
2006-08-16 Jackson Harper <jackson@ximian.com>
* Form.cs: Use the MdiClients MdiChildren property to access
MdiChildren instead of creating the array from the child controls.
* MdiClient.cs: Maintain a separate array of the mdi children, so
that insertion order is maintained when the Z-order is changed.
2006-08-16 Mike Kestner <mkestner@novell.com>
* ListView.cs : add an ItemComparer and default to it for sorting.
Fixes #79076, but sorting needs a complete overhaul to be compat with
MS.
2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
* Hwnd.cs (Mapped): Properly traverse the tree
2006-08-15 Chris Toshok <toshok@ximian.com>
* Binding.cs: fix PullData/SetPropertyValue. We don't want to
pass manager.Current.GetType() to ParseData. It has to be the
property type. So, hold off doing the ParseData until we're in
SetPropertyValue where we know the type. This fixes the crash in
#78821 but the textbox is still empty.
2006-08-15 Chris Toshok <toshok@ximian.com>
* DataGrid.cs:
- when we're scrolling, only call Edit() again if the
current cell is still unobscured. Fixes bug #78927.
- when handling mousedown on a cell, ensure the cell is visible
before calling Edit.
- remove the properties from DataGridRow, and remove the
DataGridParentRow class altogether.
2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs (set_Text): Don't use base.Text, instead just
fire OnTextChanged by ourselves. There's no point calling base,
we don't set the base value anywhere else. Fixes #78773.
2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: Call CollectionChanged when modifying
an item from Items indexer, to update the actual items
in the list box.
2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PrintDialog.cs: Small fixes for focus and a pair of checks,
to match .Net behaviour.
2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
* MessageBox.cs: Prevent potential NRE exception.
* TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
* MessageBox.cs: Calculate the owner of a messagebox, also make
it topmost. Fixes #78753
2006-08-14 Chris Toshok <toshok@ximian.com>
* XplatUIX11.cs: A couple of fixes so that metacity will let us
programmatically move windows. first, set the PPosition hint as
well as the USPosition hint. Second include some code from pdb
that sets the window type to NORMAL when we set the transient for
hint. This is because, in the absence of a window type, metacity
thinks any window with TransientFor set is a dialog, and refuses
to let us move it programmatically. fascists.
2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: When setting normal hints, take into consideration
an different hints previously set so we don't delete them (fixes #78866)
2006-08-12 Chris Toshok <toshok@ximian.com>
* ToolBarButton.cs: make Layout return a boolean, if something to
do with the button's layout changed.
* ToolBar.cs:
- add another parameter to Redraw, @force, which all existing
calls set to true.
- make the Layout function return a boolean which is true if the
layout has actually changed. Redraw now uses this (and @force)
to determine when to invalidate. At present the only place
where @force can be false is the call from OnResize, when
background_image == null. So, resizing a toolbar when the
layout doesn't change results in no drawing.
2006-08-12 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs: fix the bottom right corner painting. had
the VScrollBar and HScrollbar reversed. oops.
* DataGrid.cs: fix the logic that assigns sizes to the implicit
scrollbars. we were assigning them twice (once in
Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
therefore causing two scrollbar resizes (and redraws?) to happen
per grid resize.
2006-08-12 Chris Toshok <toshok@ximian.com>
* ToolBarButton.cs: redraw the entire button if the theme tells us
to.
* Theme.cs: add ToolBarInvalidateEntireButton.
* ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
buttons, just the border.
* ThemeNice.cs: redraw the entire toolbar button since we need to
draw the highlight image.
* ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
we need to redraw the entire button (not just the border).
2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
for vertical bars. Fixes the mismatches shown by #78513
2006-08-11 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: If a saved/remembered path doesn't exist
anymore, fall back to "Desktop".
2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs (CreateParams): Don't use Parent.Handle unless we have a
parent. It's apparently legal to not have one
* XplatUIX11.cs:
- SetZOrder: Don't try to set Z-Order on an unmapped window
- CreateWindow: 0,0 are legal coordinates for a window. don't move
it unless the coordinates are negative
2006-08-10 Mike Kestner <mkestner@novell.com>
* ListControl.cs: allow null for DataSource. Clear DisplayMember
when setting to null per msdn docs. Fixes #78854.
2006-08-10 Chris Toshok <toshok@ximian.com>
* Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
flickering by setting a clip rectangle on the Graphics when we
need to redraw just a particular menuitem. Also, rename "OnClick"
to "OnMouseDown" to reflect what it actually is.
* Form.cs: track the OnMouseDown change.
2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
* CommonDialog.cs: Properly inherit the CreateParams from the form
and only change what we need. Fixes #78865
2006-08-10 Chris Toshok <toshok@ximian.com>
* ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
flickering in flat mode (and most of the flickering in general) by
only invalidating the button border (and not the entire rectangle)
when the state changes. A couple of cases still flicker:
ToggleButtons, and the dropdown arrow case when the user mouse
ups.
2006-08-10 Alexander Olk <alex.olk@googlemail.com>
* X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
for german keyboards. Numlock state shouldn't affect the behaviour
of the Del key. Fixes bug #78291.
2006-08-10 Chris Toshok <toshok@ximian.com>
* ListControl.cs: remove the items.Clear line from BindDataItems,
as this is the first thing done by both subclasses in their
SetItemsCore overrides. Also, add a ItemChanged handler, and when
passed -1, refresh the list. This gets databinding working when
the datasource is set on the list before the datasource is
populated (as in wf-apps/ReportBuilder.)
* ComboBox.cs: remove the argument to BindDataItems. This call
should really go away, and be initiated by the ListControl code.
* ListBox.cs: same.
2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs (Document.ctor): Initialize caret so we don't crash
if no data is in the document when the control is displayed
2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: Don't try moving the caret if we don't have a window
yes (fixes #78806)
* TextControl.cs:
- PositionCaret: Allow positioning of caret but don't call methods
requiring a handle if the window isn't created yet
- CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
- owner_HandleCreated: Don't position the caret, just update it's
location. User might have already set a different position
2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
windows. Screws up the returned coordinates for child windows.
Fixes #78825. I'm hoping this doesn't break something, since the
code was explicitly put in 8 months ago, but no bug was attached.
Menus still seem to work properly.
2006-08-08 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: make BeginInit/EndInit actually do what they're
supposed to do - delay data binding until the EndInit call. Also,
make the table style collection's CollectionChangeAction.Refresh
work properly.
* GridTableStylesCollection.cs: raise a CollectionChangeEvent
(with action = Refresh) when a consituent table's MappingName is
changed.
2006-08-08 Chris Toshok <toshok@ximian.com>
* ToolBarButton.cs: in set_Text, call Parent.Redraw, not
Invalidate, since changing the text can change the size of the all
toolbar buttons.
2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs (AddOwnedForm): Still need to add the form to our listif
we don't have it yet
2006-08-08 Chris Toshok <toshok@ximian.com>
* PrintControllerWithStatusDialog.cs: don't .Close() the status
dialog, as this causes X errors later on, since we actually
destroy the window. Instead, .Hide() it.
2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
* ComboBox.cs: Added focus reflection for popup window
* XplatUIX11.cs:
- Removed transient setting for non-app windows for now, not sure it
was needed
- Fixed logic checking if we have captions when deciding
override_redirect, WS_CAPTION is two bits and a 0 check was not
sufficient
- Removed the WINDOW_TYPE stuff, it was unneeded and making things
complicated
* Form.cs:
- AddOwnedForm: Don't just add the form to the list, call the property
to ensure the driver is informed about the ownership as well
- CreateHandle: Set the TopMost status in the driver if we have an owner
* XplatUI.cs: Fixed debug statement
2006-08-08 Jonathan Pobst <monkey@jpobst.com>
* ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
TrackBarRenderer.cs: Make constructor private.
* ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
* ProfessionalColorTable.cs: Make properties virtual.
2006-08-06 Duncan Mak <duncan@novell.com>
* NumericUpDown.cs (Value): Don't call OnValueChanged if the value
is not changing.
2006-08-04 Jonathan Pobst <monkey@jpobst.com>
* ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
Initial import of new 2.0 classes.
2006-08-04 Jonathan Pobst <monkey@jpobst.com>
* Application.cs: Add 2.0 VisualStyles properties.
2006-08-04 Jonathan Pobst <monkey@jpobst.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
XplatUIX11.cs: Create property to allow access to existing private
variable "themes_enabled"
2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
file size, as otherwise our class libraries fail using windows. Fixes
bug #78759.
2006-08-04 Jackson Harper <jackson@ximian.com>
* Form.cs:
* XplatUIX11.cs: Move the toolwindow window manager creation into
the X11 driver, this way on win32 we can let windows create/handle
the toolwindows.
2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PrintDialog.cs: Remove some redundant checks, add some others,
clean some code, and move the focus to the text boxes when the
values are incorrect.
2006-08-04 Alexander Olk <alex.olk@googlemail.com>
* FontDialog.cs: Remove Form.MinimumSize. It's not needed.
2006-08-03 Alexander Olk <alex.olk@googlemail.com>
* NumericUpDown.cs: Setting the Minimum and Maximum is now
handled correctly. Fixes bug #79001.
2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PrintDialog.cs: The "Copies" numeric up down must have
set the Minimum property to 1; only if the value is bigger
than 1, activate "Collate" check box. This is the behaviour of .Net.
Also modify the Document elements only if it is not null.
2006-08-03 Jackson Harper <jackson@ximian.com>
* TreeNodeCollection.cs: Fix copyto to use the correct nodes
length. (We have a larger array then actual node count).
2006-08-03 Jackson Harper <jackson@ximian.com>
* ComboBox.cs: Don't show selection by default.
- The SelectAll isn't needed here, since the focus code should do
that
- DDL style lists to manual selection drawing, so when they
get/lose focus they have to invalidate.
2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: Don't always show all selections by default.
2006-08-03 Jonathan Pobst <monkey@jpobst.com>
* ControlUpdateMode.cs, DataSourceUpdateMode.cs,
HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
Fixed various typos.
2006-08-03 Alexander Olk <alex.olk@googlemail.com>
* Control.cs: Removing the controls in a ControlCollection with
Clear now hides the controls as expected. Fixes bug #78804.
2006-08-03 Jackson Harper <jackson@ximian.com>
* Control.cs: Revert previous focus patch, it breaks reflector.
2006-08-03 Jackson Harper <jackson@ximian.com>
* ComboBox.cs: Cleanup selection and focus with the combobox.
This also eliminates some duplicated keyboard code, since now
everything is handled by the main class.
- Make list selection work on mouse up instead of down, to match
MS.
2006-08-02 Jackson Harper <jackson@ximian.com>
* Control.cs: Setting focus needs to go through the whole
selection mechanism.
2006-08-02 Chris Toshok <toshok@ximian.com>
* PrintPreviewDialog.cs: change MinimumSize to use
base.MinimumSize so it works.
2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs:
- UpdateCaret: Added sanity check in case caret isn't defined yet
- Line.Delete: Now updating selection and caret markers if we're
transfering a node (Properly fixes #78323)
- SetSelectionEnd: Added sanity check
* TextBoxBase.cs: Removed broken attempt to fix #78323
2006-08-01 Chris Toshok <toshok@ximian.com>
* PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
Close() call is handled in Form, not here.
2006-08-01 Chris Toshok <toshok@ximian.com>
* Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
layout/rendering.
* PrintPreviewDialog.cs: add scrollbars, and add an image cache
for sizes < 100% zoom. The code now aggressively attempts to keep
from calling document.Print (), and tries not to use the scaling
g.DrawImage whenever possible (it still does if you scale to >
100%, since usually that involves huge images).
* PrintPreviewControl.cs: hook up the close button.
2006-08-01 Jonathan Pobst <monkey@jpobst.com>
* ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
ItemDragEventHandler.cs, LabelEditEventHandler.cs,
LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
Removed [Serializable] for 2.0 Event Handlers.
2006-07-31 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Make ShowSelection invalidate when changed.
* TextControl.cs: Uncomment out the body of this method.
2006-07-31 Alexander Olk <alex.olk@googlemail.com>
* XplatUIX11.cs: Use the correct cursor shapes for arrow and default
standard cursors.
2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: Added internal property ShowSelection to allow controls
that embed TextBox and need selections visible even if textbox is not
focused to enforce that behaviour.
* TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
selection drawing
2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs:
- Added new SetSelectionStart/SetSelectionEnd overloads
- Fixed viewport width assignment to be accurate
- Adjusted alignment line shift calculations to allow cursor on right
aligned lines to be always visible at the right border (like MS)
* TextBoxBase.cs:
- SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
- TextBoxBase_SizeChanged: recalculating canvas on size changes
- CalculateScrollBars: Use ViewPort size instead of window size, to
properly consider space occupied by the border and scrollbars
(Fixes #78661)
- hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
calculations; no longer leaves artifacts
- CaretMoved: Adjusted window scrolling to match MS and fixed several
calculation bugs (Still missing right/center align calculations)
2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
* XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
use of both scroll rect and clip rect, as they do the same.
2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
in the event handler (fixes #78912)
2006-07-31 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs: use grid.RowsCount here instead of
grid.ListManager.Count, since grid.ListManager might be null.
This of course begs the question "why are we drawing rows for a
grid with no list manager (and therefor no rows)?" Fixes the
crash in bug #78929.
2006-07-31 Chris Toshok <toshok@ximian.com>
* RelatedPropertyManager.cs: Don't always chain up to the parent
ctor. instead, call SetDataSource if the parent's position is !=
-1. Fixes the crash in #78822.
2006-07-31 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (get_ListManager): use field instead of property
accessors for datasource and datamember.
(RowsCount): make internal again.
(OnMouseDown): end edits before resizing columns/rows.
(OnMouseUp): restart edits after resizing columns/rows.
2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
This fixes the situation where the last set cursor is displayed
whenever the mouse is over scrollbars.
2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PrintDialog.cs: Fix the behaviour of PrinterSettings and
Document properties, as well as initial values.
2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs (SetBorderStyle): Setting both border
and ClientEdge results in a 3-pixel border, which is
wrong.
2006-07-28 Jackson Harper <jackson@ximian.com>
* TreeNodeCollection.cs: Fix the clear method.
- Fix the Shrink also
2006-07-27 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Make sure the visible order is computed when we
attempt to size the scrollbars (for trees that mess with the
scrolling when they shouldn't.
- Make sure to give the scrollbars valid values.
2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Move motion compression code to where it
has less performance impact
2006-07-26 Jackson Harper <jackson@ximian.com>
* UpDownBase.cs: When the control is selected make the child
controls non selectable, so that a click on them won't do a
focus/unfocus cycle.
- Don't give focus to the text box when the spinner is selected.
* XEventQueue.cs: Peek on both the x11 queue and the lock queue.
2006-07-26 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs: add print preview rendering. I'm not
satisfied with this solution. If the bitmaps are small, we should
just cache them in the PrintPreviewDialog and draw them here.
Also, the layout is broken for the 2-up and 3-up cases.
* Theme.cs: add PrintPReviewControlPaint.
* PrintPreviewDialog.cs: first pass implementation.
* PrintPreviewControl.cs: first pass implementation. No
scrollbars yet.
* PrintDialog.cs: only validate fields if that particular portion
of the UI is enabled. Also, set the document's controller to a
PrintControllerWithStatusDialog wrapping the document's print
controller.
* PrintControllerWithStatusDialog.cs: if we're printing to a file,
bring up a SaveFileDialog (i hope we don't want to match the
behavior of the crappy windows file entry) and set the
PrinterSettings.PrintFileName accordingly.
2006-07-26 Jackson Harper <jackson@ximian.com>
* ContainerControl.cs: Add a field that disables auto selecting
the next control in a container when the container is activated.
* UpDownBase.cs: Don't select the text box when the up down is
selected.
2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
* XEventQueue.cs: Added methods for peeking (used for compression
of successive events)
* XplatUIX11.cs (GetMessage): We're now compressing consecutive
mouse move events (fixes #78732)
2006-07-25 Jackson Harper <jackson@ximian.com>
* UpDownBase.cs: Use an internal class for the textbox so that we
can control focus. the updown control should always have focus,
if either the text area or the buttons are clicked.
- Send the key messages to the textbox, since it never actually
has focus
- Activate and decativate the textbox caret.
2006-07-24 Jackson Harper <jackson@ximian.com>
* Control.cs: Use the directed select when selecting a control,
this way the container controls override will get called and the
whole ActiveControl chain will get triggered. TODO: probably need
to make sure this gets done everywhere instead of the old
Select(Control).
* ContainerControl.cs: Implement the directed Select method to
find and activate the correct child control.
2006-07-22 Mike Kestner <mkestner@novell.com>
* Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
menu handling code so that clicks without a grab work too.
[Fixes #78914]
2006-07-22 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Enable the BackButton when dirstack has one element.
Added some small optimizations.
2006-07-21 Matt Hargett <matt@use.net>
* Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (GetNextControl): Fixes to make all of Jackson's unit
tests pass and match MS in some strange border cases.
2006-07-21 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs: handle drawing of the relation links and
parent row buttons.
* Theme.cs: change args to DataGridPaintParentRow.
* DataGrid.cs: Don't use controls for the relation links and
parent buttons, so we have to handle all their interactions in
MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
when we're navigating through child tables, so we can reinstate
selection, expanded state, current cell, etc.
2006-07-20 Chris Toshok <toshok@ximian.com>
* ToolBar.cs: When we redraw a button, for whatever reason,
there's no reason to redraw the entire toolbar. Also, don't call
Control.Refresh from within Redraw, as it's much heavier than
Invalidate (which is really what we want).
2006-07-20 Chris Toshok <toshok@ximian.com>
* DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
DataGridTextBoxColumn.cs, DataGridTextBox.cs,
ThemeWin32Classic.cs, ListControl.cs: After staring at stack
traces from within a debug IBindingList datasource
(in mono/winforms/datagrid) for *days*, I've finally gotten things
to work in a similar fashion.
2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBox.cs: Don't call Sort () when setting
the Sorted property to false (avoid an unnecessary sort).
2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControl.cs: DataSource should throw an ArgumentException
instead of a normal exception when the argument is not of the
correct type.
2006-07-20 Mike Kestner <mkestner@novell.com>
* Control.cs: add InternalPreProcessMessage to allow us to steal
key events before MWF gets its paws on them. Adapted from a
suggestion by eno.
* ToolBar.cs: add GotLostFocus handing for flat toolbars, with
up/down/left/right navigation. Override the new internal control
method to steal the events since they never make it to WndProc.
* ToolBarButton.cs: don't worry about pushed when setting hilight
since the drawing code prefers pushed to hilight. Invalidate on
Hilight changes. Fixes #78547 and #78525.
2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
* ScrollableControl.cs: Consider AutoScrollMinSize when calculating
the canvas size. Fixes #78868
2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
* Splitter.cs: Track requested split position until first layout
is performed. Fixes #78871
2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
* Application.cs: Removed code that forces 1.x for the version
number if the version started with 0. Not sure why that code was
there and I couldn't find any bugs that indicated we needed it.
Fixes #78869
2006-07-20 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Don't throw a NotImplementedException in
ResetDefaults(), just write some output to the console until it's
implemented. Fixes bug #78907 for now. Eliminated two warnings.
2006-07-19 Jonathan Chambers <joncham@gmail.com>
* PropertyGridView.cs: set StartPosition of drop down forms
so they appear in correct initial spot. Fixes #78190.
2006-07-19 Mike Kestner <mkestner@novell.com>
* ThemeWin32Classic.cs: use parent background color when drawing
flat toolbars. Restructure the conditionals to make sure non-flat
non-Divider toolbars are filled too. Fixes #78837.
2006-07-19 Mike Kestner <mkestner@novell.com>
* ListBox.cs: Sort on collection changes even if the handle
isn't created yet. Fixes #78813.
2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControl.cs: DisplayMember should never be null,
and now we assign String.Empty when null is passed to it (this
is the .Net way).
2006-07-17 Mike Kestner <mkestner@novell.com>
* ListViewItem.cs: restructure Font and subitem Font handling
to hold a specific font and refer back to owner on null.
Fixes #78761.
2006-07-17 Mike Kestner <mkestner@novell.com>
* ToolBar.cs: bandaid for side-effect of previous patch which was
discarding explicit heights for non-AutoSize toolbars. Need to
extend my format tester to deal with AutoSize=false. Fixes #78864.
2006-07-15 Jackson Harper <jackson@ximian.com>
* LabelEditTextBox.cs:
* TreeView.cs: Use a new LabelEdit class for node editing, this
class automatically 'closes' itself when it gets the enter key or
loses focus.
- Use the client rectangle when setting the trees scrollbars, so
border style is taken into account.
2006-07-14 Jackson Harper <jackson@ximian.com>
* TreeNode.cs:
* TreeView.cs: Make the editing work similar to MSs, firing the
events correctly and ending edits correctly.
2006-07-14 Mike Kestner <mkestner@novell.com>
* ToolBarButton.cs:
* ToolBar.cs: layout restructuring and redraw enhancements to support
formatting changes gracefully, like setting TextAlign, ImageList,
ButtonSize, and Appearance. Handles explicit button sizing quirks
of the MS controls. Things like flat toolbars ignoring button size
but becoming constant sized at the largest button's size. Normal
toolbars with an image set cannot be shrunk smaller than the image,
but text can be clipped/ignored.
* ThemeWin32Classic.cs: don't draw text if text_rect height or width
is zero. Seems like DrawString should be smart enough to not put
anything on screen though. Also trim labels and ellipsize at the char
boundary, not word.
Fixes #78711 and #78483.
2006-07-14 Alexander Olk <alex.olk@googlemail.com>
* FolderBrowserDialog.cs: Disable "New Folder" button and
"New Folder" contextmenu menuitem if a folder like "My Computer"
is selected.
2006-07-14 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Don't create a new folder in "MyComputer" folder.
* FolderBrowserDialog.cs:
- Use MWFConfig to store and read size and position settings
- Added code to create a new folder (button or context menu).
Use TreeView labeledit to change the name of the new folder.
2006-07-14 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
when the tree is scrolled we end editing.
2006-07-14 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
Down arrows
2006-07-14 Jonathan Pobst <monkey@ipobst.com>
WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
FormClosedEventHandler.cs, FormClosingEventArgs.cs,
FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
ListViewItemSelectionChangedEventHandler.cs,
ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
WebBrowserNavigatingEventHandler.cs,
WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
2006-07-14 Jonathan Pobst <monkey@ipobst.com>
MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
ListViewItemStates.cs, MaskFormat.cs: Added
2006-07-13 Jonathan Chambers <joncham@gmail.com>
* PropertyGridView.cs: Fix keyboard navigation of drop down.
Patch from eno for bug 78558.
2006-07-13 Jackson Harper <jackson@ximian.com>
* TreeView.cs: When an edit is finished make sure that the
selected node is visible.
- When setting the top/bottom use the scrollbars is_visible, so
everything will be set correctly even if the tree isn't visible
yet.
2006-07-13 Jackson Harper <jackson@ximian.com>
* ComboBox.cs: Revert the item->index part of my previous patch.
* TreeView.cs: Use LostFocus instead of Leave for detecting when
the edit box has lost focus (duh).
- Just make the edit box not visible when we get return, that will
take the focus, which will call EndEdit
* TreeNode.cs When we start editing, notify the treeview.
2006-07-12 Jackson Harper <jackson@ximian.com>
* ComboBox.cs: Clear out old items before setting the item list.
This prevents databound controls from having their items added
twice.
- Switch the combobox to use indices whereever possible instead of
using Item's. This allows usto navigate through lists that have
more then one item with the same string value (ie a, b, b, a).
- Scroll the listboxes scrollbar when a non visible item is
highlighted
- Allow keypress to cycle through all the possible values. For
example if you have b1, b2, b3 and hold down the B key all the
values will be cycled through.
2006-07-12 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs:
* ListView.cs: Don't need to override SETFOCUS anymore, we can do
this using the internal methods.
* Control.cs: Add OnGotFocusInternal. A new method that allows
controls to "override" OnGotFocus and change focus behavior if
needed.
- Same thing for LostFocus
* ComboBox.cs: Pass off focus to the text control properly.
2006-07-12 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Added GetFoldersOnly to MWFVFS
* FolderBrowserDialog.cs: Almost a complete rewrite.
- Better support for Environment.Specialfolders
- Added support for MWFVFS
- Made setting SelectedPath work
2006-07-12 Jackson Harper <jackson@ximian.com>
* Control.cs: Optimze getting all the controls.
2006-07-11 Jackson Harper <jackson@ximian.com>
* ContainerControl.cs: Override SETFOCUS in the container control,
so that it is not selected on mouse click.
2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
* LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
Hopefully we will have a better way once all of focus is complete.
2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
* ThemeWin32Classic.cs: Commented out some debug code and fixed
a compile error with csc.
2006-07-11 Jackson Harper <jackson@ximian.com>
* Control.cs: When hiding a control only select the next control
if the current control was focused.
- Don't handle enter/leave when setting/killing focus, this is
done by the container control.
- Remove is_selected, it's not needed anymore.
- Add utility methods for selecting a child control, and for
firing the Enter/Leave events.
* ContainerControl.cs: When a control is activated fire the
enter/leave events.
- Don't wrap when processing the tab key, so that focus can be
moved outside of the container.
- Use the correct active control
2006-07-11 Jackson Harper <jackson@ximian.com>
* ComboBox.cs: Remove some debug code that was blinding me.
* UpDownBase.cs: These controls actually aren't implicit, they are
visible to the user.
2006-07-10 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: move back to the is_adding boolean field. god i
hate this is_editing/is_adding/is_changing stuff.
2006-07-10 Chris Toshok <toshok@ximian.com>
* DataGridTableStyle.cs: just check if the property type is bool.
if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
Don't use CanRenderType.
* DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
if our text == NullText. Remove CanRenderType.
* DataGridBoolColumn.cs: nuke CanRenderType.
* DataGrid.cs: reenable some code to end the current edit inside
of set_CurrentCell. This fixes the other 1.1.16 regression.
Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
Also, remove the visible_row_count arg from CalcRowHeaders, since
we don't need to worry about the actual height of the area.
2006-07-10 Chris Toshok <toshok@ximian.com>
* DataGridTextBoxColumn.cs: if when we Commit we're in navigate
mode, just return.
* DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
the real sense of the IsInEditOrNavigateMode property (true =
navigate, false = edit). Also, update OnKeyPress to reflect this.
* DataGridTableStyle.cs (CreateColumnsForTable): even if the
column style exists, we still need to set its property descriptor
to match up with our list manager.
2006-07-10 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs: implement the new row/header painting
approach. The parent row painting will likely go away and
replaced with label controls, but the rest seems to work ok (and
efficiently).
* Theme.cs: change the way we draw datagrid rows. we don't draw
the row headers as a block now. Instead we draw them in the
normal draw-row loop. Add some calls for drawing parent rows and
relation rows.
* DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
a default table style. Set the defaults from ThemeEngine.Current,
not SystemColors. Fix lots of misc issues with property setters.
* DataGrid.cs: move loads of style information out of this class
as it's being duplicated with DataGridTableStyle. keep track of a
special DataGridTableStyle for the properties we used to mirror
here. Switch all the style properties to access this table style
instead of instance fields of this class. Also add a internal
class to represent parent rows (more needs to be stored here, like
the selection state from the parent table, as well as the
expansion state.) Also, for datasources with relations, do the
right thing for collapse/expand, and add support for the
navigation/parent row buttons.
Lastly, fix the crash in the 1.1.16 build.
* GridTableStylesCollection.cs: make the explicit interface
implementations call the class's methods as opposed to duplicating
them.
* DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
0 so the text doesn't jump around when we move the cursor.
2006-07-10 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs:
* ListBox.cs: Match MS's ToString (this makes debugging focus
stuff infinitely easier).
2006-07-10 Jackson Harper <jackson@ximian.com>
* Control.cs (SelectNextControl): When checking the control's
parent use this instead of ctrl.parent so that null can be passed
to SelectNextControl. (I have unit tests for this).
- Remove unused var.
2006-07-10 Chris Toshok <toshok@ximian.com>
* CurrencyManager.cs: correct one regression, the removal of the
finalType field. Also, add a MonoTODO on CanAddRows, implement
Refresh() correctly, and fix some event emission in
ListChangedHandler.
2006-07-07 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Don't use brackets for new folders if they exist
under *nix. Instead use -(number of existing folders +1).
2006-07-07 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs:
- Fixed really nasty bug #78771
- Don't block the whole GUI when reading directories with a lot of
entries. Use an other thread instead and call BeginInvoke to
update the ListView in MWFFileView
2006-07-07 Chris Toshok <toshok@ximian.com>
* Control.cs (Dispose): release any Capture when disposing.
2006-07-07 Chris Toshok <toshok@ximian.com>
* LinkLabel.cs (Select): if we chain up to the parent, set
focused_index to -1 so we'll search for the first available link
the next time the user tabs into us. Also, if the direction is
backward and focused_index == -1, start the search from the last
element.
2006-07-07 Chris Toshok <toshok@ximian.com>
* LinkLabel.cs (CreatePiecesFromText): if the link's range piece
is beyond the end of the text, don't do anything.
(CreateLinkPieces): set our ControlStyles.Selectable based on
whether or not we have any links.
(Link.Invalidate): use a loop instead of foreach.
(Link.set_Start): null out owner.sorted_links so it'll be
recreated by CreateLinkPieces.
2006-07-06 Chris Toshok <toshok@ximian.com>
* LinkLabel.cs: revert the SetStyle change.
2006-07-06 Chris Toshok <toshok@ximian.com>
* LinkLabel.cs (.ctor): SetStyle Selectable to true.
(OnEnableChanged): s/Refresh/Invalidate
(OnGotFocus): if we have a focused index already, refocus it (so
if we mouse out/in to the window it'll focus the right link).
(OnKeyDown): move the tab handling out of here.
(OnLostFocus): don't set focused_index to -1, so we can refocus it
when we lose focus.
(OnMouseDown): don't Capture here - Control handles it. Also,
focus the active link.
(OnMouseUp): don't deal with Capture.
(OnPaintBackgroundInternal): remove.
(OnTextAlignChanged): CreateLinkPieces before calling the
superclass's method.
(OnTextChanged): call CreateLinkPieces before calling superclass's
method.
(ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
move around.
(Select): implement this, moving the selection between different
links, and call parent.SelectNextControl if we don't have another
link to focus in the given direction.
(CreateLinkPieces): call Invalidate instead of Refresh.
2006-07-06 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
new LinkLabel internals.
* LinkLabel.cs: fairly major rewrite. get rid of all the loops
over pieces looking for active/focused/etc links. also, deal with
runs of text (and links) with embedded \n's in them, and use
MeasureCharacterRanges instead of MeasureString to figure out the
regions text occupies. Lastly, do the usual s/Refresh/Invalidate
two-step.
2006-07-04 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
XKB or key auto repeat, do it manually. Without key auto repeat,
when a key is held down we get key press, key release, key press,
key release, ... with auto repeat we get key press, key press, key
press ..., and then a release when the key is actually released.
2006-07-03 Jackson Harper <jackson@ximian.com>
* TabControl.cs:
* ThemeWin32Classic.cs: Tabs do not obey normal background color
rules, they are always control color regardless of the background
color.
2006-07-02 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Added internal class MWFConfig.
Removed Registry support and replaced it with support for the new
MWFConfig class. See MWFConfig comments for more information.
2006-06-30 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
rectangle. Added some patches from eno from bug #78490 and fixed
the arrow position for small up and down CPDrawScrollButtons.
2006-06-30 Jackson Harper <jackson@ximian.com>
* InternalWindowManager.cs: Remove some debug code.
* Form.cs: When an MdiParent is set to null, the window is
"detatched" and becomes a normal window.
* MdiClient.cs: Don't bring the new child form to the front until
it is activated (setting it as active does this), this makes the
previously active forms titlebar get redrawn as inactive.
2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
* PrintDialog.cs: Labels need a tab index too, otherwise they overlap
with later controls
2006-06-29 Mike Kestner <mkestner@novell.com>
* MenuAPI.cs: handle arrow keys in keynav state. Go active on down
arrow in keynav state. Fixes #78682.
2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
* PrintDialog.cs: Reorder, relayout, remove extra code, set tab
order (fixes #78393)
2006-06-28 Jonathan Pobst <monkey@ipobst.com>
* AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
enumerations (FlagsAttribute, SerializableAttribute, added/removed
values)
2006-06-28 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: implement scroll wheel support. Fixes #78360.
2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
* PropertyGrid.cs,
PropertyGridTextBox.cs : explicitly set BackColor to differentiate
item lines from other area (It also makes BackColor consistent and
compatible with .NET). Fixed bug #78564.
2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertyGrid.cs: refresh toolbar when PropertySort is set.
Patch from Eno for #78555.
2006-06-27 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs: s/grid.grid_drawing/grid
* DataGridColumnStyle.cs: same.
* DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
* DataGridDrawingLogic.cs: nuke.
2006-06-27 Chris Toshok <toshok@ximian.com>
* DataGridTableStyle.cs: clean up the constructors, and build the
list of child relations for this table. I have no idea if this is
where we should be doing it (it probably isn't), but since we're
already iterating over the properties..
* DataGrid.cs: add row resizing. for now we add a DataGridRow
struct and array for keeping track of row information, similar to
what's shown in a hack on
http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
* Theme.cs: be consistent about the naming of DataGrid methods,
prefering ColumnWidths and RowHeights over columnsWidths and
RowsHeights.
* ThemeWin32Classic.cs: same, and also add support for variable
sized rows (and the +/- expansion icons for related rows).
2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: Applied Eno's patch from #78660
2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs (ScaleCore): We don't want to scale our form if it's
state is minimized or maximized, but we still need to scale our
child windows. Also, added try/finally block to ensure layout
gets reset (Fixes #78697)
2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs: Fixed c+p error and added check to resize form if minimum
size is bigger than current size (Fixes #78709)
2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
* ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
2006-06-26 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: only do Keypress handling in the combo when there
are items in the collection. Fixes #78710.
2006-06-26 Chris Toshok <toshok@ximian.com>
* Binding.cs: make this work bi-directionally. also, clear up
other mixups between Push/Pull Data (e.g. we're supposed to pull
data when validating).
* BindingManagerBase.cs: trim some fully qualified collection
types.
* PropertyManager.cs (get_IsSuspended): oops, fix this check.
2006-06-23 Chris Toshok <toshok@ximian.com>
* PropertyManager.cs: It appears (according to the unit tests)
that PropertyManager doesn't use
PropertyDescriptor.AddValueChanged to track propery value changes
in its datasource, but uses the same scheme as Binding, where it
looks for a <Property>Changed event and binds to it.
Also, according to the docs, IsSuspended always returns false for
a property manager with a non-null datasource.
2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs: (ShowDialog): If we're returning a forced cancel we still
need to update the actual DialogResult. (Fixes #78613)
2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs (ShowDialog): Release any captures before running the
new message pump (fixes #78680)
2006-06-22 Mike Kestner <mkestner@novell.com>
* ListView.cs: Layout column widths properly in details mode even
if HeaderStyle.None is set. Fixes #78691.
2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
* FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (ContainsFocus): Using new driver method to get focused
window, instead of trying to use internal tracking var, which can
recursion issues (Fixes #78685)
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
XplatUIWin32.cs: Added GetFocus method to return focused window
2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ColorDialog.cs: when the mouse button is pressed inside the color
matrix, don't let the cursor move out of it until the button is
released, which is the behavior on windows. Changed 'colours' by
'colors' to use the same word consistently.
2006-06-21 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: add in some basic navigation stuff (navigating to a
child relation and back, using a stack). Also, remove
GetDataSource and the code that calls it - it's not needed. Also,
track CurrencyManager.ListName's removal.
2006-06-21 Chris Toshok <toshok@ximian.com>
* CurrencyManager.cs: push some of the original type checking from
BindingContext.CreateBindingManager to here, and remove some of
the finalType stuff. Need more tests to make sure I've got the
ListName part right, and we might need more in SetDataSource.
* PropertyManager.cs: add a ctor that takes just the datasource,
and no property name. Make SetDataSource work with a null
property_name, and make Current return the data_source if the
property descriptor is null. this makes 'string foo = "hi";
BindingContext[foo].Current' return "hi" as it should.
* RelatedCurrencyManager.cs: make this code more generic - there's
no reason the parent manager has to be CurrencyManager, and
there's no reason to pass the DataRelation. It suffices to use a
BindingManagerBase and PropetyDescriptor.
* RelatedPropertyManager.cs: make a similar change here.
* BindingContext.cs: make CreateBindingManager the beautiful, tiny
flower I knew it could be.
2006-06-20 Chris Toshok <toshok@ximian.com>
* PropertyManager.cs: the PropertyChangedHandler is invoked when
data in the source has changed and we need to update the control,
so s/PullData/PushData.
* CurrencyManager.cs: Refresh is meant to update the control from
data in the datasource. So, s/PullData/PushData.
* BindingContext.cs: add more ugliness (we weren't handling the
case where data_source = DataTable and data_member = column_name).
* Binding.cs: fix PushData/PullData mixup. Both are interpreted
from the perspective of the datasource. PullData pulls from the
control, PushData pushes to the control.
2006-06-20 Chris Toshok <toshok@ximian.com>
* BindingContext.cs: rewrite the CreateBindingManager code to
handle navigation paths more or less properly. This could
definitely stand some more work, in particular to push the
recursion up to the toplevel. But that relies on fixes in other
places (System.Data comes to mind).
Also, move to a flat hashtable (and encode the twolevel nature of
the dictionary into the hash key). This lets us implement the
IEnumerable.GetEnumerator method.
* RelatedCurrencyManager.cs: new class. Update our view based on
our relation and our parent CurrencyManager's position.
* CurrencyManager.cs: split out some logic from the ctor into
SetView, so it can be called from the new RelatedCurrencyManager
subclass.
* RelatedPropertyManager.cs: new class. Update our datasource
based on the position of our parent CurrencyManager.
* PropertyManager.cs: split out some logic from the ctor into
SetDataSource, so it can be called from the new RelatedDataSource
subclass. Also, make the Current getter return the value
of the PropertyDescriptor, not the data_source.
* Binding.cs: no need to duplicate the string splitting code here.
2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- set_Enabled: OnEnabledChanged is not called if the inherited state
of the control is not altered, even though we might be changing the
internal state of the control (#78458)
- set_Enabled: (Re)Moved the enabling/disabling of the window to
OnEnabledChanged, to allow easy altering of any child window state
- OnEnabledChanged: Added code to enable/disable driver window state
- OnParentEnabledChanged: Instead of firing the event, call
OnEnabledChanged, which will fire the event and also a) set driver
window state and pass the enabled state to any grandchildren (#78458)
2006-06-19 Jackson Harper <jackson@ximian.com>
* InternalWindowManager.cs: We don't set the cursor explicitly
thats done via the response to NCHITTESTs.
- Don't need to adjust for titlebar heights anymore, the
coordinates are coming in the correct coordinates now (see peters
last patch).
2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
being translated relative to whole window, instead of client window.
That caused broken offsets on mouseclick (and caused gas for our
InternalWindowManager)
2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs:
- MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
- Undo(): Added replay of cursor move on DeleteChars action; added
calling Undo() again if a recorded cursor move is invalid (to
ensure that some action is performed on Undo)
* TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
2006-06-16 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Instead of just sizing maximized windows when
there is a resize we also have to adjust the Y of minimized
windows, so they stay pinned to the bottom of the mdi container.
- Eliminate separate tracking of the active control, we can just
get this from the controls collection.
- Paint the decorations for the newly activated titlebar so we get
a pretty blue bar.
* InternalWindowManager.cs:
* ThemeWin32Classic.cs: Minimized windows get all three buttons
even if they are a tool window.
2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs (Undo): Handle non-existent cursor locations in the
undo buffer, these can happen when text was deleted and the cursor
was recorded first. Since we will also have a recorded cursor
after the delete this is not an issue. (Fixes #78651)
2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
* AccessibleObject.cs: Remove dependence on Control.is_selected;
instead properly track control states internally (allows us to
remove is_selected from Control)
2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ImageListStreamer.cs: correctly generate the 1bpp mask for images
whose width is not a multiple of 8.
2006-06-13 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Only maximize the next child if the current one
is maximized.
2006-06-13 Chris Toshok <toshok@ximian.com>
* DataGridColumnStyle.cs: Invalidate the column when HeaderText is
modified. Also, guard against grid or grid_drawing being null in
Invalidate.
* DataGrid.cs: Reformat tons of getters/setters. In the
DataMember setter, just call SetNewDataSource instead of
duplicating some of its functionality. In SetNewDataSource, don't
check ListManager for null, since the property getter creates the
object if needed.
* DataGridTableStyle.cs: don't set TableStyle or call
SetDataGridInternal on the column here, it's done in
GridColumnStylesCollection.Add.
* GridColumnStylesCollection.cs: fix all the explicit interface
implementations to just call our methods. Nuke AddInternal() and
move the body of it to Add(). Also, add a call to
column.SetDataGridInternal to Add().
* DataGridTextBoxColumn.cs (.ctors): call this() instead of
base()+duplicate code. Also, use the Format property instead of
format to generate an Invalidate ala MS. Lastly, create the
textbox here, unconditionally.
(set_Format): call Invalidate.
(get_TextBox): no need to call EnsureTextBox.
(Commit): remove the message box.
(Edit) remove the call to EnsureTextBox.
(EndEdit): call HideEditBox instead of ReleaseHostedControl.
(EnterNullValue): no need to check textbox for null.
(HideEditBox): no need to check textbox for null.
(SetDataGridInColumn): add the textbox to the grid's controls.
(EnsureTextBox): nuke.
2006-06-13 Jackson Harper <jackson@ximian.com>
* MdiWindowManager.cs: Hook up to the maximized menus paint event
and redraw the buttons when needed. Unhook when the window is
unmaximized.
* MainMenu.cs: Add an internal Paint event, the mdi window manager
needs this so that it can redraw its buttons when the menu is
repainted.
* InternalWindowManager.cs:
* Form.cs: The method order has changed for DrawMaximizedButtons,
so that it can be a PaintEventHandler.
2006-06-13 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: When we close a maximized mdi window, the next mdi
window is activated and maximized, even if it wasn't before.
- When a new window is activated repaint the decorations of the
old one, so that it no longer has the Active "look" (the blue
titlebar).
* InternalWindowManager.cs: Open up CreateButtons to base classes
so they can recreate the buttons on state changes.
- If a window is maximized give it all three buttons
* MdiWindowManager.cs: Create the titlebar buttons when the state
is changed, this is needed because a toolwindow will not have all
three buttons until it is maximized.
2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
* ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
Fixed bug #78609.
2006-06-12 Jackson Harper <jackson@ximian.com>
* KeysConverter.cs: Make sure we handle the Ctrl special case
if its the only key.
2006-06-12 Jackson Harper <jackson@ximian.com>
* Theme.cs: Add a method to get the size of a managed window
toolbar button.
* InternalWindowManager.cs: Remove the ButtonSize property, this
should be retrieved from the theme.
* MdiWindowManager.cs: Get the button size from the theme
* ThemeWin32Classic.cs: Make the method to get the managed window
titlebar button size public.
- Handle the different button sizes of maximized toolwindows
(should match any maximized window).
- Get the titlebar height from the theme, not the WM (which gets
it from the theme).
2006-06-12 Jackson Harper <jackson@ximian.com>
* InternalWindowManager.cs: Handle NC Double Clicks, passing the
event down to the mdi window manager.
- Expose some extra stuff to base classes
- Make sure to end the Capture on an NC Mouse up, so that we can
get double clicks properly, and the sizing doens't stick.
- When doing PointToClient contain it in the workable desktop
area, this prevents windows from changing size when the cursor is
pulled outside of the working area while sizing.
* MdiWindowManager.cs: When we get a double click maximize the
window.
- Reset the cursor after handling mode changes.
2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (WorkingArea): Read the actual workarea for the
current desktop, instead of just assuming a 0, 0 origin. This
is needed for our internal window manager, to know the top
margin of the desktop
2006-06-12 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (set_CurrentCell): concede focus as we move around.
we need this to get rid of the selected background in the bool
column.
(CancelEditing): move the ConcedeFocus call to above the Abort
call. Also, set is_changing to false and invalidate the row
header if we were changing before.
(ProcessKeyPreviewInternal): remove, since noone outside this
class calls it anymore. Roll the code into ProcessKeyPreview.
(EndEdit): remove the internal version.
(InvalidateCurrentRowHeader): make private.
* DataGridBoolColumn.cs: simplify this class a bunch. remove the
Keys.Escape handling (and with it the last call to
DataGrid.EndEdit from outside the class.)
2006-06-12 Chris Toshok <toshok@ximian.com>
* DataGridTextBox.cs (.ctor): isedit defaults to false.
(OnKeyPress): set isedit to true.
(ProcessKeyMessage): remove Keys.Enter handling from here. it's
already handled by the grid.
* DataGrid.cs (set_CurrentCell): more work here. it's still not
right. ugh.
(set_DataSource): SetDataSource always returns true, so stop
putting it in an if statement.
(EndEdit): get rid of some {}'s
(ProcessGridKey): return true in case Keys.Escape.
(ProcessKeyPreviewInternal): only handle KEYDOWN messages.
(ConnectListManagerEvents,DisconnectListManagerEvents): connect to
PositionChanged, stopped connecting to CurrentChanged.
(GetDataSource): simplify this a bunch.
(SetDataSource): change return type from bool to void.
(OnListManagerPositionChanged): rename OnListManagerCurrentChanged
to this, and make sure we don't set ListManager.Position inside
set_CurrentCell.
(OnListManagerItemChanged): if we're passed an actual index,
redraw that row.
* CurrencyManager.cs (set_Position): don't call PullData here.
2006-06-09 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: Recalculate the visible order before doing the
Expand/Collapse Below calls, because those calls generate an
expose.
- Reduce calls to the TreeView property, which is mildly expensive
by using a local var.
* Form.cs: Layout the MDI child windows when creating the parent
form.
- Don't use the internal constructor anymore
* MdiClient.cs: use the parent form width/height (if available)
when laying out the child windows, we do this because the
mdiclient isn't docked yet when the initial layout is done.
- Don't need an internal constructor anymore.
2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* FileDialog.cs: handle access errors when trying to create a folder
or changing to a directory. No need to initialize out parameters.
2006-06-08 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Append a number when creating a new folder if the
folder already exists (use parenthesis instead of square brackets)
2006-06-08 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs:
- Disabled registry support for windows and added better registry
error checking for other systems (need to investigate why it
works perfectly on my system)
- If a folder already exist show an error MessageBox instead of
trying to create an indexed name.
- Fixed a non intentional typo.
2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
2006-06-08 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: When creating a new folder don't crash if the
folder already exists.
2006-06-08 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Allmost a complete rewrite.
- added a "virtual" file system that handles the differences
between unix and windows file systems (especially the directory
structure). Moved most of the directory and file handling code
into the vfs.
Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
UnixFileSystem and FSEntry.
- Recently used folder/directory, size, location and used file names
(file name ComboBox) are now stored in the registry and get read
before the dialog shows up (fixes part 6 of bug #78446).
- Creation of new folders/directories is now possible (context menu
or ToolBar). Added TextEntryDialog for this that fills in the gap
until ListView.LabelEdit works.
- Fixed cursor handling (bug #78527) and focus handling for
PopupButtonPanel
- Various "Search in" ComboBox enhancements. The content of the
dropdown listbox now almost matches ms.
- Changed the behaviour when the user switches to SpecialFolder
Recent to show the ListView in View.Details.
- Beside using the ToolBar to change the View property of the
file ListView it is now possible to use the context menu too.
2006-06-08 Alexander Olk <alex.olk@googlemail.com>
* ComboBox.cs: Don't create a new ObjectCollection when an item
gets inserted. Just insert the item in the existing object_items
ArrayList.
2006-06-08 Jackson Harper <jackson@ximian.com>
* OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
that the treeview and root node checks are done also, this fixes a
regression i caused in the unit tests.
2006-06-07 Wade Berrier <wberrier@novell.com>
* RichTextBox.cs: More ISO8859-1 -> unicode
2006-06-07 Mike Kestner <mkestner@novell.com>
* ComboBox.cs : use items to hold highlight/selection so that
collection insertions don't require synchronization.
2006-06-07 Jackson Harper <jackson@ximian.com>
* InternalWindowManager.cs: Simplify (and FIX) the window sizing
routine. We now always keep the sized edge at the cursor instead
of computing movement and adjusting rects. There is one buglet
with this method though when the cursor is moved over area that
the window can not expand too (such as the toolbars on the desktop).
2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
here. Fixes crash on startup in AlbumSurfer.
2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
* RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
values
2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
statement to avoid calling XNextEvent which will block if another thread
took the event that we were expecting. Fixes bug #78605.
2006-06-07 Mike Kestner <mkestner@novell.com>
* ListView.cs : isolated checkbox clicking from the selection logic.
Toggle check state on item doubleclicks. Really fixes #78454 part2.
2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Form.cs: Check that the value passed to Form.DialogResult
is a valid enum value.
2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* FileDialog.cs: disable the up button when in 'Recently Used' or 'My
Computer'. Clicking it in the network view goes to 'My Computer'.
Added CIFS filesystem type. Display the mount point of filesystems.
Avoid duplicate mount points (happens for me with CIFS);
2006-06-06 Jackson Harper <jackson@ximian.com>
* InternalWindowManager.cs: Draw the maximized windows buttons
when resizing.
2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
all other dialogs. Fixes bug #78585.
2006-06-06 Mike Kestner <mkestner@novell.com>
* CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
Only invalidate checkbox on checkstate changes to avoid flicker.
* ListBox.cs : avoid unselect/select when clicking selected item.
avoid reselection flicker for already multiselected items.
Fixes #78382.
2006-06-06 Jackson Harper <jackson@ximian.com>
* MdiWindowManager.cs: When the window is closed do an NCRecalc on
the parent form so that the menu is removed if needed.
2006-06-06 Mike Kestner <mkestner@novell.com>
* ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
2006-06-06 Mike Kestner <mkestner@novell.com>
* CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
2006-06-06 Jackson Harper <jackson@ximian.com>
* Control.cs: Use the property (instead of the field) to get the
default cursor so it is instantiated correctly.
* InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
resizes so we need to manually repaint the window decorations here.
- Set the titlebar button locations as soon as they are created,
otherwise they are not set correctly on win32.
2006-06-06 Chris Toshok <toshok@ximian.com>
* CurrencyManager.cs (set_Position): call PullData before
OnCurrentChanged.
(AddNew): after calling IBindingList.AddNew, update our
listposition, and call OnCurrentChanged/OnPositionChanged (without
calling PullData).
(OnCurrentChanged): remove the call to PullData from here.
(OnItemChanged): remove the call to PushData from here.
(OnPositionChanged): change the test from == null to != null to
match the other methods.
(ListChangedHandler): the grossest part of the patch. Implement
this such that it passes the unit tests in CurrencyManagerTest and
the output more or less matches that of MS's implementation.
2006-06-06 Mike Kestner <mkestner@novell.com>
* ListView.cs : only update check state on single click.
* ThemeWin32Classic.cs : fix focus drawing for details view without
fullrowselect. Fixes #78454.
* XplatUIX11.cs : fix for double click emission.
2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertyGridView.cs : Applied Atsushi's patch to fix
font dialog bug (#78197).
2006-06-05 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: Compute the next node for expanding/collapsing
correctly. We now factor in nodes without a NextNode
correctly. (Fixes somes cases in nunit-gui).
* InternalWindowManager.cs: Set the bounds when updating the
virtual position of a tool window.
2006-06-05 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: rename cached_currencymgr to list_manager.
(set_CurrentCell): move SetCurrentCell code here, and clean it up
some.
(CurrentRow, CurrentColumn): single accessors so we can make the
cursor movement code a lot easier to understand.
(CurrentRowIndex): implement this in terms of CurrentRow.
(BeginEdit): clean this up a bit.
(CancelEditing): sort out the is_editing/is_changing/is_adding
stuff a little.
(EndEdit): minor changes.
(OnKeyDown): add a comment about a (most likely) unnecessary
check.
(OnMouseDown): cancel editing when we click on a row header. And
use the CurrentRow setter, not CurrentCell.
(ProcessDialogKey): directly call ProcessGridKey.
(UpdateSelectionAfterCursorMove): factor out this common block of
code (it's used everywhere that we move the cursor by updating row
or column).
(ProcessGridKey): pretty substantial overhaul. Use the
CurrentRow/CurrentColumn properties to make the code a lot more
readable. Only use the CurrentCell property when we have to
modify both row and column at once. Tab behavior is still broken,
and Delete is untested.
(Select): if we have no selected rows, set selection_start to
@row.
(EditCurrentCell): rename EditCell this. It was only ever invoked
with CurrentCell as the arg, so drop the arg and rename it.
* DataGridColumnStyle.cs: clean up the constructors a little, and
drop CommonConstructor().
* DataGridTextBox.cs (.ctor): set accepts_return to true so we
actually get notified when the user hits it.
(ProcessKeyMessage): *substantially* simplify this method.
There's no reason (that I can see) for the textbox to be making
calls into the datagrid at all. Remove all of them but the ones
for Enter handling. those will take some more work.
* DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
calling HideEditBox.
(HideEditBox): if we have an active textbox, render it invisible
without causing a re-layout of the datagrid.
2006-06-05 Mike Kestner <mkestner@novell.com>
* ListView.cs : fix NRE crasher when focuseditem is cleared by
collection changes by resetting it to Items[0]. Fixes #78587.
2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* MessageBox.cs: if the height of the text is larger than the icon_size,
use that. Fixes bug #78575.
2006-06-05 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Fix line drawing when scrolling. To do this each
node is basically responsible for drawing its entire horizontal
area. When drawing a node it draws its parent node lines if
needed.
- Adjust the clip area to the viewport rectangle
- Fix Left/Right key handling to match MS. (It expand/collapses
and moves to parents/first child but does not move selection to
sibling nodes).
- Fix SetTop to work with new bound calculation code
- When scrollbars are no longer needed we need to reset scrolling
vars and recalculate the visible order so the redraw is correct
* TreeNode.cs: We can't expand/collapse nodes with no children.
2006-06-03 John Luke <john.luke@gmail.com>
* X11DesktopColors.cs: dllimport the exact gtk and gdk versions
so the colors work without dev packages
2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs
- Select: Implemented to just use activate. Seems to match MS
behaviour closest. Documented to only do actual control walking
based on it's parameters if in a container control so I moved
the code there.
- Removed selection check logic from our internal Select() method
* ContainerControl.cs:
- Select: Moved selection logic from Control here, since MS documents
that containers obey the bool arguments. No longer calling base
2006-06-02 Jackson Harper <jackson@ximian.com>
* TreeView.cs: If the selected node isn't changed when we get
focus update the previously selected node so that we see the
selection box.
2006-06-02 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: restructure grab and general mouse event handling.
Make the composite control raise mouse events like it was a single
control for leaves/enters/motion/up/down events. fix dropdown list
coordinate mangling and refactor it into the scrollbar subclass to
reduce code duplication. Fixes #78282 #78361 and #78457.
2006-06-02 Mike Kestner <mkestner@novell.com>
* ScrollBar.cs: remove Capture setting/clearing, as it happens
automatically in the Control.WndProc.
2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* FileDialog.cs: fix crash when running SharpChess, which sets the
FilterIndex to 2 with only one Filter.
2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ToolBar.cs: add SizeSpecified property.
* ToolBarButton.cs: when the ButtonSize is calculated by the container,
try to figure out our real size, otherwise fallback to what the
container says.
2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
* Control.cs (WndProc): MS always calls the DefWndProc to pass
up the event
2006-06-01 Mike Kestner <mkestner@novell.com>
* ListView.cs: revamp the focus management in ListView. It still
causes churn of LostFocus/GotFocus emissions on clicks, but it's
better than not handling focus at all. Will revisit when pdb feels
the general focus handling is solid. Fixes #78526.
2006-06-01 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Set the default border style in the constructor.
- Move painting to use OnPaintInternal instead of capturing
WM_PAINT, this is the correct way of doing things
- UpdateBelow shouldn't invalidate the scrollbar area
- Cap the top on update below in case the node was above the top
of the viewport rectangle.
- ExpandBelow and Collapse below need to obey Begin/End Update.
* TreeNode.cs: Make is_expanded internal so the treenode
collection can change it without firing the whole event chain.
* TreeNodeCollection.cs: When clearing all the child nodes make
sure to recalc the visible order.
- Improve algo for remove the top node
2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
SendMessage directly calling window procedures, which in turn might
call SetFocus()
2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Don't handle WM_SETFOCUS if the same window already
has focus (works around X11 sending a FocusIn after our SetFocus)
* XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
2006-06-01 Alexander Olk <alex.olk@googlemail.com>
* Mime.cs: Fix for the NET_2_0 build.
NameValueCollection needs StringComparer now.
2006-05-31 Chris Toshok <toshok@ximian.com>
* DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
return (via an out parameter) the starting X of the column.
(UpdateVisibleColumn): track change to FromPixelToColumn.
(HitTest): add a ColumnResize case here.
(DrawResizeLine): new function, probably poorly named.
* DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
only need to keep one reference.
(set_ListManager): same.
(OnMouseDown): call HitTest instead of grid_drawing.HitTest.
Also, add support for HitTestType.ColumnResize.
(OnMouseMove): add column resize behavior here, and change the
cursor to the correct one as we move around the datagrid.
(OnMouseUp): terminate the column resize if we're resizing.
(ProcessGridKey): from the MS docs, Alt-0 enters the null value
for the current cell.
(ConnectListManagerEvents): use cached_currencymgr.
(DisconnectListManagerEvents): fill this in, using
cached_currencymgr.
(SetCurrentCell): remove cached_currencymgr_events handling.
(SetDataMember): only call DisconnectListManagerEvents if
cached_currencymgr is != null.
(SetDataSource): same.
(OnListManagerCurrentChanged): cached_currencymgr_events ->
cached_currencymgr.
2006-05-31 Jackson Harper <jackson@ximian.com>
* BindingManagerBase.cs: Remove somedebug code that creeped into
SVN.
* TreeNode.cs: We get the indent level dynamically right now, so
don't track it as a member.
* TreeNodeCollection.cs: Make sure all nodes added to the list
have parents, treeviews/topnodes setup properly.
- Don't attempt to track indent level.
2006-05-30 Jackson Harper <jackson@ximian.com>
* BindingContext.cs: Create the currency manager tables here.
This allows us to more easily create null tables (when bad data
members are used), and more easily create related currency
managers.
* CurrencyManager.cs: All the table creation stuff is done by the
binding context now.
- Current should throw an exception if listposition is -1.
- CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
been bound yet.
2006-05-30 Mike Kestner <mkestner@novell.com>
* ListView.cs: allow reexpansion of zero-width column headers.
Fixes #78528.
2006-05-28 Chris Toshok <toshok@ximian.com>
* CurrencyManager.cs (get_Current): after the late binding
listposition = -1 fix, we need to guard against it here and return
null, otherwise we raise an exception (which is swallowed
elsewhere, and breaks datagrid databinding.)
2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
* MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
than WM_SYSKEY, don't throw if get something unexpected (#78507)
2006-05-26 Jackson Harper <jackson@ximian.com>
* ControlPaint.cs:
* ThemeWin32Classic.cs: For color comparisons just use the ARGB
values, it's faster and it's all we care about (we don't care if
the names aren't equal).
* KeyboardLayouts.cs: Eliminate some dead code.
- Lazy init things
* X11Keyboard.cs: Lazy init keyboard detection.
- Cleanup access modifiers a little.
2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Once again, attempting to get layout just right.
2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
* LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
the sizes of each link section, that will result in sizes that
match DrawString's layout (Fixes #78391)
2006-05-27 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: If AddExtension property is true autocomplete the
extensions in SaveFileDialog correctly. Fixes bug #78453.
Set MyNetwork and MyComputer to "C:\" for windows. This should
fix part 8 of bug #78446 for now.
2006-05-26 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (ColumnStartedEditing): fill these in. for now just
invalidate the current row header if we need to, but presumably
we'll invalidate the row corrsponding to the bounds or
editingControl.
(GridHScrolled): switch back to this method, as it's part of the
public api. *sigh*.
(GridVScrolled): same.
(OnMouseWheel): hack up something that more or less works. Call
GridHScrolled/GridVScrolled directly, instead of duplicating much
of their code here.
(EnsureCellVisibility): reinstate a bunch of this code, since we
can't just set the scrollbar Value and expect to do all the work
in the ValueChanged handler. Also, Call Update() after scrolling
in one direction so the other XplatX11.ScrollWindow call has the
proper stuff in the proper places.
(EditCell): set is_editing to true before calling .Edit.
* DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
don't bother comparing first.
(OnKeyPress): call grid.ColumnStartedEditing before calling
base.OnKeyPress. this will set is_changing and invalidate the row
header if necessary.
(ProcessKeyMessage): for WM_CHAR messages, call
ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
and WM_KEYDOWN.
* DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
it's done in the DataGrid.
(NextState): call grid.ColumnStartedEditing, which takes care of
invalidating the row header (and setting is_changing).
* DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
here. it's done in the DataGrid.
2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Control.cs: allow changing the cursor when the mouse position is
out of bounds but Capture is set.
* LinkLabel.cs: handle the case when the mouse button is pressed on the
linklabel but released somewhere else.
2006-05-25 Jackson Harper <jackson@ximian.com>
* TreeView.cs: When we get focus if there is no selected node make
it the top node
- Remove some uneeded setup code from Draw.
* TreeNodeCollection.cs: If the tree doesn't have a top node when
a new node is inserted make the new node the top.
* XplatUIX11.cs:
* Timer.cs: Use Utc time so that no local time zone stuff needs to
be used (should be faster).
2006-05-25 Chris Toshok <toshok@ximian.com>
* DataGrid.cs (EnsureCellVisibility): remove some code to fix a
problem with the last commit.
2006-05-25 Chris Toshok <toshok@ximian.com>
* DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
need the invalidate call here, while scrolling right-to-left via
the left arrow key (i.e. moving the editing cell while scrolling).
* DataGrid.cs (.ctor): remove the initialization of
ctrl_pressed/shift_pressed. We no longer track them using key
up/down handlers, but by using Control.ModifierKeys. Also, switch
to using ValueChanged handlers on the scrollbars instead of
Scrolled event handlers. This simplifies a bunch of the scrolling
code.
(GridHValueChanged): rename from GridHScrolled, and change it to
work with the new event args.
(GridVValueChanged): same.
(OnMouseDown): initialize ctrl_pressed/shift_pressed here.
(OnMouseWheel): actually scroll the datagrid. Don't change the
selected cell.
(ProcessGridKey): correct all the keyboard navigation stuff I
could find. Ctrl up/down/left/right/home/end work now.
(EnsureCellVisibility): correct method name spelling. Also,
simplify this a touch by not explicitly calling the
ScrollToRow/ScrollToColumnInPixels methods. We just set the
scrollbar value.
(OnKeyUpDG): no need for this method now.
2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* LinkLabel.cs: display the OverrideCursor when hovering the label.
Fixes bug #78392.
2006-05-25 Chris Toshok <toshok@ximian.com>
* ThemeWin32Classic.cs: fix datagrid clipping problems caused by
r61019.
2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
* Application.cs: Moved setting of is_modal and closing to before
we create the control, to allow the event handlers called as a
result of creation affect closing. Also removed Gonzalo's previous
change to setting DialogResult, the behaviour has been moved to
Form.ShowDialog()
* Form.cs:
- ShowDialog(): Removed explicit creation of the form, let RunLoop
handle it instead
- ShowDialog(): If no dialog result is set, we need to return Cancel
- WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
the close is cancelled
2006-05-25 Jackson Harper <jackson@ximian.com>
* StatusBar.cs: We only need to update the sizes of the other
panels when we have auto size contents. Also we are only updating
the contents of the panel, not the borders, so compensate for the
border width (TODO: get this width from the theme somehow).
* TreeView.cs: Scrollable is true by default
- Use invalidate instead of refresh where needed
- Factor the scrollable value into scrollbar updating
- Update the scrollbars if the Scrollable property is altered
- Update the selected node if its ImageIndex is changed
- Handle null nodes in UpdateNode (mainly so we don't have to
check if selected is null when updating it
- Fix VisibleCount to use the ViewportRectangle so that scrollbars
are factored into the visible count
- Use VisibleCount for clarity in the code
- When the font is changed we need to recurse through all the
nodes and invalidate their sizes
2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Application.cs: set the DialogResult to fixed when the main form is
hidden or destroyed while being modal.
2006-05-25 Miguel de Icaza <miguel@novell.com>
* Theme.cs: Use Tangoified messagebox icons.
(GetSizedResourceImage): Also cope with width = 0 and do not
trigger a warning in that case (0 means "give me your icon from
the resouce, no special size needed).
2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
* Application.cs: Leave runloop if the the main modal form is
hidden (fixes #78484)
2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
* BindingContext.cs : reject null datasource in Contains() and
Item[].
* CurrencyManager.cs : check data_member validity when data_source
is dataset. When it is late binding, the initial position is -1.
2006-05-24 Jackson Harper <jackson@ximian.com>
* TreeNodeCollection.cs: Dont't recalculate the visible order on
inserted nodes that aren't visible. This changes the
max_visible_order which confuses scrollbar settings.
- Use the enumerator to get the prev node instead of duplicating
code.
* TreeView.cs: Use new method for setting scrollbar values
- Don't set the bounds every time the scrollbar is updated
- When updating below the root node use an invalidate instead of a
refresh to prevent the child controls (scrollbars) from being
refreshed. (UpdateBelow still needs to be reworked anyways).
- Reenable SetBottom now that visible orders are set correctly,
added some debug code incase we ever get bad values there again.
- Set the scrollbar max to 2 less then the max value, this
compensates for the max value being one above the node count, and
for scrollbars adding one extra "notch".
- When drawing image nodes if there is an imagelist we draw the
first image in the list if the supplied image index is out of the
image list's bounds.
2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
we receive a size change from the WM (Fixes #78503)
2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
rectangle (Fixes #78501)
2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
* ButtonBase.cs:
- Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
as a bitfield.
- Fixed MouseMove to no longer switch pressed state unless the left
mouse button is pressed. Atsushi provided the original patch (#78485)
2006-05-24 Jackson Harper <jackson@ximian.com>
* ScrollBar.cs: New internal methods that allow us to change a
couple values on the scrollbar (the most common case is maximum
and large change) without getting multiple invalidates.
2006-05-24 Chris Toshok <toshok@ximian.com>
* DataGridBoolColumn.cs (Abort): revert back to the saved setting.
(Edit): save off the original state in oldState, and set
grid.is_editing to true.
(OnKeyDown): abort editing if escape is pressed. also, call
NextState if space is pressed.
(OnMouseDown): call NextState.
(NextState): factor out shared code from OnKeyDown and OnMouseDown
here. Also, only invalidate the row header once (on the initial
is_changing switch) to save on redraws.
2006-05-24 Chris Toshok <toshok@ximian.com>
* DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
if the value in the cell is different than it was before. This
keeps us from triggering a layout when we move around a datarid
with a highlighted cell.
(Edit): suspend layout when creating/positining the text box, and
resume passing false so we don't ever actually re-layout.
(ReleaseHostedControl): same.
(EnsureTextBox): reformat slightly, and set WordWrap to false.
* DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
control-key sequences should go to the datagrid - remove that
lock. Also, modify the conditions under which we move between
cells when moving the cursor within a cell, and remove the "this"
and "base" from field accesses. We weren't even consistent, given
they all were in the base class.
2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
* Binding.cs : (.ctor)
An obvious NRE fix for BindingTest.CtorNullTest().
2006-05-23 Chris Toshok <toshok@ximian.com>
* TextBoxBase.cs (get_Text): don't add a trailing newline, add
them between lines. This fixes some quirks editing cells in the
datagrid.
2006-05-23 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Use begin/end update when doing expand/collapse all
so that we don't get flicker on the scrollbar.
2006-05-23 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: Bounds are computed 'on the fly' now. This allows
treenode calculations to be independant of the painting code. To
do this nodes track a visible order which is calculated by the
treeview.
- Call new methods for expanding/collapsing nodes. These methods
use scrollwindow so we don't have to update everything below the
node.
* TreeView.cs: Refactored drawing and scrolling code. We don't
need to update nodes when drawing anymore or calculate scrollbar
stuff.
- Added new methods for expanding/collapsing nodes. These methods
use ScrollWindow so as to not have to redraw all the nodes below.
* TreeNodeCollection.cs: Recalc visible order and scrollbars when
we add/remove nodes or sort.
- Handle removing the selected and the top node properly.
2006-05-23 Chris Toshok <toshok@ximian.com>
* DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
maybe this should actually happen in the datagrid code?
(EndEdit): no need to invalidate anything, given that
ReleaseHostedControl causes the datagrid to relayout, which
invalidates everything anyway.
* DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
in SetCurrentCell).
(set_SelectionBackColor): call InvalidateSelection instead of
Refresh.
(set_SelectionForeColor): same.
(BeginEdit): Flesh this out a bit.
(CancelEditing): only do any of this if we're editing/adding.
(EndEdit): same.
(OnMouseDown): there's no need to cancel editing here, it's done
in SetCurrentCell.
(SetCurrentCell): only invalidate the current row header if it's a
different row than the new one.
(ShiftSelection): fix this to work like MS does.
(ResetSelection): factor out the invalidation of selected_rows to
InvalidateSelection.
(SetDataSource): cancel any editing that's going on.
* DataGridColumnStyle.cs
(IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
call the non-interface version.
* ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
header rectangle with the clip rectangle so we don't redraw the
entire header for just a small area. Gets rid of the last flicker
when horizontally scrolling.
(DataGridPaintRow): same.
2006-05-23 Mike Kestner <mkestner@novell.com>
* ListViewItem.cs: remove size for line hack from LargeIcon layout.
* ThemeWin32Classic.cs: don't draw line. it's really the top of a
poorly placed checkbox on the MS control. Fixes Alex's unfiled
Critical bug report.
2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
* PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
and this fixes #78493
2006-05-23 Miguel de Icaza <miguel@novell.com>
* Theme.cs (GetSizedResourceImage): Scale images if the proper
size is not found.
* FileDialog.cs: Do not change the background for the side bar as
it wont work nicely with the theme, and also reduces the artifacts
in rendering the icons (which I want to fix too).
* MimeIcon.cs (ResourceImageLoader): Load images from assembly
resources, not resgen resources.
(PlatformDefaultHandler): Pull images using the new API.
2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
* Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
a reference to the hwnd and will not remove it unless there are
no pending exposures (fixes #78341)
* XplatUI.cs: Improved debug
2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
* MenuAPI.cs : don't handle OnClick event when it was not the left
button. Fixed bug #78487.
2006-05-23 Mike Kestner <mkestner@novell.com>
* MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
prefer submenus to the top menu for item lookup, to avoid popping down
top-row items.
2006-05-23 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
Graphics.FillRectangle as the visual results are really bad (even
on win). We now draw perfect arrows (and perfect shadows when the
scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
Pen.DashPattern to draw the dots of each line.
2006-05-22 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Update the filename combobox when navigating through
the ListView with the cursor keys. Fixes part 7 of bug #78446.
2006-05-22 Mike Kestner <mkestner@novell.com>
* ListView.cs: raise SelectedIndexChanged on keyboard selection.
Fixes #78463.
2006-05-22 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
requests. Fix a misspelled parameter and a copy paste exception error
in Select.
2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
* ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
to get the same width/height (5/13) on X11 as the default font has on
win32. This means that our DefaultFont emSize is smaller than the
the MS SWF equivalent (even thought the width/height stays the same)
2006-05-20 Jackson Harper <jackson@ximian.com>
* MdiClient.cs:
* MdiWindowManager.cs:
* InternalWindowManager.cs: Make sure to use the border width from
the theme.
2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
* PrintDialog.cs: Implements printer details
2006-05-19 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Added focus handling for PopupButtonPanel.
Fixes part 1 and 2 of bug #78446
2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
instead of sticking to the first ever calculated value
2006-05-19 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: fix mouse motion selection to use MousePosition and
PointToClient, since Capture is set. Fixes #78344.
2006-05-19 Mike Kestner <mkestner@novell.com>
* ListView.cs: match MS behavior in Details view where items are not
drawn if Columns.Count == 0.
* ThemeWin32Classic.cs: only highlight ListView selection if focused.
Use a separate pen to draw the check, since changing the width affects
the box as well. Fixes #78454.
2006-05-18 Miguel de Icaza <miguel@novell.com>
* ListView.cs: ArgumentOutOfRangeException, single versions of the
exception should throw the name of the invalid argument.
* FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
there are no files listed.
2006-05-18 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
up.
2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Brought back our old UpdateZOrder method as a private
function and switched our calls from UpdateZOrder to the new one.
This fixes the Paint.Net canvas disappearing bug.
2006-05-18 Jackson Harper <jackson@ximian.com>
* Theme.cs:
* ThemeWin32Classic.cs:
* InternalWindowManager.cs: Move the drawing into the theme,
expose everything the theme should need from the window manager.
2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
from the call to NativeWindow to avoid walking up the parent chain
further than needed (speeds up setting cursors and avoids setting
the wrong cursor if a parent has another cursor defined)
* Cursor.cs: When loading an icon as cursor, MS uses the center of
the icon as hotspot, not what's contained as hotspot in the icon
file. This fixes the perceived drawing offset seen with Paint.Net
2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs:
- Store the calculated rectangle in Hwnd object and use it when
setting the client size
- Force Toolwindows to always be type Dock, to ensure they're on top
2006-05-18 Mike Kestner <mkestner@novell.com>
* ComboBox.cs: first pass at ComboBox rework. Layout is more
consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
Correctly initialize textcontrol and ListBox on DropDownStyle changes.
Substantial refactoring to remove confusing nested classes. Coding
standard and Get+Set->property refactorings. Shift to index based
highlighting in ComboListBox instead of constantly using IndexOf and
Items[]. Add invalidations on resize for DropDownList to fix ugliness
in FileDialog growth. Draw borders manually since Simple mode needs
to look like two independent controls. Make listbox border
conditional to DropDownStyle. Improved OwnerDraw support.
2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
* PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
Don't set the disposed graphics to null, so we can throw the "right"
exception if the graphics is reused later (added a flag to avoid
double disposing). Some behaviours are different under 2.0 and are
filled under bug #78448.
2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: When double-buffering is enabled, we need to reset
our graphics context between paint calls. Otherwise, any
transformations and other alterations on the context will
become cumulative (#77734)
2006-05-18 Mike Kestner <mkestner@novell.com>
* ListView.cs: do focused item selection like MS on clicks.
Rework focus handling for ItemControl so LostFocus invalidates as
well.
* ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
the ListView ItemControl has focus.
2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: If client_window ends up being width or height zero
due to border settings, move it off window inside whole_window (#78433)
2006-05-17 Alexander Olk <alex.olk@googlemail.com>
* Mime.cs: Shrink the mime file cache correctly.
2006-05-17 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (AddExpose): More sanity checks
2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs:
- AddExpose: Don't add expose ranges outside the size of our
window
- Cast opacity values to Int32 to avoid crashes with certain
values
- Added disabled code paths that protect against illegal cross-
thread painting (Developers.exe)
2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
* ProgressBar.cs: Invalidate the control when it's resized
since block size is based on control size. (#78388)
2006-05-16 Miguel de Icaza <miguel@novell.com>
* DataGrid.cs (SetDataBinding): per the discussion on irc, instead
of setting the incoming argument to the "reset" value, we set the
this.datamember to string.empty (before we were invalidating the
incoming data).
Fixes 78420
2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs: Only apply transparency settings after the form
is created. (Fixes #77800)
2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
* ApplicationContext.cs: Grab the HandleDestroyed event so
we know when to fire OnMainFormClosed
2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
* Application.cs: Introduced sub-class to allow tracking of
threads and centralized triggering of the event mess for
ThreadExit, AppExit, etc.. (#76156)
2006-05-16 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs:
- Do not return a null icon index value for a mime subclass.
Instead try the main mime type class too.
- Seems that some newer distributions don't have a link to some
gnome default icons anymore. So check the default gnome dir too.
2006-05-16 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Don't paint the parent background image if we have
our own background image.
2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- PerformLayout: Do not shrink space filled by DockStyle.Fill
controls, all filled controls are supposed to overlap (#78080)
- UpdateZOrder is supposed to update the control's z-order in the
parent's z-order chain. Fixed to behave like that
- BringToFront: Removed obsolete code
- SendToBack: Simplyfied
- SetChildIndex: Trigger layout calculations when Z-order changes
since layout is done by z-order
2006-05-16 Chris Toshok <toshok@ximian.com>
[ fixes bug #78410 ]
* DataGrid.cs (set_AlternatingBackColor): use
grid_drawing.InvalidateCells instead of Refresh().
(set_BackColor): call grid_drawing.InvalidateCells.
(set_BackgroundColor): use Invalidate instead of Refresh.
* DataGridDrawingLogic.cs (InvalidateCells): new function, just
invalidate the cell area.
2006-05-15 Chris Toshok <toshok@ximian.com>
[ fixes bug #78011 ]
* ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
on to DataGridPaintRow.
(DataGridPaintRow): take a clip argument, and only draw the cells
which intersect it. same with the not_usedarea.
* Theme.cs (DataGridPaintRow) add @clip parameter.
* DataGrid.cs (ScrollToColumnInPixels): simplify, use
XplatUI.ScrollWindow.
(ScrollToRow): same.
* DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
with last column which was causing a gray swath to appear with the
XplatUI.ScrollWindow code.
2006-05-15 Chris Toshok <toshok@ximian.com>
* ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
use XplatUI.ScrollWindow.
(VerticalScrollEvent): use XplatUI.ScrollWindow.
2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
* Cursors.cs: For X11, read NWSE and NESW cursors from our resource
file since there are no equivalent X11 cursors
2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
* MonthCalendar.cs : DateTimePicker should reflect selected date
on mouse*up*, not mouse*down*. Fixed originally reported part of
bug #76474.
2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
* TabControl.cs : When argument index is equal or more than tab
count, just ignore. Fixed bug #78395.
2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Dispose all child controls when control is diposed (#78394)
2006-05-14 Alexander Olk <alex.olk@googlemail.com>
* ColorDialog.cs: Finally it is possible to select the color with
the text boxes
2006-05-14 Alexander Olk <alex.olk@googlemail.com>
* PrintDialog.cs: Fix typo
2006-05-14 Alexander Olk <alex.olk@googlemail.com>
* PrintDialog.cs: PrintDialog is not resizable
* ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
color. Made some ToolBar drawing methods protected virtual.
2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
* PrintDialog.cs: Implementation of the PrintDialog
2006-05-12 Chris Toshok <toshok@ximian.com>
* ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
thumb, instead use MoveThumb. This has the side effect of making
most of the other thumb moving machinery use MoveThumb as well.
(OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
need to actually invalidate the rectangle where the new thumb will
go.
(MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
We force an Update() after, so it's not as fast as it could be,
but at least there's zero flicker and no droppings.
(OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
(UpdateThumbPos): add another argument (dirty), which says whether
or not to calculate/add dirty regions which we later invalidate.
For cases where we know we're going to use MoveThumb, we pass
false for this. Otherwise, pass true.
2006-05-12 Jackson Harper <jackson@ximian.com>
* ThemeWin32Class.cs: Fixes for alignment and icon rendering in
the status bar.
2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
and GetClipRegion methods and UserClipWontExposeParent property.
* XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
overriding UserClipWontExposeParent property, setting to false, since
Win32 handles the required expose messages to draw our clipped parent
areas internally
* XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
PaintEventStart to set the user clip region if set.
* Control.cs:
- Now internally tracking the Region for the control since we need to
store it if the handle is not yet created and only set it when it
becomes created. Before setting the region forced handle creation
- Added code to draw the parents underneath a user-clipped region
* Hwnd.cs: Added UserClip property
2006-05-12 Chris Toshok <toshok@ximian.com>
* ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
(set_Maximum): same.
(set_Minimum): same.
(set_SmallChange): same.
(OnMouseUpSB): remove the call to refresh when releasing the
thumb. We shouldn't need it.
2006-05-12 Miguel de Icaza <miguel@novell.com>
* StatusBar.cs (UpdatePanel): If the panel being refreshes has the
AutoSize set to None, we do not need to relayout everything, we
just need to invalidate the current region.
(Draw): Do not draw the entire ClientArea, just redraw the
clip area being passed.
* MdiClient.cs: Make MdiClient constructor with the Form argument
internal.
2006-05-12 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
parents background image, but strangely not their own.
- (DrawStatusBarPanel): Take into account horizontal alignment
when drawing the strings and icons.
2006-05-12 Mike Kestner <mkestner@novell.com>
* ListBox.cs: avoid invalidations for focus when the collection is
empty.
2006-05-12 Chris Toshok <toshok@ximian.com>
* ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
invalidate the entire thumb area. Call InvalidateDirty which
limits the redraw to the thumb itself and surrounding pixels.
* XplatUIX11.cs (ScrollWindow): optimize copying.
2006-05-12 Chris Toshok <toshok@ximian.com>
* DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
Figure out the positioning/layout in a single pass instead of
multiple recursive invocations. Speeds up the initial display of
the data grid. Also, make many things private that were
originally public but unused outside this class.
2006-05-11 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Improved layout code.
2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertyGrid.cs : Only check GetPropertiesSupported for properties,
not SelectedObject.
2006-05-11 Chris Toshok <toshok@ximian.com>
* Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
union of that will always be {0,0,width,height}.
2006-05-11 Jackson Harper <jackson@ximian.com>
* Form.cs: Match MS's DefaultSize for forms (they must have
changed the size in sp2).
2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
* TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
* TextControl.cs : Fixed bug #78109. This incorrect position
comparison caused crash on automatic line split.
* TextBoxBase.cs : reduce duplicate code.
2006-05-10 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Active form is only sent to the back when using
the Next form functionality, when a form is clicked the current
active shouldn't be sent to the back.
- Layout the mdi windows when the container is first made visible.
* Form.cs: Give the MdiClient a ref to the containing form when we
create it.
2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
* LinkLabel.cs : link_font could be uninitialized, so populate one
before actual use. Fixed bug #78340.
2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
* XplatUIX11.cs : clipboard format native value is IntPtr.
Fixed bug #78283.
2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- Instead of showing context menus directly we send WM_CONTEXTMENU,
which is passed up the parent chain by DefWndProc
- We now handle WM_CONTEXTMENU to display any menu, or pass it
to DefWndProc (#77956)
* XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
2006-05-10 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: We need to remove the controls from the mdi
collection, when we close the window.
* MdiWindowManager.cs: Special handling of closing mdi windows.
* InternalWindowManager.cs: Make the close method virtual so the
mdi window manager can handle it specially.
2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
* DataGrid.cs:
- Recalculate grid when the data source has changed
- Matches styles provided by user from all data sources types
* DataGridTableStyle.cs: For columns that provided by the user set the
with the preferred value is there was unassigned.
* CurrencyManager.cs: throw OnItemChanged event
2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
* PictureBox.cs: Don't animate until handle is created. Start animation
when handle is created.
2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
current codebase.
* XEventQueue.cs: We don't need to provide the extra info
2006-05-10 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: If the mdi clients parent form has a background
image set, we draw that background image for the mdi area's
background.
2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: Set IBeam cursor (#78347)
2006-05-10 Mike Kestner <mkestner@novell.com>
* ToolBar.cs: fix some text padding issues with ButtonSize
calculation. Update the default size to match MS documentation.
* ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
button size. Fixes #78296.
2006-05-10 Mike Kestner <mkestner@novell.com>
* ListBox.cs: use is_visible for scrollbar positioning in case the
control isn't on screen yet. Fix off by one with Right vs Width
usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
2006-05-10 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Drop to a control with another control on top of it.
* ToolBar.cs: Work on a copy of the buttons list, so that it can
be modified in click handlers. TODO: Look for similar problems in
other controls.
2006-05-09 Jackson Harper <jackson@ximian.com>
* Form.cs: Window managers need the old window state when setting
window state now.
* InternalWindowManager.cs: Allow the base mdi window manager to
handle more of the MDI only stuff (like maximize buttons).
* MdiWindowManager.cs: Fix some snafus in changing the window
state. Add all the menu functionality, for both popup and
maximized menus.
* MdiClient.cs: When a new form is selected the currently
activated form is sent to the back, this matches MS.
- Implement a new method to activate the next mdi child window.
2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- Added new InternalCapture method to allow controls to prevent
the capture behaviour on the click handlers
- Switched to use InternalCapture
* ComboBox.cs:
- Using InternalCapture to prevent mouse captures from being released
on mouse button release (Fixes #78100)
* XplatUIX11.cs (DeriveStyles): Now checks caption state and only
returns Form borders if a caption is present. (Fixes #78310)
2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
* TreeNode.cs: Changed serialization .ctor to not require every field
to be present. (#78265)
* OwnerDrawPropertyBag.cs: Added serialization .ctor
2006-05-05 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: for is faster than foreach for strings.
2006-05-05 Mike Kestner <mkestner@novell.com>
* CheckedListBox.cs: update check handling code to not use selected.
* ListBox.cs: rewrite of mouse selection handling to correspond to MS
behavior for visual feedback, motion response, shift/ctrl handling,
and properly deal with all 4 selection modes. Updates to bounds
handling logic. Add scroll wheel support. [Fixes #77842]
2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
* ListView.cs:
- Moved adding of Implicit controls into .ctor. That way, subsequent
creation of the controls will not cause them to think they are
toplevel windows (fixes #78200 header problem)
- Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
- Switched visibility setting of header control to use internal field
to avoid triggering handle creation
- Now checking if handle is created before causing a refresh when items
are added (This makes us now match handle creation time with MS)
* Splitter.cs: Removed loading of private splitter cursor, switched to
Cursors version now that that is loading the right ones
* Cursors.cs: Load proper splitter cursors from resources
* Cursor.cs: Added second method of loading resource cursors for the
VS.Net users amongst us
2006-05-05 Mike Kestner <mkestner@novell.com>
* ListView.cs: give header_control a minimum size based on the
ListView size.
2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
window seems to do that with metacity, so set that type. (#78120)
2006-05-05 Mike Kestner <mkestner@novell.com>
* ListViewItem.cs: fix Details mode checkbox layout bug.
* ThemeWin32Classic.cs: draw a ListView column header for unused space
at the end of the header, if it exists. [Fixes for #78200]
2006-05-04 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Add a helper property to get the container form.
* MdiWindowManager.cs: We have to make sure to use the menu origin
when drawing the icons and buttons, this fixes maximized window
icons/buttons on win32.
* InternalWindowManager.cs: Reset the restore captions when a
window goes from Maximized to Minimized and vice versa. Move the
DrawMaximizedButtons into the MdiWindowManager source, tool
windows can't be maximized. NOTE: This could use a little
refactoring if time ever permits.
2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
* TextBox.cs: Add MWFCategoryAttributes
* TextBoxBase.cs: Add MWFCategoryAttributes
* Form.cs: Add MWFCategoryAttributes
2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
* Control.cs: Add MWFCategoryAttributes
* ScrollableControl.cs: Add MWFCategoryAttributes
2006-05-03 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Draw the ToolBar top border only if
Divider is true. Fix a little glitch in PropertyToolBar
drawing code
2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- Dispose: Call base.Dispose, this causes the disposed event
to be fired (and probably other, more important stuff)
- SetVisibleCore: Set is_visible to true after creating the
window so that the window still gets created invisible (if
WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
to generate a WM_ACTIVE message
* Form.cs: Call Dispose when we want to destroy the window, instead of
just destroying the handle (Dispose will do that for us)
* XplatUIX11.cs:
- RootWindow also needs a queue, so we can properly process the
property change events from RootWindow (like Activate)
- Generatic synthetic WM_ACTIVE message when the active window is
being destroyed
2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
* LinkLabel.cs: Trigger a recalc of our label dimensions when
bounds are changed
2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
* ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
for determining width and height (image might not be assigned if
we're drawing an imagelist)
2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
* XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
height from system
* Theme.cs: No longer returns hardcoded menu height, instead calls
new driver method
* Form.cs (OnLoad): Scaling happens before triggering Load events
on MS (# 78257)
2006-05-01 Mike Kestner <mkestner@novell.com>
* MenuItem.cs: fix NRE for text == null. Fixes #78250.
2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: Removed Fixme
* RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs:
- ScrollWindow: We were passing hwnd.ClientRectangle which returns
the rectangle relative to the parent, considering borders. We
don't really want that.
- ScrollWindow: Fixed warning to be more understandable
* TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
scrollbars and scroll only the visible area
* RichTextBox.cs: Removed debug output
2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
* NumericUpDown.cs (Text): Just use base
* UpDownBase.cs: Ensure txtView is created before using it
2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
casting to IntPtr to avoid 64bit overflow errors
2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- AllowDrop: Don't force handle creation.
- CreateHandle: Added call to tell driver if we're allowed to drop
2006-04-27 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Remember the last directory not only for the
current instance but also for new FileDialog instances.
2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Forgot to set the queue on the foster parent. That
broke sending async messages
2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs:
- ScrollWindow: Fixed method. We finally generate expose events again
for scrolled areas. This was causing 'garbage' when scrolling
textbox and other controls that used ScrollWindow
- Switched from using the regular queue for paint events to the MS
model of 'generating' paint events when the queue is empty.
We use the new XQueueEvent.Paint subclass to store which windows
need painting.
- AddExpose now takes the x/y/width/height of the exposed area
and inserts the window into the paint queue if not already there
- InvalidateWholeWindow: Switched to use new AddExpose method
- UpdateMessageQueue: Added which queue to monitor for paint events
- DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
the unlikely case nothing above handles it. We reset the expose
pending states to get them off the queue.
- GetMessage: Now pulls a paint event if no other events are in the
queue
- Invalidate: Switched to new AddExpose method
- PeekMessage: Updated to understand pending paint events
- UpdateWindow: Fixed logic bug. We were only updating if the window
didn't need updating. Also switched to sending WM_PAINT directly,
like MS does.
* XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
and random access Remove(). The random access is needed to handle
UpdateWindow() where a WM_PAINT is sent directly without accessing
the queue.
* ScrollBar.cs: Added Update() calls to cause immediate updates to
allow for better feedback when scrolling. Scrollbars are small and
the immediate update should make it 'feel' more responsive without
slowing things down. ScrollBar still needs it's invaliate logic
updated to not always invalidate the whole bar on certain changes.
2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Control.cs:
(BackColor): if the control does not support a transparent background,
return the default backcolor when the parent backcolor is transparent.
2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
* Application.cs: Updated to new StartLoop/GetMessage API
* RichTextBox.cs: Provide some output on RTF parsing errors
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
new queue_id argument to GetMessage and PeekMessage to allow faster
handling of per-thread queues in drivers.
* Hwnd.cs: Added Queue tracking and property
* MenuAPI.cs: Updated to new StartLoop/GetMessage API
* XEventQueue.cs: Added thread trackingA
* PropertyGridView.cs: Updated to new StartLoop/GetMessage API
* XplatUIX11.cs:
- Implemented new per-thread queue
- GetMessage: Fixed return/break behaviour on several cases. We were
returning stale messages in some cases, instead of just processing
the next message
2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
* ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
fixed off-by-one comparisons between Width/Height and Right/Bottom.
2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertyGridView.cs: Fix drop down width.
2006-04-27 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Peter thinks that three additional lines are
a mess in DrawToolBar, so I removed one of them.
2006-04-27 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Draw the ToolBar border lines only if
needed (clip). Otherwise we get artifacts.
2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
* FixedSizeTextBox.cs: Added constructor to allow specifying which
dimension is fixed
* UpDownBase.cs: Set the spinner control to be fixed height vertical,
and switched FixedSizeTextBox to only be fixed vertical (#78116)
* Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
if it matches the scale base font (avoids unneeded scaling)
2006-04-26 Alexander Olk <alex.olk@googlemail.com>
* X11DesktopColors.cs: One gtk_init_check should be enough
2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
match MS behaviour
2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs:
- Generate OnTextChanged for Backspace even if we're only deleting
the current selection
- When setting the Text property, only select all text if the
control does not have focus when it is being set. Otherwise
just place the cursor at the beginning of the control
2006-04-26 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
Added a little helper to draw PropertyGrid ToolBar with a different
border and a different BackColor.
* PropertyGrid.cs: Some background parts didn't get painted with the
correct background color. Added a class that helps us to draw the
correct border for PropertyGridView and a class that helps us to
draw ToolBars with a different backcolor
* PropertyGridView.cs: Draw PlusMinus with the correct colors.
2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertyGrid.cs: Bug 78196, font size, and splitter location.
* PropertyGridView.cs: Bug 78196, font size, and splitter location.
2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
into the palette entries. Also, since we're working on a copy
we needed to copy the palette back onto the bitmap.
* Cursor.cs: Same fix as XplatUIWin32.cs.
2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
* ImageListStreamer.cs: Need to read the var (or we're off)
2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
TextBoxBase.cs: Unused var fixes
* AxHost.cs: Small 2.0 fix
* XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
as it seems that is what at least Metacity expects. This will make
icons show up on 64bit platforms. We still have some 64bit size
issues, though, since the startup app window size still won't match.
2006-04-25 Mike Kestner <mkestner@novell.com>
* *.cs: cleanup newly reported exception var unused warnings.
2006-04-25 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Button image alignment now matches exactly
ms
2006-04-25 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Fixed drawing code for buttons with an
image. The image position is always the same, no matter if the
button is pressed or not.
2006-04-25 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
selection and set the correct filename for SaveFileDialog.
Patch by Emery Conrad.
2006-04-24 Mike Kestner <mkestner@novell.com>
* ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
check for item.X outside the ClientRect instead of item.Y. Fixes
#78151.
2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ImageListStreamer.cs: some images store a wrong grow factor, so don't
trust that value blindly and do some sanity check. Fixes bug #77814.
2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ImageListStreamer.cs: save the mask as a 1bpp image.
2006-04-21 Mike Kestner <mkestner@novell.com>
* CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
pass Checked and Indeterminate to the Theme Engine. Improve
encapsulation with ListBox.
* ListBox.cs: Keep a StringFormat instead of calculating it every item
draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
nested types. Move all CheckState functionality to CheckedListBox.
Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
ScrollAlwaysVisible handling. Refactor "selected" collections to use a
single base list. Fix scrollbar sizing and placement to mirror MS.
* Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
used.
* ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
for CheckedListBox by using new DrawItemState info. Center the
checkboxes on the items. Use new StringFormat property.
2006-04-18 Jackson Harper <jackson@ximian.com>
* Form.cs: MdiChildren don't do default locations the same way as
regular forms. This prevents a crash when trying to position the
mdi windows.
2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertyGridTextBox.cs: Formatting, copyright
* PropertiesTab.cs: Formatting
* PropertyGrid.cs: Formatting
* PropertyGridView.cs: Formatting, fix drop down, enabled double
click toggling of values
2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
* KeyPressEventArgs: Added 2.0 only setter for KeyChar
* Control.cs (.ctor): verify_thread_handle is static, don't reset
every time a control is created
* Application.cs: Removed obsolete EnableRTLMirroring method
2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
* TabControl.cs: Avoid ArgumentOutOfRangeException when setting
SelectedIndex to -1. Fixes bug #78121.
2006-04-17 Jackson Harper <jackson@ximian.com>
* Binding.cs: Handle null values for Current and BindingContext.
This occurs when binding is a little delayed.
* CurrencyManager.cs: return null for Current when there are no
items in the list.
- Hookup to the listchanged event on the DataView and update
bindings when the list is changed. This fixes late binding of
controls.
2006-04-17 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs:
* XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
Ringenbach.
2006-04-15 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Draw disabled combo button in the correct
place
* ComboBox.cs: If the combobox is disabled call CPDrawComboButton
with the correct ButtonState
2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Improved distinguishing between window types to
tell the WM a type closer to what the app wants (Fixes #78107)
2006-04-14 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
GrabHandle
2006-04-14 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
drawing code to reflect the size grip changes
2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ImageListStreamer.cs: fix handling of the mask that follows the main
bitmap when deserializing and serialize it properly. The generated mask
should better be a 1bpp image, but I'll do that later.
2006-04-13 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Show something in the DirComboBox on *nix if the
path doesn't fit into some of our Current.Places
2006-04-13 Jackson Harper <jackson@ximian.com>
* ComboBox.cs: Use borders instead of drawing our own decorations,
try to obey correct rules for heights.
* Theme.cs:
* ThemeNice.cs:
* ThemeClearLooks.cs:
* ThemeWin32Classic.cs: Remove combobox decoration drawing code,
this is now handled by borders.
- Remove unused DrawListBoxDecorationSize method.
2006-04-13 Mike Kestner <mkestner@novell.com>
* MenuAPI.cs: null guarding for the disbled click check fixes crash
reported by Alex.
2006-04-13 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs:
- Fixed CPDrawStringDisabled
- Corrected drawing of disabled menu items
- Fixed drawing of disabled radio buttons (bug #78095)
- Draw check in a disabled CheckBox with color ControlDark
2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs: Use the provided width when calculating the menu size;
when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
and ClientSize.Width won't be updated yet
* Application.cs: Use Visible instead of Show() to make form visible,
this way we create the handle later and menusize is considered
2006-04-12 Mike Kestner <mkestner@novell.com>
* MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
reporting.
2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
* TextBox.cs: Implemented context menu
2006-04-12 Mike Kestner <mkestner@novell.com>
* ListView.cs: implement box selection. fixes #77838.
* ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Added setting of window type when transient window
is created (metacity would move it otherwise)
* X11Structs.cs: Added WINDOW_TYPE atoms
* LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
background (the control is Opaque but still wants transparent
backgrounds)
2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Added OnPaintBackgroundInternal to allow controls
that set Opaque but don't mean it (like all ButtonBase-derived
controls) to still draw their background
* ButtonBase.cs: Override OnPaintBackgroundInternal and draw
the background
2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (PaintControlBackground): Set the graphics object
on our PaintEvent to null to prevent it from being disposed
when the PaintEvent gets disposed
2006-04-12 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
* ThemeNice.cs, ThemeClearlooks.cs: fix typo
2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- Added transparency check to BackColor property. Transparent
backgrounds are only allowed if the control styles permit it
- Added recursive painting of parent control background and
foreground if a control with a transparent backcolor is drawn
(Thanks to Tim Ringenback for providing his 'hack' as a base
for this patch) Fixes #77985 and #78026.
- Added Opaque style check before calling OnPaintBackground, no
need to draw the background if the control is opaque
- Removed ControlAccessibleObject owner variable (inherited from
base, no need to define again)
- Added some documentation links explaining the drawing events
and styles
2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
* Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
that the affected control is the located at the left border of our
parent (Fixes #77936)
2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: When rendering disabled or readonly controls,
draw the background with 'Control' instead of 'Window' color as
long as the user hasn't specifically set a color
2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: Don't try to shortcut by checking against base.Text
since that won't be updated if the user types text (only if it's
programatically set)
2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
* ScrollableControl.cs: Calculate DisplayRect dynamically, so that
layout changes do to app-triggered resizes will have the proper
display rectangle for layout
2006-04-11 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs:
- Make use of the SystemBrushes and SystemPens wherever possible
- Corrected some highlight colors
- Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
drawing
* Theme.cs: Added Empty field to CPColor struct
2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
* ScrollabeControl.cs: We need to consider whether or not a scrollbar
is displayed when calculating the display rectangle. Thanks to Mike
for teaching me the err of my ways.
2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
* ScrollableControl.cs:
- Rewrote DisplayRectangle code, now returning the proper x/y coords
(instead of 0,0) and we now return the real width/height instead of
just the clientrectangle, adjusted for padding. The rectangle is
now cached and created by the new CalculateDisplayRectangle method.
- Created new CalculateDisplayRectange method, which basically does
what get_DisplayRectangle() did originally, but now using the
right edge instead of DisplayRectangle to determine the size of
our scrollbars
- get_Canvas(): Fixed it to properly calculate canvas for
right/bottom controls which seem to be placed to the right/bottom
of any controls that have a fixed location
- Removed TODO that's taken care of
- Removed NotImplementeds and attempted to implement AdjustFormScrollBars
and SetDisplayRectLocation according to new MSDN2 docs
- Added call to PerformLayout in OnVisibleChanged, MS causes a layout
event when that is called, this is added for compatibility
- ScrollControlIntoView(): Implemented.
- Switched scrollbars to be implicit, they shouldn't be selectable
* ContainerControl: Now that ScrollControlIntoView is implemented, we
call it when the active control is set/changed
* ScrollBar.cs: Added support for generating Win32 scrollbar messages
* ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
implicit_control variable (used for native Win32 message generation)
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
HorizontalScrollBarHeight and VerticalScrollBarWidth properties
* ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
* XplatUIStructs.cs: Added ScrollBarCommands enum
2006-04-10 Jackson Harper <jackson@ximian.com>
* ButtonBase.cs:
* CheckedListBox.cs:
* ComboBox.cs:
* DataGrid.cs:
* DataGridView.cs:
* Form.cs:
* GroupBox.cs:
* ListBox.cs:
* PrintPreviewControl.cs:
* ProgressBar.cs:
* PropertyGrid.cs:
* Splitter.cs:
* StatusBar.cs:
* TrackBar.cs:
* UpDownBase.cs: Fixup base event overrides.
2006-04-06 Mike Kestner <mkestner@novell.com>
* ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
all user-initiated value changes to min <= value <= max-thumbsz+1.
(set_Value): check for vert/horiz when calculating new thumb position.
(LargeIncrement): bounds check to stop pos at max - thumb_size + 1
like MS does.
(OnMouseMoveSB): refactor the thumb dragging code and refine
invalidation logic to reduce flicker.
(SetEndPosition): bounds check to stop pos at max - thumb_size + 1
(SmallIncrement): bounds check to stop pos at max - thumb_size + 1
(UpdateThumbPosition): small code readability cleanup
2006-04-10 Alexander Olk <alex.olk@googlemail.com>
* ThemeNice.cs: Small UI polishing. Draw borders a little bit
different
2006-04-08 Alexander Olk <alex.olk@googlemail.com>
* ThemeNice.cs: Use a better graphics effect when a button is pressed
2006-04-08 Alexander Olk <alex.olk@googlemail.com>
* Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
* ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
This dramatically reduces the number of Pen.Dispose calls.
Where possible call ResPool methods only once instead of calling it
over and over again (for example for the same color).
2006-04-06 Mike Kestner <mkestner@novell.com>
* TabControl.cs: fix for SelectedIndex updating on TabPage removals.
Also remove an unused private field on the collection. Fixes #77972.
2006-04-06 Alexander Olk <alex.olk@googlemail.com>
* ThemeNice.cs: Added ToolBar drawing code
2006-04-06 Mike Kestner <mkestner@novell.com>
* Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
I'm assuming that means we need to look up the toplevel for the
provided control. Fixes the crash trace in #77911 but exposes another
crash in some strange reflection usage in NDocGui.
2006-04-06 Alexander Olk <alex.olk@googlemail.com>
* ThemeNice.cs: Gave it a little silver touch and added Images
method
* FontDialog.cs: FontDialog is not resizable
* FileDialg.cs: Added SizeGripStyle.Show
2006-04-05 Jackson Harper <jackson@ximian.com>
* KeyboardLayouts.cs: Remove warning.
2006-04-05 Jackson Harper <jackson@ximian.com>
* Control.cs: Enable OnPaintInternal so we can use it for drawing
all of our controls instead of Paint +=.
* ListBox.cs:
* ListView.cs:
* MenuAPI.cs:
* MessageBox.cs:
* NotifyIcon.cs:
* ProgressBar.cs:
* ScrollBar.cs:
* Splitter.cs:
* StatusBar.cs:
* TabControl.cs:
* TextBoxBase.cs:
* ToolBar.cs:
* TrackBar.cs:
* UpDownBase.cs:
* ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
use OnPaintInternal. Remove Width/Height and Visible checks in
paint handler, this is done at a higher level now.
* GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
* PaintEventArgs.cs: Add a handled flag so controls that don't
want anymore painting after OnPaintInternal can make sure OnPaint
isn't called.
2006-04-05 Mike Kestner <mkestner@novell.com>
* Form.cs: fix the menu WndProc hacks to respect the native enabled
state of the form, so that we don't process events when Modal dialogs
are up. Fixes #77922.
2006-04-05 Alexander Olk <alex.olk@googlemail.com>
* Mime.cs: Default for range length is 1 not 0. If set to 0 no match
checking is done.
2006-04-05 Mike Kestner <mkestner@novell.com>
* XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
2006-04-05 Mike Kestner <mkestner@novell.com>
* ListView.cs (HeaderMouseMove): null guarding for the over column
when setting up the drag_to_index. Fixes #78015.
2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
in the taskbar. Transient windows seem to accomplish that.
2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs:
- Re-enabled CreateParams.X/Y code for FormStartPosition
- Added code for manual placement when creating the Control
- Incomplete patch to treat MDI forms differently when
setting the ClientSizeCore. (Still need to figure out handling
x/y coords there)
* XplatUIX11.cs:
- When we're explicitly setting the X/Y position of a non-Child
window, let the WM know. Metacity really wants this.
2006-04-04 Alexander Olk <alex.olk@googlemail.com>
* ThemeNice.cs: Added CPDrawButton
2006-04-04 Alexander Olk <alex.olk@googlemail.com>
* ThemeNice.cs: Changed the color for focused buttons and activated
the arrows for small scroll buttons.
2006-04-04 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
anymore. Changed some method modifiers to protected (virtual)
* ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
changes
* ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
Updated drawing of menus, buttons and progressbars; added
CPDrawBorder3D
2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ImageListStreamer.cs: implemented serialization/deserialization
of the images.
2006-04-03 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs:
- Removed all the DrawFrameControl stuff; CPDrawButton,
CPDrawCheckBox and CPDrawRadioButton are now handled directly
inside the methods
- Updated and corrected the drawing code of CPDrawButton,
CPDrawCheckBox and CPDrawRadioButton to better match ms
- Updated theme checkbox and radiobutton code to use the CP*
methods
2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Enable clipping again now that the libgdiplus
bug is fixed
2006-03-31 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
sometimes.
* UpDownBase.cs: Don't CreateGraphics manually, use a
Refresh. Ideally we would invalidate the correct areas here.
2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs:
- We now track the mapping state of windows. If a window (or
one of it's parents) is not mapped we no longer permit
WM_PAINT messages to be generated since we'd otherwise get
lots of BadMatch X errors. Jackson did all the work figuring
out the problem.
- Destroying the caret if the window it's contained in is
destroyed. Can't use regular DestroyCaret method since it
might fall into a drawing function (trying to remove the
caret) and with that generate new BadMatch errors. Again,
Jackson tracked this down.
- Changed DestroyChildWindows to SendWMDestroyMessages, we now
make sure we send the messages to all windows. (The old code
would send the WM_DESTROY to the window, and then all child
windows would be 'gone' because the WM_DESTROY handle lookup
would no longer find the destroyed window)
* Hwnd.cs: Added Mapping property to track mapping state of hwnd
* X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
2006-03-31 Jackson Harper <jackson@ximian.com>
* ScrollableControl.cs: Dont recalc if we are not visible.
2006-03-31 Mike Kestner <mkestner@novell.com>
* Control.cs (SetVisibleCore): move the CreateControl call up ahead of
the visibility branch.
2006-03-31 Jackson Harper <jackson@ximian.com>
* ScrollBar.cs: Cap values when incrementing/decrementing.
2006-03-31 Mike Kestner <mkestner@novell.com>
* MenuAPI.cs: setup menu.tracker for popup/context menus.
* ToolTip.cs: guard against timer expirations with no active control.
Not sure why it happened.
2006-03-31 Mike Kestner <mkestner@novell.com>
* ThemeWin32Classic.cs: add some horizontal padding space for the tip
text.
* ToolTip.cs: Position the tooltip based on where the cursor is at
popup time, not at MouseEnter time. Add a Down state so that we don't
redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
positioning offset. Lookup DisplaySize at positioning time, since it
can theoretically change during invocation.
* XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
* XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
2006-03-31 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
Fixes behaviour when the Text property of the box is String.Empty
2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Only send mouseleave for our client windows, not
for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
a window)
2006-03-31 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Visual enhancement for the popup buttons in
PopupButtonPanel
2006-03-31 Alexander Olk <alex.olk@googlemail.com>
* ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
code
2006-03-30 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
highlighted menu items to match ms
2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
2006-03-30 Mike Kestner <mkestner@novell.com>
* Menu.cs (SelectedItem): use new MenuItem.Selected prop.
* MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
go active to account for HotLight to Selected transition.
* MenuItem.cs: add internal Selected prop. Fill out the Status
property by calculating it from item info. Add HotLight,
NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
2006-03-30 Mike Kestner <mkestner@novell.com>
* MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
2006-03-29 Jackson Harper <jackson@ximian.com>
* Form.cs: Implement TODO.
2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
* PrintPreviewDialog.cs: Implemented missing methods and events; still
missing proper dialog setup in the constructor
2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
* ProgressBar.cs: Added 2.0 Style property that apps seem to use
* Control.cs:
- Implemented CheckForIllegalCrossThreadCalls, removed TODO
- Fixed ResetBindings and removed TODO
- Added check for cross-thread calls to get_Handle()
- Added Marshaller attribute for set_Font to satisfy class status
* FontDialog.cs: Removed TODOs that seemed implemented
* UpDownBase.cs: Removed unneeded TODO and Fixme
* MessageBox.cs: Implemented support for Default button and removed TODO
* FileDialog.cs: Removed obsolete TODO
* DomainUpDown.cs: Removed obsolete TODO
* ButtonBase.cs: Removed obsolete TODO
* XplatUIWin32.cs: Removed obsolete TODO
* Form.cs:
- Removed obsolete TODO
- Calling CheckAcceptButton when the acceptbutton is changed to allow
internal status updates
- Making sure the active control is selected when the control is created
* CurrencyManager.cs: Removed obsolete TODO
2006-03-29 Mike Kestner <mkestner@novell.com>
* *.cs: fix remaining corcompare issues for 1.1 API with the exception
of PrintPreviewDialog and RichTextBox.
2006-03-29 Alexander Olk <alex.olk@googlemail.com>
* Theme.cs: Added a little helper to SystemResPool to get the Dark,
DarkDark, Light and LightLight colors for a specific color
* ThemeWin32Classic.cs:
- Use Button drawing code to draw RadioButtons and CheckBoxes with
Appearance = Button
- Make use of the new ResPool helper CPColor
- Draw ProgressBar and StatusBar with correct 3D borders
2006-03-29 Alexander Olk <alex.olk@googlemail.com>
* ColorDialog.cs: Return selected color. Fixes bug #77940.
2006-03-28 Mike Kestner <mkestner@novell.com>
* ListView.cs: fix Icon layout to plan for scrollbar widths when
calculating col/row counts.
2006-03-28 Mike Kestner <mkestner@novell.com>
* ColumnHeader.cs:
* ListView.cs:
* ListViewItem.cs:
* Menu.cs:
switch to explicit interface method implementation for some methods
corcompare identifies as inconsistent with MS.
2006-03-28 Mike Kestner <mkestner@novell.com>
* MainMenu.cs:
* Menu.cs:
add a few missing methods from the class status output.
2006-03-28 Alexander Olk <alex.olk@googlemail.com>
* ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
correct.
2006-03-28 Mike Kestner <mkestner@novell.com>
* MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
2006-03-27 Mike Kestner <mkestner@novell.com>
* ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
the Hilight state to adapt to Alex's CPDrawBorder3D changes.
2006-03-27 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
2006-03-25 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs:
- GroupBox: Inserted a little gap between the text and the lines
on the right side
- Made the code in CPDrawBorder3D more readable
- Corrected the drawing location of the up and down arrows in
CPDrawScrollButton
2006-03-25 Alexander Olk <alex.olk@googlemail.com>
* ControlPaint.cs: Corrected line widths in DrawBorder for
ButtonBorderStyle Inset and Outset
2006-03-25 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs:
- Rewrote the totally broken CPDrawBorder3D method. That was
one of the main problems for the terrific ThemeWin32Classic
look
- Updated and corrected Button drawing
- Correct the dimensions of the SizeGrip to match ms ones
- Removed a small drawing glitch in DrawComboBoxEditDecorations
* XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
Border3DStyle.Sunken to match ms.
2006-03-25 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: First small part of the "de-uglify
ThemeWin32Classic" effort, SizeGrip
2006-03-24 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Give a max idle time of one second, this matches
MS and forces an Idle event every second when there are no other
events in the queue.
2006-03-24 Mike Kestner <mkestner@novell.com>
* ListView.cs: Handle (Large|Small)ImageList == null more robustly.
* ListView.Item.cs: fix layout issues with null image lists and images
smaller than checkbox size.
* ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
mode like MS does. It's weird, but consistent. ;-)
Fixes #77890.
2006-03-24 Mike Kestner <mkestner@novell.com>
* ListView.cs: Scroll wheel support for the item control. Fixes
#77839.
2006-03-23 Jackson Harper <jackson@ximian.com>
* ScrollableControl.cs: Special case negative sized areas, not
zero.
* MonthCalendar.cs: Save the rect of the clicked date so we can
use it for invalidation.
- Try to cut down on the number of invalidates
- Invalidate the rect the mouse is over and was over when moving
the mouse, so we get the focus box following the cursor.
2006-03-23 Mike Kestner <mkestner@novell.com>
* ThemeWin32Classic.cs: fix FullRowSelect selection background and
focus rectangle drawing. Fixes #77835.
2006-03-23 Mike Kestner <mkestner@novell.com>
* XplatUIX11.cs: rework the fix for #77828 by changing the order of
the if and else if and reverting back to the original == check on the
None conditional.
2006-03-23 Alexander Olk <alex.olk@googlemail.com>
* FontDialog.cs: Update the example panel if the selected index of
the fontListBox changes.
2006-03-23 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Make FileDialog remember which directory it was in
last in the same execution.
2006-03-22 Mike Kestner <mkestner@novell.com>
* FileDialog.cs: make the DropDownMenu on the toolbar display
RadioChecks since they are mutually exclusive and that's what MS does.
2006-03-22 Mike Kestner <mkestner@novell.com>
* Theme.cs: add Color param to CPDrawMenuGlyph.
* ThemeWin32Classic.cs: do color specific menu glyph rendering so that
checks and radio marks and arrows are visible on highlighted items.
* ControlPaint.cs: update to use new Theme signature.
2006-03-22 Mike Kestner <mkestner@novell.com>
* MenuAPI.cs: only process Enter and arrow keypresses if the tracker
is active. Fixes #77870.
2006-03-22 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
to be focused/selected after startup
2006-03-22 Alexander Olk <alex.olk@googlemail.com>
* ColorDialog.cs:
- Corrected behaviour of Color, AllowFullOpen, FullOpen,
CustomColors and ShowHelp properties
- Some internal rewrites to get better results when using the
ColorMatrix
2006-03-22 Mike Kestner <mkestner@novell.com>
* ListView.cs: hook into Peter's new ResetMouseHover capability to fix
HoverSelection. Fixes #77836.
2006-03-22 Mike Kestner <mkestner@novell.com>
* FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
ToggleButtons. (De)Sensitize the Back button around a stack count of
1, not 0. Update ButtonSize based on a pixel count of the win32
control. Adjust the toolbar size/location for new button size.
2006-03-22 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
true.
* ScrollBar.cs: When doing increments and decrements we need to
set the Value property so that ValueChanged gets raised. A
possible optimization here would be to make an internal SetValue
that doesn't invalidate immediately.
* ToolTip.cs: Tooltips get added to their container (when
supplied) so they get disposed when the container is disposed.
- Don't create tooltips for String.Empty. This prevents all these
little 2-3 pixel windows from showing up when running nunit-gui
and driving me mad.
* Form.cs: Don't set topmost when setting the owner if the handles
haven't been created yet. The topmost set will happen when the
handles are created.
2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs:
- DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
- SetVisible: Sending WINDOWPOSCHANGED for all controls when made
visible (to allow them to recalculate their sizes)
2006-03-21 Mike Kestner <mkestner@novell.com>
* ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
methods. Removed a ton of redundant code. Still not really happy with
the border rendering, but I think that's mainly because of the
ControlDarkDark being black instead of a dark grey. Depending on how
close we want to be, we might want to revisit those color choices.
Among the new features added during the refactor were DropDownArrow
pressed rendering, Disabled image rendering. Proper flat appearance
boundary rendering. Removed the Divider and Wrapping dividers since I
can't figure out any combination of themes and conditions to make the
MS control draw a horizontal line on a toolbar despite what the
Divider property docs indicate.
* ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
conditions and incorrect layout. Updated to coding standard.
* ToolBarButton.cs: refactored layout and positioning code from
ToolBar to here. Invalidate wherever possible instead of forcing
redraws of the whole toolbar.
(Known remaining issues: explicit ButtonSize smaller than provided
images.)
2006-03-21 Mike Kestner <mkestner@novell.com>
* ContextMenu.cs (Show): use the position parameter instead of just
showing at the MousePosition.
2006-03-21 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Remove the call to ProcessKeyEventArgs and let
control handle this.
* TreeNodeCollection.cs: If we are clearing the root node we need
to reset top_node so calcs can still happen.
* ThemeWin32Classic.cs: This is a Flags so we need to check
properly.
2006-03-21 Jackson Harper <jackson@ximian.com>
* DataGrid.cs: Create columns when the binding context has been
changed.
* X11Structs.cs: Keysyms are uints.
- Add size to fix build.
2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
XplatUIOSX.cs:
- Added ResetMouseHover method to allow controls to retrigger
hovering if they need it more than once
- Implemented MouseHoverTime and MouseHoverSize properties
* Timer.cs: Start() must reset the interval
* SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
properties
2006-03-21 Jackson Harper <jackson@ximian.com>
* X11Keyboard.cs: improved layout detection. Move the nonchar
tables into this file.
* KeyboardLayouts.cs: Move the tables into resource files.
2006-03-21 Mike Kestner <mkestner@novell.com>
* ListView.cs: use OnItemActivated to raise events. Fixes #77834.
2006-03-21 Alexander Olk <alex.olk@googlemail.com>
* Mime.cs: Various speed optimizations. Looking up mime types
is now 2 times faster than before
2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
* CreateParams.cs: Added internal menu field
* Control.cs:
- Switched call order for UpdateBounds; now we always call
the one that also takes ClientSize, and we're calculating the
client size via driver method in the others. The previous
method of tracking client size by difference wasn't working
for forms where even the starting client size wouldn't match
the overall form size (due to borders) (Part of fix for #77729)
- CreateParams(): Do not use parent.Handle unless the handle is
already created. Causes havoc with Nexxia and throws off our
creation of controls
* XplatUIX11.cs:
- Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
- Switched handling of ConfigureNotify over to new PerformNCCalc
method (consolidates code)
- Changed RequestNCRecalc to use new PerformNCCalc method
- Added calls to RequestNCRecalc when menus and borders are changed
to allow app to set NC size. (Part of fix for #77729) This matches
when MS send a WM_NCRECALC on Win32 windows.
- Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
(Part of fix for #77729). This matches what MS does, they also
send that message when the form is made visible.
- XException.GetMessage: Improved usability of X errors by including
a translation of the window into Hwnd and Control class
- Improved debug info for window creation, reparenting and destruction
- Created helper method WindowIsMapped() [Currently not used]
* XplatUIWin32.cs: Added ToString() debug helper to RECT structure
* Form.cs:
- CreateParams: Now setting our menu on the new internal menu field
- SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
avoid calculating the same property twice
* Hwnd.cs:
- Improved usability of ToString() for debugging purposes
- GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
determine the height of the menu, instead of just the font. This
required to also create a graphics context and to keep a bmp
around (for performance reasons)
2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
* MenuAPI.cs: Added OnMouseUp method
* Form.cs:
- Now remembering the requested client size, avoids size errors
- WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
instead of base if the menu is active. This is required due to
control now capturing and releasing on down/up and it would
prematurely release our menu capture
2006-03-17 Jackson Harper <jackson@ximian.com>
* KeyboardLayouts.cs: Add the czech layouts.
2006-03-16 Jackson Harper <jackson@ximian.com>
* Control.cs: Use the viewport space when sizing not the controls
client size, so things like ScrollableControl that effect the
viewport size (when scrollbars are added) are computed correctly.
* BindingContext.cs: Cleanup to use the DataSourceEntrys instead
of ManagerEntrys.
- Handle creating BindingManagers for null data sources.
* DataGrid.cs: Bind the cached_currencymgr_events to the real data
source, otherwise when rows are added they are added to the 'fake'
datasource and we will crash when trying to set the position in
those rows.
- Use Implicit scrollbars on the datagrid so they arent
selectable.
2006-03-16 Jackson Harper <jackson@ximian.com>
* Binding.cs:
* InternalWindowManager.cs:
* MdiWindowManager.cs:
* X11Keyboard.cs: I really want Mike to love me again (fix
compiler warnings).
2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
* DataGrid.cs:
- OnMouseDown: Switch to editing mode when clicking on the cell
even if we're clicking on the cell that's currently
selected
- ProcessGridKey: Left/Right now wrap like MS.Net does
- ProcessGridKey: Tab now knows to add a new row when tab is
pressed in the cell of the last column of the
last row
- ProcessGridKey: Enter now adds another row if pressed in the last
row and selectes the new row, same column cell
- ProcessGridKey: Home/End navigate columns, not rows, like
originally implemented
- Broke ProcessKeyPreview code out into an extra Internal method
so it can be called from the edit code
* DataGridTextBox.cs (ProcessKeyMessage):
- Switched to accept Tab keypresses
- Added F2 handling to allow jumping to the end of the edited cell
- Added logic to allow moving caret left/right inside edited cell
and making the edited cell jump when the caret hits cell borders
- Tab and Enter are now passed to the datagrid after being handled
* TextBoxBase.cs:
- Removed capture code now that Control handles it
- set_SelectionStart now ensures caret is visible
2006-03-16 Jackson Harper <jackson@ximian.com>
* TrackBar.cs: Debackwards the increment/decrement for handling
mouse clicks on the bar with vertical trackbars.
* ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
bottom to match MS.
2006-03-16 Mike Kestner <mkestner@novell.com>
* ListView.cs: make shift/ctrl keyboard and mouse selection
consistent with the MS control. Fix a bug in
SelectedListViewItemCollection.Clear that was pissing me off for the
better part of a day because the collection was being altered
underneath us as we walked the list.
2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Not sure how we could miss this so long, but it seems
that MS.Net has Capture set all the way from before calling
OnMouseDown through sending the mouse events until after
OnMouseUp. This will fix DataGrid's selection being set to end
at the location of the MouseUp.
2006-03-15 Jackson Harper <jackson@ximian.com>
* BindingContext.cs: Check the binding after its added so that it
can initialize the binding managers and hookup to events.
* Binding.cs: Data members seem to sometimes include rows/cols in
the format Row.Column we now take this into account.
- Hookup to the position changed event so we can update the
control when the position has changed in the data set.
* CurrencyManager.cs: Take into account the row/col naming
convention when creating dataset tables.
* BindingContext.cs: Using a newer better way of storing
datasource/datamember pairs. Hopefully this better matches MS for
looking up binding managers.
2006-03-15 Jackson Harper <jackson@ximian.com>
* BindingContext.cs: The currency manager needs the data member
name, if the member is a data set we use the name to find the
correct table.
* CurrencyManager.cs: When creating the list prefer an IList over
an IListSource.
- Attempt to create a DataTable from a DataSet (TODO: might need
some better error checking here, although MS doesn't seem to have much)
- If we have a DataTable create a view and use it as our list.
2006-03-15 Mike Kestner <mkestner@novell.com>
* ListView.cs: keep a matrix of the icon mode layout to facilitate
keyboard navigation. Support Up/Down/Left/Right selection correctly
for all 4 View modes.
* ListViewItem.cs: add internal row/col fields for icon layouts.
2006-03-15 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Redraw the tabs when we resize so their newly
calculated sizes are drawn on screen.
* X11Keyboard.cs: Begginnings of XIM support. We also now support
composite characters.
* XplatUIX11.cs: Keyboard driver needs to know about focus changes
- filter events so that composite characters can be created
patches by peter
* X11Structs.cs: Add XIMProperties enum.
2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (BringToFront, SendToBack): Don't use window or handle
unless it's created
2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (PerformLayout): We don't need to consider visiblity
for anchoring, only for docking. This fixes 'whacky' alignment
in listbox and other controls that use implicit scrollbars after
the previous PerformLayout patch
* ListBox.cs: Switched to use implicit scrollbars
2006-03-14 Mike Kestner <mkestner@novell.com>
* ToolBar.cs:
* VScrollBar.cs:
- chain up the "new event" overrides to base and use
OnEvent to raise them. Part of fix for bug #76509.
2006-03-14 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Do not select an item in the parent directory
on backspace
2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (PerformLayout): It would seem that we considered
invisible windows for our layout. Not quite the right thing
to do. Now we don't any longer, thereby fixing bug #76889.
2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (CanFocus): I goofed. A control can have focus
even though it's not selectable. Made it match MS docs.
2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
* ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
center by default (fixes #76895)
* ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
all uses of Border3DSides.All with the explicit ORd together
Left|Right|Top|Bottom because I assume that nobody was aware
that All also implies a center fill. Most places I checked had
a fill right above.
* ProgressBarStyle.cs: Added
2006-03-13 Mike Kestner <mkestner@novell.com>
* ListView.cs: fix breakage in drag shadow header positioning
from Peter's csc compilation fix.
2006-03-13 Mike Kestner <mkestner@novell.com>
* ListView.cs: fix NRE produced by backspacing twice in a focused
FileDialog.
2006-03-13 Mike Kestner <mkestner@novell.com>
* ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
* Hwnd.cs: Added fixed_size field to track windows whose size cannot
be changed
* XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
the allowed size before making programmatic size changes
2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
set, metacity is broken and will still use the emty sizes in
the struct. (Fix for #77089)
2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIStructs.cs: Split WindowStyles into WindowStyles and
WindowExStyles and marked both enums as Flags
* Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
to match WindowStyles split
* XplatUIX11.cs:
- SetWMStyles: Added cehck to not apply WM attributes to Child windows
- Updated to match WindowStyles split
* XplatUIWin32.cs:
- Fixed FosterParent creation, was using ExStyle on the Style field
(This should help with Popup focus issues)
- Updated to match WindowStyles split
2006-03-13 Jackson Harper <jackson@ximian.com>
* MdiWindowManager.cs: Use the system menu height. Fixes some
strange sizing issues.
2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
* RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
* TextBoxBase.cs:
- Scroll to caret after inserting text (#77672)
- Make scroll range one pixel higher, fixes off-by-one error (and
makes underlines visible on the last line)
2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
the keyboard state from being stuck with keys in 'pressed' state when
focus is switched away via keyboard
* X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
reset the keyboard if no X11 KeyUp events are expected to come
* X11Structs.cs: Switched type of Visible to bool to match driver
2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs:
- Switched caret to be just 1 pixel wide, matches MS and looks less
clunky
- Moved caret display 1 pixel down from the top of the control
to improve view
- InsertCharAtCharet: Update the selection start if moving the caret
(fixes bug #77696; based on patch suggested by kazuki@panicode.com)
- No longer always creating the caret when the caret methods are
called. Only the actual ShowCaret/HideCaret will do that now
- Only setting caret visible if the owner control has focus
- UpdateView: Added invalidation-shortcut logic for center and right
aligned text. Previously we'd update all according to the left
logic which caused drawing errors. Also fixed height of invalidated
areas, now properly invalidating the whole area (was off-by-one)
- owner_HandleCreated: Always generate the document when the
handle is created; this ensures that
* TextBoxBase.cs:
- Fixed situation where caret would disappear under the right
window border, also improved scrolling behaviour on left-
aligned textboxes
- Fixed right-aligned textboxes to have a border to the
right instead of the caret being under the right border
* XplatUIX11.cs:
- Switched from 'nested' to simple visible/not visible tracking
for caret (part of fix for #77671)
- No longer passing through translated FocusIn/FocusOut messages
since we were notifying too often and the wrong windows. Instead
we just notify our focussed window of receiving or loosing focus
* XplatUIWin32.cs: Switched from 'nested' show/hide
counting for caret to simple visible yes/no behaviour (part of
fix for #77671)
2006-03-11 Alexander Olk <alex.olk@googlemail.com>
* Mime.cs: Remove debug code...
2006-03-11 Alexander Olk <alex.olk@googlemail.com>
* MimeGenerated.cs: Removed
* Mime.cs: Mime now reads the mime data (magic, globs, aliases
and subclasses) from /usr/(local/)share/mime and
$HOME/.local/share/mime.
2006-03-10 Jackson Harper <jackson@ximian.com>
* MdiWindowManager.cs: Recalc the NC area when a window is
maximized/restored so that the menu area is drawn on forms that
don't have a menu.
2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
us to force a WM_NCCALCRESIZE message being sent. This is needed
for MDI maximizing.
2006-03-10 Jackson Harper <jackson@ximian.com>
* Form.cs: We need to use the ActiveMenu when calculating menu
height.
- Fix nullref when the window manager hasn't been created yet.
* Control.cs: Fix nullref when we try to bring a control to the
front that has no parent.
* MdiWindowManager.cs: Use the MaximizedMenu for calculating
height.
- Add a dummy item to the maximized menu so it always has the
correct height. Otherwise when there are no menus we don't get our
icon and buttons.
2006-03-10 Jackson Harper <jackson@ximian.com>
* MenuAPI.cs: Make this available elsewhere. I need it in some MDI
stuff.
* Form.cs: Make the window_state internal so the window managers
can track it.
- When an MDI child is maximized let its window manager create the
main menu (so it can add its icon).
- Notify the window managers of state changes
- Let the window manager paint its buttons and handle button
clicks on the menu when it is maximized.
* InternalWindowManager.cs: Move the prev_bounds into the mdi
window manager, since tool windows don't use it, only mdi windows.
- Tell the main form that we don't want it to handle NCPAINT
itself to avoid extra painting.
- Handle clicks on a maximized windows menu.
- Handle window state changes
- Handle minimize/maximize clicks correctly by setting the window state.
* MdiWindowManager.cs: Add an icon menu that (the menu you get
when clicking on the forms icon).
- New method to create a forms maximized menu. This is its normal
menu + an icon.
- Handle window state changes.
- Handle sizing of maximized windows. Maximized windows are just
drawn bigger then the parent visible area. All controls are still
there, they are just outside the visible area (this matches windows).
* MdiClient.cs: No scrollbars when a child window is maximized.
- Let the children windows figure out how big they should be when
sizing maximized windows.
- Implement a version of ArrangeIconicWindows somewhat similar to
Windows version. There are some little differences, but I don't
think any app will rely on the layout of minimized mdi windows.
2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
* Padding.cs: Several fixes to allow compiling with csc 2.0
2006-03-09 Jackson Harper <jackson@ximian.com>
* Menu.cs:
* MenuItem.cs: Cheap hack so we can add items to the list without
the events being raised. This allows adding mdi items during
drawing. TODO: Should probably find a better time to add the items.
2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
* ThemeWin32Classic.cs:
- CheckBox_DrawText: Added logic to not wrap if not enough space
is available (Fix for bug #77727)
- RadioButton_DrawText: Added logic not to wrap if not enough
space is available (Fix for bug #77727). Also removed some
duplicate code, DrawString always drawing the regular text
before hitting the if statement.
2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
* PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
* ContainerControl.cs: Partial implementation of some 2.0 scaling
methods. Moved the new 2.0 properties into alphabetical order with
other properties and added MonoTODO tags
2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
* AutoScaleMode.cs: Added. Fix build.
2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
and was requiring premature handle creation for calls from above
* Form.cs, Control.cs: Removed handle arguments from calls to
CalculateClientRect()
2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
* ListView.cs (HeaderMouseMove): Fix csc compilation.
drag_column.column_rect is MarshalByRef and can't be used that way
2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
* AxHost.cs: Added deserialization constructor for
AxHost+State (fixes 77743)
2006-03-09 Mike Kestner <mkestner@novell.com>
* ListView.cs:
- Added column drag reordering for details view.
- fixed behavior when mouse is dragged off column and
AllowColumnReorder is false.
* ColumnHeader.cs: clone the format too in Clone.
* Theme.cs: add DrawListViewHeaderDragDetails method.
* ThemeWin32Classic.cs:
- impl new method for drawing drag column shadows and targets.
- support column offset for details mode in DrawListViewItem.
2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs: Reset the char_count when the document is cleared
(Fixes bug reported on mono-winforms mailing list)
2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
of calling base we simply process the key ourselves, since both
DefWindowProc and the handled method would set m.Result.
(Fixes #77732)
2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs(ScaleCore): No longer calling base.ScaleCore since that
method also moves the window; instead implemented a copy of
Control.ScaleCore (Part of fix for #77456)
* TextBoxBase.cs:
- Created new CreateGraphicsInternal method to allow providing
a graphics context when no handle is created without triggering
handle creation. (Part of fix for #77456)
- Replaced use of Control.CreateGraphics with CreateGraphicsInternal
* TextControl.cs:
- Switched Constructor to require TextBoxBase instead of Control (to
allow uncast access to CreateGraphicsInternal)
- Safeguarded use of owner.Handle property. No longer accessing it
unless the handle is already created.
- Replaced use of Control.CreateGraphics with CreateGraphicsInternal
- Now triggering a recalc when owning control becomes visible
* TextBox.cs, RichTextBox.cs: Switched to use new internal
TextBoxBase.CreateGraphicsInternal() method to avoid triggering
premature handle creation (Part of fix for #77456)
* Control.cs:
- We now only destroy our double-buffering buffers when the
control is resized or disposed, but not when visibility
changes. (The code even re-created them twice every time)
- Now requiring a redraw of the buffer on visibility changes
(fixes bug 77654 part 2)
- Not passing OnParentVisibleChanged up unless the control
is visible
- CanFocus: Fixed to match MS documentation
- Focus: Fixed to return actual focus state and to check if
setting focus is legal before setting it
2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
* ThemeWin32Classic.cs: TabPages cannot have focus. Determine
when to draw focus rectangle by looking at parent focus and
selected state instead. This fixes TabPages on Linux sometimes
having none or multiple focus rectangles.
* XplatUIX11.cs (SetFocus):
- Don't set the focus if the same window already has focus
- Use SendMessage instead of PostMessage (like it's Win32
equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
to match MS behaviour
* TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
are not selectable.
2006-03-07 Jackson Harper <jackson@ximian.com>
* PictureBox.cs: Revert line I accidently committed last week.
2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- Added new IsRecreating and ParentIsRecreating properties to
allow testing if RecreateHandle has been called on ourselves
or one of our parents
- WndProc(WM_DESTROY): If our control handle is being recreated
we immediately need to create the handle when receiving the
destroy, that way our child windows find a valid parent handle
when they themselves are being recreated upon WM_DESTROY receipt
(fix for bug #77654 part 1)
* XplatUIX11.cs:
- DestroyWindow: WM_DESTROY must be sent to our own window before
notifying any child windows. MS documents that child windows
are still valid when WM_DESTROY is received. (Control now relies on
this behaviour)
- Added some fine-grain debug options
2006-03-06 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Redid scrolling logic a bit to create a virtual
box and base calculations off this.
* MdiChildContext.cs:
* MdiWindowManager.cs: Don't need to ensure scrollbars here
anymore.
2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
* Splitter.cs: In situations where the affected control is added
to the parent's control list after the splitter, we would not
populate affected. Now we try populating it on mousedown, if
it's not already set, and force it to be re-set whenever our
parent changes.
2006-03-03 Matt Hargett <matt@use.net>
* Control.cs: implement Control.Padding
* Padding.cs: -Padding.All returns -1 when constructing with the
implicit default ctor
-Padding.ToString() matches MS.NET
* ContainerControl.cs: implement
ContainerControl.AutoScaleDimensions
* ListControl.cs: implement ListControl.FormattingEnabled
* TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
* ButtonBase.cs:
* TabPage.cs: Implement UseVisualStyleBackColor.
* PictureBox.cs: Implement PictureBox.InitialImage.
2006-03-03 Mike Kestner <mkestner@novell.com>
* ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
event declarations to proxy to base event.
* ListViewItem.cs: update to use ItemControl.
* Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
* ThemeWin32Classic.cs: update to new ListView theme API and fix
column header label rendering for 0 width columns.
2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (ControlCollection.SetChildIndex): Avoid using a call
that causes the control to be created. Fixes #77476.
2006-03-02 Jackson Harper <jackson@ximian.com>
* Hwnd.cs: Clear the nc pending when clearing the NC area, not the
expose_pending.
2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
passed in for the EventArgs (fixes #77690)
2006-03-01 Jackson Harper <jackson@ximian.com>
* ScrollBar.cs: Refresh afterbeing resized.
2006-02-28 Mike Kestner <mkestner@novell.com>
* MenuAPI.cs: Call PerformPopup internal method to emit Popup.
Clean up a tracker compile warning.
* MenuItem.cs: add internal PerformPopup method.
[Fixes #77457]
2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs (set_Text): Recalculate the document (causing an
implicit expose) when the text is set to null
2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
* RichTextBox.cs (FlushText): When newline is true, we always
need to split the line, even if no text is on it and we may
never eat newlines. (Fixes #77669)
2006-02-28 Mike Kestner <mkestner@novell.com>
* ListView.cs: Add UpdateSelection internal method. Remove SelectItem
and set Selected instead.
* ListViewItem.cs: Call owner.UpdateSelection to manipulate the
collections.
2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
* ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2006-02-28 Alexander Olk <alex.olk@googlemail.com>
* FontDialog.cs:
- Got rid of the panel. All controls are now directly added to
the dialog form
- It is now possible to set a font with the Font property
- MinSize and MaxSize property do now what they should
- ShowApply, ShowHelp, ShowColor, ShowEffects likewise
- Searching and selecting a font with the font textbox works now,
the same applies to the style and size textbox
- Draw the correct 3D border in the example panel
- Fixed a little mem leak (unused fonts didn't get disposed)
- Many other internal updates/rewrites...
- Fix typo
2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs:
- InsertRTFFromStream: Added 'number of characters inserted' argument
- set_SelectedRTF: Now using the number of characters to calculate
the new location for the selection and cursor (x/y cannot be used
due to potentially already wrapped text)
2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs: Added property and implemented means to allow
disabling recalculation of a document (can be used to speed up
multiple inserts and is needed to make RTF inserts predictable, see
bug #77659)
* RichTextBox.cs: Using the new NoRecalc property of Document to
keep x/y insert locations predictable. Also makes it faster inserting
large chunks of RTF
2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
it's easier for a child control to handle the other messages without
having to duplicate the special functionality
* TextBoxBase.cs
- WndProc: Removed calling base handler for WM_KEYDOWN and added
code to handle processing the key ourselves, in order to get
access to the result of KeyEventArgs.Handled. We now only call
ProcessKey if they key hasn't been handled already. Fixes #77526.
- set_Text: If null or empty string is given, just clear the
document. Fixes part of #77526
2006-02-27 Jackson Harper <jackson@ximian.com>
* SizeGrip.cs: Paint the background color before painting the grip
so things look right.
* MdiClient.cs: Add the sizegrip when both scrollbars are used.
2006-02-27 Mike Kestner <mkestner@novell.com>
* ListView.cs:
- Restructure layout and invalidation model to remove a ton of
flicker from the control and speed up performance in general.
- Add manual column resize, flickers like crazy, but I already have
some ideas on how I'll fix that. (#76822)
- Merge the three Icon-based views into a single layout method.
- Move item selection interaction logic from the item since
interaction with the collections is more appropriate to the view.
- Deselection on non-item clicks.
* ListViewItem.cs:
- Encapsulate most of the layout. Add some internal props to trigger
layout. Move to a model where Items invalidate themselves instead
of just invalidating the whole control every time something changes.
- Invalidate on Text/Caption changes.
- switch to an offset based layout model to avoid having to absolute
position every element on item moves.
- correct checkbox layout to conform to MS layout.
* ThemeWin32Classic.cs:
- refactor some column header drawing code.
- fix string justification for column headers (#76821)
- make SmallIcon labels top justified for compat with MS impl.
* ThemeClearlooks.cs:
- adjust to new ListViewItem internal checkbox bounds api.
2006-02-27 Jackson Harper <jackson@ximian.com>
* Control.cs: Change where implicit controls fall in the zorder.
They are now on top of all children.
- Synced AddImplicit code with Add
- Removed unused enumerator.
* SizeGrip.cs: Remove the TODO as its been TODONE.
2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs(Insert): Combine the last lines unless the insertion
string ends with \n\n, otherwise we leave one line too many (Fixes
something I noticed with the testapp for #77526; the bug itself was
already fixed in the previous checkin)
2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
* RichTextBox.cs:
- SelectionColor and SelectionFont methods no longer set absolute
styles. Instead, the keep font or color respectively (This
resolves a long-standing FIXME in the code)
- When flushing RTF text, the insert code now considers text trailing
behind the insertion point (Fixes the bug where when replacing
the selected text via SelectedRTF the remainder of the line behind
the selection would stay on the first insertion line)
* TextBoxBase.cs:
- AppendText now updates the selection points after inserting text
- AppendText now ensures that the last tag (sometimes 0-length) of
the document is used for the style information (Fixes part of
bug #77220)
* TextControl.cs:
- Created new FontDefiniton class to allow describing partial style
changes
- StreamLine() now takes a lines argument, to allow it to decide
whether an encountered zero-length tag is the last in the document
(which must be kept to not loose the font/color contained in it,
for later appends)
- Created Combine() and Split() methods for Marker structs, to
support marker updates due to reformatted documents (soft line
wraps)
- Implemented Document.CaretTag setter
- Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
of the last line (Not the cause, but also exposed by bug #77220)
- Added LineTag argument to InsertString method, to allow callers
to force a certain tag to be used (required to force use of the
trailing zero-length tag of a document)
- Now updating markers in Combine(), to avoid stale tag markers
- Added some method descriptions to aid maintenance
- Implemented new FormatText concept, allowing additive/subtractive
formatting by only specifying the components that are to be
changed. This was needed for resolving the RTB.SelectedColor/
RTB.SelectedFont fixmes
- Added Break() support method to allow breaking up linetags (used
for partial formatting)
- Added GenerateTextFormat() method. It is used for partial
formatting and allows to generate a full font/color from given
attributes and an existing tag.
2006-02-26 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Use the correct caption height.
- Translate hittest coordinates to screen coords to match MS.
* XplatUIWin32.cs: When we create MDI windows we need to reset
some of the style flags, so we get a nice blank window, and can
draw all the decorations ourselves.
- Set a clipping rectangle on the non client paint event, the
window manager drawing code needs one.
* Form.cs: The window manager needs to know when the window state
has been updated.
* Hwnd.cs: The window manager stuff now does a proper NCCALC so we
don't need to factor in border and title sizes in these
methods. TODO: Remove the args and fix the call points.
* InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
properly.
- Let the driver set the cursors.
- Improve active window handling
- Correct sizes for title bars and buttons.
- Match MS drawing better
* MdiWindowManager.cs: We don't need to handle border style
updates specially anymore.
- Check for scrollbars when windows are done moving
- Handle Active properly.
* MimeIcon.cs: Don't crash when we can't load the GNOME stuff
correctly. I am spewing the exception though, so we don't hide the
bugs.
2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
* DataGridViewRowPostPaintEventArgs.cs,
DataGridViewCellPaintingEventArgs.cs,
DataGridViewRowCollection.cs,
DataGridViewRowPrePaintEventArgs.cs,
DataGridViewCell.cs: Clear a few warnings and implement a few
exceptions that should be thrown.
2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
* ScrollBar.cs (ctor): Explicitly set a cursor to avoid
'inheriting' our parent's (non-default) cursor. (Part of
the fix for #77479)
2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Fixed cast to make csc happy
2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (WndProc): Only handle WM_SETCURSOR messages if
it's for the client area (part of fix for #77479 and needed
for MDI window cursor handling)
* XplatUIX11.cs
- DefWindowProc: Now handles the WM_SETCURSOR messages, setting
the appropriate default cursors and also passing the message
up the parent chain
- GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
for non-client areas
2006-02-15 Jackson Harper <jackson@ximian.com>
* XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
is a real MDI window
2006-02-14 Alexander Olk <alex.olk@googlemail.com>
* X11DesktopColors.cs: Instead of checking the desktop session
string for "KDE" check if it starts with "KDE"
2006-02-10 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
systems).
2006-02-10 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Added Refresh to RunDialog to fix some drawing
errors
* ColorDialog.cs:
- Got rid of the panel. All controls are now directly added to
the dialog form
- Changed to mono coding style
2006-02-10 Jackson Harper <jackson@ximian.com>
* InternalWindowManager.cs: We don't need the set visibility to
false hack anymore now that peter has written beautiful shutdown
code.
2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Ignore DestroyNotify messages for windows that
where already explicitly destroyed
2006-02-10 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Handle the case where windows are too high or to
the left and we need scrollbars.
2006-02-10 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: Added some icons
* FileDialog.cs:
- Fixed bug #77477
- Got rid of the panel. All controls are now directly added to
the dialog form
- Changed to mono coding style
- On Linux "My Computer" and "My Network" will now show some
more usefull information. A new class, MasterMount, gathers
this information from /proc/mount. Updated MWFFileView to make
use of this information
- Fixed a bug that caused FileDialog to crash when
".recently_used" file had a zero size
- FilterIndex does now what it should
- Some Refactoring
* OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
FileDialog changes
2006-02-09 Jackson Harper <jackson@ximian.com>
* ComboBox.cs: Don't touch if null.
2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
* Cursor.cs: 64bit safeness fix
* XplatUIX11.cs: Removed several unneeded and one moronic cast.
2006-02-09 Jackson Harper <jackson@ximian.com>
* Form.cs: If a form is made into an MDI form update the styles so
all the props can get set correctly.
- Kill the mdi_container when we dont need it anymore.
* InternalWindowManager.cs: Add missing NOT
2006-02-08 Jackson Harper <jackson@ximian.com>
* InternalWindowManager.cs: Respek clipping when drawing MDi
decorations.
2006-02-08 Jackson Harper <jackson@ximian.com>
* Hwnd.cs: Add bits to track non client expose events.
* XplatUIX11.cs: Track non client expose events on the hwnd. This
gives us a proper invalid rect and will allow for some nice
optimizations with NC client drawing
- MDI windows are children windows, so move their style handling
into the child window block.
* InternalWindowManager.cs: Remove a state reset that was
getting invoked at the wrong time. Fixes managed windows getting
into a 'stuck' captured state.
2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs (Document.ctor): Now initializing
selection_anchor. Fixes #77493
2006-02-07 Jackson Harper <jackson@ximian.com>
* TrackBar.cs: The increment/decrements were backwards.
2006-02-07 Mike Kestner <mkestner@novell.com>
* Theme*.cs : remove ThemeEngine.Current usage as it just points back
to the instance itself.
2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
* X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
on ulongs and pointers, the size differs between 32bit and 64bit
systems.
2006-02-07 Mike Kestner <mkestner@novell.com>
* XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
for 64 bit platforms to work around a metacity bug.
2006-02-07 Jackson Harper <jackson@ximian.com>
* TrackBar.cs: Process the input keys we need, and hookup to
KeyDown instead of using WndProc, so we get key messages.
2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
machine we're on.
* X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
we need to translate the XdndVersion atoms array before sending it
2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs:
- The preceeding 64bit fixes had a bug: ChangeProperty expects the
number of bits for the property, not the number of bytes. The
change to provide IntPtr.Size broke 32bit. (64bit was also wrong
but would not crash since it specified 8 bits instead of 4 bits)
- More 64bit fixes: Switched all atoms from int to IntPtr (they are
defined as XID -> long in the C headers)
- Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
references since those are now IntPtr to begin with
- Switched all Atom.XXX 'int' casts to IntPtr casts
- Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
- Fixed XInternAtom signature for 64bit, now returns an IntPtr
- Added XChangeActivePointerGrab DllImport (for X11DnD)
* X11Structs.cs:
- Changed 'int' type for Atoms in XEvent structures to IntPtr
- Changed atom in HoverStruct to be IntPtr
* X11DnD.cs:
- Removed local DllImports, switched code to use those from XplatUIX11
- Removed/fixed casts related to the switch of Atom to be a IntPtr
2006-02-06 Mike Kestner <mkestner@novell.com>
* XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
method signatures in the import region. There may still be some
lingering struct marshaling issues, as I didn't drill down into those.
Yet.
2006-02-06 Jackson Harper <jackson@ximian.com>
* ComboBox.cs: Dont manually set the top_item, this is computed
when the scrollbar position is set.
2006-02-06 Mike Kestner <mkestner@novell.com>
* XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
startup crashes on amd64. There's other fixes needed. All pinvoke
usage of Atom needs to be mapped to IntPtr for example. And there are
likely other int/long issues to be addressed.
2006-02-04 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: One more...
2006-02-03 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Next try
2006-02-03 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: First part of fix for #77464
2006-02-03 Alexander Olk <alex.olk@googlemail.com>
* ButtonBase.cs, ContainerControl.cs, Forms.cs,
ThemeWin32Classic.cs: Fix for #77458. Correct handling of
AcceptButton border drawing.
2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs: Moved positioning of form after auto scaling is applied,
otherwise it would possibly use wrong form size.
2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (RecreateHandle): No need to re-create any child
controls, the child windows will get destroyed automatically by
the windowing system or driver, and re-created when the handle
is being accessed the first time. Fixes #77456
* Form.cs: No longer setting the form to closing if the handle is
being recreated. This seems like the right thing to do, don't
have a bug or testcase for this, though.
2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
* FileDialog.cs: Suspend/Resume layouting when changing sizes of
controls to avoid unwanted side effects
2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- ScaleCore needs to scale the bounds, not the ClientSize of the
control. Fixes #77416.
- DefaultSize is 0,0 for control
* TextBoxBase.cs:
- DefaultSize is 100, 20
- SetBoundsCore: Now enforcing the height, no matter if the provided
height is more or less than the preferred one, as long as AutoSize
is on
* Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- ResumeLayout: Fixed logic when to call PerformLayout, we may not
call unless both performLayout is true *and* we have a pending
layout change
- ResumeLayout: MS does not completely nest Suspend and Resume,
they bottom out at 0, fixed our code to match that.
- UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
SetBoundsCore, we were updating even when we shouldn't. This fixes
swf-anchors mis-anchoring when resizing the app fast and lots.
- UpdateDistances: Now only setting the left and top distance if
we have a parent and are not suspended, this is based on
a suggestion by Don Edvaldson in bug #77355.
- OnVisibleChanged: Fixed logic when to create the control. We may
not create the control if we have no parent or if it's not visible;
switched to using Visible property instead of is_visible field
since the property also considers parent states. This fixes a bug
when starting Paint.Net
2006-02-02 Jackson Harper <jackson@ximian.com>
* Form.cs: If the forms handle hasn't been created yet don't call
into xplatui to make it top most, just set the topmost flag on the
form in CreateParams
* XplatUIX11.cs: Handle WS_EX_TOPMOST.
2006-02-01 Jackson Harper <jackson@ximian.com>
* ScrollableControl.cs: Refactored the Recalculate method a
little, this wasn't handling all the variants of bottom and right
bars needed to be added and added/removed based on their
counterparts being added/removed (which changes the drawable
size). Also we special case client widths and heights of 0 and
don't add the scrollbar for those.
2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs:
- Added method to get AbsoluteGeometry(); currently unused, but might
be used in the future, if we try again to figure out toplevel
coordinates with some more crappy window managers
- Added FrameExtents() method to retrieve the WM set decoration size
- Tried to fix up AddConfigureNotify and handling of ReparentNotify
to deal with at least KDE, FVWM and metacity (Fixes #77092)
* Hwnd.cs:
- Added whacky_wm tracking var for metacity
- Added logic to have default menu height if the actual menu height
has not yet been calculated (part of fix for #77426)
* Form.cs: Keep track whether client size has been set and re-set
it if a menu is added/removed afterwards (Fixes #77426)
2006-01-31 Jackson Harper <jackson@ximian.com>
* Control.cs: When a new Site is set on the component attempt to
pull the AmbientProperties from it.
2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
* ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
in the background of the owning form. Fixes #77332
2006-01-31 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: Fix for #77409
2006-01-31 Alexander Olk <alex.olk@googlemail.com>
* XplatUIX11GTK.cs: Initial import
2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
* FixedSizeTextBox: fixes class signature
2006-01-30 Jackson Harper <jackson@ximian.com>
* FixedSizeTextBox.cs: New internal class that represents a
textBox that will not be scaled.
* TreeView.cs:
* ComboBox.cs:
* UpDownBase.cs: Use the new FixedSizeTextBox instead of a
standard TextBox.
2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Retrieve default screen number instead of
assuming 0. Attempted fix for #77318
2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs:
- GetWindowPos: When a window is parented by FosterParent, use
the desktop instead of FosterParent as the base to get coordinates
- CreateWindow: Don't make FosterParent the parent window for Popups
if we don't want a taskbar entry, Popups automatically don't get one
* Hwnd.cs: Need to call remove to actually remove the key from the
hash table
2006-01-30 Mike Kestner <mkestner@novell.com>
* MenuAPI.cs: adjust MainMenu item popup location to y=0.
2006-01-30 Jackson Harper <jackson@ximian.com>
* TreeView.cs:
* TreeNode.cs: Raise events no matter how the treenode is
checked. Patch by Don Edvalson.
2006-01-30 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: Signature fix.
2006-01-29 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
2006-01-20 Mike Kestner <mkestner@novell.com>
* Form.cs: Add ActiveTracker property to do Captures and perform mouse
event forwarding when menus are active.
* MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
Most of the patch is pdb's with a little rework.
2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
Removed GetMenuDC and ReleaseMenuDC methods; replaced
by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
* Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
* InternalWindowManager.cs: Added use of PaintEventStart/End to
handling of WM_NCPAINT message, now passing the PaintEventArgs to
the PaintWindowDecorations method
* MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
* MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
* MenuAPI.cs: Made tracker window invisible
* XplatUIWin32.cs:
- Removed GetMenuDC and ReleaseMenuDC methods
- Implemented the client=false path for PaintEventStart and
PaintEventEnd
2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
* XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
styles
* Form.cs:
- MaximizeBox, MinimizeBox: Recreate the handle when setting
the style
- CreateParams: Reworked the styles to match MS look'n'feel,
removed automatic setting of MinimizeBox, MaximizeBox, etc. via
the WS_OVERLAPPEDWINDOW style. This fixes #76823.
2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs(GetWindowState): Now throwing an exception when the
window is not mapped, since otherwise every form that's being
created is considered minimized, which is wrong.
* Form.cs: Catching the exception and returning our internal value
instead
2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
SetWindowMinMax() to have means to tell the driver about the minimum,
maximum and maximized state window sizes. (Part of the fix for #76485)
* Form.cs:
- Implemented tracking of minimum and maximum window size, now calling
new SetWindowMinMax() driver method to tell the driver (Part of the
fix for #76485)
- Finished handling of WM_GETMINMAXINFO method, now setting all values
(Completes fix for #76485)
- Calling new SetWindowMinMax driver method when the handle for a
form is created, to make sure the driver knows about it even if
the values have been set before the window was created
- Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
to avoid messing up our anchoring calculations (partial fix
for #77355)
* XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
* XplatUIX11.cs:
- Added _NET_WM_STATE_HIDDEN property for detecting minimized state
- Improved GetWindowState() to detect 'Minimized' state on Metacity
(and presumably other freedesktop.org compliant WMs). Left the
assumption unmapped=minimized, needed for SetVisible to work.
- Now setting the window state when creating windows
- Fixed SetVisible to consider/set the window state when mapping
a Form. We cannot set the state before it's mapped, and we cannot
use Form.WindowState once it's mapped (since it would ask the
driver and get 'normal'. Therefore, we grab the state before
mapping, map, and then set state.
- Implmemented SetWindowMinMax method; Metacity does not seem to
honor the ZoomHints, though.
* XplatUIWin32.cs:
- Removed MINMAXINFO (moved to XplatUIStructs)
- Added SetWindowMinMax stub (on Win32 the only way to set that
information is in response to the WM_GETMINMAXINFO message, which
is handled in Form.cs)
- Added logic to SetVisible to set the proper window state when a
form is made visible (fixes #75720)
2006-01-26 Jackson Harper <jackson@ximian.com>
* Control.cs (BeginInvoke): Automagically handle EventHandlers the
same way we handle them with Invoke.
2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs:
- Added tracking of window state so CreateParams can return
the appropriate style
- Moved setting of WS_CAPTION style in CreateParams to allow
styles without caption
* DataGridTextBoxColumn.cs: We are now also creating the TextBox
control if the TextBox property is accessed. Fixes #77345
* Control.cs:
- get_Created: now uses is_disposed and is_created to determine
return value (suggested by Jackson)
- CreateHandle: No longer exits if the handle is being recreated
- RecreateHandle: If the handle is not yet created call the
appropriate method to create either control or handle. If the
control is already created CreateHandle will simply exit instead
of just creating the handle
* Hwnd.cs: Removed expose_pending tracking, no longer needed since we
now SendMessage WM_DESTROY directly to the control when DestroyWindow
is called.
* XplatUIX11.cs:
- When DestroyWindow is called, instead of waiting for the
DestroyNotification from X11, we directly post it to the WndProc
and immediately dispose the hwnd object.
Same applies to DestroyChildWindows, and this obsoletes the
expose_pending tracking. Contrary to Win32 behaviour we destroy our
child windows before our own, to avoid X11 errors.
- Removed the direct sending of WM_PAINT on UpdateWindow
* XplatUIWin32.cs:
- Reworked DoEvents and GetMessage to allow access to internal queue
even when trying non-blocking access to the queue. Fixes #77335.
Based on a patch suggestion by Don Edvalson. The new private
GetMessage can now also be used as a backend for a PeekMessage
frontend version.
* XplatUI.cs: Improved debug output for CreateWindow
2006-01-25 Jackson Harper <jackson@ximian.com>
* Help.cs: Allow param to be null. Patch by Don Edvalson.
2006-01-24 Jackson Harper <jackson@ximian.com>
* ComboBox.cs: Clamp the max value set for the vertical scrollbar
when we have a MaxDropItems lower then the selected index.
2006-01-24 Jackson Harper <jackson@ximian.com>
* Control.cs: Don't allow selection of non visible controls, allow
selection of controls without parents.
2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
* ThemeWin32Classic.cs: Fixes Datagrid drawing issues
* DataGridDrawingLogic.cs: Add editing row only when is necessary
2006-01-23 Jackson Harper <jackson@ximian.com>
* UpDownBase.cs: Make the textbox handle all the selection and
tabbing. This fixes tabing to updown controls.
2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
* TextBoxBase.cs: fixes exception thown the object was null
2006-01-23 Jackson Harper <jackson@ximian.com>
* ButtonBase.cs: Just use the base CreateParams. They set
visibility and enabled correctly.
* ComboBox.cs:
* TrackBar.cs:
* MonthCalendar.cs: Lets let the base set as much of the
createparams as possible so we don't have duplicate code all over
the place.
2006-01-22 Alexander Olk <alex.olk@googlemail.com>
* ThemeGtk.cs: Added TrackBar and some experimental code to
get double buffering back
2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
* DataGrid.cs: Allows row number set internally higher than the last
when creating a new row. Restores the editing functionality.
2006-01-20 Mike Kestner <mkestner@novell.com>
* MimeIcon.cs: delay Image creation until the icons are accessed
instead of creating 190 scaled images on GnomeHandler startup.
2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
first call base before processing the event. Fixes #77279
2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
that the stride for the GDI bitmap would match the stride of
a DIB or a Cursor.
2006-01-19 Alexander Olk <alex.olk@googlemail.com>
* ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
2006-01-19 Jackson Harper <jackson@ximian.com>
* ComboBox.cs: Hookup the text controls keydown event so we get
those when the text control has the focus.
2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
* Label.cs: Now using the base events instead of defining new ones;
this allows us to just call the base properties without having to
duplicate all base property logic
2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
* Label.cs: A label by default is not a tabstop (Fixes one of our
failing nunit tests)
2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
* XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
* Cursor.cs: Reimplemented creating cursor bitmaps without using
the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
This fixes #77218
* XplatUIWin32.cs:
- Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
constructor creates images that can't be saved. Part of the fix
for #76103
- Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
- SetWindowState: Switched ShowWindow flags (part of an upcoming
bug fix for handling window state in forms properly)
2006-01-18 Alexander Olk <alex.olk@googlemail.com>
* ThemeGtk.cs: Simplify ScrollBar drawing
2006-01-18 Jackson Harper <jackson@ximian.com>
* Splitter.cs: Set the default dock style for the splitter control
in the constructor.
2006-01-18 Alexander Olk <alex.olk@googlemail.com>
* ThemeGtk.cs: Corrected StateType and ShadowType for
gtk_paint_box
2006-01-18 Alexander Olk <alex.olk@googlemail.com>
* Control.cs: Make use of Theme.DoubleBufferingSupported
* ThemeGtk.cs:
- Added drawing for flat style buttons
- Added ScrollBar drawing
2006-01-18 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs: Removed some unneeded code.
* ThemeGtk.cs: First part of ThemeGtk enhancements.
2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
* LinkLabel.cs: We need to update the hover drawing when
leaving the control as well.
2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
* DataGrid.cs: Clicking on non empty areas in the columns
area was giving an exception
2006-01-17 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs:
* ListView.cs: Do not draw/clip the headers when the header style
is None.
2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
* DataGrid.cs: Fixes 77260
2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
* DataGrid.cs: Clicking on a column on a empty grid was giving
an exception
2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
* DataGrid.cs (OnKeyDown): Don't use the array if it's empty
or any keypress will crash the grid.
2006-01-17 Mike Kestner <mkestner@novell.com>
* MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
* ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
invisible/previously-visible items.
[Fixes #76909]
2006-01-17 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs:
- Added CL_Draw_Button method; now other theme controls that are
not derived from button or do not have a button can draw buttons
too
- Updated ComboBox drawing
- Beautified RadioButton drawing
- Corrected drawing of bottom and left tabs
- Beautified DateTimePicker and MonthCalendar
- Added CPDrawButton and CPDrawRadioButton
2006-01-16 Jackson Harper <jackson@ximian.com>
* ComboBox.cs: Set the initial value of the scrollbar to the
current index. Reduce the numbers of refreshs and IndexOfs called.
2006-01-14 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: When the file listview is focused hitting the
backspace key moves the fileview to the parent directory
2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs:
- Added RecreateHandle call when changing taskbar visibility to
trigger reparenting in Win32 driver (Fixes #75719)
- If a window has minimize or maximize buttons, it cannot have
a help button
* XplatUIWin32.cs:
- CreateWindow: When no WS_EX_APPWINDOW style is found we parent
the toplevel form with FosterParent (A toolwindow not on the
taskbar) (Fixes #75719)
- Made FosterParent a toolwindow
2006-01-13 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Don't crash if InitialDirectory doesn't exist
2006-01-13 Alexander Olk <alex.olk@googlemail.com>
* ToolTip.cs: If SetToolTip is called from a control and the mouse
is currently over that control, make sure that tooltip_window.Text
gets updated
2006-01-13 Mike Kestner <mkestner@novell.com>
* MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
2006-01-13 Jackson Harper <jackson@ximian.com>
* TreeView.cs: On MS GetNodeAt never actually factors in the X
value passed. Also redraw the selected node when we recieve
focus, so tabbing between trees works correctly.
2006-01-13 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: GnomeHandler: older gnome versions don't have
~/.gconf/%gconf-tree.xml, so use
.gconf/desktop/gnome/interface/%gconf.xml
2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs: Draw text in gray if control is disabled
2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
* TreeView.cs: Draw the focus rectangle outside the highlight, to
make sure it's always visible. Fixes #76680.
2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
* TreeView.cs: Implemented Wheel scrolling. Fixes #76531
2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
* PageSetupDialog.cs: Added.
* PrintDialog.cs: Attributes.
* PrintPreviewControl.cs: Updates.
* PrintPreviewDialog.cs: Updates.
2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Undid my selection check fix, since it's not needed
* TextBoxBase.cs:
- Now considering the presence of hscroll/vscroll when sizing
vscroll/hscroll respectively. Fixed bug #77077
- Added Left/Up/Down/Right to IsInputKey list to prevent
ContainerControl from stealing them. This fixes what I broke
with my last checkin.
2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
* ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
I finally understand how the property can be set without a setter :-)
2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
* Application.cs:
- Switched RunLoop to use static Message.Create to create a
Message object
- Added PreProcessMessage call in runloop for keyboard events; this
is part of the fix for #77219, I overlooked this originally in the
MSDN doc for PreProcessMessage
* Control.cs:
- Removed call to PreProcessMessage from handling of keyboard
messages; it's supposed to be done in the message pump
- Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
per MSDN documentation.
- IsInputChar: All chars are input chars by default; removed the
parent calling chain, MS does not document that
- PreProcessMessage: If IsInputChar is true, we want to return false
to allow dispatching of the message
- When selecting the next control, now also check that we're not
selecting ourselves again and therefore return a false positive.
* TextBoxBase.cs:
- Tried to match return values for IsInputKey and ProcessDialogKey
to what MS returns; moved processing of our special keys outside
ProcessDialogKey since MS does not seem to return true on those.
- Moved code that previously was in ProcessDialogKey into new private
ProcessKey method, which gets called upon receipt of WM_KEYDOWN
- Reworked handling of WM_CHAR to not have to duplicate code from
Control.cs anymore, instead we simply call down to base.
2006-01-12 Jackson Harper <jackson@ximian.com>
* ComboBox.cs: We always need to refresh the text area when
EndUpdate is called. Fixes the combobox in the file dialog.
* Control.cs: Don't create the creator_thread until the controls
handle is created. Also in InvokeRequired we check if the
creator_thread is null. This gives the effect of InvokeRequired
returning true if the controls handle is not created yet, and
matches MS.
2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs:
- Added StartLoop() driver method. This is used to allow drivers to
prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
loop for a particular thread
- Added EndLoop() driver method. This is called once the message
pump for the thread is shut down
- Added SupportsTransparency method to allow the driver to indicate
opacity support for windows
* Form.cs:
- Removed TODO attribute, completed AllowTransparency property
- Added documented logic to Opacity
* GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
versions of CompatibleTextRendering
* X11Structs.cs: Added opacity atom to our atom enumeration
* Hwnd.cs: Added opacity tracking (we need to track since the opacity
of a form might be set before it's reparented by the WM, and we need
the opacity value without calling up to Form)
* XplatUIDriver.cs: Added StartLoop(), EndLoop() and
SupportsTransparency() driver methods
* Application.cs: Now calling StartLoop and EndLoop driver methods
* XplatUIX11.cs:
- Added opacity atom registration
- Added StartLoop()/EndLoop() methods. They're empty right now but
will need to get implemented when we switch to a per-thread queue
- Implemented SupportsTransparency() method
- Implemented SetWindowTransparency() method
- Added support for setting the opacity value when a window is
reparented (since the opacity needs to be set on the WM frame)
* XplatUIOSX.cs, XplatUIWin32.cs:
- Added SupportsTransparency(), StartLoop() and EndLoop() methods
2006-01-12 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
2006-01-12 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Added ToolTip for MWFFileView
* MimeIcon.cs: Rewrote GnomeHandler.
- Get currently used gnome icon theme from
($HOME)/.gconf/%gconf-tree.xml
- Make use of inherited icon themes
- Support SVG icon themes like Tango via librsvg
2006-01-12 Miguel de Icaza <miguel@novell.com>
Revert's Jackson's revert which broke 2.0 builds. Fix both
builds.
* Application.cs: Move the use_compatible_text_rendering outside
the NET_2_0 define. If we ever need to use the
use_compatible_text_rendering on the individual controls they will
access the variable from the common shared code paths.
2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs:
- Added more granular debug options
- Added method to print both window text and id
- Switched debug output to use new Window() debug method
- Added IsEnabled() driver method
- Added EnableWindow() driver method
* Form.cs:
- Removed end_modal; no longer needed, new loop handles termination
via 'closing' variable
- If form is modal, setting DialogResult will now initiate loop
termination via 'closing' variable
- Added support for is_enabled/WS_DISABLED to CreateParams
- Close() now just send the WM_CLOSE message; the WM_CLOSE handler
does all the work
- Removed code that's now in RunLoop from ShowDialog()
- Added various documented sanity checks to ShowDialog()
- Added handling of WM_DESTROY message; we set 'closing' on getting
the message to indicate the message pump to terminate
- Added handling of new internal WM_CLOSE_INTERNAL message - it's
send by the Application.ExitThread method. (We send the message
to destroy the window after all other events have been
processed through the queue, instead of destroying the handle
directly)
- Moved code from Close() method to WM_CLOSE handler; added logic
to only send close-related events if the form is not displayed
modal
* Splitter.cs (..ctor): Fixed typo in resource name
* Control.cs:
- DrawBackgroundImage: Explicitly selecting the wrap mode for the
brush now
- set_Cursor: Now only setting calling into XplatUI if the handle for
the control is already created; this avoids implict handle creation
or crashes if it's not created
- set_Enabled: Now setting the enabled state via the new driver method
instead of just tracking it
- CreateParams: Added logic to set WS_DISABLED based on enabled state
- CreateControl: Reordered event firing and method calls to more
closely fire events in the order MS does. Now setting the
enabled state in the driver when creating the control.
- SetVisibleCore: Moved when the OnVisibleChanged event is fired to
match MS order
* FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
* XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
* Hwnd.cs:
- Added tracking of window enabled state (get_Enabled/set_Enabled)
- Added EnabledHwnd property to easily allow a driver to find the
handle of the first enabled window in the parent chain (this is
used by drivers to pass up input events of disabled windows)
* XplatUIDriver.cs: Added IsEnabled() method
* Application.cs:
- Removed crude and obsolete exiting tracking variable
- Removed internal ModalRun(); replaced by RunLoop()
- Implemented private CloseForms() method to allow closing all
windows owned by a particular (or all) threads
- Exit() now properly closes all windows without forcing the message
pump to quit
- Removed obsolete InternalExit() method
- Changed Run() methods to use new RunLoop() message pump
- Implemented new RunLoop() method for both modal and non-modal forms
* CommonDialog.cs:
- get_CreateParams: Added setting of WS_DISABLED
- Simplified ShowDialog(); now all the work is done in RunLoop(),
invoked via Form.ShowDialog()
* NativeWindow.cs: We don't remove the window from the collection when
the handle is destroyed; there might still be messages for it in the
queue (mainly the resulting WM_DESTROY); instead it will be removed
when Control calls InvalidateHandle in the WM_DESTROY handler
* XplatUIX11.cs:
- CreateWindow: Added logic to handle the WS_DISABLED window style
- EnableWindow: Implemented based on Hwnd.Enabled
- GetMessage: Reset PostQuitState so the method can be called again
- Implemented support for disabled windows (passing messages to the
first enabled parent) in handling all input messages
- Added optimizations for handling Expose events
- Implemeted new driver method IsEnabled()
- Now always resetting paint pending tracking vars when we start paint
- Re-implemented UpdateWindow via just sending a WM_PAINT message
* XplatUIOSX.cs: Added IsEnabled method stub
* XplatUIWin32.cs: Implemented new IsEnabled() method
2006-01-11 Jackson Harper <jackson@ximian.com>
* ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
variables a little.
* ColorDialog.cs: Clear out the old form before adding the new
panel.
2006-01-11 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Make sure to add all the text formats when adding
strings to the data object.
* TreeNodeCollection.cs: When adding to a sorted tree we need to
do some redrawing too. Also change the UpdateNode to an
UpdateBelow so the newly added node gets painted.
2006-01-11 Miguel de Icaza <miguel@novell.com>
* ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
LinkLabel.cs, PropertyGrid.cs: Implement the
UseCompatibleTextRendering property for 2.x
* Application.cs (SetCompatibleTextRenderingDefault): Add.
2006-01-11 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Use the property for setting the selected node so
the correct events get raised.
* TreeNode.cs: Update the tree when the fore/back colours of a
node are set.
2006-01-10 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Allow setting SelectedNode to null.
2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
* Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
* PrintControllerWithStatusDialog.cs: Update page number in dialog.
2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
* PrintDialog.cs: Added attributes and set default property values.
2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
* PrintControllerWithStatusDialog.cs:
Added PrintControllerWithStatusDialog.
2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
* XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
* ComboBox.cs: Fix crash when there is no selected item (due to last commit)
2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
* ComboBox.cs: Added KeyDown event handler for processing arrow keys
and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
2006-01-08 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: Added internal class SVGUtil.
2006-01-08 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Don't crash if there are two files with the
same name but different locations.
2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
* MonthCalendar.cs: Fixed annoying rendering bug when selecting
dates across multiple month grids. Used to not highlight entire
month, but does now.
2006-01-06 Jackson Harper <jackson@ximian.com>
* MonthCalendar.cs: Removed DoEvents call to prevent a running
message loop. Change timer intervals to numbers that seem more
natural.
2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
* DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
object for location info since screen object is now implemented.
2006-01-05 Jackson Harper <jackson@ximian.com>
* AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
* AsyncMethodResult.cs: We no longer use a WeakReference for the
AsyncMethodResult, this is because we ALWAYS want the
ManualResetEvent to get set.
* Control.cs: When disposing use an async invoke to call shutdown
code, so that thigns don't block on the finalizer thread. Also
check if we even have a message loop before trying to send
messages, if we don't then don't bother sending messages.
- No more weak references for async methods
* XplatUIDriver.cs: No more weak references for async methods.
2006-01-04 Alexander Olk <alex.olk@googlemail.com>
* FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
returns two FontFamily with the same name
2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
* ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
drawing disabled text. Instead using the ColorGrayText color
2006-01-04 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: redraw the node when its image index is changed.
2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
* RichTextBox.cs: Same fix as last, just for SelectionColor. This
time I checked there are no others like it.
2006-01-04 Jackson Harper <jackson@ximian.com>
* AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
this gives the behavoir I was looking for.
* Control.cs: Special case Invoking EventHandlers, this matches MS
and fixes part of bug #76326.
2006-01-04 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs, FileDialog.cs:
- Reflect the latest Theme class changes
- Remove Mono.Unix.Syscall.time in FileDialg and replace it
with DateTime
2006-01-04 Alexander Olk <alex.olk@googlemail.com>
* Theme.cs: Cache UI resource images and resize them if needed
2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
* RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
is called. This fixes the crash in Nexxia when setting the font
attributes in the chat. [However, RTF needs a look-over to make sure
that all SelectionXXX methods handle the special case that selection
is empty and therefore the change must be applied to all text starting
at the cursor/selection start]
2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
XplatUIOSX.cs: Added SendMessage and PostMessage methods
* X11Keyboard.cs: Switched to new way of calling PostMessage
2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
* Theme.cs: Added theme interface for images to allow the theme to
control what images are used for things like FileDialog, MessageBox
icons, etc.
* MessageBox.cs: Now uses the new Theme icon/image interfaces
2006-01-03 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs:
- Removed some dead code
- Opening a recently used file does work now
- Small UI enhancements
- Refactoring
2006-01-02 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Forgot too add __MonoCS__
2006-01-02 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: We are able to read recently used files now let's
go on and write them.
2006-01-01 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Breathe some life into "last open"/"recently used"
button
* MimeIcon.cs: Do a check for the top level media type also
2005-12-31 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs:
- Added CPDrawStringDisabled
- ButtonBase_DrawText: Workaround for a DrawString bug; cut off
some chars if the text doesn't fit into text_rect
- DrawListViewItem: If View = View.LargeIcon center the image;
rewrote the drawing of ListViewItem.Text if View =
View.LargeIcon
2005-12-31 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: Use default KDE icon theme if there is no
"48x48" directory for the current icon theme, fixes #77114
* Mime.cs: Disable not working and actually not used code.
* ThemeWin32Classic.cs:
- Replace "new SolidBrush" in GetControlBackBrush and
GetControlForeBrush with ResPool.GetSolidBrush
- Changed DrawListViewItem from private to protected virtual
* FileDialog.cs:
- Added form.MaximizeBox = true
- Don't throw an exception if there is a broken symbolic link
2005-12-23 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Give the panels focus, keyboard navigation is
fixed so this works correctly now.
- We need these key events also.
* ToolBar.cs: Remove some of the poor mans double buffering.
2005-12-24 Alexander Olk <alex.olk@googlemail.com>
* ComboBox.cs: The internal TextBox now returns the focus.
2005-12-23 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Draw the text for all tab appearances.
2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Removed debug code
* XplatUIX11.cs: Changed DestroyChildWindows to also consider
implicit children
2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: When creating the control, update the Z-order after
all it's children are created, too. (Fixes nexxia not showing
picturebox bug)
2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Do not update the anchoring distances if layout is
suspended, instead do it once layout is resumed
2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- After many hours of debugging, for both Jackson and
myself, it turns out that it helps to set the parent of a control
if you want to actually see it onscreen. In the spirit of that
discovery, we're now setting the parent of the control and
it's children when the control's handle is created. This fix
will make Lutz Roeder's Reflector run happily.
- now just creating the handle instead of the whole control when
getting a graphics context for the control.
2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
* ScrollableControl.cs: When calculating the canvas, don't consider
the scrollbar widths. Instead, predict if horizontal scrollbar
will affect canvas when deciding on vertical display and vice versa.
2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
* RichTextBox.cs: Set default RTF font for documents that don't
have a font table (Fixes #77076)
2005-12-22 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: It's difficult to do, but you can have an empty
clipboard. This prevents a NullRef in that case.
* XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
clipboard. PRIMARY is for the currently selected text only. (We
should implement PRIMARY at some point.
2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
a Unicode function with a structure that was defined in Ansi way.
This fixes #76942.
2005-12-21 Jackson Harper <jackson@ximian.com>
* StatusBar.cs: Statusbar handles its fore/back colours on it's
on. Because thats how it rolls. (and this avoids it using ambient
colours).
* ThemeWin32Classic.cs: Use the proper back color for filling.
* Menu.cs: Use the system menu bar color for drawing menu
bars. Using the window back color will bring ambient colours into
the picture.
2005-12-21 Alexander Olk <alex.olk@googlemail.com>
* ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
Bitmaps were created and not disposed.
2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (CreateControl): Don't do anything if the control is
already created, otherwise we'd fire the OnCreated event more than
once
2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
* ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
will always match. Instead return -1. Fixes #76464.
2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs (RecalculateLine): Only wrap if the wrap point is
neither the beginning nor the end of the line (Fixes bug #76479)
2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- ControlNativeWindow.ControlFromHandle(): Now handling situation
where handle is invalid
- FromHandle(): Now using hashtable-based ControlFromHandle() lookup
instead of slower linear search
* NativeWindow.cs: Don't remove the window from the hashtable until
after the driver has destroyed it (since the driver might use
Control.FromHandle to lookup the control object
* Hwnd.cs: Added DestroyPending property to track if a window is
already destroyed as far as the driver is concerned and only hasn't
yet notified the control
* XplatUIX11.cs:
- Activate(): Check if the window is still valid before using the
handle
- Implemented DestroyChildWindow() method to mark child windows as
destroyed when a window is destroyed. This prevents situations
where we might call an X method based on queued events for a
window that already has been destroyed but we haven't yet pulled
the destroy method from the queue.
- Added a call to the new DestroyChildWindow() method to the drivers
DestroyWindow code. Also now marking the destroyed window itself
as pending
2005-12-20 Jackson Harper <jackson@ximian.com>
* StatusBar.cs:
* StatusBarPanel.cs: Don't calculate panel sizes on draw
anymore. Just do them when needed, also track the rects of panels
so that we can optimize refreshing more in the future.
2005-12-20 Alexander Olk <alex.olk@googlemail.com>
* ColorDialog.cs: Fixed focus drawing in small color controls
2005-12-19 Jackson Harper <jackson@ximian.com>
* InternalWindowManager.cs:
* MdiWindowManager.cs: Cleanup some coordinate system changes so
moving windows works properly.
2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- Removed call to InitLayout() from SetBoundsCore(); doc says
it's only called when a control is added to a container
- Split InitLayout logic, moved to separate UpdateDistances() method
since we need to perform those calculations more often than just
when adding the control to a container. (Needed to fix #77022)
- Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
- Reduced the OnBindingContextChanged events count, don't send them
unless the control is created, we still aren't totally matching
MS, but I can't quite figure out some of their rules
2005-12-18 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs: Corrected distance between ProgressBar
stripes
2005-12-18 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs:
- Updated ProgressBar drawing
- Corrected drawing of ScrollBars and scroll buttons
- Some temporary fixes for minor pixel artefacts
2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- Reworked Controls.Add(), Controls.Remove() and set_Parent() to
cause events to be sent in the same order as MS does.
- Added ChangeParent() method to trigger various OnXXXChanged events
that need to be fired when a parent changes (This is a reworking
of the patch from r54254, with the X11 errors fixed)
- Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
since on MS we get OnLayoutChanged events when calling Clear()
- Changed Enabled property to consider parent state as well, if a
parent is not enabled, the control will not be either
- Changed Parent property to simply call Controls.Add() since that
now does all the work required, this way we avoid code duplication
- Threw in a few OnBindingsContextChanged calls to try and match
when MS sends them. We seem to send a few too many, though.
- Added call to CreateControl when adding the control to a parent.
We were never calling CreateControl. Still needs some work, in
some places we treat HandleCreated and ControlCreated as equal,
which is wrong
- Removed obsolete commented out code from UpdateZOrder()
2005-12-18 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs: Updated TrackBar drawing.
2005-12-17 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Patch for #76901 by Atsushi Enomoto
2005-12-17 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Add the Help button and the open readonly
checkbox only if needed
2005-12-16 Jackson Harper <jackson@ximian.com>
* Control.cs: Make sure we have an active menu before trying to
process commands on it. Prevents menu-less forms from crashing
when Alt is pressed.
* TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
Dieter Bremes.
* RichTextBox.cs: Expand statement to help out gmcs and fix the
2.0 build.
2005-12-16 Jackson Harper <jackson@ximian.com>
* InternalWindowManager.cs: Don't translate tool windows screen
coordinates. This fixes windows 'bouncing' around when being moved.
2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs:
- MaxLength now treats 2^31-1 equal to unlimited length (this is
not quite MS compatible, MS uses that number only for single line
and 2^32-1 for multi-line, but I figure it won't hurt keeping
the limit at 2GB)
- Now enforcing the MaxLength limit when entering characters
- Added argument to internal Paste() method to track if it's called
from programatically or via keyboard, since keyboard driven pastes
need to enforce max-length
- Added logic to Paste to only paste as many chars as MaxLength
allows
* RichTextBox.cs: Updated to use new obey argument for internal Paste()
* TextControl.cs:
- Added Length property to return number of characters in document
- Added private CharCount property which only tracks actual chars
in the document (no linefeeds) and fires event when CharCount
changes
- Added tracking of character count to all methods that alter it
- Added LengthChanged event to allow applications to subscribe
to any changes to the document
2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
* TextBox.cs:
- Removed local password_char field (moved to TextBoxBase)
- Now setting the document's password var when password is
set
* TextBoxBase.cs:
- Added password_char field (needed here so MultiLine can
access it)
- Added logic to MultiLine property setter to set the document's
variable when password display is allowed
- Removed debug code and made some debug code conditional
* TextControl.cs:
- Added RecalculatePasswordLine() method to handle special password
char only lines
- Added PasswordChar property, also added related tracking vars
- Draw() method now uses local text var for grabbing text to draw,
this var is set to line.text unless we're doing password display,
then it is set to the pre-generated all-password-chars line
- Added calling RecalculatePasswordLine() method for password lines
2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
* Hwnd.cs:
- Added Reparented property to allow tracking of Window Manager
reparenting actions (which affect X/Y calculations of toplevel
windows)
- Made ToString() print window handles in hex
* XplatUIX11.cs:
- AddConfigureNotify(): Now uses reparented state off Hwnd to
determine if X/Y needs offsetting
- AddConfigureNotify(): Fixed offset calculations
- Now adds ReparentNotify messages into the queue
- Now processes ReparentNotify messages and causes a
WM_WINDOWPOSCHANGED message to be sent upstream if a window
is reparented (as most likely it's X/Y coordinates are changed
due to that)
2005-12-14 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Tool windows still need to respek focus.
2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Undid 54254 (causing XConfigure errors) so we can
have a working release
2005-12-13 Jackson Harper <jackson@ximian.com>
* Form.cs: Update styles after setting the border style regardless
of whether or not the window is using a window manager.
2005-12-13 Jackson Harper <jackson@ximian.com>
* Form.cs: We now hook into an internal window manager instead of just an
MDI subsystem, this is so we can have properly behaving tool windows.
* MdiClient.cs: Naming change, MdiChildContext is now WindowManager
* InternalWindowManager.cs: New internal class that acts as a
window manager for tool windows and as a base for mdi windows.
* MdiWindowManager.cs: New class that acts as a window manager for
mdi windows.
2005-12-12 Jackson Harper <jackson@ximian.com>
* Control.cs: Updates so we match behavoir for for implicit
controls. Fixes explosions in MDI.
2005-12-12 Jackson Harper <jackson@ximian.com>
* Control.cs: Implement Invalidate (Region).
2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- Changed handling of Controls.Add/Controls.Remove to fire (almost)
the same events as MS does. MS fires events for each property
except, for unknown reasons, Cursor, when the control is reparented.
I can't seem to totally match add/remove since MS also fires some
VisibleChanged events, which makes no sense. Consolidated the
parenting code into a separate method so it can be called from
both Add and Remove. set_Parent no longer needs any special logic
as it calls the parent's add method which implicitly fires
all events
- Removed some obsolete code and debug output
- Enabled state is inherited from parents, if this is enabled
2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs: Removed commented out code
2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- Added internal version of Invoke, with additional argument
indicating if we're calling it from a Dispose() handler. That
way we can avoid BeginInvoke throwing an exception if we're
calling for an already destroyed window.
- Added a dispose argument to BeginInvokeInternal, and made the
check if a valid window handle chain exists conditional on
it not being a dispose call
- Removed code in DestroyHandle to destroy our children. Since we
now handle the WM_DESTROY message we will catch all our children
being destroyed.
- Now calling OnHandleDestroyed from our new WM_DESTROY handler
* Form.cs:
- Added a field to track the application context of the form.
- No need to set closing variable as response to WM_CLOSE, instead
we destroy the window. We also call PostQuitMessage if the form
has an application context (which makes it the main app form,
which, when closed terminates the app)
* XplatUI.cs:
- Dropped Exit() method, it's naming was confusing
- Added PostQuitMessage() which causes GetMessage to return false
once the message queue is empty
* XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
PostQuitMessage()
* XplatUIOSX.cs: Switched signature for Exit method since Exit() is
no longer a valid XplatUI method, but left it in since it's used
internally. Added empty PostQuitMessage() method.
* MenuAPI.cs: Replaced call to Exit() with call to
PostQuitMessage, even though this is probably no longer needed.
* Hwnd.cs: Added 'pretty' ToString() to support debugging.
* X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
* Application.cs:
- Replaced call to XplatUI.Exit() with PostQuitMessage()
- Removed old debug code that would call XplatUI for exception
display, enabled standard exception handling (Still not enabled
though, until NativeWindow's ExternalExceptionHandler define
is removed
* NativeWindow.cs:
- Added internal method to allow control to update NativeWindow
after a window has been destroyed
- Added handling of already destroyed windows when calling i
DestroyWindow
- Added removal of handle from list on ReleaseHandle
* XplatUIX11.cs:
- Dropped GetMessageResult var and related code
- Added PostQuitState to field to track if PostQuitMessage has been
called
- Dropped Exit() method
- Added PostQuitMessage() method
- GetMessage now will return false if PostQuitState is set and no
more messages are in the queue.
- Expose handler will no longer generate WM_PAINT messages if we are
in PostQuitState since it's very likely any windows have already
been destroyed, and since Hwnd won't get updated until we have
processed the DestroyNotify we'd be causing X errors.
2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs(WndProc): Apparently I'm suffering from brain cloud.
Thanks to Mike for pointing out the err of my ways.
2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs(PreProcessMessage): Moved menu handling back, but
after all other key handling, to match MS (who handles Menu in
DefWndProc)
* Menu.cs (WndProc): Removed my brainfart
2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs(PreProcessMessage): Removed special menu handling
* Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
2005-12-07 Mike Kestner <mkestner@novell.com>
* Control.cs : special case SYSKEYUP so that we can adjust keynav
state according in tracker.
* Menu.cs : promote tracker field to base class and provide a tracker
lookup capability. Add/Remove shortcuts dynamically if the top menu
has a tracker. Unparent items that are removed from the collection.
* MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
* Theme*.cs: add always_show_hotkeys field to support configurability
of mnemonic display. win32 doesn't show mnemonics until Alt is
pressed.
2005-12-07 Jackson Harper <jackson@ximian.com>
* MdiChildContext.cs: Use Control.ResetCursor.
* Control.cs: ResetCursor needs to set the property so that the
correct XplatUI call gets made.
2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: More fixes to make our key events match MS. We
were not setting the modifier state on KeyData, and we were
not generating any events when Alt was pressed with a key
since handling of WM_SYSxxx was missing for the OnKey methods.
2005-12-07 Jackson Harper <jackson@ximian.com>
* MdiChildContext.cs: reenable the sizing code.
- When the mouse leaves a window reset its cursor.
2005-12-07 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs: Reflect latest Hwnd changes
2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
* Hwnd.cs: Now using the theme 3d bordersize to calculate
widths of Fixed3D borders
2005-12-07 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Fix warnings. Earn Mike's love.
2005-12-07 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs:
- Adjusted mouse over button color
- Added first parts of CheckBox drawing
- Added correct color for selected text background
- Fixed ComboBox drawing
- Added CPDrawBorder3D and CPDrawBorder
2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Added call to XBell for AudibleAlert
2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
XplatUIOSX.cs: Added AudibleAlert() method to have a means to
alert users via sound. We could add an enum arg with different
types of alerts in the future
2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Fix behaviour problems pointed out by Mike
2005-12-05 Mike Kestner <mkestner@novell.com>
* StatusBarPanel.cs: add Invalidate method and hook it into all the
prop setters. Calls parent.Refresh for now, but could be maybe be
optimized with an internal method on StatusBar at some point.
[Fixes #76513]
2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
* RichTextBox.cs: Implemented get_SelectionColor
2005-12-05 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs:
- Removed dead code
- Draw black button border only if button is Form.AcceptButton
- Draw correct button color for pressed RadioButton if the mouse
has entered the button
- Updated ProgressBar drawing!
- Updated CPDrawSizeGrip drawing
- Updated StatusBarPanel drawing
2005-12-05 Mike Kestner <mkestner@novell.com>
* Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
* X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
2005-12-04 Alexander Olk <alex.olk@googlemail.com>
* ThemeClearlooks.cs: Initial check-in, activate with
export MONO_THEME=clearlooks
* ThemeEngine.cs: Added ThemeClearlooks
2005-12-03 Mike Kestner <mkestner@novell.com>
* MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
[Fixes #76897]
2005-12-02 Jackson Harper <jackson@ximian.com>
* Form.cs: If the child form has no menu the default main menu is
used as the active menu.
2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
* ListBox.cs: Check if any items exist before trying to resolve
coordinates into items
2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
* ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
as the second color for the background hatch
2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
* RichTextBox.cs: FormatText position arguments are 1-based, now making
sure that what we pass to FormatText is always 1-based. Fixes #76885
2005-11-29 Miguel de Icaza <miguel@novell.com>
* NumericUpDown.cs (EndInit): When we are done initializing,
reflect any updates on the UI.
2005-12-02 Jackson Harper <jackson@ximian.com>
* ImplicitHScrollBar.cs:
* ImplicitVScrollBar.cs: New scrollbars that don't take focus from
their container controls.
* TreeView.cs: Use the new implicit scrollbars.
2005-12-02 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Make top_node internal so the TreeNodeCollections
can play with it.
* TreeNodeCollection.cs: If we remove the topnode we need to
update topnode to the next node in line.
- When clearing nodes go through the same process as removing
them, so they get depareneted and checked if they are top node.
2005-12-01 Jackson Harper <jackson@ximian.com>
* TreeView.cs: When imagelists are used the image area is
selectable as well as the text.
- If there are no selected nodes select the first one.
* TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
so don't do it more then we need to.
2005-12-01 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
that arrows can be scaled.
2005-12-01 Jackson Harper <jackson@ximian.com>
* TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
fail. Patch by Dieter Bremes
2005-11-30 Jackson Harper <jackson@ximian.com>
* Form.cs: Property is 2.0 only
* PrintDialog.cs: Signature fix.
2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs:
- No longer artificially moves text 2 pixels down (now that we have
borders this is no longer needed)
- Added calcs for left, hanging and right indent
2005-11-23 Mike Kestner <mkestner@novell.com>
* Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
2005-11-30 Jackson Harper <jackson@ximian.com>
* MdiChildContext.cs: Set the cloned menus forms, as these don't
get cloned as part of CloneMenu ().
* Menu.cs: Make sure the parent of the items get set correctly
when they are added. And the owners are notified of the changes.
* Form.cs: Create an ActiveMenu property, so that when MDI is used
we can change the menu being displayed/handled by the form without
changing the menu assosciated with the form.
- Don't let Mdi children draw/handle menus.
2005-11-30 Jackson Harper <jackson@ximian.com>
* Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
a MenuChanged event. Just to make the API a little more
consistent.
* MainMenu.cs:
* MenuItem.cs: Use the new OnMenuChanged
* MdiChildContext.cs: Handle menu merging.
* Form.cs: Implement MergedMenu.
2005-11-30 Jackson Harper <jackson@ximian.com>
* Menu.cs: We were misusing Add. Add goes behind the specified
index according to the docs, and does not replace the specified
index. So I added an Insert method.
2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
is for Jackson
* RichTextBox.cs: Added calls to base for DnD events
2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs:
- Fixed drag-selection related crash; style fixes
- Implemented undo class
o Implemented method to capture document state for specified
range in document tree
o Implemented method to restore captured document state
o Implemented cursor tracking
o Implemented basic undo stack
- Added undo cursor tracking to methods altering cursor location
- Added undo tracking to selection deletion (still missing
other text-altering hookups)
* RichTextBox.cs:
- Added SelectionLength property
- Implemented CanPaste()
- Implemented Paste()
- Added missing protected methods
- Fixed RTF->Document conversion; now uses font index 0 and color
index 0 as the default font for the parsed text
- Fixed RTF<->Document font size translation
- Fixed RTF generation, now properly handles cross-tag boundaries
for single line selection
- No longer always appends blank line to generated RTF
- Removed TODOs
- Added missing attributes
- Hooked up undo-related methods
* TextBoxBase.cs:
- Implemented Copy()
- Implemented Paste()
- Implemented Cut()
- Fixed caret mis-behaviour on backspace across line-boundaries
2005-11-29 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Add a method for activating mdi children. Very
basic right now. I imagine someday it might need more girth.
* MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
children windows names are added to the menu item.
* ThemeWin32Classic.cs: Draw the arrow if the item is an
mdilist. This happens regardless of whether or not there are any
mdi windows to see in the list, and according to my tests happens
before the items are even added. Also happens if there isn't even
an mdi client to get windows from.
2005-11-29 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
* ThemeNice.cs: Fix drawing of flatstyle radiobuttons
2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
* DataGridTableStyle.cs:
- Create always the styles for the missing columns even if they are
provided by the user (not default table style)
* DataGrid.cs:
- Fixes bug 76770
- Fixes SetDataBinding (always re-attach source)
- Fixes SetNewDataSource (only clear styles if they are not for
this source)
- Expands OnTableStylesCollectionChanged to handle style refresh
and remove properly
2005-11-29 Jackson Harper <jackson@ximian.com>
* FileDialog.cs: Implement missing bits, remove some dead
code.
* FontDialog.cs: Implement missing Apply stuff, and ToString. Move
creation of the panel so that the options set on the dialog are
seen when the panel is created.
* TreeView.cs: raise a click when items are clicked.
2005-11-29 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Pass some signature methods through to base.
2005-11-28 Jackson Harper <jackson@ximian.com>
* ListView.cs: Raise the click event when items are clicked.
2005-11-28 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Make this algorithm even more beautiful. And fix
a nullref.
2005-11-27 Alexander Olk <alex.olk@googlemail.com>
* ThemeNice.cs: - Removed 1 pixel bitmaps
- Use SmoothingMode.AntiAlias where it makes sense
(ScrollButton arrow for example)
- Enhanced Button focus drawing
- Fixed ComboBox drawing (no artefacts anymore, focus
rectangle is back again, reduced size of ComboButton, etc.)
- Fixed RadioButton focus drawing for Appearence.Button
- Slight ScrollButton redesign
- Some LinearGradientBrush size fixes
- GroupBoxes have now rounded edges
- Fixed StatusBar drawing
2005-11-25 Alexander Olk <alex.olk@googlemail.com>
* ThemeNice.cs: - Remove dead code
- use correct background colors for menus, etc.
- Fake pixel drawing with 1 pixel bitmaps
2005-11-24 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Size the scrollbars when resizing the window.
- Resize the maximized windows when the client is resized
* Form.cs: Make the child context available
2005-11-23 Jackson Harper <jackson@ximian.com>
* MdiChildContext.cs: Don't size windows if they are maximized.
2005-11-23 Mike Kestner <mkestner@novell.com>
* ContextMenu.cs: use MenuTracker.
* Control.cs: remove menu handle usage.
* Form.cs: remove menu handle usage.
* Hwnd.cs: remove menu handle usage.
* MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
motion and clicks to the new Tracker handlers.
* Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
and handle usage.
* MenuAPI.cs: refactored to combine popup and menubar event handling.
Killed the MENU and MENUITEM data types and associated collections
since we now keep the info on Menu and MenuItem. Expanded TRACKER into
MenuTracker class that exposes the leftovers from the old MenuAPI
static methods. Restructured Capture handling so that only one grab is
done for the entire menu hierarchy instead of handing off grabs to
submenus. Tracker now has an invisible control to Capture when active.
* MenuItem.cs: add sizing accessors, kill Create
and handle usage.
* Theme.cs: remove menu handle and MENU(ITEM) usage.
* ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
MENU(ITEM). remove menu handle usage, use Menu directly.
* XplatUIDriver.cs: remove menu handle usage.
* XplatUIOSX.cs: remove menu handle usage.
* XplatUIWin32.cs: remove menu handle usage.
* XplatUIX11.cs: remove menu handle usage.
2005-11-22 Jackson Harper <jackson@ximian.com>
* Hwnd.cs: Don't compute the menu size for
DefaultClientRectangle.
- Reenable menu sizes being computed for GetClienRectangle.
* Form.cs: Remove comment of trechery
2005-11-22 Jackson Harper <jackson@ximian.com>
* Hwnd.cs: The adjustments for the menu bar are made when it is
attached to the form.
2005-11-19 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
(just like on windows).
2005-11-19 Jackson Harper <jackson@ximian.com>
* MdiChildContext.cs: Handle all the buttons ourselves. We can't
use real buttons anymore because they are in non client area. The
one TODO here is that I need to somehow invalidate a section of
the non client area.
2005-11-18 Jackson Harper <jackson@ximian.com>
* Control.cs: Put the enum check back in now that MDI doesnt have
to use this to set border styles.
* Form.cs: Only set mdi child windows borders if the handle has
been created.
* MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
this directly on to the driver.
- Get the move start position before adjusting for the titlebar
height, this fixes the windows "skipping" when they are first
moved.
2005-11-18 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Just compute the mdi borders separately as they
don't totally match up with normal form borders.
2005-11-18 Jackson Harper <jackson@ximian.com>
* Control.cs: Set WS_ styles for borders, so that the driver does
not have to retrieve the control instance to figure out what kind
of borders it should have.
* Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
driver can know its an mdi child easily.
* XplatUIX11.cs: Get the border styles and whether the window is
MDI from the Styles and ExStyles params instead of having to get a
control. This prevents a chicken and egg problem.
2005-11-18 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Fix typo so scrollbars show up correctly.
2005-11-18 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: Calculate when to add and remove scrollbars
correctly.
* MdiChildContext.cs: Adjust the y position to take the titlebar
into account.
- No height for FormBorderStyle.None
2005-11-18 Jackson Harper <jackson@ximian.com>
* Control.cs: Allow non enum values to be used for
InternalBorderStyle. MDI does this to set a special border style.
- New utility methods for converting points to/from client coords
- Add the newly created control to the Controls collection before
updating its style. This way UpdateStyle can walk the control
heirarchy to find the control if needed.
so I don't need to create a new Point object all the time.
* Form.cs: Let MDI windows handle their border styles.
- Set styles on MDI windows so the correct title style is derived.
* MdiChildContext.cs: Move all the painting and window handling
into the non client area.
- Use correct sizing and put correct buttons on frames based on
the FormBorderStyle.
- Notify the mdi client about scrolling
- Need to handle the buttons ourselves now, because they are all
in non client areas and we can't add controls there.
* MdiClient.cs: Halfway to scrolling, this implementation is
somewhat broken though, we need to check to make sure other
windows aren't causing scrolling before removing the bars. Also
the bars need to be drawn on top, maybe I can switch implicit
controls to be on top.
* Hwnd.cs: caption_height and tool_caption_height are now
properties of an hwnd, this way they can be set by the driver
based on the type of window they are. In X11 the window manager
handles the decorations so caption_height is zero unless its an
MDI window.
- Add 3 pixel borders for MDI windows (0xFFFF).
- Get rid of some code duplication, have DefaultClientRectanle
just call GetClientRectangle.
* XplatUIX11.cs: Pass caption_height and tool_caption_height to
Hwnd now.
- Set border styles differently for mdi windows.
* XplatUIOSX.cs: Pass caption_height and tool_caption_height to
Hwnd now.
2005-11-15 Mike Kestner <mkestner@novell.com>
* Menu.cs: when adding an item to the collection, if item is already
parented, remove it from the parent.
2005-11-13 Alexander Olk <alex.olk@googlemail.com>
* X11DesktopColors.cs: Added KDE support
2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs:
- Clipboard methods now can translate Rtf format
- No longer removes clipboard contents whenever a new format is added
to allow placing multiple formats on the clipboard
* Clipboard.cs: Clipboard now supports getting a IDataObject and
will place all formats contained in it onto the clipboard. Also
now cleans the clipboard before placing a new object onto it
* RichTextBox.cs:
- Implemented set_Rtf
- Implemented set_SelectedRtf
- Created InsertRTFFromStream() method to allow single code base
for all properties and methods that insert RTF into document
- Removed debug output
* TextControl.cs:
- Fixed Delete(int) to fix up line numbers
- Fixed ReplaceSelection to combine start and end line
- Fixed serious DeleteChars bug that would leave the document tree
broken
- Improved DumpTree with several logic checks to detect broken
document trees
- Removed debug lines
- Fixed Caret.WordForward/WordBack moving code, now always also
updates caret.tag (fixes crash when word-selecting across tag
boundaries via keyboard)
- Added Insert() method for inserting multiline text into documents
- Fixed DeleteChars() calculation errors that would cause a broken
tag chain with multiple tag lines
- DeleteChars() no longer crashes on multi-tag lines if not all tags
- Split() no longer moves caret if split is at caret location
- ReplaceSelection() now updates the cursor and re-displays it
- ReplaceSelection() now uses new Insert() method to avoid code
duplication
- FormatText() can now handle formatting partial lines
* TextBoxBase.cs:
- Append now uses new TextControl.Insert() method (this avoids
duplicate code)
- Implemented Ctrl-X (Cut) (
- Implemented Ctrl-C (Copy)
- Implemented Ctrl-V (Paste) (Still some bugs related to screen
regeneration when pasting text; roundtripping Copy&Paste within
edit control still fails due to some calculation bugs in GenerateRTF)
- The Delete key will now remove the current selection if it is visible
* TextBox.cs: Removed debug lines
* XplatUI.cs: Trigger initialization of DataFormats (which requires the
driver to be initialized and can't therefore be done via a static ctor)
2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs: Added backend code for finding char arrays and strings
* TextBoxBase.cs:
- Added mouse wheel scroll support
- Added support for VScroll and HScroll events
* RichTextBox.cs:
- Implemented all seven Find() variants
- Implemented GetCharFromPosition()
- Implemented GetCharIndexFromPosition()
- Implemented GetLineFromIndex()
- Implemented GetPositionFromCharIndex();
- Implemented SaveFile for PlainText and UnicodeText
- Fixed set_Font, now setting a new font applies that font to
the whole document
- Implemented generic Document to RTF converter
- Implemented SaveFile for RichText format (still missing unicode
conversion for non-ansi chars)
- Implemented get_Rtf
- Implemented get_SelectedRtf
2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
to allow any captures to be released before triggering OnClick. This
way a click handler may capture the mouse without interference.
* XplatUIX11.cs: Always send mouse messages to grab window if one exists.
This way we send them even though X may not allow a grab (if the window
isn't visible, for example)
2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
* DataGridViewRowEventArgs.cs: DataGridView implementation
* DataGridViewElement.cs: DataGridView implementation
* DataGridViewComboBoxCell.cs: DataGridView implementation
* DataGridViewDataErrorContexts.cs: DataGridView implementation
* DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
* DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
* ImageLayout.cs: DataGridView implementation
* DataGridViewComboBoxColumn.cs: DataGridView implementation
* DataGridViewCellMouseEventHandler.cs: DataGridView implementation
* DataGridViewSelectionMode.cs: DataGridView implementation
* IDataGridViewEditingControl.cs: DataGridView implementation
* DataGridViewSortCompareEventHandler.cs: DataGridView implementation
* DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
* DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
* DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
* DataGridViewColumnSortMode.cs: DataGridView implementation
* DataGridView.cs: DataGridView implementation
* DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
* DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
* DataGridViewDataErrorEventArgs.cs: DataGridView implementation
* Padding.cs: DataGridView implementation
* DataGridViewCellParsingEventArgs.cs: DataGridView implementation
* DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
* DataGridViewRowEventHandler.cs: DataGridView implementation
* DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
* DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
* DataGridViewButtonCell.cs: DataGridView implementation
* DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
* DataGridViewEditMode.cs: DataGridView implementation
* DataGridViewCellValueEventArgs.cs: DataGridView implementation
* DataGridViewRowCancelEventArgs.cs: DataGridView implementation
* DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
* DataGridViewCheckBoxColumn.cs: DataGridView implementation
* DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
* DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
* DataGridViewCellEventHandler.cs: DataGridView implementation
* DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
* DataGridViewCellStyleConverter.cs: DataGridView implementation
* DataGridViewSelectedRowCollection.cs: DataGridView implementation
* DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
* DataGridViewColumnEventArgs.cs: DataGridView implementation
* DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
* DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
* QuestionEventArgs.cs: DataGridView implementation
* IDataGridViewEditingCell.cs: DataGridView implementation
* DataGridViewTriState.cs: DataGridView implementation
* DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
* DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
* DataGridViewColumnCollection.cs: DataGridView implementation
* DataGridViewCellValueEventHandler.cs: DataGridView implementation
* DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
* DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
* DataGridViewColumn.cs: DataGridView implementation
* DataGridViewCellBorderStyle.cs: DataGridView implementation
* DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
* DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
* DataGridViewRow.cs: DataGridView implementation
* DataGridViewImageCellLayout.cs: DataGridView implementation
* DataGridViewImageCell.cs: DataGridView implementation
* DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
* DataGridViewCheckBoxCell.cs: DataGridView implementation
* DataGridViewHeaderCell.cs: DataGridView implementation
* DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
* DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
* DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
* DataGridViewTextBoxColumn.cs: DataGridView implementation
* QuestionEventHandler.cs: DataGridView implementation
* DataGridViewCellStyleScopes.cs: DataGridView implementation
* DataGridViewSortCompareEventArgs.cs: DataGridView implementation
* DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
* DataGridViewCell.cs: DataGridView implementation
* DataGridViewCellEventArgs.cs: DataGridView implementation
* DataGridViewClipboardCopyMode.cs: DataGridView implementation
* DataGridViewCellStyle.cs: DataGridView implementation
* DataGridViewColumnHeaderCell.cs: DataGridView implementation
* DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
* DataGridViewRowCancelEventHandler.cs: DataGridView implementation
* TextFormatFlags.cs: DataGridView implementation
* DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
* DataGridViewDataErrorEventHandler.cs: DataGridView implementation
* DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
* DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
* DataGridViewButtonColumn.cs: DataGridView implementation
* DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
* HandledMouseEventArgs.cs: DataGridView implementation
* DataGridViewCellParsingEventHandler.cs: DataGridView implementation
* DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
* DataGridViewCellMouseEventArgs.cs: DataGridView implementation
* DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
* DataGridViewRowCollection.cs: DataGridView implementation
* DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
* DataGridViewCellCancelEventHandler.cs: DataGridView implementation
* DataGridViewHitTestType.cs: DataGridView implementation
* DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
* DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
* DataGridViewColumnEventHandler.cs: DataGridView implementation
* DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
* DataGridViewAutoSizeRowMode.cs: DataGridView implementation
* DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
* DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
* DataGridViewTextBoxEditingControl.cs: DataGridView implementation
* DataGridViewContentAlignment.cs: DataGridView implementation
* DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
* DataGridViewComboBoxEditingControl.cs: DataGridView implementation
* DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
* DataGridViewSelectedColumnCollection.cs: DataGridView implementation
* DataGridViewPaintParts.cs: DataGridView implementation
* DataGridViewCellCollection.cs: DataGridView implementation
* DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
* DataGridViewImageColumn.cs: DataGridView implementation
* DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
* DataGridViewElementStates.cs: DataGridView implementation
* DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
* DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
* DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
* DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
* DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
* DataGridViewCellCancelEventArgs.cs: DataGridView implementation
* DataGridViewRowHeaderCell.cs: DataGridView implementation
* DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
* DataGridViewTextBoxCell.cs: DataGridView implementation
* DataGridViewBand.cs: DataGridView implementation
* DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
* DataGridViewHeaderBorderStyle.cs: DataGridView implementation
* DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
* DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
* DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
* DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
* DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
* DataGridViewSelectedCellCollection.cs: DataGridView implementation
* DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
* DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
* DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
* ThemeWin32Classic.cs:
- Draw the outside focus rectangle around buttons
- Use CPDrawFocusRectangle to draw focus rectangles until Cairo
doesn't use end caps for every dash of a line anymore. This
workaround ignores the forecolor.
2005-11-08 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
endian safe.
2005-11-07 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
2005-11-07 Jackson Harper <jackson@ximian.com>
* ScrollableControl.cs: Calculate the maximum and change vars
(more) correctly so that scrollbars appear as a sensible size.
2005-11-04 Jackson Harper <jackson@ximian.com>
* TreeNodeCollection.cs: Refresh when nodes are cleared from the
collection.
* TreeView.cs: When the tree is sorted null out the top_node so
that it is recalculated.
- Use dotted lines instead of dashed lines to match MS better.
2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
* ListView.cs:
- Implements key search for items. Useful when browsing files with FileDialog
- When changing view mode or when clear the items reset scrollbar positions
2005-11-04 Jackson Harper <jackson@ximian.com>
* CurrencyManager.cs: Implement the MetaDataChanged event, the
Reset method, and the CheckEmpty. CheckEmpty is just a total guess
as to what the method may do as there is no real way of creating a
derived CurrencyManager and calling the method.
2005-11-03 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
* TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
method which seems to just be used internally to refresh the tabs.
2005-11-03 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Implement the remove method. Fix some broken
comments.
2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
* DateTimePicker.cs:
- Added missing DateTimePickerAccessibleObject class
- Added missing events
- Added OnFontChanged method
* Form.cs: Added missing attributes
* TreeView.cs: Added missing attributes
2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
* GridItemCollection.cs: Fix signatures
2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs: Updated build rev/date
* ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
* Application.cs: Trigger context-specific ExitThread events
2005-11-03 Jackson Harper <jackson@ximian.com>
* Menu.cs:
* MainMenu.cs:
* GridTableStylesCollection.cs:
* Timer.cs:
* TabPage.cs:
* HelpProvider.cs:
* StatusBar.cs:
* MonthCalendar.cs: Signature fixes
2005-11-03 Jackson Harper <jackson@ximian.com>
* TreeNodeCollection.cs: Remove should not be virtual.
* TreeView.cs: Implement the last of the missing methods.
2005-11-03 Jackson Harper <jackson@ximian.com>
* TreeNodeConverter.cs: Implement to get off my class-status back.
2005-11-03 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Hookup the bits for drag and drop.
* TreeNode.cs: Don't cache the tree_view or index anymore, now
that nodes can be moved from tree to tree easily this just causes
all sorts of problems.
* TreeNodeCollection: Don't need to give treenodes an index and
treeview anymore when they are added, these are computed on the
fly. Also make sure to remove a node before its added.
2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs:
- Added CaretSelection enum
- Added comparison methods to Marker struct, makes selection code
more readable
- Added SelectionStart and SelectionEnd as 'moveable' location for
the CaretDirection enum and handler
- Added selection_prev variable to track optimized invalidation for
word and line selection
- Added SelectionVisible property (returns true if there is a valid
selection)
- Switched CaretHasFocus to only display the caret if there is no
visible selection
- Avoiding StringBuilder.ToString to retrieve a single char, instead
using the direct character index; should be much faster
- Added various conditional debug statements
- Fixed invalidation calculation for selection ranges
- Added ExpandSelection() method to support word and line selection
- Switched SetSelectionToCaret to use new Marker compare overloads
- Added central IsWordSeparator() method to determine word
separators/whitespace and FindWordSeparator() to streamline common
usage of IsWordSeparator()
* TextBoxBase.cs:
- Removed unneeded grabbed variable, it was just mirroring
Control.Capture
- No longer firing OnTextChanged event when Text setter is called,
since the base will fire the event for us
- Added handling of Ctrl-Up/Down selection
- Added handling of Shift-Cursorkey selection
- Added handling for Ctrl-Delete and Ctrl-Backspace to remove
words
- Added handling of Shift and Ctrl-Shift-Home/End selection
- Removed some debug output
- Added handling for single/double/tripple-click to place caret/
select word/select line respectively (Fixes bug #76031)
- Added support for drag expansion of word/line selection
* RichTextBox.cs: Handle GotFocus event to trigger redrawing of
current selection
2005-11-02 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: If the drag is going to and from a MWF window just
copy the data instead of sending it out through the X Selection
mechanism.
2005-11-02 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs:
* XplatUIX11.cs: When in a drag we don't want motion notify
messages to get passed on to the other controls. This prevents
mouse move messages from showing up in the drag source.
2005-11-02 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
the correct button is release to end a drag.
* XplatUIX11.cs: Make the button state internal so the drag system
can access it. Dragging needs to know about all button releases,
not just left button.
2005-11-02 Miguel de Icaza <miguel@novell.com>
* Form.cs (Icon): If the icon is null, reset the icon to the
default value.
* Cursor.cs: When writing the AND-mask bitmap do not include the
number of colors, but hardcode those to two (black and white),
fixes the loading of color cursors (Paint Dot Net).
* Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
turn off autoscaling.
* Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
2005-11-02 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Make sure to send a status message if the pointer
enters a control that can not accept a drop, otherwise the cursor
isn't updated correctly. Also tried to compress the lines of code
a bit.
2005-11-02 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Change cursors based on drag action. Also attempt to
set actions correctly. This isn't perfect as XDND and win32 have
some differences on how you allow actions. I'll clear this up by
adding a path for drag from MWF to MWF windows.
* XplatUIX11.cs: Hook into the dnd system.
2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
* ListView.cs: Fixes scroll bar visibility. Hide them if they were
previously shown but they are no longer need it. Very obvious when
browsing files with FileDialog.
2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: We always need to call OnPaintBackground. We pretty much
ignore AllPaintingInWmPaint and always do the painting there, whether
it's set or not, since we always ignore the WM_ERASEBKGND message
(which we don't generate on X11). This fixes #76616.
* Panel.cs: Removed unneeded background painting. This happens properly
in Control.cs already
2005-10-31 Mike Kestner <mkestner@novell.com>
* Menu.cs: Add items to collection before setting their index.
* MenuItem.cs : add range checking with ArgumentException like MS.
[Fixes #76510]
2005-10-31 Jackson Harper <jackson@ximian.com>
* ListBox.cs: Invalidate if the area is visible at all not just
contained in the visible rect. Fixes unselection of semi visible
items.
2005-10-31 Jackson Harper <jackson@ximian.com>
* Control.cs: Consistently name the dnd methods. Make them
internal so we can override them to match some MS behavoir
internally.
* Win32DnD.cs: Use the new consistent names.
2005-10-31 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Don't draw the selected node when we lose focus.
2005-10-31 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: We still need to reset the state even though a full
reset isn't being done, otherwise status's still get sent all over
the place.
2005-10-31 Jackson Harper <jackson@ximian.com>
* Control.cs: Make the dnd_aware flag internal so the dnd
subsystem can check it. Catch exceptions thrown in dnd handlers to
match MS behavoir.
* Hwnd.cs: Add a flag for whether or not a window is dnd aware.
* X11Dnd.cs: Handle null data in the converters. Set the XDND
version when sending a XdndEnter. Use the control/hwnd dnd_aware
flags to reduce the number of dnd enters/status's sent.
2005-10-31 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
* PictureBox.cs: Fixes 76512
2005-10-28 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Early implementation to support winforms being a drag
source for data on X11. Also restructured the converters so they
can go both ways now.
* XplatUIX11.cs: Tie ins to the the Dnd stuff.
2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
clipboard requests
2005-10-27 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: Implement serialization so my DnD examples will work.
2005-10-24 Kornél Pál <kornelpal@hotmail.com>
* ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
TreeView.cs: Don't dispose objects that are not owned.
2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
* Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
should retrieve the current cursor and report that, but XplatUI
doesn't (yet) have an interface for that (and I'm not sure I even
can, on X11)
* XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
until any message loop processing is done (and the WM_SETCURSOR
replaces the cursor to the proper one)
* XplatUIX11.cs:
- Fixed override behaviour, we can't set the cursor globally on X11,
just for our windows.
- Invalidating the System.Drawing X11 display handle when we are
shutting down
* Control.cs: Fix to make csc happy
2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs:
- get_Text: Add last line (without trailing newline) to returned
value (Fixes 76212)
- get_TextLength: Count last line in returned length
- ToString: Call Text property instead of duplicating code
2005-10-23 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: Dispose ImageAttributes objects.
2005-10-22 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: Use attribute constructors with less arguments where
possible.
2005-10-22 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
Use typeof instead of strings when assembly is referenced. Added
some more comments.
2005-10-21 Jackson Harper <jackson@ximian.com>
* ListView.cs: Raise a double click event. Also tried to somewhat
fix when the selectedindexchanged event is raised. Its still
broken though.
2005-10-21 Jackson Harper <jackson@ximian.com>
* TreeView.cs: New method to invalidate the plus minus area of a
node without invalidating the whole node (maybe this can be used
in some more places).
* TreeNodeCollection.cs: When adding to an empty node we need to
invalidate its plus minus area so the little block shows up.
2005-10-21 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Make sure that when we invalidate a node the bounds
are big enough to cover the selected box and the focus
rectangle. Use a different colour for the lines connecting nodes
so they show up with all themes.
2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
* NativeWindow.cs: Don't call anything that could call into the driver,
we might be on a different thread.
2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs(Dispose): Since Dispose might run on a different thread,
make sure that we call methods that could call into the driver via
invoke, to avoid thread issues
2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs: Removed finalizer
* XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
not allowing to be called on the finalizer thread.
2005-10-21 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs:
- Reverted r51889 and r51891.
- Added ImageListItem class that stores unmodified image items and image
properties required to create list images until handle is created.
- Added AddItem and moved image creation logic to AddItemInternal.
- Added CreateHandle method that creates images based on unmodified items.
- Added DestroyHandle that changes state to store unmodified items.
- Add and AddStrip methods no more create handle.
- ReduceColorDepth has no return value.
- Dispose destroys handle.
- Modified other methods to reflect the above changes.
- Implemented key support.
- Added profile 2.0 members and attributes.
- Added private Reset and ShouldSerialize methods that provide the same
behavior as MS.NET but the Visual Studio .NET designer seems to ignore
them as they are private.
- Added some more comments about implementation details.
2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGrid.cs: Adds support for vertical scrolling using the mousewheel
2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
* Binding.cs: No PushData/PullData if there is no binding (fixes crash)
2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridDrawingLogic.cs: Fixes column hit calcultation
* DataGridColumnStyle.cs: Remove debug message
2005-10-20 Jackson Harper <jackson@ximian.com>
* TreeView.cs: We can always get input keys regardless of whether
or not editing is enabled. They are used for navigation.
2005-10-20 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: Use the viewport rect for determining if a node
needs to be moved for visibility. Don't use Begin/End edit. This
calls a full refresh when its done.
* TreeView.cs: New SetBottom works correctly. Make the viewport
rect property internal so the treenodes can see it. When clicking
on a node we need to ensure that its visible because it might just
be partly visible when clicked.
2005-10-20 Jackson Harper <jackson@ximian.com>
* TreeNodeCollection.cs: Remove debug code.
2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
* Datagrid.cs: Implements column sorting in Datagrid
* DataGridColumnStyle.cs: Implements column sorting in Datagrid
2005-10-20 Jackson Harper <jackson@ximian.com>
* TreeNodeCollection.cs: Remove items properly. Update the correct
area after removing them.
2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
* Datagrid.cs: Should not call base.OnPaintBackground
2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (GetMessage):
- Now properly calculates NC_xBUTTONDOWN coordinates off the whole
window instead of client window
- Now properly calculates NC_xBUTTONUP message coordinates
- ScreenToMenu now properly calculates it's coordinates of whole
window, since menus are in the whole window, not in the client
window
- Added WholeToScreen coordinate translation method
2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (GetMessage): Don't return in situations where we don't
want to return a message, loop back to the beginning of the function
and grab the next real message to process instead.
2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
* Splitter.cs: Properly set limits if no filler control is used
2005-10-19 Jackson Harper <jackson@ximian.com>
* ColorDialog.cs: Don't show the help button if it is not enabled
instead of disabling it (this is what MS does). Don't create the
panel until the dialog is run, otherwise the vars (such as
ShowHelp) are not set yet.
2005-10-19 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
are reduced when adding nodes.
* TreeNode.cs:
* TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
tree.
2005-10-19 Jackson Harper <jackson@ximian.com>
* FolderBrowserDialog.cs: End editing our treeview so the window
actually gets refreshed.
2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Fixed logic flip on when to call OnPaintBackground.
Obsoleted handling of WM_ERASEBKGND, now always draws our background
inside of WM_PAINT
2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
* MenuAPI.cs: Returns after Hidding window
* XplatUIX11.cs: Added TODO found while debugging menu issues
2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Do not re-map the whole window when it's size
becomes non-zero unless it's supposed to be actually visible
2005-10-18 Jackson Harper <jackson@ximian.com>
* TreeView.cs: We don't need to keep a count anymore.
* TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
use the Grow method.
2005-10-18 Jackson Harper <jackson@ximian.com>
* TreeNodeCollection.cs: Insert is not supported on arrays, so
implement it manually here.
2005-10-18 Jackson Harper <jackson@ximian.com>
* ImageList.cs: Dont kill the list when the colour depth is
changed, just change the colour depth of all the images.
- Same goes for setting the image size. Just resize them all
instead of killing the list softly.
2005-10-18 Jackson Harper <jackson@ximian.com>
* Control.cs: Don't invalidate empty rectangles.
2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
* ListViewItem.cs:
- Adds checked item to the Checked/Item lists (where empty before)
- Do not add items to the Selected lists if they are already present
* ListView.cs:
- Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
- When deleting items make sure that we delete them for the Selected
and Checked list also.
2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
* Label.cs: Dispose objects no longer used
* ThemeWin32Classic.cs: Dispose objects no longer used
2005-10-18 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Don't refresh the whole control when the tabs are
scrolled, we just need to refresh the tab area.
2005-10-17 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Compress code a little bit. Only calculate the
after handle when we need it.
2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: When the parent size changes, recalculate anchor
positions. Partial fix for #76462
2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
* ThemeWin32Classic.cs: Make sure the picturebox has it's background
drawn. Fixes #76462
2005-10-17 Jackson Harper <jackson@ximian.com>
* MonthCalendar.cs: Don't create the numeric up down until our
handle is created. Otherwise our handle is created in the
constructor and we don't know if we are a WS_CHILD or WS_POPUP
yet.
2005-10-17 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Merge in patch by Rafael Teixeira to align strings
correctly.
2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* TreeNode.cs : small logical fix (was using local var instead of field)
2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
* ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
* ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- Re-implemented anchoring code. My first version was really broken.
This fixes bug #76033. Unlike the previous implementation we will
no longer have round errors since all numbers are calculated from
scratch every time. Removed various anchor-related obsolete vars.
- InitLayout no longer causes layout event firing and layout to be
performed
2005-10-16 Jackson Harper <jackson@ximian.com>
* Hwnd.cs: Compute invalid area correctly (fixes my last commit
which was broken).
2005-10-16 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Remove debug code.
2005-10-16 Jackson Harper <jackson@ximian.com>
* XEventQueue.cs: Increase the default queue size (very simple
apps needed to grow the queue).
* Hwnd.cs: No finalizer so we don't need to suppress
finalization. Compute the invalid area manually so a new rectangle
does not newto be created.
* ScrollableControl.cs: Don't set any params (otherwise visibility
isn't set correctly).
* MdiChildContext.cs: New constructor takes the mdi parent so it
doesn't have to be computed and avoids a crash on windows. Draw
the window icon properly, and allow the text to be seen.
* Form.cs: Use new MdiChildContext constructor. Make sure the
child context isn't null in wndproc.
* TabControl.cs: Don't set focus, this is muddling keyboard
behavoir. Expand the tab rows when a window size increase will
allow extra tabs to be seen. Don't allow tabs smaller than the
width of a window to be scrolled out of view.
* TreeNode.cs:
* TreeView.cs: Use measure string to calculate a nodes width, the
width is cached and only updated when the text or the font is
changed. Don't check for expand/collapse clicks on the first level
nodes if root lines are disabled.
2005-10-16 Ritvik Mayank <mritvik@novell.com>
* TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridBoolColumn.cs: fixes warning
2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
* ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
to match more to match more precisely the MS Net behavior
2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
* Hwnd.cs: Added field to track if window is mapped
* XplatUIX11.cs:
- Unmap windows if they become 0-size, re-map when
they are >0 again; fixes #76035
- Re-set our error handler after initializing X11Desktop
to override any error handlers Gtk or whatever was called
may have set.
2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
* CheckedListBox.cs: Removed unused vars
* ListView.cs: Fixed signatures
* RichTextBox.cs: Removed unused vars
* TextBoxBase.cs: Removed unused vars
* XplatUIWin32.cs: Removed unused vars
* XplatUIX11.cs: Removed unused vars
* XplatUI.cs: Updated version and date to latest published
2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
* Cursor.cs: Added private .ctor to work around a bug in
resourceset (Thanks to Geoff Norton for the help on this)
* SplitterEventArgs.cs: Made fields accessible so we don't
waste boatloads of objects and can reuse the same one
in Splitter
* XplatUIWin32.cs(DrawReversibleLine): Now also considers
any captions and borders when generating screen coordinates
* Splitter.cs: Reimplemented control, now fully complete, uses
rubberband drawing, supports and obeys all properties, has
proper cursors
2005-10-13 Miguel de Icaza <miguel@novell.com>
* Form.cs (Form): Setup default values for autoscale and
autoscale_base_size; Make these instance variables, not static
variables.
(OnLoad): on the first load, adjust the size of the form.
2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
width argument to DrawReversibleRectangle()
* XplatUIWin32.cs, XplatUIX11.cs:
- Implemented width for DrawReversibleRectangle()
- Added logic to DrawReversibleRectangle that recognizes a zero
width or height and only draws a line in that situation
2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
* XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
* XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
method (it uses our FosterParent window to get a graphics context)
2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
and SetWindowBackground methods
* Control.cs:
- Setting proper ControlStyles
- We no longer call XplatUI.SetWindowBackground and XplatUI.
EraseWindowBackground, instead we draw the window background
ourselves in PaintControlBackground. This behaviour is
required to match MS, where, when OnPaintBackground is not
called, the background is not drawn.
- Removed unneeded Refresh() in set_Text
* Hwnd.cs: Dropped the ErasePending support. No longer needed
* XplatUIX11.cs:
- Created DeriveStyles method to translate from CreateParams to
FormBorderStyle and TitleStyle, also handles BorderStyle (which
matches FormBorderStyle enum values)
- Consolidated SetHwndStyles and CalculateWindowRect border/title
style calculations into single DeriveStyles method
- Fixed CreateWindow to (finally) use Gravity. This prevents X11
from redrawing the whole window on any resize or expose.
- Fixed CreateWindow usage of SetWindowValuemask. Before not
all styles were applied to our whole/client window appropriately
- Removed EraseWindowBackground() and SetWindowBackground() methods
- Removed handling of WM_ERASEBKGND message from DefWndProc, we
no longer clear/redraw the background through X
- Removed handling of erase_pending bit, we have no use for it (or
so it seems)
* XplatUIOSX.cs:
- Removed generation and handling of WM_ERASEBKGND message
- Removed EraseWindowBackground() and SetWindowBackground() methods
- Removed handling of hwnd.ErasePending flag
* XplatUIWin32.cs:
- Removed EraseWindowBackground() and SetWindowBackground() methods
- We no longer call EraseWindowBackground on PaintEventStart, we
ignore the fErase flag, erasing is handled in Control in the
background handler
* Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertyGrids.cs: Get sub properties
* PropertyGridView.cs: Fix drawing code
2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs: Fixes 76383
2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: Sets location and size before attachment
* ThemeWin32Classic.cs: Fixes border drawing and calculations
* DataGridDrawingLogic.cs: Fixes border drawing and calculations
2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: Fixes border drawing
2005-10-10 Miguel de Icaza <miguel@novell.com>
* MimeIcon.cs: Ignore errors if the file can not be read.
2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
* Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
- Fixed border calculations
- Fixed horizontal scrolling in single column listboxes
- Fixed drawing issues
2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
FormBorderStyle enum
* XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
code to determine FormBorderStyles from CreateParams
* Form.cs:
- Fixed bug where we'd set the wrong window styles if we were
not creating an MDI window
- Added call to XplatUI.SetBorderStyle when form borders are set
* Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
* Hwnd.cs:
- Removed obsolete edge style
- Switched from BorderStyle to FormBorderStyle
2005-10-10 Jackson Harper <jackson@ximian.com>
* Form.cs: Use the property to get the window handle instead of
accessing it directly. Prevents a null reference exception.
2005-10-10 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Don't adjust the rect given to DrawString now that
our libgdiplus draws correctly.
2005-10-08 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Don't try to find the clicked on node if there are
no nodes in the tree.
2005-10-08 Alexander Olk <alex.olk@googlemail.com>
* RichTextBox.cs:
restore
2005-10-08 Alexander Olk <alex.olk@googlemail.com>
* ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
ErrorProvider.cs:
Use ResPool for brushes and dispose System.Drawing objects that
are not used anymore.
2005-10-07 Jackson Harper <jackson@ximian.com>
* MdiChildContext.cs: Use the new borders instead of drawing them
ourselves.
2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
* Calling UpdateBounds after changing the window's BorderStyle
since the style can change the ClientSize
2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Made PaintControlBackground virtual
* Panel.cs: Overriding PaintControlBackground instead of using paint
event; paint event method was interfering with 'real' users of the
event.
2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
* ThemeWin32Classic.cs: remove border drawing since it is handled
by the base control class now and was causing double border drawing.
2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
* Panel.cs: Redraw our background on paint. Not a pretty solution,
but it does seem to match MS behaviour. This fixes bug #75324
2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: A better DrawReversibleRectangle version, however
somewhat hackish looking
2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
* TextBoxBase.cs:
- We now accept Enter even if AcceptEnter is false, if the containing
form does not have an AcceptButton configured (fixes bug #76355)
- Calculations are now fixed to no longer use Width/Height, but
ClientSize.Width/Height, since we now support borders (this was
a result of fixing borders and therefore bug #76166)
- We no longer show the horizontal scrollbar if TextBox.WordWrap is
true (fixes bug #76354)
2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- Defaulting BorderStyle and setting it in XplatUI when our window
is created
- Added enum check to InternalBorderStyle setter
* XplatUIX11.cs:
- Added drawing of window borders
- Now properly calculates WM decorations offset for toplevel
windows (fixes bug #74763)
* XplatUIWin32.cs:
- Implemented BorderStyles for windows (we're letting win32 draw
the border for us)
- Fixed the signature for SetWindowLong
* PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
setting borders
* UpDownBase.cs: Remove drawing of borders, this is handled by
the driver, outside the client area
* ListView.cs: Removed bogus border calculations. The control should
be oblivious to borders, since those are not part of the client
area.
* X11DesktopColors.cs: Commented out (currently) unneeded variables
* ThemeWin32Classic.cs: Removed border calculations from ListView
drawing code
2005-10-06 Jackson Harper <jackson@ximian.com>
* MdiChildContext.cs: Clear out the old virtual position remove
all the unneeded calls to CreateGraphics.
2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs: Use proper color for highlighted text; fixes #76350
2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs:
- Added loading and setting of our new default icon
- Only set icon if window is already created
2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
* Label.cs:
- Do not explicitly set the foreground and background colors, to
allow inheriting from parents (fixes #76302)
- Use Control's InternalBorderStyle property to deal with borders
2005-10-06 Jackson Harper <jackson@ximian.com>
* MdiChildContext.cs: Use the new xplatui function to draw a
reversible rect.
2005-10-06 Jackson Harper <jackson@ximian.com>
* Form.cs: Add the parent before creating the child context cause
we need the parent when setting up the child.
2005-10-06 Jackson Harper <jackson@ximian.com>
* FolderBrowserDialog.cs: redo the tree population code so a
second thread isn't used. Should be a lot faster and more stable
now.
2005-10-05 Jackson Harper <jackson@ximian.com>
* TreeView.cs: There are no expand/collapse boxes if the node has
no children.
2005-10-05 Jackson Harper <jackson@ximian.com>
* X11DesktopColors.cs: Get menu colours for the gtk theme.
2005-10-05 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Fix InitialDirectory
2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs:
- Fixes changing between styles
- Fixes simple mode
- Fixes last item crashing when navigating with keyboard
2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
* LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
2005-10-05 Jackson Harper <jackson@ximian.com>
* TreeView.cs: If updating the root node do a full refresh.
* TreeNode.cs: The root node should be expanded by default. Also
added a utility prop to tell if we are the root node.
* TreeNodeCollection.cs: Only refresh if the node we are being
added to is expanded. Also added a comment on a potential
optimization.
2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
* Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
in dispose method. Fixes #76330
2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
* ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
- Implements vertical and horizontal scrolling using XplatUI
- Fixes keyboard navagation
- Fixes EnsureVisible
- Drawing fixes
- Handles and draws focus properly
2005-10-04 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: Use upper case initials for internal fields. ImageStream:
Create handle. NET_2_0: Destroy handle when value is null.
2005-10-03 Jackson Harper <jackson@ximian.com>
* ScrollBar.cs: My last scrollbar patch was broken. This is a
revert and a new patch to prevent the thumb from refreshing so
much.
2005-10-02 Jackson Harper <jackson@ximian.com>
* ScrollBar.cs: Don't update position if it hasn't actually
changed. This occurs when you hold down the increment/decrement
buttons and the thumb gets to the max/min.
2005-10-01 Jackson Harper <jackson@ximian.com>
* Form.cs:
* MdiChildContext.cs:
* MdiClient.cs: Implement ActiveMdiChild in Form.
2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: Include ComboBoxEdit flag for the edit item
2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
* X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
be found
2005-09-30 Jackson Harper <jackson@ximian.com>
* ListBox.cs: Don't do a full refresh unless some data has
actually changed.
2005-09-30 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Make sure that the checkboxes size is factored in
even when not visible.
2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
* FileDialog.cs: Fix Jordi's build break
2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
* FileDialog.cs:
- Use standard the Windows colours for the combobox as espected
- Dispose objects that use resouces when no longer need them
2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
* X11DesktopColors.cs: Initial incomplete implementation
* XplatUIX11.cs: Added call to initialize X11DesktopColors
2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
* Theme.cs:
- Switched Theme color names to match the names defined in
System.Drawing.KnownColors. Life's hard enough, no need to make
it harder.
- Added setters to all theme color properties so themes can set
their color schemes. The setters also propagate the color changes
to System.Drawing.KnownColors via reflection
* ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
use the new, more logical theme color names
* XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
post-NT colors
* ThemeWin32Classic.cs:
- Removed code to set the old classic Windows colors. Instead it
now relies on the colors returned by System.Drawing.KnownColors
which will be either modern static colors (Unix) or colors
read from the user's configuration (Win32)
- Updated to use the new, more logical theme color names
- Switched DataGrid drawing code to use only Theme colors instead of
a mix of System.Drawing.KnownColors and Theme colors
- DrawFrameControl(): Removed code that fills the button area, the
fill would overwrite any previous fill done by a control. This
fixes bug #75338
- Added DrawReversibleRectangle() stub
* ScrollableControl.cs: Set visible state to false when scrollbars
are removed (pdn fix)
* XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
DrawReversibleRectangle() method to allow drawing primitive
'rubber bands'
* XplatUIX11.cs: Implemented DrawReversibleRectangle()
2005-09-30 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: Add(Icon): Create handle.
2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
* ListView.cs:
* ThemeWin32Classic.cs:
- Fixes detail mode
- Sets clippings
- Issues with drawing
2005-09-30 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: Moved RecreateHandle back to ImageList as event
source has to be the ImageList.
2005-09-30 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
2005-09-30 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: ReduceColorDepth: Clean up pointer operations.
2005-09-30 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: ImageCollection: Removed owner field as it is no more used.
2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
* GridItem.cs: Fixed TODOs
* GridItemCollection.cs: Added ICollection interface
2005-09-30 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: Resize icons when needed.
2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
* ListViewItem.cs
- Fixes GetBounds and returns on screen rects
* ListView.cs:
- Fixes vertical and horzintal scrolling of items
* ThemeWin32Classic.cs:
- Fixes drawing
2005-09-29 Raja R Harinath <harinath@gmail.com>
* ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
2005-09-29 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: Added comments about handle creation. Moved Handle,
HandleCreated and OnRecreateHandle implementations to ImageCollection.
Handle is created in Add methods.
2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridDrawingLogic.cs:
- Takes rows into account on Colum calculations
- Returns the column when clickig
* DataGrid.cs:
- Fixes default HitTestInfo values
- Fixes HitTestInfo.ToString
- Fixes ResetBackColor
2005-09-28 Jackson Harper <jackson@ximian.com>
* MdiChildContext.cs: Obey rules for fixed sized windows (no
sizing or cursor changes). Also added some temp code to draw the
titlebars text (Makes dev a little easier).
2005-09-28 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs: Fixes bug 76253
2005-09-28 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: Added comments about the current implementation. Added
ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
Format32bppArgb to preserve transparency and can use Graphics.FromImage
while using the specified ColorDepth. ReduceColorDepth uses unsafe code
with Bitmap.LockBits for better performance. Revised the whole file to
match MS.NET behaviour and provide better performance. Non-public
interface members are calling public members even when they throw
NotSupportedException for better maintainability. Moved ColorDepth,
ImageSize, ImageStream and TransparentColor implementations to
ImageCollection for better performance as these properties are not used
by ImageList.
* ImageListStreamer.cs: Added a new internal constructor that takes an
ImageList.ImageCollection and serializes Images based on
ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
match ImageList property name.
2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
* ListBox.cs: Fixes IndexFromPoint for last item
2005-09-27 Jackson Harper <jackson@ximian.com>
* Form.cs: Set the position of new mdi children correctly.
2005-09-27 Jackson Harper <jackson@ximian.com>
* MdiClient.cs: New mdi children need to be added to the back of
the controls collection so the zorder is set correctly. Also add a
count of all the child windows that have been created.
2005-09-27 Jackson Harper <jackson@ximian.com>
* Form.cs (CreateParams): Setup MDI forms correctly.
2005-09-27 Jackson Harper <jackson@ximian.com>
* MdiChildContext.cs:
* MonthCalendar.cs:
* UpDownBase.cs:
* ListBox.cs:
* ListView.cs:
* TextBoxBase.cs:
* TreeView.cs:
* ScrollableControl.cs:
* ComboBox.cs: Add implicit controls using the new implict control
functionality in ControlCollection. Also try to block multiple
control add in a suspend/resume layout to save some cycles.
2005-09-27 Jackson Harper <jackson@ximian.com>
* Control.cs: Add functionality to the controls collection to add
'implicit controls' these are controls that are created by the
containing control but should not be exposed to the user. Such as
scrollbars in the treeview.
* Form.cs: The list var of the ControlsCollection is no longer
available because of the potential of implicit controls getting
ignored by someone accessing the list directly.
2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Fixed SetChildIndex; it no longer causes a child to
loose it's parent. (Fixed bug introduced in r49103 when we added
setting the child parent to null on Remove)
2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
* DataGridBoolColumn.cs: Marked CheckState private to fix public API.
* Splitter.cs: Added missing attributes for BorderStyle property.
* TextBoxBase.cs: Marked Calculate* methods internal.
* TextBox.cs: Fixed DefaultValue for PasswordChar property to match
MS.NET.
2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs: Fixes navigation to the last item in multicolumn lists
2005-09-25 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Update the node bounds correctly regardless of
whether the node is visible.
2005-09-25 Jackson Harper <jackson@ximian.com>
* ImageList.cs: Don't dispose the image after it is added to the
image list. Only reformat images that need to be resized.
2005-09-25 Jackson Harper <jackson@ximian.com>
* ImageList.cs: Don't set the format when changing the image.
2005-09-25 Jackson Harper <jackson@ximian.com>
* TreeView.cs: We can't just assume the node has a font. Use the
treeviews font if no node font is available.
2005-09-25 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Allow the scrollbars to be reset with negative
values.
- Don't add scrollbars to negative sized windows.
2005-09-23 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
old Mono.Posix. Also remove some stray code that shouldn't have
been committed.
2005-09-23 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Attempt at proper sizing of the horizontal
scrollbar. Also don't resize the scrollbars unless they are
visible.
2005-09-23 Jackson Harper <jackson@ximian.com>
* TreeView.cs: We don't need to expand the invalid area when the
selection changes, as this is all drawn in the node's bounding
box. The area needs to be expanded (previous typo was contracting
it) when the focus rect moves.
2005-09-23 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Display the selection box under the correct
circumstances. We were rendering white text with no selection box
before.
2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
* TextControl.cs(Split): Now updates selection start/end if it points
into a line that's being split. Fixes a FIXME and bug #75258
2005-09-23 Jackson Harper <jackson@ximian.com>
* Binding.cs:
* ListControl.cs: Don't use the path when retrieving binding
managers from the binding context. My bat sense tells me that the
path is only used on insertion.
2005-09-22 Jackson Harper <jackson@ximian.com>
* Splitter.cs: Set the cursor an easier way. (Thanks peter).
2005-09-22 Jackson Harper <jackson@ximian.com>
* Splitter.cs: There are special cursors used for splitting.
* XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
2005-09-22 Jackson Harper <jackson@ximian.com>
* Splitter.cs: Change the cursor appropriately when the splitter
is moused over, so the user actually knows there is a splitter
there.
2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
* Label.cs : Fix ToString method to give same output as MS.NET
2005-09-22 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Create the scrollbars when the handle is created
and add them right away, just make them invisble. Also account for
the window being shrunk vertically to the point that the vert
scrollbar needs to be added.
- Remove some 0.5 adjustments to get around anti aliasing issues.
2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
* MainMenu.cs: Fixes default value
* MenuItem.cs: Fixes default value
2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
* AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
2005-09-21 Jackson Harper <jackson@ximian.com>
* Control.cs: Don't try to set the border style on the window if
it hasn't been created. When the window is created the border
style will be used.
2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs (Update): Don't call XplatUI if we don't have a
window handle yet
2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
* ContainerControl.cs: Instead of throwing an exception, print
a one-time warning about Validate not being implemented
* XplatUIWin32.cs: Removed debug output
2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Only set XplatUI background if we expect the windowing
system to handle the background. This stops controls that draw their
own background from flickering
* XplatUIX11.cs: Support custom visuals and colormaps for window
creation. This allows, amongst other things, using MWF X11 windows
with OpenGL.
2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
* OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
GridColumnStylesCollection.cs,
IDataGridColumnStyleEditingNotificationService.cs,
PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
TreeNodeCollection.cs, AmbientProperties.cs,
RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
DataObject.cs, ErrorProvider.cs, Splitter.cs,
DataGridLineStyle.cs, Shortcut.cs, Control.cs,
FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
2005-09-21 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: Call Before/After Expand not Collapse when
expanding.
2005-09-20 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Use the more hand looking hand (in most themes).
2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
* ListViewItem.cs:
- Fixes bug 76120
- Fixes proper storing of subitems
- Fixes not updated items
2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
things if our window handle isn't created yet. Also disabled
debug for TextBoxBase
2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
* MenuAPI.cs: Remove filtering of events to allow menu usage
2005-09-20 Miguel de Icaza <miguel@novell.com>
* Cursor.cs: Allow null to be passed to Cursor.Current.
2005-09-20 Alexander Olk <alex.olk@googlemail.com>
* ThemeWin32Classic.cs:
- Change some private methods/fields to protected virtual so that
they can be accessed and overriden in derived classes
- First refactoring of some methods. Derived themes now don't
need to duplicate the complete code from ThemeWin32Classic
* ThemeNice.cs:
- Added nice StatusBar
- Derive from ThemeWin32Classic and not Theme
- Removed duplicate ThemeWin32Classic code
2005-09-20 Miguel de Icaza <miguel@novell.com>
* Control.cs (ControlCollection.Add): If the value null is passed
the control is ignored.
Optimize this loop.
2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
* MenuAPI.cs: Replaced Application.Run() with a loop that tracks
PostQuitMessage state.
* XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
* Application.cs: Our constructor will never get called, move
initialization to fields; fixes bug #75933
2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
* FileDialog.cs :
- Allow files to be selected properly using file name
combo box.
- Add ability to change diretory (absolute / relative)
using file name combo box.
2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs:
- Fixes Multicolumn listboxes item wrong calculations
- Allows to click when only one item is in the listbox
- Fixes crash when no items using keyboard navigation
2005-09-16 Alexander Olk <alex.olk@googlemail.com>
* ComboBox.cs: Reverted almost everything from the latest patch which
broke ComboBox
2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
* ToolTip.cs:
- Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
* ComboBox.cs:
- When DropDownStyle is Simple, it does not show scrollbar
to the last item of the list.
- When DropDownStyle is Simple, it crashed when the list was
scrolled down with the down cursor key.
- Fixed a bug that when DropDownStyle is DropDownList, the
selected item was not shown.
- The position of the selected item was not preserved when
the next dropdown happened.
* ThemeWin32Classic.cs:
- Items were wrapped at the right end.
* CheckedListBox.cs:
- Fixed Add method
* ListBox.cs:
- Items should be fully shown.
- When resizing and vertical scrollbar disappeared, the item
of index 0 should be on the top of the list.
- GetItemRectangle should consider the size of ver. scrollbar
* StatusBar.cs:
- SizingGrip area should not be allocated when it is not
displayed.
- Now it reflects MinWidth of the containing panel and
fixed a crash that happens when its width becomes so small.
2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
* CheckedListBox.cs: Fixes bug 76028
* ListBox.cs: Fixes bug 76028
2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
* ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
* DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
* XplatUIX11.cs: fixes System.NullReferenceException in some situations
2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
* IRootGridEntry.cs: Changed namespace to PropertyGridInternal
2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
* IRootGridEntry.cs: Added
* PropertyGridCommands.cs: Added
* PropertiesTab.cs: Added missing methods and property
* PropertyGridView.cs: Made class internal
* PropertyGridTextBox.cs: Made class internal
2005-09-09 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: Try to check some other environment variables
if "DESKTOP_SESSION" returns "default"
2005-09-09 Alexander Olk <alex.olk@googlemail.com>
* ThemeNice.cs: Corrected background colors (e.g. menus)
* ColorDialog.cs: Use correct background colors for controls
2005-09-09 Alexander Olk <alex.olk@googlemail.com>
* ThemeNice.cs: Merged r49535 from ThemeWin32Classic
2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
* RichTextBox.cs: Added initial implementation
* lang.cs: Removed. Was accidentally checked in long time ago
* TODO: Removed. Contents were obsolete
2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertiesTab.cs : Added
2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertyGrid.cs : Update
* PropertyGridView.cs : Update
* System.Windows.Forms.resx : Added images and strings
2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
* ThemeNice.cs: Do not dispose Pens retrieved from ResPool
2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
a busy loop right after the Ungrab the X11 display is otherwise
blocked
2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
* ThemeWin32Classic.cs: Optimise the use of clipping
2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGrid.cs: fixes recursion bug
2005-09-03 Alexander Olk <alex.olk@googlemail.com>
* ThemeNice.cs:
- Draw RadioButton and CheckBox Buttons with DrawButtonBase
- Cleanup
2005-09-02 Alexander Olk <alex.olk@googlemail.com>
* ThemeNice.cs: Draw nice ProgressBars
2005-09-01 Miguel de Icaza <miguel@novell.com>
* VScrollBar.cs: Another buglet found by Aaron's tool.
* ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
bug finder.
2005-08-30 Alexander Olk <alex.olk@googlemail.com>
* ThemeNice.cs:
- Added nicer menu drawing
- Updated DrawTab
- some refactoring
2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
* CreateParams.cs (ToString): Made output match MS
* Control.cs (Text): Don't set Text or Focus via XplatUI unless
handle is already created (to avoid forcing window creation)
* XplatUIX11.cs: Set window text to caption after creating window,
in case Text was set before window was created
* Form.cs: Use this.Text instead of a static string as caption
2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
* NotifyIcon.cs: Don't set the window to visible; this screws
up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
OnPaint without a bitmap)
* XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
happen very often anyway; we could add the check to the WM_PAINT
event generation code
2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
* NotifyIcon.cs: Fill the icon area with a background color, to
avoid 'residue' when transparent icons are drawn
* XplatUIX11.cs:
- Handle whole_window == client_window when destroying windows
- SystrayAdd(): Set client_window to whole_window value to
get mouse and other events passed to NotifyIcon
2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs: Set proper default for Opacity property
* NotifyIcon.cs:
- ShowSystray(): Don't bother creating telling the OS
about the systray item if no icon is provided
- Now handles WM_NCPAINT message to deal with whole/client window
split
- Create window as visible to not get caught by Expose optimization
* Hwnd.cs: Removed debug message
* ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
PaintEventStart/End to use new client argument
* TextBoxBase.cs:
- Commented out debug messages
- Switched PaintEventStart/End to use new client argument
* XplatUI.cs: Added client window bool to PaintEventStart()/
PaintEventEnd() calls, to support drawing in non-client areas
* XplatUIDriver.cs:
- Added client window bool to PaintEventStart()/PaintEventEnd()
calls, to support drawing in non-client areas
- Added conditional compile to allow using MWF BeginInvoke
on MS runtime
* XplatUIX11.cs:
- Added some conditional debug output
- Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
whole/client window split
- Implemented handling of client argument to PaintEventStart()/End()
* Control.cs:
- Throw exception if BeginInvoke() is called and the window handle
or one of the window's parent handles is not created
- Added conditional compile to allow using MWF BeginInvoke on
MS runtime
- get_Parent(): Only sets parent if handle is created. This avoids
forcing window handle creation when parent is set.
- Now fires Layout and Parent changed events in proper order
- Switched to use Handle instead of window.Handle for Z-Order setting,
the get_Parent() patch above causes us to possibly get null for 'window'
- Implemented handling of client argument to PaintEventStart()/End()
- Now reports back to windows that WM_SETCURSOR was handled (to avoid
default handling)
- Now sends a Refresh() to all child windows when Refresh() is called
2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs: Added (non-functional) Opacity property
* XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
* ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
use export MONO_THEME=nice to activate it.
Currently supported controls:
- Button
- ComboBox
- ScrollBar
- TabControl (TabAlignment.Top only, other will follow)
* ThemeEngine.cs: Add theme nice
* ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
if enabled
2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
* Splitter.cs: Resize docked control and its neighbor.
2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
-- Making Windows with Menus layout correctly --
* Form.cs : The first leg of the fix
Menu setter - adjust Client Size as needed to make space for the menu
SetClientSizeCore - doesn't call base version to be able to pass the
menu handle to XplatUI.CalculateWindowRect
* Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
* XplatUIX11.cs: The critical second leg of the fix
GetWindowPos needs to use a recalculated client_rect
so that resizing the window doesn't break layout of child controls.
Also a more complete rule to avoid X Server roundtrips in SetWindowPos
Lots of \t\n killed
2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
* Label.cs: Now properly recalculates width and height on Font and Text
changes if AutoSize is set
2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* TreeView.cs : Revamped drawing logic, and support for FullRowSelect
2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
* ImageList.cs: Makes ToString method compatible with MS
2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
* MenuAPI.cs: fixes bug 75716
2005-08-11 Umadevi S <sumadevi@novell.com>
* Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
2005-08-11 Umadevi S <sumadevi@novell.com>
* Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
2005-08-10 Umadevi S <sumadevi@novell.com>
* CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
* Menu.cs: fixes bug 75700
* MenuAPI.cs: fixes navigation issues
2005-08-09 Umadevi S <sumadevi@novell.com>
* CheckedListBox.cs - simple fix for GetItemChecked.
2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: Serveral fixes
* ListBox.cs: Serveral fixes
2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: Fixes FindString methods and GetItemHeight
* ListBox.cs: Fixes FindString methods
2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGrid.cs: fixes bugs exposed by new tests
2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
* Mime.cs: Compile Mono assembly references only if compiling
with Mono (Allows to build with VS.Net again)
2005-07-28 Marek Safar <marek.safar@seznam.cz>
* Control.cs (PaintControlBackground): Draw background image
corrrectly.
(CheckForIllegalCrossThreadCalls): Stubbed.
* Form.cs (OnCreateControl): Center when should be centered.
* ThemeWin32Classic.cs (DrawPictureBox): Pass size.
2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
* Binding.cs: Binding to properties should be case unsensitive
2005-07-18 vlindos@nucleusys.com
* DataGrid.cs: fixes setmember order
2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
* MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
* FileDialog.cs: FileDialog is now resizable and uses the new
MimeIconEngine
2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: default value
* GridColumnStylesCollection.cs: fixes event firing, checking MappingName
* GridTableStylesCollection.cs: fixes checking MappingName
* DataGridDrawingLogic.cs: fixes drawing logic issues
* DataSourceHelper.cs: rewritten to make compatible with more data sources
* DataGrid.cs: fixes
2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
* MimeGenerated.cs: Use case sensitive comparer for
NameValueCollections
2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: bug fixes, code refactoring
* ThemeWin32Classic.cs: bug fixes, code refactoring
* DataGridDrawingLogic.cs: bug fixes, code refactoring
* DataGrid.cs: bug fixes, code refactoring
* DataGridTextBox.cs: bug fixes, code refactoring
* DataGridColumnStyle.cs: bug fixes, code refactoring
* Theme.cs: bug fixes, code refactoring
2005-07-01 Peter Bartok <pbartok@novell.com>
* TextControl.cs: Quick fix for the reported crash on ColorDialog
and other text box usage
2005-07-01 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Make sure the bottom of the tab covers the pages
border.
2005-06-30 Peter Bartok <pbartok@novell.com>
* Form.cs (ShowDialog): Assign owner of the dialog
* TextBoxBase.cs: Always refresh caret size when deleting, caret
might have been moved to a tag with different height
2005-06-30 Jackson Harper <jackson@ximian.com>
* Form.cs: Don't create an infinite loop when setting focus
* MenuItem.cs: Don't dirty the parents if we don't have any
2005-06-29 Ben Maurer <bmaurer@ximian.com>
* LibSupport.cs: Rename
2005-06-29 Peter Bartok <pbartok@novell.com>
* TextBoxBase.cs: Re-align caret after deleting a character
* TextControl.cs:
- DeleteChars(): Ensure that tag covers the provided position
- StreamLine(): Drop reference for dropped tag
2005-06-29 Peter Bartok <pbartok@novell.com>
* TextControl.cs:
- Selections now work properly, anchoring at the initial location
and properly extending in either direction (SetSelectionToCaret(),
SetSelectionStart() and SetSelectionEnd())
- No longer redraws the whole control on selection change, now
calculates delta between previous and new selection and only
invalidates/redraws that area
- Fixed FindPos() math off-by-one errors
- Changed DeleteChars() to verify the provided tag covers the
provided position, selections may have a tag that doesn't cover
the position if the selection is at a tag border
- Fixed off-by-one errors in DeleteChars()
- Added missing streamlining check in DeleteChars() to remove
zero-length tags
- Implemented Invalidate() method, now properly calculates exposures
between two given lines/positions
- Implemented SetSelection()
- Obsoleted and removed FixupSelection()
- Improved RecalculateDocument() logic, removing code duplication
2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* LibSupport.cs: changes to match different input/output arguments.
2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* LibSupport.cs: added libsupport.so init routine.
2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
* ControlBindingsCollection.cs
- Throws an exception on null datasource when adding
- Checks for duplicated bindings when adding
2005-06-28 Jackson Harper <jackson@ximian.com>
* TreeView.cs (OnKeyDown): Support left and right properly
(navigates as well as expanding and collapsing.
- Add support for Multiply, this expands all the selected nodes
children.
- Fix some tabbing.
2005-06-28 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Implement keyboard navigation, currently supports,
LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
support for toggling checkboxes with the space bar.
2005-06-28 Jackson Harper <jackson@ximian.com>
* OpenTreeNodeEnumerator.cs: Don't move past the begining of the
tree.
2005-06-28 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Add missing event.
2005-06-27 Peter Bartok <pbartok@novell.com>
* TextControl.cs:
- Made line ending size configurable (now allows for counting
lineendings as \n or \r\n)
- Added margin to viewport to keep caret visible on right side
- Fixed translation routines for line/pos to documentpos to consider
cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
- Fixed some line-endings to be unix style
- Fixed Document.FormatText to perform it's calculations 1-based
- Added descriptions for a few methods that might otherwise get
used wrong
- Added NOTE section with some basic conventions to remember at
the top of the file
- Major fixup for RichTextBox selection drawing:
* Fixed crashes when multiple tags on a single line were selected
* fixed selection box drawing not overlaying text
* fixed bogus offset calculation for tags not starting at index 1
* Switched behaviour from using multiple Substrings of a
StringBuilder.ToString() to using multiple
StringBuilder.ToString(start, length) statements, hoping this is
faster (kept original version commented out in the code, in case
original version was faster)
* TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
alignment != Left
* TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
call it as well
2005-06-27 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Move to the left and right with the arrow
keys. These keys don't cycle beyond first and last like
tab. Refresh all the tabs when scrolling them to the left or
right.
2005-06-27 Jackson Harper <jackson@ximian.com>
* TabControl.cs:
- ToString: Added method
- CreateParams: Remove TODO and comment
- OnKeyDown: Cycle through bounds properly.
- SelectedIndex: Scroll to the right or left if we need to
display the newly selected tab.
2005-06-23 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Stay in bounds when cycling. Make sure Handled is
set.
2005-06-23 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Keyboard handling. We now support CTRL-TAB,
CTRL-SHIFT-TAB, and HOME, END are there any others?
2005-06-23 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Get the modifier keys from the keyboard driver.
2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: fixes and enhancements
* ThemeWin32Classic.cs: fixes and enhancements
* DataGridBoolColumn.cs: fixes and enhancements
* DataGridDrawingLogic.cs: fixes and enhancements
* CurrencyManager.cs: fixes and enhancements
* DataGrid.cs: fixes and enhancements
* DataGridColumnStyle.cs: fixes and enhancements
2005-06-22 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Add some missing methods that just call into the
base. Make the TabPageCollection's IList interface behave in the
same manner as the MS implementation.
2005-06-22 Peter Bartok <pbartok@novell.com>
* TextControl.cs: Added sanity check
* TextBoxBase.cs:
- Fixed wrapping behaviour, don't set wrap on single line controls
(this fixes the breakage of colordialog introduced in an earlier
checkin)
- Added rudimentary support for autoscrolling right-aligned controls
(still needs fixing, also, center alignment scroll is missing)
2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
* ScrollBar.cs: Fixes thumbpos on Maximum values
2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertyGridView.cs: Pass context information to UITypeEditors
2005-06-21 Peter Bartok <pbartok@novell.com>
* TextBoxBase.cs:
- Now calling PositionCaret with absolute space coordinates
- Enabled vertical scrolling
- Better tracking of scrollbar changes, tied into WidthChange
event
- Improved cursor tracking
- Removed debug output
* TextControl.cs:
- PositionCaret coordinates are now works in absolute space, not
the canvas
- Improved tracking of document size
- Added events for width and height changes
2005-06-21 Peter Bartok <pbartok@novell.com>
* Form.cs: Set focus to active control when form is activated
* TextControl.cs:
- Added word-wrap functionality to RecalculateLine()
- Added some short function descriptions for VS.Net to aid in
writing dependent controls
- Added Caret property, returning the current coords of the caret
- Added ViewPortWidth and ViewPortHeight properties
- Added Wrap property
- Added CaretMoved event
- Removed some old debug code
- Split() can now create soft splits
- Added PreviousTag()/NextTag() to allow walking "tag-lists"
- Added method to format existing text
- Fixed size/alignment calculations to use viewport
- RecalculateDocument now can handle changing line-numbers while
calculating lines
* TextBox.cs:
- Added some wrap logic, we don't wrap if alignment is not left
- Added casts for scrollbar var, base class switched types to
also support RichTextBoxA
- Implemented handling of scrollbar visibility flags
* TextBoxBase.cs:
- Switched scrollbars type to RichTextBoxScrollBars to support
RichTextBox
- Added tracking of canvas width/height
- Switched scrollbars to be not selectable (to keep focus on text)
- Added central CalculateDocument() method to handle all redraw
requirements
- Added ReadOnly support
- Added WordWrap support
- Fixed handling of Enter key (we now treat it as a DialogKey)
- Fixed caret positioning when h or v scroll is not zero
- Fixed placing/generation of vertical scrollbar
- Added CalculateScrollBars() method to allow updating scrollbar
limits and visibility
- Fixed handling of horizontal scroll
- Added handling of vertical scroll
- Implemented auto-'jump' when caret moves to close to a left or
right border and there is text to be scrolled into view (currently
there's the potential for a stack overflow, until a bug in
scrollbar is fixed)
2005-06-21 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
* Mime.cs:
- added inodes.
- return application/x-zerosize for files with size zero
(if no extension pattern matches).
- check matches collection for strings too.
- return only the first mime type if the name value
collection has more than one mime type.
2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertyGrid.cs: Cleaned up some TODOs
* PropertyGridView.cs: Added support for UITypeEditors
2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGrid.cs: clears cached value
2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
* DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
* DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
* DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
* ThemeWin32Classic.cs: fixes colour
2005-06-15 Peter Bartok <pbartok@novell.com>
* MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
* MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
* ButtonBase.cs: Added MWFCategory and MWFDescription attributes
* Control.cs: Added some MWFCategory and MWFDescription attributes
* ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
* Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
usage
2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
* DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
* DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
* DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
* DataGrid.cs: default datagrid settings for Default Styles, fixes
* DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
2005-06-13 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
isn't printed when the user enables dropping. (X11 does accept
drops).
2005-06-13 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Remove some TODOS.
2005-06-13 Jackson Harper <jackson@ximian.com>
* Form.cs: Hook into the mdi framework.
* MdiClient.cs: Use the base control collections add method so
parents get setup correctly. Set the default back colour and dock
style.
* MdiChildContext.cs: New class, this bad actor handles an
instance of an MDI window. Right now there is only basic
support. You can drag, close, and resize windows. Minimize and
Maximize are partially implemented.
2005-06-13 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Mash numbers together properly, otherwise we get
freaky when both vals are negative. NOTE: There are probably other
places in XplatUIX11 that this needs to be done.
2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGrid.cs: implement missing methods, move KeyboardNavigation
* DataGridColumnStyle.cs: fixes signature
2005-06-12 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Use sizing cursors similar to the ones on
windows.
2005-06-11 Jackson Harper <jackson@ximian.com>
* StatusBarPanel.cs: Signature cleanups. Implement
BeginInit/EndInit.
2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: Honors aligment
* GridColumnStylesCollection.cs: Contains is case unsensitive
* GridTableStylesCollection.cs: several fixes
* DataGridTableStyle.cs: default column creation
* DataGridDrawingLogic.cs: fixes
* CurrencyManager.cs: ListName property
* DataGrid.cs: multiple styles support
* DataGridColumnStyle.cs: fixes
2005-06-10 Peter Bartok <pbartok@novell.com>
* Control.cs(Select): Moved SetFocus call to avoid potential
loops if controls change the active control when getting focus
* UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
the up/down buttons
2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
* ImageListConverter.cs: Implemented
2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
* MonthCalendar.cs: Wired in NumericUpDown control for year
2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
* MonthCalendar.cs: Removed MonoTodo attributes on Click and
DoubleClick events, since they are not meant to be fired.
2005-06-09 Peter Bartok <pbartok@novell.com>
* UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
Jonathan's standalone controls into MWF, implemented missing
events, attributes and methods; added xxxAccessible classes
* AccessibleObject.cs: Made fields internal so other classes
can change them if needed
2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
* UpDownBase.cs: Complete implementation
* NumericUpDown.cs: Complete implementation
* DomainUpDown.cs: Complete implementation
2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: drawing fixes
* DataGridCell.cs: fixes ToString method to match MSNet
* DataGridTableStyle.cs: fixes
* DataGridBoolColumn.cs: fixes, drawing
* DataGridDrawingLogic.cs: fixes, new methods
* DataGridTextBox.cs: Keyboard and fixes
* DataGrid.cs:
- Keyboard navigation
- Scrolling fixes
- Row selection (single, multiple, deletion, etc)
- Lots of fixes
2005-06-07 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Clear the background area when drawing
buttons.
2005-06-06 Peter Bartok <pbartok@novell.com>
* ImageListStreamer.cs: Fixed signature for GetData
* CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
* ComboBox.cs:
- Added missing ChildAccessibleObject class
- Added missing OnXXXFocus overrides, switched to using those
instead of the event handler
* Control.cs:
- Added Parent property for ControlAccessibleObject
- Fixed signatures
- Fixed attributes
- Added ResetBindings()
* ListBindingConverter.cs: Implemented some methods
* ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
* ImageList.cs: Implemented basic handle scheme, removed TODOs
* ContainerControl.cs: Fixed signature, now subscribing to the
ControlRemoved event instead of overriding the handler, LAMESPEC
* CurrencyManager.cs: Added missing attribute
* MonthCalendar.cs: Added missing properties
2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridColumnStyle.cs: fixes for DataGridColumnStyle
2005-06-06 Gaurav Vaish and Ankit Jain
* DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
* DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
* Control.cs: fixes CreateParams Width / Height.
2005-06-05 Peter Bartok <pbartok@novell.com>
* Win32DnD.cs: Removed compilation warnings
2005-06-05 Peter Bartok <pbartok@novell.com>
* Control.cs (CreateParams): Since we don't know if one of the
properties we use is overridden, lets make sure if we fail accessing
we continue with a backup plan
2005-06-05 Peter Bartok <pbartok@novell.com>
* Win32DnD.cs:
- Removed debug output
- Added MarshalAs attribute to ensure proper marshalling of FORMATETC
struct
- Plugged resource leak
* XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
MS size
2005-06-05 Peter Bartok <pbartok@novell.com>
* XplatUIWin32.cs: Removed DnD code
* Win32DnD.cs: Implemented drop source and drop target functionality
2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* UpDownBase.cs: remove duplicate addition of event, enable some code
that was commented out.
* NumericUpDown.cs: added missing attributes and Hexadecimal property.
Validate input when a key is pressed. It works fine now for every
combination of Hexadecimal. Only missing some drawing love when sharing
space with other controls.
2005-06-04 Peter Bartok <pbartok@novell.com>
* Control.cs:
- We need to pass a window for DragDrop, so enable callback events
- Added DnD callback events when being a DragSource
* XplatUI.cs (StartDrag): Added window handle argument
* XplatUIDriver.cs (StartDrag): Added window handle argument
* QueryContinueDragEventArgs: Made fields internally accessible so
drivers can set them
* GiveFeedbackEventArgs: Made fields internally accessible so drivers
can set them
2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: column text editing
* DataGridTableStyle.cs: Respect columns styles created by the user
* DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
* DataGridBoolColumn.cs: bool column editing
* DataGrid.cs: fixes to scrolling, properties, etc
* DataGridTextBox.cs: handle keyboard
* DataGridColumnStyle.cs: fixes
2005-06-02 Jackson Harper <jackson@ximian.com>
* ImageListStreamer.cs: Somewhat broken implementation of
GetObjectData. The RLE needs some work to match MS properly.
2005-06-02 Jackson Harper <jackson@ximian.com>
* X11Dnd.cs: Attempting to keep at least one file in MWF
monostyled.
2005-06-02 Peter Bartok <pbartok@novell.com>
* X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
that way
2005-06-02 Peter Bartok <pbartok@novell.com>
* Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
* XplatUI.cs: Added DoDragDrop() method
* XplatUIDriver.cs: Added DoDragDrop() method
2005-06-02 Jackson Harper <jackson@ximian.com>
* Splitter.cs: Implement BorderStyle.
2005-06-02 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Tie into the X11Dnd subsystem.
* X11Dnd.cs: New file. A subsystem that handles drag and drop on
X11 using XDND.
2005-06-02 Peter Bartok <pbartok@novell.com>
* DataObject.cs:
- Added Data setter
- Fixed broken insertion code for SetData, now also
overwrites any existing entry of the same format name
* Hwnd.cs: Added list of pointers that automatically gets
freed when the window is disposed
* XplatUI.cs: Call driver initialization method when loading
a driver
* Control.cs:
- OnDragLeave takes EventArgs, not DragEventArgs
- Added setting of WS_EX_ACCEPTFILES style when dropping is
supported
- Forces style update when drop state changes
* XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
not perfect since we cannot (yet) call the IDataObject.GetData()
method, we keep getting 0x80004005 error, dunno why)
2005-06-02 Peter Bartok <pbartok@novell.com>
* DragEventArgs.cs: Make fields internal so we can cache the
object and re-set the fields from XplatUI
2005-06-02 Jackson Harper <jackson@ximian.com>
* Control.cs: Add some internal methods so the DnD subsystem can
raise DnD events. Also call into the driver when AllowDrop is set.
* XplatUI.cs:
* XplatUIDriver.cs: New method for setting whether or not a window
is allowed to accept drag and drop messages.
2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
* ScrollBar.cs: Make sure that values sent in Scroll events
are always between Maximum and Minimum.
2005-06-01 Marek Safar <marek.safar@seznam.cz>
* Menu.cs: Call MenuChanged when menuitem visibility has been
changed.
* MenuItem.cs: Rebuild menu when item is (not) visible.
* MainMenu.cs: MainMenu has special MenuChanged.
* Theme.cs: Caption and FrameBorderSize are not fixed.
* XplatUI.cs: Added CaptionHeight,FrameBorderSize.
* XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
* XplatUIX11.cs,
* XplatUIOSX: Caption and FrameBorderSize not implemented yet.
* XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
2005-05-30 Jackson Harper <jackson@ximian.com>
* DataFormat.cs: We can't statically initialize this stuff because
it calls into the xplatui and could create a loop. So we lazy init
it.
2005-05-28 Jackson Harper <jackson@ximian.com>
* Control.cs: Proper implementation of Product(Name/Version).
2005-05-27 Jackson Harper <jackson@ximian.com>
* DataObject.cs: Dont crash if no data is found.
2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
as per status page, guessing it should be set to true
2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: Draws text and basic text formatting
* DataGridTableStyle.cs: set proper formatting text, def header text
* ThemeWin32Classic.cs: new themable paramaters
* DataGridBoolColumn.cs: paint check box, get data, fixes
* DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
* DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
* DataGridColumnStyle.cs: fixes
* Theme.cs: new themable paramaters
2005-05-26 Peter Bartok <pbartok@novell.com>
* ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
* Control.cs: Fixed LowOrder and HighOrder to preserve sign.
2005-05-24 Peter Bartok <pbartok@novell.com>
* OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
missing attributes, etc
* DataGridPreferredColumnWidthTypeConverter.cs: Added
2005-05-24 Peter Bartok <pbartok@novell.com>
* Help.cs: Added, implemented trivial functions, throws up MessageBox
when user tries to get help
* DataObject.cs, DataFormats.cs, LinkArea.cs,
SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
to suppress warnings
* XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
avoid unreachable code warning
2005-05-20 Peter Bartok <pbartok@novell.com>
* CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: Basic painting methods
* DataGridTableStyle.cs: Set table style in the column
* ThemeWin32Classic.cs: Use Theme for colors
* DataGridDrawingLogic.cs: Implement more drawing
* DataGrid.cs: drawing, theming, enhacements, fixes
* DataGridColumnStyle.cs: fixes, drawing
* Theme.cs: theming for Datagrid
2005-05-20 Peter Bartok <pbartok@novell.com>
* Cursor.cs: Implemented GetObjectData() method
2005-05-20 Peter Bartok <pbartok@novell.com>
* Cursors.cs: Added setting of cursor name
* Cursor.cs:
- Implemented constructors
- Implemented Draw and DrawStretched
- Implemented Current property
- Implemented == and != operators
- Implemented Dispose()
- Implemented ToString
- Added missing attributes
* XplatUIX11.cs:
- Added missing reset for OverrideCursor when DoEvents is called
- Fixed creation of cursor, logic was wrong
* XplatUIWin32.cs:
- Added missing reset for OverrideCursor when DoEvents is called
- Fixed creation of cursor, bit arrays were swapped
* Clipboard.cs: Removed obsolete MonoTODO attribute
2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: fixes OnSelectedItemChanged
* ControlBindingsCollection.cs: fixes item range check
2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
* UpDownBase.cs:
- Calc preferred height properly
- Implement missing properties
* NumericUpDown.cs: Implement missing events
2005-05-19 Jackson Harper <jackson@ximian.com>
* TabControl.cs: New method that resizes the tab pages before
redrawing them. This as needed as the control is double buffered
and sizing will not be recalculated unless ResizeTabPages is
called.
* TabPage.cs: Set base.Text instead of Text in the constructor so
that UpdateOwner does not get called. Use the new Redraw method of
TabControl instead of Refresh so the sizing is recalculated.
* ThemeWin32Classic.cs: Draw the text for button tabs.
2005-05-19 Jackson Harper <jackson@ximian.com>
* Control.cs: Paint control background images. Fix typo where
PaintControlBackground was not getting called correctly.
2005-05-19 Peter Bartok <pbartok@novell.com>
* ScrollableControl.cs (DisplayRectangle): Undid my last change until
I can investigate, apparently I broke FileDialog
2005-05-19 Marek Safar <marek.safar@seznam.cz>
* AxHost.cs: Some simple properties.
* Control.cs: window must be accessible after ctor.
* Form.cs: Added TransparencyKey property.
* TextBoxBase.cs: Implemented Clear. Text property can be null.
* XplatUIWin32.cs: SetBorderStyle implemented.
2005-05-18 Peter Bartok <pbartok@novell.com>
* DataObject.cs: Entries are not global but particular to the
DataObject, now it behaves that way
* XplatUIWin32.cs: Implemented Clipboard methods
* Clipboard.cs: Implemented
* ScrollableControl.cs (DisplayRectangle): Fixed calculation
* XplatUIOSX.cs: Updated to final clipboard prototypes
* XplatUIX11.cs: Implemented Clipboard methods
* XplatUIDriver.cs: Updated to final clipboard prototypes
* XplatUIStructs.cs:
- Added BITMAPINFOHEADER struct
- Added ClipboardFormats enum
* X11Structs.cs:
- Added ClipboardStruct
- Added Atom enum items for clipboard types
- Fixed atom types for Selection event structures
* DataFormats.cs:
- Added internal properties and methods for drivers to enumerate
all known formats
- Switched initialization method to allow drivers to assign their
own IDs even for the MS predefined clipboard IDs
* XplatUI.cs: Updated to final clipboard interface
2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
* PropertyGridView.cs: Fixed compiler warnings.
2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
* PropertyGrid.cs: Added some event calls
* PropertyGridView.cs: Change drawing code to use double buffering
* PropertyGridTextBox.cs: Changed Text property name
* GridItem.cs: Added Bounds property.
* GridEntry.cs: Added Bounds property.
2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
* Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
since GetType() may not return the correct type if the object is
a remoting proxy.
2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
* TreeNodeCollection.cs: fixes get/set item ranges
2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: Fix item range comparation
* ListView.cs: Fix item range comparation
2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
* FontDialog.cs:
- Clear example panel when OnPaint is called
- Better solution for displaying the example panel text
- Select default indexes in the ListBoxes
2005-05-11 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
2005-05-11 Peter Bartok <pbartok@novell.com>
* LinkArea.cs: Added and implemented LinkAreaTypeConverter class
* SelectionRangeConverter.cs: Implemented
* PropertyGrid.cs: Fixed attribute value
* Control.cs:
- Invoke(): Don't call Begin/EndInvoke if it is not neccessary
- Added Sebastien Pouliot's CAS Stack Propagation fixes
* XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
that's common to all drivers. First methods to go there are
Sebastien Pouliot's CAS Stack Propagation helper methods
* XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
Sebastien Pouliot for CAS Stack Propagation
2005-05-11 Geoff Norton <gnorton@customerdna.com>
* OSXStructs.cs:
XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: fixed some members
* GridColumnStylesCollection.cs: indexed column is case insensitive
* DataGridTableStyle.cs: fixes
* ThemeWin32Classic.cs: add new theme parameter
* Theme.cs: add new theme parameter
* DataGridDrawingLogic.cs: Datagrid's drawing logic
* DataGrid.cs: fixes, new internal properties, etc.
* DataGridColumnStyle.cs: allows to set grid value
*
2005-05-10 Peter Bartok <pbartok@novell.com>
* AccessibleObject.cs:
- Removed MonoTODO attribute on help, method is correct
- Fixed Bounds property
* AxHost.cs: Moved MonoTODO
* ButtonBase.cs: Now setting AccessibleObject properties
* RadioButton.cs: Setting proper AccessibleObject role
* CheckBox.cs: Setting proper AccessibleObject role
* ControlBindingsCollection.cs: Added properties, methods and attributes
* DataFormats.cs: Fixed awkward internal API, and changed to enable
userdefined DataFormats.Format items as well
* ListControl.cs: Removed data_member from the public eye
* OpenFileDialog.cs:
- Made class sealed
- Added missing attributes
* SaveFileDialog.cs: Added missing attributes
* ImageListStreamer.cs: Fixed code that caused warnings
* LinkLabel.cs: Removed unreachable code
* TreeView.cs: Fixed code that caused warnings
* PropertyGridView.cs: Fixed code that caused warnings
* GridColumnStylesCollection.cs: Added missing attributes
* GridTableStylesCollection: Added missing attribute
* PropertyManager: Added .ctor
* SecurityIDType: Added
* DataObject.cs: Implemented class
* LinkArea.cs: Added missing attribute
2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
* RadioButton.cs: call base method to allow to fire OnClick event
* UpDownBase.cs: OnMouseUp call base method
* CheckedListBox.cs: call base method before returning
* TrackBar.cs: call base method before returning
2005-05-10 Peter Bartok <pbartok@novell.com>
* XplatUIX11.cs: Fix for #74902, check pending timers when peeking
for messages
2005-05-10 Peter Bartok <pbartok@novell.com>
* DataFormats.cs: Implemented
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
XplatUIX11.cs: Added Clipboard APIs
* XplatUIWin32.cs: Implemented Clipboard APIs
* FolderBrowserDialog.cs: Added missing event, attributes
2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
* CheckBox.cs: call base method to allow to fire OnClick event
2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
* XplatUI.cs: Use PlatformID.Unix under NET_2_0.
2005-05-06 Peter Bartok <pbartok@novell.com>
* XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
* Screen.cs: Implemented
* HelpNavigator.cs: Added
* XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
property
* HelpProvider.cs: Implemented all we can do until we have a CHM
help library (which means that "What's This" does work now)
2005-05-06 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Fix waking up the main loop.
2005-05-05 Peter Bartok <pbartok@novell.com>
* XplatUI.cs: Updated revision
* Form.cs: Removed enless loop
* GroupBox.cs (OnPaint): Added call to base.OnPaint()
* Label.cs (OnPaint): Added call to base.OnPaint()
* ToolTip.cs: Made ToolTipWindow reusable for other controls
* LinkLabel.cs (OnPaint): Added call to base.OnPaint()
* UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
* AxHost.cs: Added
* ButtonBase.cs: Moved base.OnPaint() call to end of method
* ThemeWin32Classic.cs: Replaced references to ToolTip with references
to ToolTip.ToolTipWindow for drawing and size methods; this allows
reuse of ToolTipWindow by other controls
* SizeGrip.cs: Moved base.OnPaint() call to end of method
* XplatUIX11.cs: Now clipping drawing area (experimental)
* PictureBox.cs: Moved base.OnPaint() call to end of method
* Theme.cs: Fixed ToolTip abstracts to match new format
* ErrorProvider.cs: Implemented
2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
* Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
* LinkLabel.cs:
- Adds cursors
- Handles focus
- Implements LinkBehavior
- Fixes many issues
2005-05-03 Jackson Harper <jackson@ximian.com>
* ListView.cs: Calculate the scrollbar positioning on resize and
paint, so they get put in the correct place.
2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
* ColorDialogs.cs: The small color panels are now handled by
SmallColorControl. This fixes drawing of the focus rectangle
and adds a 3D border.
2005-05-03 Peter Bartok <pbartok@novell.com>
* Control.cs: Modified version of Jonathan Chamber's fix for
double-buffering
2005-05-03 Jackson Harper <jackson@ximian.com>
* ListView.cs: Remove redraw variable. Control now handles whether
or not a redraw needs to be done, and will only raise the paint
event if redrawing is needed.
2005-05-03 Jackson Harper <jackson@ximian.com>
* Splitter.cs: No decorations for the splitter form. Cache the
hatch brush.
2005-05-03 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Use dashed lines to connect nodes. Use the
ControlPaint method for drawing the focus rect instead of doing
that in treeview.
2005-05-02 Peter Bartok <pbartok@novell.com>
* LinkLabel.cs: Fixed the fixes from r43566 and 43521
2005-04-29 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Don't clear the GC that will clear the
entire image buffer. Just clear the clipping rectangle.
2005-04-29 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Don't draw list view items that are
outside the clipping rectangle.
2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs: added horizontal item scroll
2005-04-29 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Remove some old debug code that was
causing flicker with the new double buffering code.
2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
* MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
behave like combobox and comboboxlist (still not sure if this is
correct though).
2005-04-28 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Don't fill the middle of progress
bars. This fills areas outside of the clip bounds that don't need
to be filled.
2005-04-28 Jackson Harper <jackson@ximian.com>
* Control.cs: Don't expose functionality to touch the image buffers.
* ProgressBar.cs:
* ListView.cs: We do not need to (and no longer can) manipulate
the image buffers directly. All of this is handled by Control.
2005-04-28 Peter Bartok <pbartok@novell.com>
* RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
* Combobox:
- Adjust control's height for non-simple comboboxes (bug fix)
- Remove dead code
* MenuAPI.cs: remove unused var
* ScrollBar.cs: remove unsed var
* ListBox.cs: unselect items when clearing
2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
* ListControl.cs: honors OnPositionChanged and default Selected Item
* ListBox.cs: unselect items when clearing
2005-04-27 Jackson Harper <jackson@ximian.com>
* X11Keyboard.cs: Initialize a default keyboard and give a warning
if a "correct" keyboard is not found. This will make us not crash,
but might give some users bad keyboard layouts...seems to be the
same thing rewind does.
2005-04-27 Jackson Harper <jackson@ximian.com>
* BindingManagerBase.cs: Attach the current/position changed
handlers to their respective events.
2005-04-27 Jackson Harper <jackson@ximian.com>
* Control.cs: Make sure that the first WM_PAINT does a full draw,
not just a blit.
* ThemeWin32Classic.cs: Don't fill the background for picture
boxes. This could overright user drawing.
* ComboBox.cs: Just fill the clipping rect not the entire client
rect when drawing the background. This prevents pieces of the
image buffer from getting overwritten and is theoretically faster.
2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: Databinding support fixes, fire missing events
* ListControl.cs: implement missing methods and properties, fixes
* ThemeWin32Classic.cs: Databiding support on Drawing
* CheckedListBox.cs: Databinding support fixes, fire missing events
* ListBox.cs: Databinding support fixes, fire missing events
2005-04-25 Peter Bartok <pbartok@novell.com>
* LinkLabel.cs: Length of LinkArea is not allowed to be negative
2005-04-25 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Use the horizontal scrollbars height not width when
determining how much of the client area is available.
2005-04-25 Jackson Harper <jackson@ximian.com>
* Control.cs: Double buffering is handled differently now. As per
the spec, the extra buffer is created in the WM_PAINT message and
passed down to the control's drawing code.
* GroupBox.cs:
* Label.cs:
* CheckBox.cs:
* ProgressBar.cs:
* RadioButton.cs:
* ColorDialog.cs:
* ComboBox.cs:
* PropertyGridView.cs:
* UpDownBase.cs:
* MessageBox.cs:
* MenuAPI.cs:
* ListView.cs:
* ButtonBase.cs:
* SizeGrip.cs:
* ScrollBar.cs:
* ListBox.cs:
* TrackBar.cs:
* ToolBar.cs:
* PictureBox.cs:
* DateTimePicker.cs:
* StatusBar.cs:
* TreeView.cs: Update to new double buffering system.
* MonthCalendar.cs: Uncomment block, as Capture is now
working. Update to new double buffering
* LinkLabel.cs: Lazy init the link collection. Update to new double buffering
* PaintEventArgs.cs: New internal method allows us to set the
graphics object. This is used for double buffering.
* ThemeWin32Classic.cs: Give the picture box drawing code a clip
rectangle. The internal paint_area var has been removed from
StatusBar. The clipping rect should be used instead.
* Theme.cs: Give the PictureBox drawing method a clipping rect.
* TabPage.cs: The RefreshTabs method was removed, so just call the
tab controls Refresh method now.
* TabControl.cs: Update to new double buffering. Make sure the
handle is created before sizing the tab pages, otherwise we will
get stuck in a loop.
2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
* LinkLabel.cs: Fix typo, bug #74719; patch
from Borja Sanchez Zamorano
2005-04-22 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: Implement Handle stuff.
* TreeView.cs: Utility methods so nodes can get/lookup by handle.
2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: call base constructors, fixes
* GridColumnStylesCollection.cs: missing events, methods, and functionality
* GridTableStylesCollection.cs: fixes, check duplicate mapping names
* DataGridTableStyle.cs: implements create default column styles
* DataGridBoolColumn.cs: which types can handle
* DataGrid.cs: missing methods, fixes, new functionality
* DataGridColumnStyle.cs: fixes
2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
* FolderBrowserDialog.cs:
- Use a thread to fill the TreeView
- Adjusted some sizes
2005-04-19 Peter Bartok <pbartok@novell.com>
* LinkLabel.cs: (Re-)create the pieces when setting the Text
property. Fixes #74360.
2005-04-19 Jackson Harper <jackson@ximian.com>
* XEventQueue.cs: Lock when getting the lockqueue size.
* PictureBox.cs: Call base OnPaint
2005-04-19 Peter Bartok <pbartok@novell.com>
* XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
messages were no longer being processed (this broke BeginInvoke)
2005-04-18 Jackson Harper <jackson@ximian.com>
* TreeView.cs: buglet that caused node images to get drawn
regardless of whether or not they were in the clipping rectangle.
2005-04-18 Jackson Harper <jackson@ximian.com>
* CurrencyManager.cs: There are four rules for GetItemProperties:
- If the type is an array use the element type of the array
- If the type is a typed list, use the type
- If the list contains an Item property that is not an object, use
that property
- use the first element of the list if there are any elements in
the list.
2005-04-17 Jackson Harper <jackson@ximian.oom>
* TreeView.cs: Calculate plus minus and checkbox bounds when there is a
click. This handles offsets for scrolling properly and reduces
memory. Also fixed GetNode to not offset now that TopNode works
properly.
* TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
2005-04-17 Jackson Harper <jackson@ximian.com>
* CursorConverter.cs: Initial implementation.
2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
* ListControl.cs: work towards complex data binding support on ListControl
* CurrencyManager.cs: work towards complex data binding support on ListControl
* ListBox.cs: work towards complex data binding support on ListControl
2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
* GridTableStylesCollection.cs: fixes name and constructor
* DataGridTableStyle.cs: fixes
* DataGridBoolColumn.cs: fixes names and constructors
* DataGrid.cs: define methods and properties. Some init implementations
* DataGridCell.cs: define methods and properties. Some init implementations
* GridTablesFactory.cs: Define methods and properties
2005-04-15 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Handle proper mouse tracking even if the current
graphics port changes. We still want the coordinates in global screen
coordinates.
2005-04-14 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Handle clicks when plus minus is disabled. Don't
check plus minus or checkbox clicks unless those features are enabled.
2005-04-14 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Add methods for setting the top and bottom visible
nodes. TreeNode::EnsureVisible uses these methods.
* TreeNode.cs: Implement EnsureVisible
2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
* Form.cs: Pospone menu assignation if the window has not been created yet
* XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
size and position
2005-04-12 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Set the TopNode properly when scrolling
occurs. This has the added benifit of reducing the amount of
walking that needs to be done when drawing. Also removed an old
misleading TODO.
* OpenTreeNodeEnumerator.cs: Fix moving backwards.
2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
* Timer.cs: fixes interval setting when the timer is already enabled
2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
* FolderBrowserDialog.cs: First approach
2005-04-09 Peter Bartok <pbartok@novell.com>
* FolderBrowserDialog: Added
2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
* LinkLabel.cs: move drawing code into the theme
* ThemeWin32Classic.cs: drawing code and painting background bugfix
* Theme.cs: define DrawLinkLabel method
2005-04-05 Jackson Harper <jackson@ximian.com>
* BindingContext.cs: Use weak references so these bad actors don't
stay alive longer then they need to.
2005-04-05 Jackson Harper <jackson@ximian.com>
* ListControl.cs: Basic implementation of complex databinding.
* ComboBox.cs:
* ListBox.cs: Add calls to ListControl databinding methods.
2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
* FileDialog.cs:
- Don't change PopupButtonState to Normal when the
PopupButton gets pressed several times.
- Renamed ButtonPanel to PopupButtonPanel
2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
* ColorDialog.cs: Use cached objects instead of creating them
* LinkLabel.cs: Use cached objects instead of creating them
* Splitter.cs: Use cached objects instead of creating them
* FontDialog.cs: Use cached objects instead of creating them
* PropertyGridView.cs: Use cached objects instead of creating them
* MessageBox.cs: Use cached objects instead of creating them
* FileDialog.cs: Use cached objects instead of creating them
* ThemeWin32Classic.cs: Use cached objects instead of creating them
* TreeView.cs: Use cached objects instead of creating them
2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
* Control.cs: use Equals to compare the font since no == op
* ScrollBar.cs: use Equals to compare the font since no == op
2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
* SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
2005-04-01 Jackson Harper <jackson@ximian.com>
* Binding.cs: Implement IsBinding.
* BindingManagerBase.cs:
* PropertyManager.cs:
* CurrencyManager.cs: Add IsSuspended property.
2005-04-01 Jackson Harper <jackson@ximian.com>
* Binding.cs: Had some IsAssignableFrom calls backwards.
2005-04-01 Jackson Harper <jackson@ximian.com>
* Binding.cs: Handle null data members when pulling data.
* PropertyManager.cs: Handle the data member being a property that
does not exist.
2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: fixes signature
* DataGrid.cs: calls right constructor
2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
* DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
* GridColumnStylesCollection.cs: implements GridColumnStylesCollection
* GridTableStylesCollection.cs: implements GridTableStylesCollection
* DataGridTableStyle.cs: implements DataGridTableStyle
* DataGridBoolColumn.cs: implements DataGridBoolColumn
* DataGridTextBox.cs: implements DataGridTextBox
* DataGridColumnStyle.cs: implements DataGridColumnStyle
2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
* FileDialog.cs: Added simple PopupButton class for ButtonPanel
2005-03-29 Peter Bartok <pbartok@novell.com>
* Application.cs:
- Properly implemented CompanyName property
- Fixed LocalUserAppDataPath and UserAppDataPath, now properly
returns a path that includes CompanyName, ProductName and
Version (fixes bug #70330)
2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
* TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
fixes bug #72588.
2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
* FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
- Added ReadOnly CheckBox
- Further refactoring: moved some code from Open-/SaveFileDialog
to FileDialog
2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
* OpenFileDialog.cs: Fixed CheckFileExists
* FileDialog.cs:
Moved FileView and DirComboBox outside FileDialog class.
They can now be used outside FileDialog
2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
* FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
* SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
* FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
- Added missing CreatePrompt property in SaveDialog
- Overall SaveDialog handling should be better now
- Added non standard ShowHiddenFiles property
- Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
- Added InitialDirectory and RestoreDirectory support
2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
* FileDialog.cs: Made dirComboBox usable
2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
* FileDialog.cs: Added Filter support (case sensitiv)
2005-03-24 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Need a couple more pixels for the lines.
2005-03-23 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Give the tab page focus when it is selected.
2005-03-23 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Account for the drawing of tabs borders when
invalidating. If the slider was clicked dont do click detection on
the tabs.
2005-03-23 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Fix typo, emilinates an unneeded expose event.
2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
* CategoryGridEntry.cs: Added
* GridItem.cs: Added helper properties
* PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
* GridEntry.cs: Updated code for collection
* PropertyGrid.cs: Cleaned up some formatting
* PropertyGridView.cs: Added drop down functionality for enums.
* GridItemCollection.cs: Added enumerator logic
* PropertyGridEntry.cs: Added
2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
* FileDialog.cs:
- Removed unnecessary commented code
- Fixed handling for entering the filename manually in the combobox
2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
* FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
2005-03-18 Peter Bartok <pbartok@novell.com>
* ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
them being touching the border
2005-03-18 Peter Bartok <pbartok@novell.com>
* TextControl.cs: Quick hack to center text better
2005-03-18 Peter Bartok <pbartok@novell.com>
* ControlPaint.cs:
- Don't throw NotImplemented exceptions, just print a notice once
instead (requested by Miguel). This makes running existing SWF
apps a bit easier
* Control.cs:
- Commented out Drag'N'Drop XplatUI call (no driver support yet)
- Added context menu trigger on right click
* Panel.cs: Trigger invalidate on resize
* StatusBar.cs:
- Removed old double-buffer drawing
- Added ResizeRedraw style to force proper update of statusbar
* ListView.cs:
- Removed debug output
* ThemeWin32Classic.cs:
- Fixed drawing of status bar, now draws Text property if there
are no defined panels
2005-03-18 Jackson Harper <jackson@ximian.com>
* ImageList.cs: When the image stream is set pull all the images
from it.
* ImageListStreamer.cs: Implement reading image list streams.
2005-03-18 Peter Bartok <pbartok@novell.com>
* ThemeWin32Classic.cs (DrawPictureBox):
- Fixed calculations for centered drawing
- Fixed drawing for normal mode, not scaling the image on normal
2005-03-18 Peter Bartok <pbartok@novell.com>
* ComboBox.cs: Now also firing the OnKeyPress events for the embedded
textbox
* FileDialog.cs:
- Made Open/Save button the accept button for FileDialog
- Tied the cancel button to the IButtonControl cancel button
- Save/Open now properly builds the pathname
- Now handles user-entered text
- Preventing crash on right-click if no item is selected
- Fixed Text property, now uses contents of textbox
- Fixed SelectedText property, now just returns the text part that
is selected in the text box
2005-03-18 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Use the proper func for drawing the focus
rect, make sure to de-adjust the interior rect after drawing the
tab text.
2005-03-18 Peter Bartok <pbartok@novell.com>
* MenuAPI.cs: Remove menu *before* executing selected action to
prevent the menu from 'hanging around'
2005-03-17 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Implemented WorkingArea property
2005-03-17 Peter Bartok <pbartok@novell.com>
* XplatUIX11.cs: Fixed menu coord calculations
* MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
for calculating offsets
2005-03-17 Peter Bartok <pbartok@novell.com>
* Hwnd.cs: Do not consider menu presence for default client
rectangle location/size
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
translation functions
* FileDialog.cs: Fixed (what I presume is a) typo
2005-03-17 Jonathan Gilbert <logic@deltaq.org>
* XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
X access (avoids X-Async errors)
2005-03-16 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Raise the SelectedIndexChanged event.
2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
* FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
- Removed vertical ToolBar and replaced it with a custom panel
(desktop and home button already work)
- Added Help button (some controls get resized or relocated then)
- Draw correct text depending on Open or Save.
- Fixed some typos...
2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
* ScrollBar.cs:
- Only change Maximum and Minimum when need it (bug fix)
2005-03-15 Peter Bartok <pbartok@novell.com>
* Form.cs: Use Handle for icon, to trigger creation if
the window does not yet exist
* Control.cs:
- CanSelect: Slight performance improvement
- Focus(): Preventing possible recursion
- Invalidate(): Removed ControlStyle based clear flag setting
- WM_PAINT: fixed logic for calling OnPaintBackground
- WM_ERASEBKGND: Fixed logic, added call to new driver method
EraseWindowBackground if the control doesn't paint background
* XplatUIWin32.cs:
- Moved EraseWindowBackground() method to internal methods
- Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
is sent via SendMessage on BeginPaint call on Win32
* XplatUIX11.cs:
- Added EraseWindowBackground() method
- No longer sends WM_ERASEBKGND on .Expose, but on call to
PaintEventStart, which more closely matches Win32 behaviour
- Fixed Invalidate() call, now updates new ErasePending Hwnd property
- Fixed SetFocus() to properly deal with client and whole windows
* Hwnd.cs: Added ErasePending property
* XplatUIOSX.cs: Stubbed EraseWindowBackground() method
* XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
2005-03-12 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs:
- Fix hard loop when timers exist.
- Fix bugs with middle and right click for 3 button mice.
2005-03-11 Peter Bartok <pbartok@novell.com>
* XplatUIX11.cs:
- get_WorkingArea: Need to call X directly, GetWindowPos only
returns cached data now
- Added sanity check to GetWindowPos hwnd usage
2005-03-11 Jackson Harper <jackson@ximian.com>
* BindingManagerBase.cs: This method isn't used anymore as
PullData now updates the data in the control.
2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
* Form.cs: fixes menu drawing on X11
* MenuAPI.cs: fixes menu drawing on X11
2005-03-11 Peter Bartok <pbartok@novell.com>
* Control.cs: Changed OnCreateControl behaviour based on a suggestion
from Jonathan Gilbert; should fix bug #73606
* XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
in Screen coordinates. Thanks, Jordi.
* Form.cs: Added missing attribute
2005-03-11 Peter Bartok <pbartok@novell.com>
* Form.cs:
- Rudimentary Mdi support
- Removed outdated FormParent code
- Implemented lots of missing properties and methods, still missing
transparency support
- Added missing attributes
- Implemented support for MaximumBounds
- Added firing of various events
* XplatUI.cs: Added SetIcon() method
* XplatUIDriver.cs: Added SetIcon() abstract
* XplatUIOSX.cs: Stubbed out SetIcon() method
* XplatUIX11.cs:
- Implemented SetIcon() support
- Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
- Switched to unix line endings
* XplatUIWin32.cs:
- Made POINT internal so for can access it as part of MINMAX
- Implemented SetIcon() support
- Implemented support for CLIENTCREATESTRUCT (but might have to drop
native Mdi support again, might have to go managed)
* Control.cs: Now fires the StyleChanged event
* MdiClient.cs: Added; still mostly empty
2005-03-10 Peter Bartok <pbartok@novell.com>
* SaveFileDialog.cs: Added emtpy file
2005-03-08 Peter Bartok <pbartok@novell.com>
* Control.cs: Fixed bug #73190; now invokes CreateControl (which
in turn triggers OnCreateContro) when creating a handle for the
first time.
* TextControl.cs: Fixed endless loop in certain cases when
replacing the current selection
2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
* ScrollBar.cs:
- Honors NewValue changes in Scroll events allowing apps to change it
- Adds First and Last Scroll events
- Fixes Thumb events
2005-03-07 Peter Bartok <pbartok@novell.com>
* Hwnd.cs: Added DefaultClientRectangle property
* XplatUI.cs: Now using the X11 driver Where() method, which provides
more detailed debug information
* XplatUIX11.cs:
- Fixed size-change feedback loop, where we would pull an old size
off the queue and mistakenly change our window's size to an
earlier value
- Now compressing ConfigureNotify events, to reduce looping and
redraw issues
* TextBoxBase.cs: Preventing crash when no text is set and ToString()
is called
2005-03-07 Jackson Harper <jackson@ximian.com>
* Binding.cs: Push data pushes from data -> property. Check if the
property is readonly when attempting to set it.
2005-03-07 Jackson Harper <jackson@ximian.com>
* Binding.cs: Format and parse data correctly. Use ASsignableFrom
instead of IsSubclassOf. Pulling data now sets the value on the
control.
* PropertyManager.cs:
* CurrencyManager.cs: Just need to pull data when updating now,
because PullData will set the value on the control.
2005-03-04 Jackson Harper <jackson@ximian.com>
* Binding.cs: Implement data type parsing and converting on pulled
data. TODO: Are there more ways the data can be converted?
2005-03-04 Jackson Harper <jackson@ximian.com>
* Binding.cs: Support <Property>IsNull checks. Also bind to the
controls Validating method so we can repull the data when the
control loses focus.
2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
* ColumnHeader.cs:
- Fixes null string format
* ListView.cs:
- Adds enum type checks
- Fixes redrawing and recalc need after changing some properties
- Fixes on focus_item set after the event
- Fixes adding columns after the control has been created
* ThemeWin32Classic.cs:
- Fixes CheckBox focus rectangle
- Fixes ColumnHeader drawing
2005-03-03 Jackson Harper <jackson@ximian.com>
* Binding.cs: Bind to <Property>Changed events so we can detect
when properties are changed and update the data.
2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
* ImageList.cs:
- Changes 32-bit pixel format to Format32bppArgb to allow transparency
- Fixes ImageList constructor with ImageList container
- Fixes image scaling (wrong parameters at DrawImage)
2005-02-02 Jackson Harper <jackson@ximian.com>
* Binding.cs: Make property searches case-insensitive. Eliminate
some duplicated code.
2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs:
- Handle focus event
- Fix scrollbar events
- Discard highlighted item if remove it
- Fixes SelectedItem with strings
2005-03-01 Peter Bartok <pbartok@novell.com>
* Control.cs:
- Fixed Visible property, now follows (once again) parent chain
to return false if any control in the chain is visible=false
- Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
- Fixed several places where is_visible instead of Visible was used
- Implemented FIXME related to focus selection when setting focused
control to be invisible
* XplatUIWin32.cs: Now using proper method to find out if window is
visible. Thanks to Jordi for pointing it out
2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: show/hide scrollbar instead of creating it
2005-02-27 Jackson Harper <jackson@ximian.com>
* CurrencyManager.cs: Add PositionChanged stuff.
2005-02-27 Peter Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
* XplatUIOSX.cs: Added GetMenuOrigin() stub
* XplatUIWin32.cs: Implemented GetMenuOrigin()
* XplatUIX11.cs:
- Implemented GetMenuDC()
- Implemented GetMenuOrigin()
- Implemented ReleaseMenuDC()
- Implemented generation of WM_NCPAINT message
- Implemented generation and handling of WM_NCCALCSIZE message
* Form.cs: Added debug helper message for Jordi's menu work
* Hwnd.cs:
- Modified ClientRect property; added setter, fixed getter to handle
setting of ClientRect
- Added MenuOrigin property
2005-02-26 Peter Bartok <pbartok@novell.com>
* XplatUIX11.cs:
- Destroys the caret if a window that's being destroyed contains it
- Ignores expose events coming from the X11 queue for windows that
already are destroyed
- Now uses the proper variable for handling DestroyNotify, before we
marked the wrong window as destroyed
- Improved/added some debug output
2005-02-26 Peter Bartok <pbartok@novell.com>
* X11Keyboard.cs: Fixes to work on 64bit systems
2005-02-26 Peter Bartok <pbartok@novell.com>
* Control.cs:
- Now calling OnHandleDestroyed from DestroyHandle()
instead of Dispose()
- Removed bogus call to controls.Remove() from DestroyHandle()
2005-02-26 Peter Bartok <pbartok@novell.com>
* Control.cs: Properly destroy child windows when our handle is
destroyed
2005-02-25 Peter Bartok <pbartok@novell.com>
* XplatUI.cs:
- Added 'DriverDebug' define to allow tracing XplatUI API calls
- Alphabetized Static Methods and Subclasses
* XplatUIX11.cs:
- Added XException class to allow custom handling of X11 exceptions
- Created custom X11 error handler, tied into XException class
- Added support for MONO_XEXCEPTIONS env var to allow the user
to either throw an exception on X errors or continue running
after displaying the error
- Added handling of DestroyNotify message
- Added handler for CreateNotify message (still disabled)
- Improved (tried to at least) Where method to provide file and lineno
* X11Structs.cs:
- Added XErrorHandler delegate
- Added XRequest enumeration (to suppor translation of errors)
2005-02-25 Jackson Harper <jackson@ximian.com>
* PropertyManager.cs: Implement editing features
* CurrencyManager.cs:
* Binding.cs: First attempt at UpdateIsBinding
* BindingManagerBase.cs: Call UpdateIsBinding before
pushing/pulling data.
2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
* MenuAPI.cs: Respect disabled items
* ThemeWin32Classic.cs
- Caches ImageAttributes creation for DrawImageDisabled
- Fixes vertical menu line drawing
- Draws disabled arrows in disable menu items
2005-02-24 Peter Bartok <pbartok@novell.com>
* Hwnd.cs:
- Added UserData property to allow associating arbitrary objects
with the handle
- Fixed leak; now removing Hwnd references from static windows array
* XplatUIWin32.cs:
- Fixed Graphics leak in PaintEventEnd
- Removed usage of HandleData, switched over to Hwnd class
* HandleData.cs: Removed, obsoleted by Hwnd.cs
2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
* ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
* ScrollBar.cs: Fixes bug
* TrackBar.cs: removes death code, clipping, mimize refreshes,
keyboard navigation enhancements
2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
* Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
* GroupBox.cs: Add control styles
* Label.cs: Add control styles
* UpDownBase.cs: Add control styles
* ListBox.cs: Add control styles
* XplatUIWin32.cs: Fixes wrong parameter order
2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
* ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
2005-02-23 Jackson Harper <jackson@ximian.com>
* PropertyManager.cs: Implement property binding. This doesn't
seem to work yet though as (I think) there are some bugs in
System.ComponentModel.PropertyDescriptor.
* BindingContext.cs: Use new PropertyManager constructor.
2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
* ProgressBar.cs: use clip region in ProgressBar
* ThemeWin32Classic.cs: use clip region in ProgressBar
2004-02-22 Jackson Harper <jackson@ximian.com>
* BindingsCollection.cs: Remove some debug code.
2005-02-22 Jackson Harper <jackson@ximian.com>
* BindingContext.cs:
* ControlBindingsCollection.cs:
* CurrencyManager.cs:
* Binding.cs:
* BindingManagerBase.cs: Initial implementation
* BindingsCollection.cs: Add an internal contains method that the
BindingManagerBase uses to ensure bindings aren't added twice to
the collection.
* PropertyManager.cs: Stubbed out.
* Control.cs:
* ContainerControl.cs: Hook up databinding
2005-02-22 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs:
OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
Fixed Invalidate/Update chain.
Fixed tons of other minor bugs (this is almost a complete rewrite).
2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: do subcontrol creation when the control is created
2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
* Label.cs: fixes image drawing (image and imagelist)
* ThemeWin32Classic.cs: cache brushes
2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
* Form.cs: Move menu drawing code to Theme class
* ComboBox.cs: Move ComboBox drawing code to Theme class
* MenuItem.cs: Move menu drawing code to Theme class
* MenuAPI.cs: Move menu drawing code to Theme class
* ThemeWin32Classic.cs: New methods
* CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
* ListBox.cs: Move Listbox drawing code to Theme class
* Theme.cs: New methods
2005-02-20 Peter Bartok <pbartok@novell.com>
* Control.cs:
- Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
only process mnemonics on those)
- Fixed event sequence for key handling; first calling
ProcessKeyEventArgs now
* TextBoxBase.cs:
- Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
for processing non-character keys
- Fixed WM_CHAR to generate proper event sequence before processing
* XplatUIWin32.cs: Added ALT key state to ModifierKeys property
generation
2005-02-19 Peter Bartok <pbartok@novell.com>
* UserControl.cs: Added TextChanged event; added attributes
* SizeGrip.cs: Implemented resizing and optional display of grip
* Form.cs: Fixed attribute
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
Changed meaning of ScrollWindow bool argument; instead of the
clear attribute (which will be true usually anyway), it gives the
option of moving child controls as well.
* XplatUIX11.cs:
- Changed to match new ScrollWindow argument
- Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
now handles the implicit parent window a WM puts around us
* ScrollableControl.cs: Implemented (not the prettiest, but it seems
to work)
* TextBoxBase.cs: Adjusted to new ScrollWindow arguments
* TreeView.cs: Adjusted to new ScrollWindow arguments
2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
* Form.cs: Menu integration with non-client area
* MenuItem.cs: Menu integration with non-client area
* MenuAPI.cs: Menu integration with non-client area
2005-02-18 Peter Bartok <pbartok@novell.com>
* MethodInvoker.cs: Added
* MdiLayout.cs: Added
* SendKeys.cs: Started implementation
* ErrorIconAlignment.cs: Added
2005-02-18 Peter Bartok <pbartok@novell.com>
* XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
* Form.cs: Added handling for Menu-related Non-client messages
2005-02-17 Peter Bartok <pbartok@novell.com>
* UpDownBase.cs: Fixed typo, compilation errors
* DomainUpDown.cs: Fixed attribute value
2005-02-16 Miguel de Icaza <miguel@novell.com>
* UpDownBase.cs: Attach entry events.
Propagate events.
Add ForeColor property, Focused, InterceptArrowKeys (interception
does not work yet).
2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
* Form.cs:
- Redraw non client are on Setmenu
- Calc proper menu starting point
2005-02-17 Peter Bartok <pbartok@novell.com>
* Application.cs: Fixed message_filter check
2005-02-17 Peter Bartok <pbartok@novell.com>
* Application.cs: Now calls registered message filters
* DockStyle.cs: Fixed attribute
* Form.cs: Fixed attribute
* Menu.cs: Fixed attribute
* ToolTip.cs: Fixed attribute
* TreeNode.cs: Added missing attributes and arranged in regions
* PropertyGrid.cs: Fixed signatures
* TreeNodeCollection.cs: Added attributes
* Splitter.cs: Added missing attributes; arranged into regions
* TabPage.cs: Added missing attributes; arranged into regions
* TextBoxBase.cs: Added missing attributes
* TextBox.cs: Added missing attributes
* ArrangeDirection.cs: Added missing attributes
* TreeNodeConverter.cs: Added stub (needed for TreeNode)
* ToolBarButton.cs: Fixed attributes
* AnchorStyles.cs: Fixed attribute
* TrackBar.cs: Fixed attributes
* TabControl.cs: Added missing attributes and arranged into regions
* ToolBar.cs: Fixed attribute
* StatusBar.cs: Fixed signature, organized into regions and added
attributes
* StatusBarPanel.cs: Fixed attributes
* ContentsResizedEventArgs.cs: Implemented
* ContentsResizedEventHandler.cs: Implemented
* DateBoldEventArgs.cs: Implemented
* DateBoldEventHandler.cs: Implemented
* UpDownEventArgs.cs: Implemented
* UpDownEventHandler.cs: Implemented
2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
* Form.cs: first Menu NC refactoring
* MenuAPI.cs: first Menu NC refactoring
2005-02-16 Peter Bartok <pbartok@novell.com>
* ImeMode.cs: Added missing attributes
* Menu.cs: Fixed attribute
* GroupBox.cs: Fixed attribute
* Label.cs: Fixed attribute
* ColorDialog.cs (RunDialog): Removed TODO attribute
* ComboBox.cs: Fixed attributes
* ListControl.cs: Added missing attributes
* PropertyGrid.cs: Fixed attributes
* Control.cs: Fixed attributes
* ListViewItem.cs: Added TypeConverter attribute
* NotifyIcon.cs: Fixed attributes
* ListView.cs: Fixed attributes
* ButtonBase.cs: Fixed attribute
* ImageList.cs: Added missing attributes
* ContainerControl.cs: Fixed signature
* CheckedListBox.cs: Fixed attribute; added missing attributes
* Panel.cs: Fixed attributes
* PropertyTabChangedEventArgs.cs: Added missing attribute
* PropertyValueChangedEventArgs.cs: Added missing attribute
* Binding.cs: Fixed attribute
* ListViewItemConverter: Implemented ListViewSubItemConverter class
* ListBox.cs: Fixed attribute; added missing attributes;
* ScrollableControl.cs: Added missing attributes
* PictureBox.cs: Added missing attributes; implemented missing property
* DateTimePicker.cs: Added missing attributes
* Theme.cs (ToolWindowCaptionHeight): Fixed type
* MonthCalendar.cs: Fixed attributes
* StatusBarPanel.cs: Added missing attributes
* SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
2005-02-16 Peter Bartok <pbartok@novell.com>
* TextBoxBase.cs: The previous method to enforce height yet remember
the requested high was less than ideal, this is an attempt to do
it better.
* Control.cs: Added comment about possible problem
* Copyright: Updated format
* GridItemType.cs: Fixed swapped values
2005-02-15 Jackson Harper <jackson@ximian.com>
* BaseCollection.cs: Use property so we never access an
uninitialized list. Also initialize the list in the property.
2005-02-15 Peter Bartok <pbartok@novell.com>
* GroupBox.cs (ProcessMnemonic): Implemented
* Label.cs (ProcessMnemonic): Implemented
* ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
hotkeys
2005-02-15 Peter Bartok <pbartok@novell.com>
* RadioButton.cs (ProcessMnemonic): Implemented
* CheckBox.cs (ProcessMnemonic): Implemented
* Control.cs:
- Added handling of WM_SYSxxx keyboard messages to support mnemonic
handling
- Added internal method to allow calling ProcessMnemonic from other
controls
* ContainerControl.cs:
- Started support for handling validation chain handling
- Implemented ProcessMnemonic support
- Added Select() call to Active, to make sure the active control
receives focus
* Form.cs: Setting toplevel flag for Forms (this was lost in the
FormParent rewrite)
* ThemeWin32Classic.cs:
- DrawCheckBox(): Fixed stringformat to show hotkeys
- DrawRadioButton(): Fixed stringformat to show hotkeys
* CommonDialog.cs: Removed WndProc override, not needed
2005-02-14 Peter Bartok <pbartok@novell.com>
* XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
missed those in the rewrite
2005-02-14 Miguel de Icaza <miguel@novell.com>
* NumericUpDown.cs (Increment, ToString): Add.
(DecimalPlaces): implement.
Add attributes.
* UpDownBase.cs: Add the designer attributes.
2005-02-13 Peter Bartok <pbartok@novell.com>
* Panel.cs: Removed border_style, now in Control
* XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
2005-02-13 Peter Bartok <pbartok@novell.com>
* MouseButtons.cs: Added missing attributes
* XplatUIStructs.cs: Added enumeration for title styles
* LeftRightAlignment.cs: Added missing attributes
* Hwnd.cs: Switched to use client_window as handle (slower, but makes
it compatible with Graphics.FromHwnd()
* SelectedGridItemChangedEventArgs.cs: Fixed property type
* Keys.cs: Added missing attributes
* SelectionRange.cs: Added missing attributes
* SelectionRangeConverter.cs: Added
* XplatUI.cs:
- Introduced SetBorderStyle, SetMenu, GetMenuDC and
ReleaseMenuDC methods
- Renamed ReleaseWindow to UngrabWindow
- Added proper startup notice to allow version identification
* Form.cs:
- Added missing attributes
- Removed FormParent concept
* Label.cs: Removed border_style field, now in Control
* RadioButton.cs: Now properly selects RadioButton when focus is
received
* ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
* Control.cs:
- Added missing attributes
- Added borderstyle handling
- Removed FormParent concept support
- Fixed calls to XplatUI to match changed APIs
- Fixed bug that would case us to use disposed Graphics objects
- Removed unneeded internal methods
- PerformLayout(): Fixed to handle DockStyle.Fill properly
- SelectNextControl(): Fixed to properly check common parents
* TextBoxBase.cs: Removed border_style field (now in Control)
* MessageBox.cs:
- Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
fixed calculations for form size
- Added support for localized strings and icons
- Improved form size calculations, added border
* ListView.cs: Removed border_style field (now in Control)
* X11Structs.cs: Moved several structs from X11 driver here
* X11Keyboard.cs: Changed debug message
* Application.cs: Removed FormParent concept support
* CommonDialog.cs:
- Resetting end_modal flag
- Removed FormParent concept support
* NativeWindow.cs: Removed FormParent concept support
* XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
Client area and Non-Client whole window to allow support for WM_NC
messages
* XplatUIOSX.cs: Updated to match latest driver spec; added exception
prevent using it until it supports Hwnd as per Geoff Norton's request
* ToolBar.cs: Fixed drawing, was not doing proper drawing
* PictureBox.cs: Removed border_style field, now in Control
* XplatUIWin32.cs: Added new driver methods
2005-02-12 Peter Bartok <pbartok@novell.com>
* OpacityConverter.cs: Implemented
* Hwnd.cs: Internal class to support drivers that need to emulate
client area/non-client area window behaviour
2005-02-11 Peter Bartok <pbartok@novell.com>
* KeysConverter.cs: Implemented
2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
* Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
* LinkLabel: Added missing attributes
* MainMenu.cs: fixes ToString
* MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
* ListBox.cs: fixes event position
* TrackBar.cs: adds missing attributes and events
2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
* MenuItem.cs: Use SystemInformation and bug fixes
* MenuAPI.cs: Use SystemInformation and bug fixes
2005-02-09 Jackson Harper <jackson@ximian.com>
* X11Keyboard.cs: We ignore some keys, but still need to set/reset
their keystate otherwise things like VK_MENU get stuck "on".
2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
* ListBox.cs: Fixes AddRange bug
2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
* ProgressBar.cs
- Add missing attributes
- Add missing method
* CheckedListBox.cs: Added missing attributes
- Add missing attributes
- Remove extra method
* ComboBox.cs: Added missing attributes
* VScrollBar.cs: Added missing attributes
* ScrollBar.cs: Added missing attributes
* ListBox.cs: Fixes signature, add missing consts
* LinkArea.cs: Added missing attributes
2005-02-08 Peter Bartok <pbartok@novell.com>
* Menu.cs: Added missing attributes
* MainMenu.cs: Added missing attributes
* GroupBox.cs: Added missing attributes
* Label.cs: Added missing attributes
* CheckBox.cs: Implemented CheckBoxAccessibleObject class
* ColorDialog.cs:
- Added Instance and Options properties
- Added missing attributes
* Cursor.cs: Made Serializable
* NotifyIcon: Added missing attributes
* MenuItem.cs: Added missing attributes
* TextBoxBase.cs: Implemented AppendText() and Select() methods
* Panel.cs: Added Missing attributes
* MonthCalendar.cs: Fixed CreateParams
2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
* LinkLabel.cs:
- Fixes signature
- Fixes issues with links
- Adds the class attributes
2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs:
- Fixes button when no items available in dropdown
- Fixes repainting problems
- Adds the class attributes
2005-02-07 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Detect the menu bar and title bar height from
the current theme. Cache these on startup.
2005-02-07 Jackson Harper <jackson@ximian.com>
* ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
the scrollbar buttons when they are depressed.
2005-02-07 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
Get the display size from the main displayid. We currently dont
support multiple display configurations.
2005-02-07 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
2005-02-07 Miguel de Icaza <miguel@novell.com>
* UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertyGrid.cs: Updated. Patch by Jonathan Chambers
2005-02-04 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Respect the clipping rect when
drawing. Only fill the intersection of clips and rects so there
isn't a lot of large fills.
* ScrollBar.cs: Pass the correct clipping rect to the theme
engine. Remove some debug code.
2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
* DateTimePicker.cs:
- Fixed crash on DateTime.Parse, use Constructor instead
2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
* MenuItem.cs:
* MenuAPI.cs:
- Owner draw support (MeasureItem and DrawItem)
2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
* Menu.cs:
- Implements FindMergePosition and MergeMenu functions (very poor documented)
- Fixes MenuItems.Add range
* MenuItem.cs:
- MergeMenu and Clone and CloneMenu functions
2005-02-03 Jackson Harper <jackson@ximian.com>
* ScrollBar.cs: Make abstract
* ScrollableControl.cs: Create H/V scrollbars now that scrollbar
is abstract.
2005-02-03 Jackson Harper <jackson@ximian.com>
* ScrollBar.cs: First part of my scrollbar fixups. This removes
all the unneeded refreshes and uses invalidates with properly
computed rects.
2005-02-03 Peter Bartok <pbartok@novell.com>
* ComponentModel.cs: Added
* IDataGridEditingService.cs: Added
* Timer.cs: Added missing attributes
* ToolTip.cs: Added missing attributes
2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
* PropertyGridView.cs: Added. Patch by Jonathan Chambers
2005-02-03 Peter Bartok <pbartok@novell.com>
* ListBox.cs: Added missing attributes
2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs:
- Fixes font height after font change
- Avoid generating unnecesary OnSelectedIndexChanged on clearing
2005-02-02 Peter Bartok <pbartok@novell.com>
* HandleData.cs: Introduced static methods to allow class
to be more self-contained and track it's own HandleData objects
* XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
HandleData to use new static methods
2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
* Combobox.cs:
- Fixes default size and PreferredHeight
- Missing events
- ObjectCollection.Insert implementation
* ListControl.cs
- Fixes signature
* ListBox.cs:
- Several fixes
- ObjectCollection.Insert implementation
- No selection after clean
- Small fixes
2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
* ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
* Combobox.cs:
- Caches ItemHeight calculation for OwnerDrawVariable
- Handles dropdown properly
- Fixes several minor bugs
2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs:
- Fixes 71946 and 71950
- Fixes changing Multicolumn on the fly
- Fixes keyboard navigation on Multicolumn listboxes
2005-01-31 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
crash reporter log.
2005-01-31 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Allow applications to actually exit.
2005-01-31 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
their parent at creation time rather than lazily later. Fixes a major
regression we were experiencing.
2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
* ThemeWin32Classic.cs: more date time picker painting fixes
* DateTimePicker.cs: more monthcalendar drop down fixes
* MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
* ScrollBar.cs:
- When moving the thumb going outside the control should stop the moving
- Adds the firing of missing events
- Fixes no button show if Size is not specified
- End / Home keys for keyboard navigation
2005-01-30 Peter Bartok <pbartok@novell.com>
* NotifyIcon.cs (CalculateIconRect): Removed debug output and added
sanity check to prevent theoretical loop
* XplatUIWin32.cs (SetVisible): Removed debug output
* XplatUIX11.cs (SystrayChange): Added sanity check
* ScrollableControl.cs (OnVisibleChanged): Now calls base method
* Control.cs (OnVisibleChanged): Added workaround for ParentForm
behaviour, valid until the X11 client window rewrite is done
* TextBox.cs (ctor): Setting proper default foreground and background
colors
2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
* Theme: Added DrawDateTimePicker to interface
* ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
* DateTimePicker.cs: Created (still needs keys and painting code)
* DateTimePickerFormat.cs: added
* MonthCalendar.cs: fixed CreateParams for popup window mode
2005-01-29 Peter Bartok <pbartok@novell.com>
* ControlPaint.cs: Fixed luminace value returned on achromatic colors,
this should also the calculations for ligher/darker
* Theme.cs: Fixed defaults for ScrollBar widths/heights
2005-01-29 Peter Bartok <pbartok@novell.com>
* ArrangeDirection.cs: Added
* ArrangeStartingPositon.cs: Added
* SystemInformation.cs: Implemented
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
XplatUIX11.cs, Theme.cs: Added/implemented new static properties
used by SystemInformation class
* X11Strucs.cs: Added XSizeHints structure
* MenuAPI.cs:
- Fixed CreateParams to make sure the menu window is always visible
- TrackPopupMenu: Added check to make sure we don't draw the
menu offscreen
2005-01-29 Peter Bartok <pbartok@novell.com>
* HandleData.cs: Added method for altering invalid area
* TextBoxBase.cs: Implemented TextLength
2005-01-28 Peter Bartok <pbartok@novell.com>
* XplatUIX11.cs: Improvement over last patch, not sending
the WM_PAINT directly anymore, instead we scroll any pending
exposed areas and let the system pick out the WM_PAINT later
2005-01-28 Peter Bartok <pbartok@novell.com>
* SWF.csproj: Deleted, no longer used. Instead,
Managed.Windows.Forms/SWF.csproj should be used
* XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
directly, to avoid a potential race condition with the next
scroll
2005-01-28 Peter Bartok <pbartok@novell.com>
* XplatUI.cs: Made class internal
2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
* CheckedListBox.cs:
- Draw focus
- Fixed Drawing
- Missing methods and events
2005-01-27 Peter Bartok <pbartok@novell.com>
* Application.cs (Run): Don't use form if we don't have one
2005-01-27 Peter Bartok <pbartok@novell.com>
* TextBoxBase.cs (get_Lines): Fixed index off by one error
2005-01-27 Peter Bartok <pbartok@novell.com>
* GridEntry.cs: Added; Patch by Jonathan S. Chambers
* GridItem.cs: Added; Patch by Jonathan S. Chambers
* GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
* GridItemType.cs: Added; Patch by Jonathan S. Chambers
* PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
* PropertySort.cs: Added; Patch by Jonathan S. Chambers
* PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
* PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
* PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
* PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
* SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
* SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
* Combobox.cs:
- Draw focus on Simple Combobox
- Fixes drawing issues
- fixes 71834
2005-01-27 Peter Bartok <pbartok@novell.com>
* Form.cs:
- Place window in default location, instead of hardcoded 0/0
- Send initial LocationChanged event
* Control.cs:
- UpdateBounds after creation to find out where the WM placed us
- Make sure that if the ParentForm changes location the Form
is notified
* XplatUIX11.cs: XGetGeometry will not return the coords relative
to the root, but to whatever the WM placed around us.
Translate to root coordinates before returning toplevel
coordinates
* XplatUIWin32.cs: Removed debug output
* XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
flag to GetWindowPos, to allow translation of coordinates on X11
2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs: connect LostFocus Event
2005-01-27 Peter Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
XplatUIX11.cs: Extended the Systray API
* Form.cs: Removed debug output
* Application.cs: Fixed focus assignment, always need to call
XplatUI.Activate() since Form.Activate() has rules that may
prevent activation
* NotifyIcon.cs: Should be complete now
* ToolTip.cs: Worked around possible timer bug
2005-01-27 Jackson Harper <jackson@ximian.com>
* TabControl.cs:
- Only invalidate the effected tabs when the
selected index changes. This reduces drawing and gets rid of some
flicker.
- Only refresh if the tabs need to be shifted, otherwise only
invalidate the slider button.
- On windows the tabs are not filled to right if the slider is
visible.
2005-01-27 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Only refresh on mouseup if we are showing the
slider. Also only invalidate the button whose state has changed.
2005-01-26 Peter Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs: Added Systray methods
* XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
and SystrayRemove() methods
* XplatUIOSX.cs: Stubbed Systray methods
* XplatUIX11.cs:
- Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
methods
- Fixed broken XChangeProperty calls (marshalling messed up things)
* X11Structs.cs: Added enums and structs required for Size hinting
* NotifyIcon.cs: Added & implemented
2005-01-26 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Space vertically layed out tabs properly.
2005-01-26 Peter Bartok <pbartok@novell.com>
* Form.cs (CreateClientParams): Always set the location to 0,0
since we're a child window.
* Control.cs (SetVisibleCore): Always explicitly setting the location
of a toplevel window, apparently X11 doesn't like to move windows
while they're not mapped.
2005-01-26 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Implement FillToRight size mode with vertically
rendered tabs.
2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
* ControlPaint.cs, ThemeWin32Classic.cs
- Fixes DrawFocusRectangle
2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
* MenuAPI.cs:
- MenuBar tracking only starts when item is first clicked
- Fixes menu hidding for multiple subitems
- Unselect item in MenuBar when item Executed
- Fixes bug 71495
2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
* ListControl.cs:
- IsInputKey for ListBox
* ListBox.cs:
- Focus item
- Shift and Control item selection
- Implement SelectionMode.MultiExtended
- Fixes RightToLeft
* ComboBox.cs:
- IsInputKey implemented
- Do not generate OnTextChangedEdit on internal txt changes
2005-01-23 Peter Bartok <pbartok@novell.com>
* AccessibleObject.cs: Partially implemented Select()
* MonthCalendar.cs: Added missing attributes and events
* Form.cs: Fixed CreateParams behaviour, now controls derived from
form can properly override CreateParams.
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
XplatUIX11.cs: Dropped RefreshWindow method, not needed if
Control performs Invalidate & Update
* NativeWindow (CreateHandle): Added special handling for Form
and Form.FormParent classes to allow overriding of From.CreateParams
* Control.cs:
- ControlNativeWindow: Renamed 'control' variable to more intuitive
name 'owner'
- ControlNativeWindow: Added Owner property
- Removed usage of Refresh() on property changes, changed into
Invalidate(), we need to wait until the queue is processed for
updates, direct calls might cause problems if not all vars for
Paint are initialized
- Added call to UpdateStyles() when creating the window, to set any
styles that CreateWindow might have ignored.
- Added support for Form CreateParent overrides to UpdateStyles()
* MessageBox.cs: Removed no longer needed FormParent override stuff,
CreateParams are now properly overridable
* CommonDialog.cs: Removed no longer needed FormParent override stuff,
CreateParams are now properly overridable
2005-01-23 Miguel de Icaza <miguel@ximian.com>
* UpDownBase.cs (ctor): Connect TextChanged in the entry to the
OnTextBoxChanged.
Capture LostFocus and OnTextBoxChanged. The later introduces a
recursive invocation that I have not figured out yet.
Reset the timer when not using (it was accumulating).
(OnTextBoxChanged): Set UserEdit to true here to track whether the
user has made changes that require validation.
Reset changing to avoid loops.
2005-01-22 Miguel de Icaza <miguel@ximian.com>
* NumericUpDown.cs: Display value at startup.
* UpDownBase.cs (Text): Do not call UpdateEditText here, only call
ValidateEditText.
* NumericUpDown.cs: Minimum, Maximum, Text, Value properties
filled in. Added some basic parsing of text.
Still missing the OnXXX method overrides, and figuring out the
events that must be emitted.
* UpDownBase.cs: Handle UserEdit on the Text property.
2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs:
- Fixes IntegralHeight
- ToString method
2005-01-21 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Set the SelectedIndex property when SelectedTab
is set so that the page visibility is updated and the tabs are
sized correctly.
2005-01-21 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Use cliping rectangle for blitting. Give the
theme the clipping rect so we can do clipping while
drawing. Remove some debug code.
2005-01-21 Jackson Harper <jackson@ximian.com>
* TabPage.cs: Add a new method so tab pages can force the tab
control to recalculate the tab page sizes.
* TabControl.cs: UpdateOwner needs to make the tab control recalc
sizes.
2005-01-20 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
2005-01-20 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Set the bounds for nodes properly. They were
getting screwed up when checkboxes were not enabled, but images
were.
2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs:
- Owner draw support
- Fixes
2005-01-20 Jackson Harper <jackson@ximian.com>
* XplatUIStructs.cs: More misc keys
* X11Keyboard.cs: Ignore some control keys.
2005-01-20 Jackson Harper <jackson@ximian.com>
* X11Structs.cs: Add the modmaps to the keymask struct and tabify.
* X11Keyboard.cs: Set the AltGr mask when we get a key event.
2005-01-19 Peter Bartok <pbartok@novell.com>
* Control.cs: Un-selecting the control when it is loosing focus
2005-01-19 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Hook up to the text controls leave event so we can
end editing when the users clicks outside the text box.
2005-01-19 Jackson Harper <jackson@ximian.com>
* X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
get set in the conversion array.
2005-01-19 Peter Bartok <pbartok@novell.com>
* Application.cs (ModalRun): Added a call to CreateControl to ensure
focus is properly set
* Button.cs:
- Added missing attributes
- removed styles, those are already set in the base class
* ButtonBase.cs:
- Added missing attributes
- Added clip window styles
* CheckBox.cs: Added missing attributes
* CommonDialog.cs:
- FormParentWindow.CreateParams: Added required clip styles
* Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
also filters modifier keys
* MessageBox.cs:
- Added assignment of Accept and Cancel button to enable Enter
and Esc keys in MessageBox dialogs
- FormParentWindow.CreateParams: Added required clip styles
* RadioButton.cs: Added missing attributes
* TextControl.cs: No longer draws selection if control does not
have focus
* TextBoxBase.cs:
- Now draws simple rectangle around test area to make it obvious
there's a control. This is a hack until we properly support borders
- A few simple fixes to support selections better, now erases selected
text when typing, and resets selection when using movement keys
2005-01-19 Miguel de Icaza <miguel@ximian.com>
* UpDownBase.cs: Added some new properties.
* DomainUpDown.cs: Implement a lot to get my test working.
2005-01-19 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Fix a minor bug to bring the close box back
2005-01-19 Geoff Norton <gnorton@customerdna.com>
* OSXStructs (WindowAttributes): Fixed csc complaints
2005-01-19 Geoff Norton <gnorton@customerdna.com>
* XplayUIOSX.cs:
OSXStructs.cs: Initial refactor to move enums and consts into
OSXStructs and use them in the driver for greater readability.
2005-01-19 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Initial support for Standard Cursors.
* OSXStructs.cs: Move our structs here; added ThemeCursor enum
2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: ability to change style when the ctrl is already
created, missing methods and events, bug fixes, signature fixes
2005-01-19 Peter Bartok <pbartok@novell.com>
* Cursors.cs (ctor): Added ctor to fix signature
2005-01-18 Peter Bartok <pbartok@novell.com>
* Button.cs: Implemented DoubleClick event
* ButtonBase.cs:
- Fixed keyboard handling to behave like MS, where the press of
Spacebar is equivalent to a mousedown, and the key release is
equivalent to mouseup. Now a spacebar push will give the same
visual feedback like a mouse click.
- Added missing attributes
- Added ImeModeChanged event
- Added support for generating DoubleClick event for derived classes
* CheckBox.cs:
- Implemented DoubleClick event
- Added missing attributes
* CommonDialog.cs: Added missing attribute
* ContextMenu.cs: Added missing attributes
* RadioButton.cs:
- AutoChecked buttons do not allow to be unselected when clicked
(otherwise we might end up with no selected buttons in a group)
- Added missing attributes
- Implemented DoubleClickEvent
* ThreadExceptionDialog.cs: Enabled TextBox code
2005-01-18 Peter Bartok <pbartok@novell.com>
* Form.cs: Removed debug output
* Button.cs: Added support for DoubleClick method
2005-01-18 Peter Bartok <pbartok@novell.com>
* Form.cs:
- Added method to parent window that allows triggering size
calculations when a menu is added/removed
- set_Menu: Cleaned up mess from early days of Form and Control,
now properly triggers a recalc when a menu is added/removed
- Added case to select form itself as focused form if no child
controls exist
- Added PerformLayout call when showing dialog, to ensure properly
placed controls
* Control.cs:
- Select(): Made internal so Form can access it
- Focus(): Only call Xplat layer if required (avoids loop), and sets
status
* Application.cs (Run): Removed hack and calls PerformLayout instead
to trigger calculation when Form becomes visible
2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: fixes for ownerdraw
2005-01-18 Peter Bartok <pbartok@novell.com>
* TextControl.cs:
- Sentinel is no longer static, each Document gets it's own, this
avoids locking or alternatively overwrite problems when more
than one text control is used simultaneously.
- Switched to use Hilight and HilightText brushes for text selection
* TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
2005-01-18 Peter Bartok <pbartok@novell.com>
* Control.cs:
- Hooked up the following events:
o ControlAdded
o ControlRemoved
o HandleDestroyed
o ImeModeChanged
o ParentChanged
o TabStopChanged
o Invalidated
o SystemColorsChanged
o ParentFontChanged
o Move
- Removed debug output
- Added a call to the current theme's ResetDefaults when a color change
is detected
* Form.cs: Now setting the proper ImeMode
* Theme.cs: Defined a method to force recreation of cached resources
and rereading of system defaults (ResetDefaults())
* ThemeWin32Classic.cs: Added ResetDefaults() stub
2005-01-17 Peter Bartok <pbartok@novell.com>
* Control.cs: Added missing attributes
2005-01-17 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: Implement editing. Add missing properties selected
and visible.
* TreeView.cs: Implement node editing. Also some fixes to use
Invalidate (invalid area) instead of Refresh when selecting.
2005-01-17 Peter Bartok <pbartok@novell.com>
* Control.cs:
- Implemented InvokeGotFocus() method
- Implemented InvokeLostFocus() method
- Implemented InvokePaint() method
- Implemented InvokePaintBackground() method
- Implemented InvokeClick() method
- Implemented FindForm() method
- Implemented RectangleToClient() method
- Implemented ClientToRectangle() method
- Implemented ResetBackColor() method
- Implemented ResetCursor() method
- Implemented ResetFont() method
- Implemented ResteForeColor() method
- Implemented ResetImeMode() method
- Implemented ResetLeftToRight() method
- Implemented ResetText() method
- Implemented Scale() methods
- Implemented ScaleCore() method
- Implemented Update() method
- Removed unused variables
- Stubbed AccessibilityNotifyClients and
ControlAccessibleObject.NotifyClients() methods (dunno what to do
with those yet)
- Now setting proper default for RightToLeft property
- Fixed bug in SetClientSizeCore that would cause windows to get
really big
- Now sending Click/DoubleClick events
- Now selecting controls when left mouse button is clicked on
selectable control
* AccessibleEvents.cs: Added
* XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
* XplatUIOSX.cs: Stubbed UpdateWindow() method
* XplatUIWin32.cs: Implemented UpdateWindow() method
* XplatUIX11.cs: Implemented UpdateWindow() method
* Form.cs: Removed stray semicolon causing CS0162 warning
* ThemeWin32Classic.cs: Fixed unused variable warnings
* ScrollableControl.cs: Now calls base method for ScaleCore
* ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
style to avoid interference with internal click handler (which is
different than standard Control click handling)
* RadioButton.cs:
- Now unchecks all sibling radio buttons when control is
selected (Fixes #68756)
- Removed internal tabstop variable, using the one inherited from
Control
2005-01-17 Jackson Harper <jackson@ximian.com>
* NavigateEventArgs.cs: Fix base type.
* LinkLabel.cs: Sig fix
2005-01-17 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Only invalidate the effected nodes bounds when
selecting nodes.
2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
* XplatUIWin32.cs: fixes Win32 marshaling
* XplatUIX11.cs: fixes method signature
2005-01-17 Peter Bartok <pbartok@novell.com>
* XplatUIX11.cs: Clean up resources when we no longer need them
2005-01-17 Peter Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
and DestroyCursor() methods.
* Cursor.cs: Partially implemented, now supports standard cursors;
still contains some debug code
* Cursors.cs: Implemented class
* Control.cs:
- WndProc(): Added handling of WM_SETCURSOR message, setting the
appropriate cursor
- Implemented Cursor property
- Replaced break; with return; more straightforwar and possibly
faster
- Now properly setting the result for WM_HELP
* X11Structs.cs: Added CursorFontShape enum
* XplatUIStructs.cs:
- Added StdCursor enum (to support DefineStdCursor() method)
- Added HitTest enum (to support sending WM_SETCURSOR message)
* XplatUIX11.cs:
- Now sends the WM_SETCURSOR message
- Implemented new cursor methods
* XplatUIOSX.cs: Stubbed new cursor methods
* XplatUIWin32.cs:
- Implemented new cursor methods
- Added GetSystemMetrics function and associated enumeration
2005-01-15 Peter Bartok <pbartok@novell.com>
* Control.cs:
- WndProc(): Now handles EnableNotifyMessage
- SelectNextControl(): Fixed bug where if no child or sibling
controls exist we looped endlessly
2005-01-14 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Recalculate the tab pages when a new one is added
so that the proper bounding rects are created.
2005-01-14 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Draw a gray box instead of a grip in the lower
right hand corner when there are both horizontal and vertical
scroll bars.
2005-01-14 Jackson Harper <jackson@ximian.com>
* Control.cs: When erasing backgrounds use FromHwnd instead of
FromHdc when there is a NULL wparam. This occurs on the X driver.
* XplatUIX11.cs: Set the wparam to NULL.
2005-01-13 Jackson Harper <jackson@ximian.com>
* PictureBox.cs: Implement missing methods (except ToString, need
to test that on windows) and events. When visibility is changed we
need to redraw the image because the buffers are killed. When size
is changed refresh if the sizemode needs it.
2005-01-13 Peter Bartok <pbartok@novell.com>
* Control.cs (SelectNextControl): Was using wrong method to select
a control
2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: fixes dropstyle
2005-01-13 Peter Bartok <pbartok@novell.com>
* Form.cs:
- Implemented Select() override
- Now handles WM_SETFOCUS/WM_KILLFOCUS messages
- Now sets keyboard focus on startup
* Control.cs (SelectNextControl): Now properly handles directed=true
* TextBoxBase.cs:
- WndProc: Now passes tab key on to base if AcceptTabChar=false
- Added (really bad) focus rectangle (mostly for testing)
* TextBox.cs: Added code to handle getting/loosing focus and invalidating
to enforce redraw on focus changes
* ContainerControl.cs:
- Fixed detection of Shift-Tab key presses
- Fixed traversal with arrow keys
* XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
gonna keep this or if it's complete yet
2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: missing properties, fixes
2005-01-13 Peter Bartok <pbartok@novell.com>
* Panel.cs (ctor): Setting Selectable window style to off
* Splitter.cs (ctor): Setting Selectable window style to off
* GroupBox.cs (ctor): Setting Selectable window style to off
* Label.cs (ctor): Setting Selectable window style to off
2005-01-12 Miguel de Icaza <miguel@ximian.com>
* UpDownBase.cs (InitTimer): If the timer has been already
created, enable it.
Use a TextBox instead of a Label.
2005-01-12 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Refresh the tree after sorting the nodes. Always
draw the connecting node lines (when ShowLines is true).
* TreeNode.cs: The nodes index can now be updated. This is used
when a node collection is sorted.
* TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
insert or an existing unsorted node collection can be sorted.
2005-01-12 Peter Bartok <pbartok@novell.com>
* ContainerControl.cs: Implemented ProcessDialogKeys()
2005-01-12 Peter Bartok <pbartok@novell.com>
* Control.cs:
- Implemented SelectNextControl() method
- Several focus related bug fixes
- Fixed Docking calculations to match MS documentation and
behaviour
2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
* ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
bug fixes
2005-01-12 Peter Bartok <pbartok@novell.com>
* Control.cs:
- Fixed broken Contains() method
- Implemented GetNextControl() method. Finally. This is the pre-
requisite for focus handling.
2005-01-12 Peter Bartok <pbartok@novell.com>
* OSXStrucs.cs: Added
2005-01-12 Peter Bartok <pbartok@novell.com>
* XplatUIWin32.cs:
- Removed PeekMessageFlags
- Implemented SetWindowStyle() method
* XplatUIStructs.cs: Added PeekMessageFlags
* X11Structs: Added missing border_width field to XWindowChanges struct
* XplatUIX11.cs:
- PeekMessage: Now throws exception if flags which are not yet
supported are passed
- Implemented SetWindowStyle() method
- Fixed SetZOrder to handle AfterHwnd properly
* XplatUI.cs: Added SetWindowStyle() method
* XplatUIDriver.cs: Added SetWindowStyle() abstract
* Control.cs:
- Implemented UpdateStyles() method
- Implemented UpdateZOrder() method
* XplatUIOSX.cs: Added SetWindowStyle() stub
2005-01-12 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
button mouse).
2005-01-11 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Still need to draw lines to siblings even if out of
the current node is out of the clip.
2005-01-11 Jackson Harper <jackson@ximian.com>
* TreeView.cs: When setting the hbar/vbar/grip position use
SetBounds so that perform layout is only called once. Also suspend
and resume layout so layout is only done once for all controls.
- Removed some debug fluff
* SizeGrip.cs: Call base implmentation in overriding methods.
- When visibility is changed the drawing buffers are killed so we
need to redraw.
2005-01-11 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Calculate the open node count while drawing. This
saves us an entire tree traversal for every paint operation. Use
a member var for the open node count so less vars are passed around.
2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
* MonthCalendar.cs:
- fixed selection to use mousemove, not mouse polling on timer
* ThemeWin32Classic.cs
- removed redundant unused variable "no_more_content"
2005-01-11 Peter Bartok <pbartok@novell.com>
* XplatUIX11.cs (DoEvents): Needs to return when no more events
are pending, so it now calls PeekMessage instead of GetMessage;
implemented a incomplete version of PeekMessage
2005-01-11 Peter Bartok <pbartok@novell.com>
* XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
I18n issues
* TextBoxBase.cs: Added sending of TextChanged event
2005-01-10 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Try not to draw outside the clipping rectangle on
each node element.
2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: keyboard navigation, item navigation, bug fixes
2005-01-10 Jackson Harper <jackson@ximian.com>
* TreeView.cs:
- Implement fast scrolling. Now only the newly
exposed nodes are drawn and the old image is moved using the
XplatUI::ScrollWindow method.
- Factor in height of nodes when calculating whether or not the
node is in the clipping rect.
2005-01-10 Jackson Harper <jackson@ximian.com>
* TreeNodeCollection.cs: Refresh the tree when a new node is added.
2005-01-10 Peter Bartok <pbartok@novell.com>
* Application.cs: Added temporary hack to resolve all our resize
required issues on startup. This will get fixed properly at
some point in the future
2005-01-10 Jackson Harper <jackson@ximian.com>
* SizeGrip.cs: New internal class that is used as a sizing
grip control...hence the name.
2005-01-10 Peter Bartok <pbartok@novell.com>
* Control.cs: Implemented proper TabIndex handling, now assigning
a tabindex when a control is added to a container
* GroupBox.cs (ctor): Now sets the Container style bit, required
for Control.GetNextControl()
2005-01-09 Jackson Harper <jackson@ximian.com>
* TextBoxBase.cs: Clear window when scrolling (fixes build).
2005-01-09 Peter Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
XplatUIX11.cs: Added ability to control ScrollWindow expose and
an overload for ScrollWindow to allow only scrolling a rectangle
2005-01-09 Peter Bartok <pbartok@novell.com>
* Form.cs:
- Implemented SetDesktopBounds method
- Implemented SetDesktopLocation method
2005-01-08 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Only set the vbar's Maximum and LargeChange when
the node count has changed, this removes to VScroll::Refresh calls
when drawing.
2005-01-08 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Fix GetWindowState & SetWindowState
2005-01-07 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: Just update the single node when it is
checked. Don't refresh after toggling, the Expand/Collapse already
handles this.
* TreeView.cs: Respect clipping a little more when drawing. Try
not to redraw things that don't need to be redrawn. Just hide the
scrollbars when they are no longer needed instead of removing
them, so they don't have to be created again and again.
2005-01-07 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs (SetCaretPos): We need to translate the view
coordinates to window space to place the caret properly, FIXED.
Implement GetWindowState & SetWindowState
2005-01-06 Peter Bartok <pbartok@novell.com>
* Form.cs:
- Implemented ClientSize property
- Implemented DesktopBounds property
- Implemented DesktopLocation property
- Implemented IsRestrictedWindow property
- Implemented Size property
- Implemented TopLevel property
- Implemented FormWindowState property
* Control.cs:
- Implemented GetTopLevel() method
- Implemented SetTopLevel() method
* X11Structs.cs (Atom):
- Added AnyPropertyType definition
- Added MapState definiton and updated XWindowAttribute struct
* XplatUI.cs: Added GetWindowState() and SetWindowState() methods
* XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
* XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
* XplatUIWin32.cs:
- Implemented GetWindowState() and SetWindowState() methods
- Fixed Win32GetWindowLong return type
* XplatUIX11.cs:
- Introduced central function for sending NET_WM messages
- Implemented GetWindowState() and SetWindowState() methods
* TextBoxBase.cs (set_Lines):
- Now uses Foreground color for text added via Text property (Duh!)
- Added code to remember programmatically requested size (fixes
behaviour when Multiline is set after Size)
- Added AutoSize logic
2005-01-06 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
2005-01-06 Jackson Harper <jackson@ximian.com>
* ListBox.cs: Don't allow the horizontal scrollbars maximum to be
set to less then 0.
2005-01-06 Jackson Harper <jackson@ximian.com>
* ScrollableControl.cs: Lazy init the scrollbars.
2005-01-06 Jackson Harper <jackson@ximian.com>
* Theme.cs: Speed up getting pens and solid brushes, by using
their ARGB as a hash instead of tostring and not calling Contains.
2005-01-06 Peter Bartok <pbartok@novell.com>
* Form.cs:
- Implemented OnActivated and OnDeactivate event trigger
- Implemented Activate() method
- Fixed ShowDialog() to activate the form that was active before
the dialog was shown
* XplatUIX11.cs:
- Added global active_window var that tracks the currently active
X11 window
- Now always grabs Property changes from the root window to always
catch changes on the active window property
- Added code to PropertyNotify handler to send Active/Inactive
messages when state changes. This puts X11 and Win32 en par on
WM_ACTIVATE notifications (except for double notifications when
the user clicks away from our modal window to another one of our
windows)
2005-01-05 Jackson Harper <jackson@ximian.com>
* ImageList.cs: Implment ctor
2005-01-05 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Implement Activate/SetTopmost
2005-01-05 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Implement SetZOrder, minor cleanup
2005-01-05 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Implement GetActive/SetFocus.
2005-01-05 Peter Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
XplatUIOSX.cs: Added GetActive method to return the currently
active window for the application (or null, if none is active)
* Form.cs:
- Implemented ActiveForm
- Commented out owner assignment for modal dialogs (causes problems
on Win32, since the owner will be disabled)
- Reworked some Active/Focus handling (still incomplete)
* CommonDialog.cs: Commented out owner assignment for modal dialogs
(causes problems on Win32, since the owner will be disabled)
* IWin32Window: Added ComVisible attribute
2005-01-05 Peter Bartok <pbartok@novell.com>
* ToolTip.cs (WndProc): Enable setting focus now that we have the
required XplatUI functions.
2005-01-05 Peter Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
to implement focus and activation handling; still incomplete and
with debug output
2005-01-04 Peter Bartok <pbartok@novell.com>
* TextBoxBase.cs: Changed access level for Document property to
match switch to internal for TextControl
2005-01-04 Peter Bartok <pbartok@novell.com>
* AccessibleObject: Added ComVisible attribute
2005-01-04 Jackson Harper <jackson@ximian.com>
* X11Keyboard.cs: Remove unneeded var.
2005-01-04 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
but PAINT.
* XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
ClientMessage. This makes apps exit cleanly (more often).
2005-01-04 Jackson Harper <jackson@ximian.com>
* TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
handling focus, return correct colors and fonts,
* TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
handle selection, horizontal scrolling, and mouse interaction.
2005-01-04 Peter Bartok <pbartok@novell.com>
* ICommandExecutor.cs: Added
* IDataGridColumnStyleEditingNotificationService.cs: Added
* IFeatureSupport.cs: Added
* IFileReaderService.cs: Added
* IDataObject.cs: Added ComVisible attribute
* AmbientProperties.cs: Added
* BaseCollection.cs: Added missing attributes
* ListBindingConverter.cs: Added (stubbed, required for certain attributes)
* BaseCollection.cs: Added missing attributes
* Binding.cs: Added TypeConverter attribute
* BindingContext.cs: Added DefaultEvent attribute
* BindingsCollection.cs: Added DefaultEvent attribute
* Button.cs: Added DefaultValue attribute
* DragEventArgs.cs: Added ComVisible attribute
* GiveFeedbackEventArgs.cs: Added ComVisible attribute
* KeyEventArgs.cs: Added ComVisible attribute
* KeyPressEventArgs.cs: Added ComVisible attribute
* MouseEventArgs.cs: Added ComVisible attribute
* NavigateEventArgs.cs: Added
* NavigateEventHandler.cs: Added
* FeatureSupport.cs: Added
* OSFeature.cs: Added
* Theme.cs: Added abstract Version property to support OSFeature
* ThemeWin32Classic.cs: Added Version property to
support OSFeature.Themes
* ProgressBar.cs: Removed OnPaintBackground override, not required since
the proper styles to avoid background drawing are set, also doesn't
match MS signature
* QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
* QueryContinueDragEventArgs.cs: Added ComVisible attribute
* ScrollEventArgs.cs: Added ComVisible attribute
* SplitterEventArgs.cs: Added ComVisible attribute
* AccessibleSelection.cs: Added Flags attribute
* Appearance.cs: Added ComVisible attribute
* Border3DSide.cs: Added ComVisible attribute
* Border3DStyle.cs: Added ComVisible attribute
* BorderStyle.cs: Added ComVisible attribute
* DragAction.cs: Added ComVisible attribute
* ErrorBlinkStyle.cs: Added
* ScrollEventType.cs: Added ComVisible attribute
* AnchorStyles.cs: Added Editor attribute
* DockStyle.cs: Added Editor attribute
* HorizontalAlignment.cs: Added ComVisible attribute
* HelpEventArgs.cs: Added ComVisible attribute
* PaintEventArgs.cs: Added IDisposable
2005-01-04 Peter Bartok <pbartok@novell.com>
* TextControl.cs: Switched Line, LineTag and Document classes to
internal
2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
Simple mode, fixes, IntegralHeight, etc.
2005-01-04 Peter Bartok <pbartok@novell.com>
* TextBoxBase.cs: Using proper font variable now
2005-01-04 Peter Bartok <pbartok@novell.com>
* Form.cs (ShowDialog): Set parent to owner, if provided
* GroupBox.cs: Removed unused vars
* TextControl.cs:
- Added GetHashCode() for Document and LineTag classes
- Removed unused variables
- Added CharIndexToLineTag() and LineTagToCharIndex() methods
to allow translation between continuous char position and line/pos
* CheckBox.cs: Removed vars that are provided by base class
* RadioButton.cs: Removed vars that are provided by base class, added
new keyword where required
* LinkLabel.cs: Added new keyword where required
* Control.cs (WndProc): Removed unused variable
* TextBoxBase.cs:
- Finished SelectionLength property
- Implemented SelectionStart property
- Implemented Text property
- Removed unused vars
* MessageBox.cs: Added new keyword where required
* TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
WndProc signature
* MenuAPI.cs: Added new keyword where required
* ButtonBase.cs: Removed vars that are provided by base class, added
new keyword where required
* ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
argument to double, to allow compiling with csc 2.0 (Atsushi ran
into this)
* Application.cs (Run): Now triggers the ThreadExit event
* CommonDialog.cs: Added new keyword where required; now properly sets
parent (owner) for dialog
* XplatUIX11.cs: Commented out unused vars
* StatusBar.cs: Fixed signature for Text property
* TabPage.cs: Undid Jordi's removal of unused var, now using the var
2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
TrackBar.cs, MonthCalendar.cs: remove unused vars
2005-01-03 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs:
* X11Keyboard.cs: Remove unused vars.
2005-01-03 Peter Bartok <pbartok@novell.com>
* TextBox.cs:
- set_Text: Tied into TextControl
- set_TextAlignment: Tied into TextControl
* TextControl.cs:
- Added alignment properties and implemented alignment handling
and drawing (still has a bug, not generating proper expose events)
- Added new Line() constructor to allow passing the line alignment
- Fixed selection setting, properly handling end<start now
- Added aligment considerations to RecalculateDocument()
* TextBoxBase.cs:
- Now properly enforces control height for single line controls
- Added support for CharacterCasing
- Added IsInputKey override
- Fixed Keys.Enter logic
- Added SetBoundsCore override
- Fixed mouse selection handling
2005-01-03 Jackson Harper <jackson@ximian.com>
* TreeView.cs:
- Collapse and uncheck all nodes when CheckBoxes is disabled.
- Checkboxes are always aligned to the bottom of the node,
regardless of item height.
- Use the node bounds to draw the text so we can center it when
the item height is greater then the font height.
- Node::Bounds are only the text part of the node.
* TreeNode.cs: New method to combine collapsing and unchecking all
nodes recursively.
2005-01-02 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Draw checkmarks, handle detecting check mark clicks
* TreeNode.cs: Add a bounding box for the checkbox, refresh the
tree when a check is changed. TODO: Only refresh the checked node.
2004-12-30 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
* TreeNode.cs: When collapsing make sure to never collapse the
root node.
2004-12-29 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Align lines to the bottom of plus minus boxes properly.
2004-12-28 Zoltan Varga <vargaz@freemail.hu>
* X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
2004-12-28 Peter Bartok <pbartok@novell.com>
* MessageBox.cs (get_CreateParams): Don't use owner var if it's
not yet assigned
2004-12-28 Peter Bartok <pbartok@novell.com>
* Control.cs (WndProc): Added WM_HELP handler, now generates
HelpRequested event
* Form.cs: Added HelpButton property and required support code
* XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
2004-12-28 Peter Bartok <pbartok@novell.com>
* CommonDialog.cs:
- Made DialogForm.owner variable internal
- Added check to ensure owner form is set before setting
owner properties in CreateParams
2004-12-28 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
swizzling. Implement ClientToScreen and ScreenToClient. Implement
GetCursorPos. Fix major visibility issues. Rework the windowing
system to support borderless/titleless windows (implements menus).
Fix GetWindowPos. Implement initial background color support for
views.
2004-12-28 Peter Bartok <pbartok@novell.com>
* Form.cs (get_CreateParams): Make sure we have an owner before using
the owner variable. Implement proper default if no owner exists
2004-12-28 Peter Bartok <pbartok@novell.com>
* In preparation for making Managed.Windows.Forms the default build target
for System.Windows.Forms, the following stubbed files were added.
Dialogs are currently being implemented by contributors and are only
short-term place holders.
* ColorDialog.cs: Initial check-in (minmal stub)
* DataGrid.cs: Initial check-in (minimal stub)
* DataGridLineStyle.cs: Initial check-in (minimal stub)
* DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
* DataGridTableStyle.cs: Initial check-in (minimal stub)
* FontDialog.cs: Initial check-in (minimal stub)
* FileDialog.cs: Initial check-in (minimal stub)
* GridColumnStylesCollection.cs: Initial check-in (minimal stub)
* GridTableStylesCollection.cs: Initial check-in (minimal stub)
* OpenFileDialog: Initial check-in (minimal stub)
* IComponentEditorPageSite.cs: Initial check-in
* Splitter.cs: Initial check-in (for Jackson)
* SplitterEventArgs.cs: Initial check-in (for Jackson)
* SplitterEventHandler.cs: Initial check-in (for Jackson)
* TextBox.cs: Initial check-in; still needs some wiring to
TextControl backend
* Form.cs: Implemented ControlBox property
* MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
* CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
* TextControl.cs: Added selection functionality; added todo header
* TextBoxBase.cs:
- Implemented Lines property
- Implemented TextHeight property
- Implemented SelectedText property
- Implemented SelectionLength property
- Implemented SelectAll method
- Implemented ToString method
- Removed and cleaned up some debug code
- Implemented (still buggy) mouse text selection
2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
* ComboBox.cs: Complete DropDownList implementation, fixes.
2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
* ThemeWin32Classic, Theme.cs: ComboBox drawing methods
* ComboBoxStyle.cs: ComboBoxStyle enum
* ComboBox.cs: Initial work on ComboBox control
2004-12-21 Peter Bartok <pbartok@novell.com>
* Control.cs (ctor, CreateParams): Moved setting of is_visible
forward so that anything that creates a window gets the default,
also no longer uses Visible property in CreateParams to avoid
walking up the parent chain and possibly get the wrong visible
status. Fixed IsVisible to no longer walk up to the parent.
2004-12-21 Peter Bartok <pbartok@novell.com>
* Form.cs (ShowDialog): Unset modality for the proper window
2004-12-20 Peter Bartok <pbartok@novell.com>
* CommonDialog.cs: Initial check-in
2004-12-20 Peter Bartok <pbartok@novell.com>
* Control.cs (Visible): Now uses the parent window instead of the
client area window for the property
* Form.cs
- ShowDialog(): Now uses the proper window for modality
- The default visibility state for the form parent is now false. This
will prevent the user from seeing all the changes to the form and
its controls before the application hits Application.Run()
- Removed some stale commented out code
* NativeWindow.cs:
- Added FindWindow() method to have a method to check for existence
of a window handle
- Added ability to override default exception handling (for example
when debugging with VS.Net; to do this the ExternalExceptionHandler
define must be set
- Removed some useless debug output
* XplatUIX11.cs:
- Removed r37929 (SetModal patch from Ashwin Bharambe), was
not working as expected
- Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
property to allow switching back to the modal window if focus is
given to another one of our windows (Application Modal)
- Now only sets override_redirect if we create a window
without WS_CAPTION
- Moved EventMask selection before mapping of newly created window
so we can catch the map event as well
- Implemented Activate() method via the _WM_ACTIVE_WINDOW property
- Added various Atom related DllImports
- Implemented Exit() method
- .ctor() : No longer shows window if WS_VISIBLE is not defined
in the CreateParams
* MessageBox.cs: Now properly deals with the FormParent window by
providing an override the FormParent CreateParams property to
set as POPUP instead of OVERLAPPED window.
2004-12-19 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
Minor code cleanup.
2004-12-19 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs (SetModal): Implement this method on OSX.
2004-12-18 Peter Bartok <pbartok@novell.com>
* XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
implementing SetModal() method
2004-12-18 Peter Bartok <pbartok@novell.com>
* X11Structs.cs (XGCValues): Fixed type of function element
* XplatUI.cs: Added ScrollWindow() method
* XplatUIDriver.cs: Added ScrollWindow() abstract
* XplatUIWin32.cs: Implemented ScrollWindow() method
* XplatUIX11.cs: Implemented ScrollWindow() method
* XplatUIOSX.cs: Stubbed out ScrollWindow() method
2004-12-17 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
Some more keyboard support (INCOMPLETE)
2004-12-17 Peter Bartok <pbartok@novell.com>
* TextControl.cs:
- Added color attribute to line tags.
- Added color argument to all functions dealing with tags
- Added color argument support to various functions
- Fixed miss-calculation of baseline/shift in certain circumstances
* TextBoxBase.cs: Added new color option to test code
2004-12-17 Jackson Harper <jackson@ximian.com>
* TreeNode.cs:
* MonthCalendar.cs: Signature fixes
2004-12-17 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
keyboard event moved it. Create a new graphics context for each paint resolves this
2004-12-17 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
Make caret exist and go blink blink. Initial keyboard support.
Fix exception handler, Add Invalidate support. Change way RefreshWindow
works.
2004-12-17 Jackson Harper <jackson@ximian.com>
* XplatUIStructs.cs: Updated set of virtual keycodes.
* KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
2004-12-17 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Prune old keyboard code.
2004-12-17 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: When generating mouse wparams get the modifier
keys from the ModifierKeys property.
2004-12-17 Jackson Harper <jackson@ximian.com>
* X11Keyboard.cs: Send up/down input when generating
messages. Remove some unused vars.
2004-12-17 Jackson Harper <jackson@ximian.com>
* TabControl.cs:
* TreeView.cs: get rid of warnings.
2004-12-17 Jackson Harper <jackson@ximian.com>
* XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs: bug fixes, changes for CheckedListBox.cs
CheckedListBox.cs: Implementation
2004-12-17 Peter Bartok <pbartok@novell.com>
* TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
2004-12-16 Peter Bartok <pbartok@novell.com>
* TextControl.cs:
- InsertCharAtCaret(): Fixed start pos fixup
- CaretLine_get: No longer derives the line from the tag, the tag
could be stale if lines in the document have been added or deleted
- RebalanceAfterDelete(): Fixed bug in balancing code
- RebalanceAfterAdd(): Fixed really stupid bug in balancing code
- Line.Streamline(): Now can also elminate leading empty tags
- DumpTree(): Added a few more tests and prevented exception on
uninitialized data
- Added Debug section for Combining lines
- Delete(): Now copies all remaining properties of a line
* TextBoxBase.cs:
- Left mousebutton now sets the caret (and middle button still acts
as formatting tester, which must go away soon)
- Added Debug section for Deleting/Combining lines
- Fixed calculations for UpdateView after Combining lines
2004-12-16 Peter Bartok <pbartok@novell.com>
* TextControl.cs: Now properly aligns text on a baseline, using the
new XplatUI.GetFontMetrics() method. Simplified several calculations
* TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
defined
2004-12-16 Peter Bartok <pbartok@novell.com>
* XplatUI.cs: Added GetFontMetrics() method
* XplatUIDriver.cs: Added GetFontMetrics() abstract
* XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
into libgdiplus, our private GetFontMetrics function
* XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
* XplatUIWin32.cs: Implemented GetFontMetrics() method
2004-12-16 Jackson Harper <jackson@ximain.com>
* XplatUIStruct.cs: Add enum for dead keys
* X11Keyboard.cs: Map and unmap dead keys.
2004-12-16 Jackson Harper <jackson@ximian.com>
* X11Keyboard.cs: Detect and use the num lock mask.
2004-12-16 Peter Bartok <pbartok@novell.com>
* Control.cs (CreateGraphics): Added check to make sure the
handle of the window exists before calling Graphics.FromHwnd()
2004-12-16 Peter Bartok <pbartok@novell.com>
* TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
contains a lot of code that's not supposed to be there for the
real thing, but required for developing/testing the textbox
backend.
2004-12-16 Peter Bartok <pbartok@novell.com>
* TextControl.cs:
- Fixed Streamline method
- Added FindTag method to Line
- Added DumpTree method for debugging
- Added DecrementLines() method for deleting lines
- Fixed UpdateView to update the cursor to end-of-line on single-line
updates
- Added PositionCaret() method
- Fixed MoveCaret(LineDown) to move into the last line, too
- Added InsertChar overload
- Fixed InsertChar tag offset calculations
- Added DeleteChar() method
- Added Combine() method for folding lines
- Fixed Delete() method, no longer allocates wasted Line object and
now copies all properties when swapping nodes
- Delete() method now updates document line counter
2004-12-15 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Get the modifier keys from the keyboard driver
* X11Keyboard.cs: Expose the currently selected modifier keys
through a property.
2004-12-15 Peter Bartok <pbartok@novell.com>
* TextControl.cs: Initial check-in. Still incomplete
2004-12-15 Jackson Harper <jackson@ximian.com>
* TreeNode.cs:
* TreeView.cs: Fix build on csc (second time today ;-))
2004-12-15 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Store the treenodes plus/minus box bounds when it
is calculated and use this for click testing.
* TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
2004-12-15 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Pass the nodes image index to the image list when
drawing that image.
2004-12-15 Jackson Harper <jackson@ximian.com>
* X11Keyboard.cs: Set messages hwnd.
* XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
post_message calls.
2004-12-15 Jackson Harper <jackson@ximian.com>
* X11Keyboard.cs: Fix to compile with csc.
2004-12-15 Jackson Harper <jackson@ximian.com>
* X11Structs.cs: Add key mask values
* XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
* X11Keyboard.cs: New file - Extrapolates and interpolates key
down/up foo into WM_CHAR foo
* KeyboardLayouts.cs: Common keyboard layouts
* XplatUIX11.cs: Add the keyboard driver. Add functionality to
post messages into the main queue.
2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
* Button.cs: implement ProcessMnemonic
* ThemeWin32Classic.cs: use ResPool (caching) instead of creating
brushes everytime
* Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
* ButtonBase.cs: Show HotkeyPrefix (not the &)
2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
* MonthCalendar.cs: Implemented click-hold for next/previous month
and date selection
2004-12-11 Peter Bartok <pbartok@novell.com>
* X11Structs.cs:
- Added XKeyboardState (moved from XplatUIX11.cs)
- Added XCreateGC related enums and structures
- Added GXFunction for XSetFunction
* XplatUIStructs.cs: Added missing WS_EX_xxx definitions
* XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
CaretVisible() calls
* ToolTip.cs: Added code to prevent stealing focus from app windows
* XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
DestroyCaret, SetCaretPos and CaretVisible)
* XplatUIX11.cs:
- Added implementation for caret functions
- Moved hover variables into a struct, to make it a bit easier
on the eyes and to debug
- Removed XKeyboardState (moved to XplatUIX11.cs)
- Moved Keyboard properties into the properties region
* Control.cs (get_Region): Control.CreateGraphics is the appropriate
call to get a graphics context for our control
* XplatUIOSX.cs: Added empty overrides for the new caret functions
* TreeView.cs: Fixed bug. No matter what color was set it would always
return SystemColors.Window
* XplatUIWin32.cs: Implemented caret overrides
2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs: fire events, implement missing methods and properties,
sorting.
2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
* MonthCalendar.cs: invalidation bug fixing
* ThemeWin32Classic.cs: paint fixing
2004-12-09 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
prepare the CGContextRef there now.
2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
* MonthCalendar.cs:
- optimisationL only invalidate areas that have changed
* ThemeWin32Classic.cs:
- only paint parts that intersect with clip_area
2004-12-09 Peter Bartok <pbartok@novell.com>
* Application.cs: Undid changes from r37004 which cause problems
on X11
2004-12-09 Ravindra <rkumar@novell.com>
* ToolBar.cs: Added support for displaying ContextMenu
attached to a button on ToolBar.
* ToolBarButton.cs: Uncomment/fixed the DropDownMenu
property.
2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
* Label.cs: autosize works in text change and removes unnecessary
invalidate
2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
* ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
remove warnings
2004-12-08 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Added mouse move/click/grab support
Remove some debugging WriteLines not needed anymore.
Add window resizing/positioning.
Fix visibility on reparenting.
2004-12-08 Peter Bartok <pbartok@novell.com>
* XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
2004-12-07 Geoff Norton <gnorton@customerdna.com>
* XplatUIOSX.cs: Initial checkin
* XplatUI.cs: Use the Quartz driver if the environment is set to use it
2004-12-03 Ravindra <rkumar@novell.com>
* ListView.cs: Added some keybindings and fixed scrolling.
ScrollBars listen to ValueChanged event instead of Scroll
Event. This would let us take care of all changes being
done in the scrollbars' values programmatically or manually.
* ListView.cs (CanMultiselect): Added a check for shift key.
* ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
* ListViewItem.cs (Clone): Fixed. We need to make a copy
of ListViewSubItemCollection as well.
2004-12-06 Peter Bartok <pbartok@novell.com>
* Control.cs (Parent): Added check and exception to prevent
circular parenting
2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs: implemented clipping, selection single and multiple,
bug fixing
2004-12-03 Ravindra <rkumar@novell.com>
* ListView.cs (ListView_KeyDown):
* ListView.cs (ListView_KeyUp): Fixed multiple selection handling
when CTRL key is pressed.
* ListViewItem.cs (Selected): Fixed setting the property.
2004-12-03 Marek Safar <marek.safar@seznam.cz>
* Application.cs (OnThreadException): Use ThreadExceptionDialog.
* Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
MinimizeBox, ShowInTaskbar, TopMost properties.
* ThreadExceptionDialog.cs: Implemented (disabled TextBox until
will be implemented).
2004-12-03 Marek Safar <marek.safar@seznam.cz>
* OwnerDrawPropertyBag.cs: New internal parameterless ctor.
* TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
tests.
* TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
* TreeView.cs: BackColor is Colors.Window.
2004-12-01 Jackson Harper <jackson@ximian.com>
* TreeView.cs: When resizing the tree if the user is making it
smaller we don't get expose events, so we need to handle adding
the horizontal scrollbar in the size changed handler as well as
the expose handler.
2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
* DrawItemState.cs: fixes wrong enum values
2004-12-01 Jackson Harper <jackson@ximian.com>
* TreeView.cs: Resize the hbar as well as the vbar on resize.
2004-12-01 Jackson Harper <jackson@ximian.com>
* NodeLabelEditEventArgs.cs:
* NodeLabelEditEventHandler.cs:
* OpenTreeNodeEnumerator.cs:
* TreeNode.cs:
* TreeNodeCollection.cs:
* TreeView.cs:
* TreeViewAction.cs:
* TreeViewCancelEventArgs.cs:
* TreeViewCancelEventHandler.cs:
* TreeViewEventArgs.cs:
* TreeViewEventHandler.cs: Initial implementation.
2004-12-01 Ravindra <rkumar@novell.com>
* ListView.cs (CalculateListView): Fixed scrolling related
calculations. Also, removed some debug statements from other
places.
* ListViewItem.cs: Changed access to 'selected' instance variable
from private to internal.
* ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
* ThemeWin32Classic.cs: remove cache of brush and pens for
specific controls and use the global system, fixes scrollbutton
bugs (for small sizes, disabled, etc)
* ScrollBar.cs: does not show the thumb for very small controls
(as MS) and allow smaller buttons that the regular size
2004-12-01 Miguel de Icaza <miguel@ximian.com>
* UpDownBase.cs: Add abstract methods for the interface.
Add new virtual methods (need to be hooked up to TextEntry when it
exists).
Add override methods for most features.
Computes the size, forces the height of the text entry.
* NumericUpDown.cs: Put here the current testing code.
* Set eol-style property on all files that do not have mixed line
endings, to minimize the future problems. There are still a few
files with mixed endings, and someone should choose whether they
want to move it or not.
2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
* MonthCalendar.cs, ListView.cs: use Theme colours instead of
System.Colors
2004-11-30 Ravindra <rkumar@novell.com>
* ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
drawing and replaced use of SystemColors by theme colors.
* ListView.cs (ListView_Paint): Fixed painting done during scrolling.
* ListView.cs (ListViewItemCollection.Add): Throw exception when
same ListViewItem is being added more than once.
2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
* MonthCalendar.cs:
- ControlStyles love to make the control not flicker
2004-11-30 Peter Bartok <pbartok@novell.com>
* CharacterCasing.cs: Added
2004-11-29 Peter Bartok <pbartok@novell.com>
* TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
I am removing these files as they conflict with already completed
work. While it is fantastic to get contributions to MWF, I
respectfully ask that everyone please coordinate their contributions
through mono-winforms-list or #mono-winforms at this time. We're
explicitly avoiding stubbing and don't want controls that don't have
their basic functionality implemented in svn. Please also see
http://www.mono-project.com/contributing/winforms.html
2004-11-29 Marek Safar <marek.safar@seznam.cz>
* Application.cs (ModalRun): Don't hang after exit.
* Theme.cs: New TreeViewDefaultSize property.
* ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
with less hardcoded SystemColors constant.
Implemented TreeViewDefaultSize.
* TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
TreeViewAction.cs, TreeViewEventArgs.cs: New files.
2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
* MonthCalendar.cs:
- Fix NextMonthDate and PrevMonthDate click moving calendar
2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
* MonthCalendar.cs:
- Fix usage of ScrollChange Property when scrolling months
2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
* Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
- Fixes menu destroying
- Support adding and removing items on already created menus
2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
* MonthCalendar.cs:
- Re-worked all bolded dates handling to match win32
* ThemeWin32Classic.cs:
- Fixed rendering with bolded dates
2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
* ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
- Horizontal scroolbar
- Multicolumn
- Fixes
2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
* MonthCalendar.cs:
- Fix Usage of MaxSelectionCount from SelectionRange
- Fixed Shift + Cursor Selection
- Fixed Shift + (Pg up/Pg dn, Home/End) selection
- Fixed normal cursor selection to be compat with win32
- Fixed Shift + Mouse Click selection
2004-11-24 Peter Bartok <pbartok@novell.com>
* XplatUI.cs (DispatchMessage): Switched to return IntPtr
* XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
* XplatUIX11.cs:
- CreatedKeyBoardMsg now updates keystate with Alt key
- Added workaround for timer crash to CheckTimers, Jackson will
develop a proper fix and check in later
- Implemented DispatchMessage
- Removed calling the native window proc from GetMessage (call
now moved to DispatchMessage)
* KeyEventArgs.cs (Constructor): Now combines modifierkeys into
the keydata (Fixes bug #69831)
* XplatUIWin32.cs:
- (DispatchMessage): Switched to return IntPtr
- Added DllImport for SetFocus
2004-11-24 Ravindra <rkumar@novell.com>
* ThemeWin32Classic.cs: Fixed ListView border and checkbox
background drawing.
* ListViewItem.cs: Fixed various properties, calculations
and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
* ListView.cs: Fixed calculations, BackColor, ForeColor properties
and some internal properties. Fixed MouseDown handler and Paint
method.
2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
* MonthCalendar.cs: Add TitleMonth ContextMenu handling
2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
* ContainerControl.cs: correct accidental check in of local changes
2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
* ThemeWin32Classic.cs:
- Fixed Drawing Last month in grid (sometimes not showing)
* MonthCalendar.cs:
- Fixed title width calculation bug (makeing title small)
2004-11-23 Peter Bartok <pbartok@novell.com>
* XplatUIX11.cs:
- Added generation of WM_MOUSEHOVER event
- Added missing assignment of async_method atom
- Fixed WM_ERASEBKGND; now only redraws the exposed area
2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
* ThemeWin32Classic.cs:
- Fixed Drawing of today circle when showtodaycircle not set
- fixed drawing of first and last month in the grid (gay dates)
* MonthCalendar.cs:
- Fixed Drawing of today circle
- Fixed drawing of grady dates
- Fixed HitTest for today link when ShowToday set to false
- Fixed DefaultSize to obey ShowToday
2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
* ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
* System.Windows.Forms/Theme.cs
* MonthCalendar.cs: added for MonthCalendar
* SelectionRange.cs: added for MonthCalendar
* Day.cs: added for MonthCalendar: added for MonthCalendar
* DateRangeEventArgs.cs: added for MonthCalendar
* DateRangeEventHandler.cs: added for MonthCalendar
2004-11-22 Ravindra <rkumar@novell.com>
* ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
property.
2004-11-22 Miguel de Icaza <miguel@ximian.com>
* UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
event handler.
* NumericUpDown.cs: Added new implementation.
* UpDownBase.cs: Added new implementation.
* XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
implementations.
* XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
implementations.
* XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
methods.
2004-11-21 Miguel de Icaza <miguel@ximian.com>
* Timer.cs (Dispose): Should call the base dispose when
overriding.
2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
* ScrollBar.cs: updates thumb position when max, min or increment
is changed
2004-11-21 Ravindra <rkumar@novell.com>
* ListView.cs: Implemented item selection, activation and
column header style. Fixed properties to do a redraw, if
required. Added support for MouseHover, DoubleClick, KeyDown
and KeyUp event handling and some minor fixes.
* ListViewItem.cs: Fixed constructor.
* ThemeWin32Classic.cs: Improved drawing for ListView.
2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
* ThemeWin32Classic.cs: initial listbox drawing code
* DrawMode.cs: new enumerator
* ListControl.cs: stubbed class
* ListBox.cs: initial implementation
* Theme.cs: new methods definitions
* SelectionMode.cs: new enumerator
2004-11-17 Peter Bartok <pbartok@novell.com>
* XplatUIWin32.cs: Added double-click events to the class style
* Control.cs (WndProc):
- Added handling of click-count to MouseDown/ MouseUp events.
- Added handling of middle and right mouse buttons
- Removed old debug code
2004-11-17 Jackson Harper <jackson@ximian.com>
* XplatUIX11.cs: Use the new Mono.Unix namespace.
2004-11-17 Ravindra <rkumar@novell.com>
* ListView.cs: Added event handling for MouseMove/Up/Down.
* ColumnHeader.cs: Added a read-only internal property 'Pressed'.
* ThemeWin32Classic.cs: We need to clear the graphics context and
draw column header in a proper state.
2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
* Menu.cs: fixes signature
2004-11-16 Peter Bartok <pbartok@novell.com>
* XplatUIX11.cs (GetMessage): Implemented generation of
double click mouse messages
2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
* Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
not by menu
2004-11-11 Peter Bartok <pbartok@novell.com>
* HandleData.cs: Added Visible property
* XplatUIX11.cs (IsVisible): Now uses Visible property from
HandleData
* XplatUIX11.cs: Removed old debug leftovers
* XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
* Control.cs (WndProc): Removed old debug leftovers,
streamlined handling of WM_WINDOWPOSCHANGED, removed un-
needed WM_SIZE handling
2004-11-11 Jackson Harper <jackson@ximian.com>
* OwnerDrawPropertyBag.cs:
* TreeViewImageIndexConverter.cs: Initial implementation
2004-11-10 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs:
* TabControl.cs: instead of moving tabs by the slider pos just
start drawing at the tab that is offset by the slider. This way
scrolling always moves by exactly one tab.
2004-11-10 Jackson Harper <jackson@ximian.com>
* TabControl.cs: You can only scroll left when the slider has
already ben moved right.
2004-11-10 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Do not draw the selected tab if its not in
the clip area.
2004-11-10 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
clip area.
2004-11-09 Jackson Harper <jackson@ximian.com>
* TabControl.cs (CalcXPos): New helper method so we can determine
the proper place to start drawing vertical tabs.
* ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
2004-11-09 Jackson Harper <jackson@ximian.com>
* TabControl.cs: Calculate sizing and rects for left aligned tabs.
* ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
and Bottom, left and right are illegal values for this and
multiline is enabled when the alignment is set to left or right.
(DrawTab): Each alignment block should draw the text itself now
because Left requires special love. Also add rendering for Left
aligned tabs.
2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
* Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
does not destroy the windows, removes debugging messages
2004-11-09 jba <jba-mono@optusnet.com.au>
* ThemeWin32Classic.cs
(DrawButtonBase): Fix verticle text rect clipping in windows
(DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
rendering and incorrect text rect clipping
(DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
rendering and incorrect text rect clipping
2004-11-08 Jackson Harper <jackson@ximian.com>
* ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
bottom when they are bottom aligned so the bottoms of the tabs get
displayed.
* TabControl.cs (DropRow): Move rows up instead of down when the
tab control is bottom aligned.
2004-11-08 13:59 pbartok
* XplatUIX11.cs:
- Added handling for various window styles
- Added handling for popup windows
- Added SetTopmost handling
2004-11-08 13:55 pbartok
* XplatUIWin32.cs:
- Added argument to SetTopmost method
- Fixed broken ClientToScreen function
2004-11-08 13:53 pbartok
* XplatUIStructs.cs:
- Added missing WS_EX styles
2004-11-08 13:53 pbartok
* XplatUI.cs, XplatUIDriver.cs:
- Added argument to SetTopmost
2004-11-08 13:52 pbartok
* X11Structs.cs:
- Added XSetWindowAttributes structure
- Improved XWindowAttributes structure
- Added SetWindowValuemask enum
- Added window creation arguments enum
- Added gravity enum
- Added Motif hints structure
- Added various Motif flags and enums
- Added PropertyMode enum for property functions
2004-11-08 13:50 pbartok
* Form.cs:
- Fixed arguments for updated SetTopmost method
2004-11-08 13:49 pbartok
* ToolTip.cs:
- Fixed arguments for updated SetTopmost function
- Fixed usage of PointToClient
2004-11-08 13:44 pbartok
* MenuAPI.cs:
- Added Clipping of children and siblings
2004-11-08 13:41 pbartok
* MainMenu.cs:
- Removed SetMenuBarWindow call. We do this in Form.cs
2004-11-08 13:40 jackson
* TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
scrolling jimmi in the correct location with bottom aligned tabs
2004-11-08 13:36 pbartok
* ContainerControl.cs:
- Implemented BindingContext
- Implemented ParentForm
2004-11-08 12:46 jackson
* TabControl.cs: Put bottom rendered tabs in the right location
2004-11-08 07:15 jordi
* ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
removes dead code
2004-11-05 17:30 jackson
* TabControl.cs: When selected tabs are expanded make sure they
don't go beyond the edges of the tab control
2004-11-05 14:57 jackson
* TabControl.cs: Reset show_slider so if the control is resized to
a size where it is no longer needed it's not displayed anymore
2004-11-05 13:16 jackson
* TabControl.cs: Make tab pages non visible when added to the
control
2004-11-05 12:42 jackson
* TabControl.cs: Implement SizeMode.FillToRight
2004-11-05 12:16 jackson
* Control.cs: Do not call CreateHandle if the handle is already
created
2004-11-05 11:46 jackson
* TabControl.cs: Remove superflous call to CalcTabRows
2004-11-05 09:07 jackson
* XplatUIX11.cs: Update for Mono.Posix changes
2004-11-05 07:00 ravindra
* ListView.cs, ListViewItem.cs: Implemented some methods and fixed
scrolling.
2004-11-04 22:47 jba
* ThemeWin32Classic.cs:
- Fix Button rendering for FlatStyle = Flat or Popup
- Fix RadioButton and CheckBox rendering when Appearance = Button
(normal and flatstyle).
- Correct outer rectangle color when drawing focus rectangle
- Adjust button bounds to be 1 px smaller when focused
- Make button not draw sunken 3d border when pushed (windows compat)
- Fix CPDrawBorder3D to not make bottom right hand corner rounded
- Offset the text in RadioButton and Checkbox when being rendered as
a button.
- Hover and Click behaviour for Colored FlatStyle.Flat and Popup
radiobuttons
- Fixed disabled rendering for colored flatstyle radiobuttons (both)
- Fixed disabled text rendering for normally rendered radiobuttons
2004-11-04 10:26 jackson
* TabControl.cs: Recalculate tab rows when resizing
2004-11-04 07:47 jordi
* Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
collection completion, drawing issues, missing features
2004-11-04 05:03 ravindra
* ScrollBar.cs:
- We need to recalculate the Thumb area when
LargeChange/maximum/minimum values are changed.
- We set the 'pos' in UpdatePos() method to minimum, if it's less
than minimum. This is required to handle the case if large_change is
more than max, and use LargeChange property instead of large_change
variable.
- We return max+1 when large_change is more than max, like MS does.
2004-11-04 04:29 ravindra
* ColumnHeader.cs, ListView.cs, ListViewItem.cs:
- Changed default value signatures (prefixed all with ListView).
- Fixed/implemented layout LargeIcon, SmallIcon and List views for
ListView.
- Fixed calculations for ListViewItem and implemented Clone()
method.
2004-11-04 04:26 ravindra
* Theme.cs, ThemeWin32Classic.cs:
- Changed default ListView values signatures (prefixed all with
ListView).
- Fixed default size values for VScrollBar and HScrollBar.
- Fixed DrawListViewItem method.
2004-11-04 04:05 ravindra
* ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
2004-11-04 04:04 ravindra
* ImageList.cs: Implemented the missing overload for Draw method.
2004-11-03 19:29 jackson
* TabControl.cs: Handle dropping rows on selection properly
2004-11-03 11:59 jackson
* TabControl.cs: remove debug code
2004-11-03 11:52 jackson
* TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
the scrolly widgerywoo
2004-11-02 13:52 jackson
* TabControl.cs: Resize the tab pages and tabs when the tab control
is resized
2004-11-02 13:40 jackson
* TabControl.cs, ThemeWin32Classic.cs: Move the row with the
selected tab to the bottom
2004-11-02 13:39 jackson
* TabPage.cs: Store the tab pages row
2004-11-02 12:33 jordi
* MenuItem.cs: fixes handle creation
2004-11-02 11:42 jackson
* TabControl.cs: signature fix
2004-11-02 08:56 jackson
* TabControl.cs: Calculate whether the tab is on an edge properly.
Remove top secret debugging code
2004-11-01 19:57 jackson
* TabControl.cs: Add click handling, and proper sizing
2004-11-01 19:47 jackson
* Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
tab controls
2004-11-01 19:39 jackson
* TabPage.cs: add internal property to store the bounds of a tab
page
2004-10-30 04:23 ravindra
* Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
values.
2004-10-30 04:21 ravindra
* ListView.cs, ListViewItem.cs: Added support for scrolling and
fixed calculations.
2004-10-30 03:06 pbartok
* XplatUIX11.cs:
- Removed extension of DllImported libs
2004-10-29 09:55 jordi
* Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
navigation, itemcollection completion, menu fixes
2004-10-27 22:58 pbartok
* XplatUIX11.cs:
- Now throws a nice error message when no X display could be opened
2004-10-26 13:51 jordi
* ListView.cs: removes warning
2004-10-26 03:55 ravindra
* ColumnHeader.cs, ListView.cs, ListViewItem.cs,
ThemeWin32Classic.cs: Some formatting for my last checkins.
2004-10-26 03:36 ravindra
* ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
control and default values.
2004-10-26 03:35 ravindra
* Theme.cs: Added some default values for ListView control.
2004-10-26 03:33 ravindra
* ToolBar.cs: ToolBar should use the user specified button size, if
there is any. Added a size_specified flag for the same.
2004-10-26 03:33 ravindra
* ColumnHeader.cs: Added some internal members and calculations for
ColumnHeader.
2004-10-26 03:32 ravindra
* ListViewItem.cs: Calculations for ListViewItem.
2004-10-26 03:31 ravindra
* ListView.cs: Added some internal members and calculations for
ListView.
2004-10-22 13:31 jordi
* MenuAPI.cs: speedup menus drawing
2004-10-22 13:16 jackson
* XplatUIX11.cs: Make sure to update exposed regions when adding an
expose event
2004-10-22 11:49 jackson
* Control.cs: oops
2004-10-22 11:41 jackson
* Control.cs: Check to see if the window should have its background
repainted by X when drawing.
2004-10-22 11:31 jackson
* XplatUIX11.cs: When invalidating areas only use XClearArea if
clear is true, this way we do not get flicker from X repainting the
background
2004-10-22 11:28 jackson
* XEventQueue.cs: Queue properly
2004-10-21 09:38 jackson
* XEventQueue.cs: Fix access modifier
2004-10-21 09:36 jackson
* XEventQueue.cs: Don't loose messages
2004-10-21 09:22 jackson
* XEventQueue.cs: Don't loose messages
2004-10-20 04:15 jordi
* BootMode.cs: enum need it by SystemInfo
2004-10-19 21:58 pbartok
* XplatUIWin32.cs:
- Small sanity check
2004-10-19 21:56 pbartok
* Form.cs:
- Added private FormParentWindow class which acts as the container
for our form and as the non-client area where menus are drawn
- Added/Moved required tie-ins to Jordi's menus
- Fixed/Implemented the FormStartPosition functionality
2004-10-19 21:52 pbartok
* Control.cs:
- Removed unneeded locals
- Added code to all size and location properties to understand and
deal with the parent container of Form
2004-10-19 21:33 pbartok
* Application.cs:
- Fixed to deal with new Form subclasses for menus
2004-10-19 17:48 jackson
* XEventQueue.cs: commit correct version of file
2004-10-19 16:50 jackson
* XEventQueue.cs, XplatUIX11.cs: New optimized event queue
2004-10-19 16:15 jordi
* MenuAPI.cs: MenuBarCalcSize returns the height
2004-10-19 08:31 pbartok
* Control.cs:
- Added missing call to PreProcessMessage before calling OnXXXKey
methods
2004-10-19 00:04 ravindra
* ToolTip.cs: Fixed constructor.
2004-10-18 09:31 jordi
* MenuAPI.cs: menuitems in menubars do not have shortcuts
2004-10-18 09:26 jordi
* MenuItem.cs: fixes MenuItem class signature
2004-10-18 08:56 jordi
* MenuAPI.cs: prevents windows from showing in the taskbar
2004-10-18 00:28 ravindra
* ToolTip.cs: Suppressed a warning message.
2004-10-18 00:27 ravindra
* Control.cs: Default value of visible property must be true.
2004-10-17 23:19 pbartok
* ToolTip.cs:
- Complete implementation
2004-10-17 23:19 pbartok
* XplatUIX11.cs:
- Added EnableWindow method
- Added SetModal stub
- Added generation of WM_ACTIVATE message (still needs testing)
- Added SetTopMost stub
- Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
2004-10-17 23:17 pbartok
* XplatUIWin32.cs:
- Removed VirtualKeys to XplatUIStructs
- Implemented SetTopMost method
- Implemented EnableWindow method
- Bugfix in ScreenToClient()
- Bugfixes in ClientToScreen()
2004-10-17 22:51 pbartok
* XplatUIStructs.cs:
- Added WS_EX styles to WindowStyles enumeration
2004-10-17 22:50 pbartok
* XplatUI.cs, XplatUIDriver.cs:
- Added method for enabling/disabling windows
- Added method for setting window modality
- Added method for setting topmost window
2004-10-17 22:49 pbartok
* ThemeWin32Classic.cs:
- Added ToolTip drawing code
2004-10-17 22:49 pbartok
* Theme.cs:
- Added ToolTip abstracts
2004-10-17 22:47 pbartok
* Form.cs:
- Fixed Form.ControlCollection to handle owner relations
- Added Owner/OwnedForms handling
- Implemented Z-Ordering for owned forms
- Removed unneeded private overload of ShowDialog
- Fixed ShowDialog, added the X11 incarnation of modal handling (or
so I hope)
- Fixed Close(), had wrong default
- Added firing of OnLoad event
- Added some commented out debug code for Ownership handling
2004-10-17 22:16 pbartok
* Control.cs:
- Fixed/implemented flat list of controls
2004-10-17 22:14 pbartok
* Application.cs:
- Added code to simulate modal dialogs on Win32
2004-10-17 16:11 jordi
* ScrollBar.cs: disabled scrollbar should not honor any keyboard or
mouse event
2004-10-17 13:39 jordi
* MenuAPI.cs: menu drawing fixes
2004-10-15 09:10 ravindra
* StructFormat.cs: General Enum.
2004-10-15 09:09 ravindra
* SizeGripStyle.cs: Enum for Form.
2004-10-15 09:08 ravindra
* Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
in Theme for ListView.
2004-10-15 09:06 ravindra
* ColumnHeader.cs: Flushing some formatting changes.
2004-10-15 09:05 ravindra
* ListViewItem.cs: Implemented GetBounds method and fixed coding
style.
2004-10-15 09:03 ravindra
* ListView.cs: Implemented Paint method and fixed coding style.
2004-10-15 07:34 jordi
* MenuAPI.cs: fix for X11
2004-10-15 07:32 ravindra
* ButtonBase.cs, CheckBox.cs, RadioButton.cs:
- Renamed Paint() method to Draw() for clarity. Also, moved
DrawImage() to OnPaint().
2004-10-15 07:25 ravindra
* CheckBox.cs, RadioButton.cs:
- Removed Redraw (), we get it from ButtonBase.
- Implemented Paint (), to do class specific painting.
2004-10-15 07:16 ravindra
* ButtonBase.cs:
- Redraw () is not virtual now.
- Added an internal virtual method Paint (), so that
derived classes can do their painting on their own.
- Modified OnPaint () to call Paint ().
2004-10-15 06:43 jordi
* ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
2004-10-15 00:30 ravindra
* MessageBox.cs:
- MessageBox on windows does not have min/max buttons.
This change in CreateParams fixes this on Windows. We
still need to implement this windowstyle behavior in
our X11 driver.
2004-10-14 05:14 ravindra
* ToolBar.cs:
- Changed Redraw () to do a Refresh () always.
- Fixed the MouseMove event handling when mouse is pressed,
ie drag event handling.
- Replaced the usage of ToolBarButton.Pressed property to
ToolBarButton.pressed internal variable.
2004-10-14 05:10 ravindra
* ToolBarButton.cs:
- Added an internal member 'inside' to handle mouse move
with mouse pressed ie mouse drag event.
- Changed 'Pressed' property to return true only when
'inside' and 'pressed' are both true.
- Some coding style love.
2004-10-14 00:17 ravindra
* Form.cs: Fixed class signature. ShowDialog (Control) is not a
public method.
2004-10-14 00:15 ravindra
* ButtonBase.cs: Redraw () related improvements.
2004-10-14 00:14 ravindra
* MessageBox.cs: Moved InitFormSize () out of Paint method and
removed unnecessary calls to Button.Show () method.
2004-10-13 17:50 pbartok
* XplatUIX11.cs:
- Formatting fix
- Removed destroying of window until we solve the problem of X
destroying the window before us on shutdown
2004-10-13 16:32 pbartok
* ButtonBase.cs:
- Now Redraws on MouseUp for FlatStyle Flat and Popup
2004-10-13 14:18 pbartok
* XplatUIX11.cs:
- Added code to destroy the X window
2004-10-13 14:18 pbartok
* XplatUIWin32.cs:
- Added code to destroy a window
2004-10-13 14:12 pbartok
* ButtonBase.cs:
- Added the Redraw on Resize that got dropped in the last rev
2004-10-13 09:06 pbartok
* ThemeWin32Classic.cs:
- Path from John BouAntoun:
* Fix check rendering (centre correctly for normal style, offset
correctly for FlatStyle).
* Fix border color usage (use backcolor) for FlatStyle.Popup
* Use checkbox.Capture instead of checkbox.is_pressed when
rendering flatstyle states.
2004-10-12 21:48 pbartok
* ThemeWin32Classic.cs:
- Removed all occurences of SystemColors and replaced them with the
matching theme color
2004-10-12 21:41 pbartok
* ThemeWin32Classic.cs:
- From John BouAntoun: Added an overload to CPDrawBorder3D to allow
him using the function for flatstyle drawing
- Changed functions to use the new version of CPDrawBorder3D
2004-10-12 21:15 pbartok
* ControlPaint.cs:
- Fixed Dark(), DarkDark(), Light() and LightLight() methods to
match MS documentation. They need to return defined colors if the
passed color matches the configured control color. Thanks to John
BouAntoun for pointing this out.
2004-10-12 20:57 pbartok
* Control.cs:
- Fix from John BouAntoun: Raise ForeColorChanged event when text
color is changed
2004-10-12 20:46 pbartok
* CheckBox.cs:
- Fix from John BouAntoun: Now properly sets the Appearance property
2004-10-12 20:45 pbartok
* ThemeWin32Classic.cs:
- Fixes from John BouAntoun: now handles forecolors and backcolors
for flatstyle rendered controls much better; It also fixes normal
checkbox rendering when pushed or disabled.
2004-10-08 02:50 jordi
* Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
work
2004-10-07 08:56 jordi
* ThemeWin32Classic.cs: Removes deletion of cached brushes
2004-10-06 03:59 jordi
* Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
XplatUIWin32.cs: removes warnings from compilation
2004-10-05 12:23 jackson
* RadioButton.cs: Fix ctor
2004-10-05 11:10 pbartok
* MessageBox.cs:
- Partial implementation by Benjamin Dasnois
2004-10-05 10:15 jackson
* ThemeWin32Classic.cs: Improve rendering of the radio button patch
by John BouAntoun
2004-10-05 03:07 ravindra
* ToolBar.cs:
- Removed a private method, Draw ().
- Fixed the ButtonDropDown event handling.
- Fixed MouseMove event handling.
2004-10-05 03:04 ravindra
* ThemeWin32Classic.cs:
- Added DrawListView method and ListViewDefaultSize property.
- Changed ControlPaint method calls to CPDrawXXX wherever possible.
- Changed DOS style CRLF to Unix format (dos2unix).
2004-10-05 03:03 ravindra
* Theme.cs:
- Added DrawListView method and ListViewDefaultSize property.
2004-10-05 02:42 ravindra
* ToolBarButton.cs: Added an internal member dd_pressed to handle
clicks on DropDown arrow.
2004-10-04 22:56 jackson
* ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
Control handle the buffers, derived classes should not have to
CreateBuffers themselves.
2004-10-04 21:20 jackson
* StatusBar.cs: The control handles resizing the buffers now.
2004-10-04 21:18 jackson
* Control.cs: When resizing the buffers should be invalidated. This
should be handled in Control not in derived classes.
2004-10-04 14:45 jackson
* TabPage.cs: oops
2004-10-04 02:14 pbartok
* LeftRightAlignment.cs:
- Initial check-in
2004-10-04 01:09 jordi
* ThemeWin32Classic.cs: fixes right button position causing right
button not showing on horizontal scrollbars
2004-10-02 13:12 pbartok
* XplatUIX11.cs:
- Simplified the Invalidate method by using an X call instead of
generating the expose ourselves
- Added an expose when the window background is changed
- Implemented ClientToScreen method
2004-10-02 13:08 pbartok
* XplatUIWin32.cs:
- Added Win32EnableWindow method (test for implementing modal
dialogs)
- Added ClientToScreen method and imports
2004-10-02 13:07 pbartok
* XplatUI.cs, XplatUIDriver.cs:
- Added ClientToScreen coordinate translation method
2004-10-02 13:06 pbartok
* KeyPressEventArgs.cs:
- Fixed access level for constructor
2004-10-02 13:06 pbartok
* NativeWindow.cs:
- Changed access level for the window_collection hash table
2004-10-02 13:05 pbartok
* Form.cs:
- Added KeyPreview property
- Added Menu property (still incomplete, pending Jordi's menu work)
- Implemented ProcessCmdKey
- Implemented ProcessDialogKey
- Implemented ProcessKeyPreview
2004-10-02 13:02 pbartok
* Control.cs:
- Added private method to get the Control object from the window
handle
- Implemented ContextMenu property
- Implemented PointToScreen
- Implemented PreProcessMessage
- Implemented IsInputChar
- Implemented IsInputKey
- Implemented ProcessCmdKey
- Completed ProcessKeyEventArgs
- Fixed message loop to call the proper chain of functions on key
events
- Implemented ProcessDialogChar
- Implemented ProcessDialogKey
- Implemented ProcessKeyMessage
- Implemented ProcessKeyPreview
- Added RaiseDragEvent stub (MS internal method)
- Added RaiseKeyEvent stub (MS internal method)
- Added RaiseMouseEvent stub (MS Internal method)
- Added RaisePaintEvent stub (MS Internal method)
- Added ResetMouseEventArgs stub (MS Internal method)
- Implemented RtlTranslateAlignment
- Implemented RtlTranslateContent
- Implemented RtlTranslateHorizontal
- Implemented RtlTranslateLeftRight
- Added generation of KeyPress event
2004-10-02 05:57 ravindra
* ListViewItem.cs: Added attributes.
2004-10-02 05:32 ravindra
* ListView.cs: Added attributes.
2004-10-01 11:53 jackson
* Form.cs: Implement the Close method so work on MessageBox can
continue.
2004-09-30 14:06 pbartok
* XplatUIX11.cs:
- Bug fixes
2004-09-30 11:34 jackson
* RadioButton.cs: Fix typo. Patch by John BouAntoun.
2004-09-30 07:26 ravindra
* ListViewItemConverter.cs: Converter for ListViewItem.
2004-09-30 07:26 ravindra
* SortOrder.cs: Enum for ListView control.
2004-09-30 07:25 ravindra
* ColumnHeader.cs: Supporting class for ListView control.
2004-09-30 07:24 ravindra
* ListView.cs, ListViewItem.cs: Initial implementation.
2004-09-30 07:20 ravindra
* ItemActivation.cs: Enum for ListView Control.
2004-09-29 20:29 pbartok
* XplatUIX11.cs:
- Added lookup of pixel value for background color; tries to get a
color 'close' to the requested color, it avoids having to create a
colormap. Depending on the display this could mean the used color
is slightly off the desired color. Might have to change it to a more
resource intensive colormap approach, but it will work as a
workaround to avoid red screens.
2004-09-29 14:27 jackson
* XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
2004-09-28 12:44 pbartok
* ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
TrackBar.cs, VScrollBar.cs:
- Streamlined Theme interfaces:
* Each DrawXXX method for a control now is passed the object for
the control to be drawn in order to allow accessing any state the
theme might require
* ControlPaint methods for the theme now have a CP prefix to avoid
name clashes with the Draw methods for controls
* Every control now retrieves it's DefaultSize from the current
theme
2004-09-28 12:17 jackson
* Button.cs: Do not redraw OnClick MouseUp/Down will handle the
drawing
2004-09-24 14:57 jackson
* XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
Gives us a nice little performance boost.
2004-09-24 12:02 jackson
* TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
Control and supporting classes. Initial checkin
2004-09-23 13:08 jackson
* Form.cs: Temp build fixage
2004-09-23 01:39 ravindra
* ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
ItemDragEventArgs.cs, ItemDragEventHandler.cs,
LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
EventHandlers needed by ListView Control.
2004-09-22 14:12 pbartok
* ScrollableControl.cs:
- Implemented DockPadding property
- Implemented AutoScroll property
- Implemented AutoScrollMargin property
- Implemented AutoScrollMinSize property
- Implemented AutoScrollPosition property
- Implemented DisplayRectangle property (still incomplete)
- Implemented CreateParams property
- Implemented HScroll property
- Implemented VScroll property
- Implemented OnVisibleChanged property
2004-09-22 14:09 pbartok
* Form.cs:
- Added Form.ControllCollection class
- Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
RemoveOwnedForm (still incomplete, missing on-top and common
minimize/maximize behaviour)
- Added StartPosition property (still incomplete, does not use when
creating the form)
- Added ShowDialog() methods (still incomplete, missing forcing the
dialog modal)
2004-09-22 14:05 pbartok
* Application.cs:
- Added message loop for modal dialogs
2004-09-22 14:02 pbartok
* GroupBox.cs:
- Fixed wrong types for events
2004-09-22 14:00 pbartok
* Shortcut.cs, FormWindowState.cs:
- Fixed wrong values
2004-09-22 12:01 jackson
* Control.cs: Text is never null
2004-09-20 22:14 pbartok
* XplatUIWin32.cs:
- Fixed accessibility level for Idle handler
2004-09-20 18:54 jackson
* Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
XplatUIX11.cs: New message loop that uses poll so we don't get a
busy loop
2004-09-17 10:43 pbartok
* ScrollBar.cs:
- Fixed behaviour of arrow buttons. Now properly behaves like
Buttons (and like Microsoft's scrollbar arrow buttons)
2004-09-17 10:14 pbartok
* ScrollBar.cs:
- Added missing release of keyboard/mouse capture
2004-09-17 06:18 jordi
* ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
Theme.cs: Very early menu support
2004-09-16 17:45 pbartok
* XplatUIWin32.cs:
- Fixed sending a window to the front
- Added overload for SetWindowPos to avoid casting
2004-09-16 17:44 pbartok
* Control.cs:
- Added SendToBack and BringToFront methods
2004-09-16 07:00 ravindra
* Copyright: Added Novell URL.
2004-09-16 07:00 ravindra
* ToolBar.cs: Invalidate should be done before redrawing.
2004-09-15 21:19 ravindra
* ColumnHeaderStyle.cs: Enum for ListView Control.
2004-09-15 21:18 ravindra
* ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
ListView Control.
2004-09-13 18:26 jackson
* Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
properly
2004-09-13 18:13 jackson
* Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
a second thread and post messages into the main threads message
queue. This makes timing much more consistent. Both win2K and XP
have a minimum timer value of 15 milliseconds, so we now do this
too.
2004-09-13 15:18 pbartok
* X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
XplatUIX11.cs:
- Added Z-Ordering methods
2004-09-13 10:56 pbartok
* Form.cs:
- Fixed #region names
- Moved properties and methods into their proper #regions
2004-09-13 10:51 pbartok
* Form.cs:
- Added Accept and CancelButton properties
- Added ProcessDialogKey() method
2004-09-13 08:18 pbartok
* IWindowTarget.cs:
- Initial check-in
2004-09-10 21:50 pbartok
* Control.cs:
- Added DoDragDrop() [incomplete]
- Properly implemented 'Visible' handling
- Added SetVisibleCore()
- Implemented FindChildAtPoint()
- Implemented GetContainerControl()
- Implemented Hide()
2004-09-10 19:28 pbartok
* Control.cs:
- Moved methods into their appropriate #regions
- Reordered methods within regions alphabetically
2004-09-10 18:57 pbartok
* XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
- Added method to retrieve text from window
2004-09-10 18:56 pbartok
* Control.cs:
- Moved some internal functions into the internal region
- Implemented FontHeight
- Implemented RenderRightToLeft
- Implemented ResizeRedraw
- Implemented ShowFocusCues
- Implemented ShowKeyboardCues
- Implemented FromChildHandle
- Implemented FromHandle
- Implemented IsMnemonic
- Implemented ReflectMessage
- All public and protected Static Methods are now complete
2004-09-10 16:54 pbartok
* Control.cs:
- Implemented remaining missing public instance properties
- Alphabetized some out of order properties
2004-09-10 05:51 ravindra
* PictureBox.cs: Added a check for null image.
2004-09-10 00:59 jordi
* GroupBox.cs: remove cvs tag
2004-09-09 05:25 ravindra
* ToolBar.cs: Make redraw accessible from ToolBarButton.
2004-09-09 05:23 ravindra
* ToolBarButton.cs: Changes in ToolBarButton need to make it's
parent redraw.
2004-09-09 02:28 pbartok
* ThemeWin32Classic.cs:
- Improve disabled string look
2004-09-09 01:15 jordi
* MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
args and handler
2004-09-08 23:56 ravindra
* ItemBoundsPortion.cs: It's enum, not a class!
2004-09-08 23:47 ravindra
* FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
Enums for Form.
2004-09-08 21:13 ravindra
* ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
ListView control.
2004-09-08 21:03 ravindra
* ThemeWin32Classic.cs: PictureBox would not draw a null image to
avoid crash.
2004-09-08 21:01 ravindra
* ScrollableControl.cs: Removed unreachable code.
2004-09-08 06:45 jordi
* MenuMerge.cs, Shortcut.cs: enumerations need it by menus
2004-09-08 01:00 jackson
* XplatUIX11.cs: Only run the timers when updating the message
queue. This effectively gives X messages a higher priority then
timer messages. Timers still need love though
2004-09-07 14:01 jackson
* XplatUIX11.cs: Do not call XDestroyWindow, X has already done
this for us and the handle is no longer valid.
2004-09-07 13:59 jackson
* HandleData.cs, XplatUIX11.cs: First steps towards a new X event
loop that manages to not crash. TODO: Add poll and cleanup timers
2004-09-07 11:12 jordi
* GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
2004-09-07 03:40 jordi
* Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
fixes, methods, multiple links
2004-09-06 06:55 jordi
* Control.cs: Caches ClientRectangle rectangle value
2004-09-05 02:03 jordi
* ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
certain situations
2004-09-04 11:10 jordi
* Label.cs: Refresh when font changed
2004-09-02 16:24 pbartok
* Control.cs:
- Added sanity check to creation of double buffer bitmap
2004-09-02 16:24 pbartok
* ButtonBase.cs:
- Fixed selection of text color
- Fixed handling of resize event; now properly recreates double
buffering bitmap
- Added missing assignment of TextAlignment
- Added proper default for TextAlignment
2004-09-02 14:26 pbartok
* RadioButton.cs:
- Added missing RadioButton.RadioButtonAccessibleObject class
2004-09-02 14:26 pbartok
* Control.cs:
- Added missing Control.ControlAccessibleObject class
- Started to implement Select()ion mechanisms, still very incomplete
2004-09-02 14:25 pbartok
* AccessibleObject.cs:
- Added missing methods
2004-09-02 14:23 pbartok
* AccessibleNavigation.cs, AccessibleSelection.cs:
- Initial check-in
2004-09-02 10:32 jordi
* Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
pool for pens, brushes, and hatchbruses
2004-09-01 15:30 jackson
* StatusBar.cs: Fix typo
2004-09-01 14:44 pbartok
* RadioButton.cs:
- Fixed state
2004-09-01 14:39 pbartok
* Button.cs, RadioButton.cs:
- Functional initial check-in
2004-09-01 14:01 pbartok
* CheckBox.cs:
- Added missing default
- Added missing region mark
2004-09-01 09:10 jordi
* Label.cs: fixes method signatures, new methods, events, fixes
autosize
2004-09-01 07:19 jordi
* Control.cs: Init string variables with an empty object
2004-09-01 04:20 jordi
* Control.cs: fires OnFontChanged event
2004-08-31 20:07 pbartok
* ButtonBase.cs:
- Enabled display of strings
2004-08-31 20:05 pbartok
* Form.cs:
- Added (partial) implementation of DialogResult; rest needs to be
implemented when the modal loop code is done
2004-08-31 19:55 pbartok
* CheckBox.cs:
- Fixed to match the removal of the needs_redraw concept
2004-08-31 19:55 pbartok
* ButtonBase.cs:
- Removed the rather odd split between 'needs redraw' and redrawing
- Now handles the events that require regeneration (ambient
properties and size)
2004-08-31 19:41 pbartok
* Control.cs:
- Added firing of BackColorChanged event
- Added TopLevelControl property
- Fixed handling of WM_ERASEBKGRND message
2004-08-31 12:49 pbartok
* ButtonBase.cs:
- Removed debug
- Minor fixes
2004-08-31 12:48 pbartok
* CheckBox.cs:
- Finished (famous last words)
2004-08-31 04:35 jordi
* ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
scrolling bugs, adds new methods
2004-08-30 14:42 pbartok
* CheckBox.cs:
- Implemented CheckBox drawing code
2004-08-30 14:42 pbartok
* ButtonBase.cs:
- Made Redraw() and CheckRedraw() virtual
- Improved mouse up/down/move logic to properly track buttons
2004-08-30 09:44 pbartok
* CheckBox.cs:
- Updated to fix broken build. Not complete yet.
2004-08-30 09:28 pbartok
* CheckState.cs:
- Initial checkin
2004-08-30 09:17 pbartok
* Appearance.cs:
- Initial check-in
2004-08-27 16:12 ravindra
* ToolBarButton.cs: Added TypeConverter attribute.
2004-08-27 16:07 ravindra
* ImageIndexConverter.cs: Implemented.
2004-08-27 14:17 pbartok
* Control.cs:
- Removed unneeded stack vars
- First attempt to fix sizing issues when layout is suspended
2004-08-25 15:35 jordi
* ScrollBar.cs: more fixes to scrollbar
2004-08-25 14:04 ravindra
* Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
Added the missing divider code and grip for ToolBar Control.
2004-08-25 13:20 pbartok
* Control.cs:
- Control now properly passes the ambient background color to child
controls
2004-08-25 13:20 jordi
* ScrollBar.cs: small bug fix regarding bar position
2004-08-25 12:33 pbartok
* Timer.cs:
- Now only calls SetTimer or KillTimer if the enabled state has
changed
2004-08-25 12:33 pbartok
* XplatUIWin32.cs:
- Fixed timer handling, now seems to work
- Improved error message for window creation
2004-08-25 12:32 pbartok
* Control.cs:
- Fixed generation of MouseUp message
2004-08-25 12:29 jordi
* ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
and fixes for progressbar
2004-08-24 18:43 ravindra
* ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
in ToolBar control.
2004-08-24 17:15 pbartok
* Panel.cs:
- Added #region
- Added missing events
- Alphabetized
2004-08-24 17:14 pbartok
* StatusBar.cs, PictureBox.cs:
- Now uses Control's CreateParams
2004-08-24 16:36 pbartok
* XplatUIX11.cs:
- Fixed background color handling
- Fixed sending of enter/leave events on a grab
2004-08-24 16:35 pbartok
* X11Structs.cs:
- Refined definitions for CrossingEvent
2004-08-24 12:37 jordi
* ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
formmating, methods signature, and adds missing events
2004-08-24 12:24 jordi
* Control.cs: fire OnEnabledChanged event
2004-08-24 11:17 pbartok
* XplatUIWin32.cs:
- Implemented SetTimer() and KillTimer()
2004-08-24 11:16 pbartok
* XplatUIX11.cs:
- Now uses Remove instead of Add to kill the timer
2004-08-24 10:16 jackson
* PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
picture boxes in the theme now. Draw picture box borders and obey
sizing modes
2004-08-24 05:49 jackson
* Timer.cs: Remove top secret debugging code
2004-08-24 05:34 jackson
* PictureBox.cs: Temp hack to make picture boxes draw their full
image
2004-08-24 05:29 jackson
* Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
XplatUIX11.cs: Move timers to the driver level. On X they are
queued by the driver and checked on idle.
2004-08-24 01:07 jackson
* XplatUIX11.cs: Use a queue for async messages instead of passing
them as ClientMessages since that was totally broken. Also simply
check for events and return an idle message if none are found. This
gives us an idle handler, and prevents deadlocking when no messages
are in the queue.
2004-08-23 18:19 ravindra
* XplatUIWin32.cs: Removed the unwanted destructor.
2004-08-23 17:27 pbartok
* ButtonBase.cs:
- Finishing touches. Works now, just needs some optimizations.
2004-08-23 16:53 jordi
* ScrollBar.cs: small fix
2004-08-23 16:45 pbartok
* Application.cs:
- Removed debug output
- Simplifications
2004-08-23 16:43 jordi
* ScrollBar.cs: [no log message]
2004-08-23 16:10 pbartok
* Form.cs:
- Fixed handling of WM_CLOSE message
- Removed debug output
2004-08-23 16:09 pbartok
* Application.cs:
- Added handling of Idle event
- Added handling of form closing
- Fixed reporting of MessageLoop property
- Removed some unneeded code, should provide a bit of a speedup
2004-08-23 15:22 pbartok
* Control.cs:
- Added InitLayout() method
- Added code to properly perform layout when Anchor or Dock property
is changed
- Changed 'interpretation' of ResumeLayout. MS seems to have a
LAMESPEC, tried to do it in a way that makes sense
2004-08-23 14:10 jordi
* HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
properties and methods
2004-08-23 13:55 pbartok
* Control.cs:
- Properly fixed Jordi's last fix
- Now uses Cursor's Position property instead of calling XplatUI
directly
2004-08-23 13:44 jordi
* PaintEventHandler.cs: Adding missing attribute
2004-08-23 13:39 pbartok
* Cursor.cs:
- Implemented Position property
2004-08-23 13:39 pbartok
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
- Added method to move mouse cursor
2004-08-23 13:39 pbartok
* XplatUIX11.cs:
- Fixed setting of background color
- Added method to move mouse cursor
2004-08-23 13:16 jordi
* Control.cs: avoids null exception
2004-08-22 17:46 jackson
* PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
PictureBox
2004-08-22 17:40 jackson
* XplatUIX11.cs: Add some missing locks
2004-08-22 15:10 pbartok
* Control.cs, Form.cs:
- Removed OverlappedWindow style from Control, instead it's default
now is child
- Made form windows OverlappedWindow by default
2004-08-22 13:34 jackson
* ScrollBar.cs: Update the position through the Value property so
the OnValueChanged event is raised.
2004-08-22 12:04 pbartok
* SWF.csproj:
- Added Cursor.cs and UserControl.cs
2004-08-22 12:03 pbartok
* Cursor.cs:
- Started implementation, not usable yet
2004-08-22 12:00 pbartok
* UserControl.cs:
- Implemented UserControl (complete)
2004-08-21 19:20 ravindra
* ToolBar.cs: Correcting the formatting mess of VS.NET.
2004-08-21 18:49 ravindra
* ToolBar.cs: Probably this completes the missing attributes in
toolbar control.
2004-08-21 18:03 ravindra
* ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
Fixed toolbar control signatures.
2004-08-21 16:32 pbartok
* LinkLabel.cs:
- Signature Fixes
2004-08-21 16:30 pbartok
* Label.cs:
- Signature fixes
2004-08-21 16:19 pbartok
* Control.cs, Label.cs:
- Signature fixes
2004-08-21 15:57 pbartok
* ButtonBase.cs:
- Added loads of debug output for development
- Fixed typo in method name
2004-08-21 15:52 pbartok
* ToolBarButtonClickEventArgs.cs:
- Added missing base class
2004-08-21 14:53 pbartok
* Control.cs:
- Updated to match new GrabWindow signature
2004-08-21 14:51 pbartok
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
- Added method to get default display size
2004-08-21 14:23 pbartok
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
- Added method to query current grab state
- Added argument to allow confining a grab to a window
2004-08-21 14:22 pbartok
* Keys.cs:
- Added [Flags] attribute so that modifiers can be used in bitwise
ops
2004-08-21 14:21 pbartok
* TrackBar.cs, ScrollBar.cs:
- Replaced direct XplatUI calls with their Control counterpart
2004-08-21 13:32 pbartok
* Control.cs:
- Implemented Created property
2004-08-21 13:28 pbartok
* Control.cs:
- Implemented ContainsFocus
2004-08-21 13:26 pbartok
* Control.cs:
- Implemented CausesValidation
2004-08-21 13:21 pbartok
* Control.cs:
- Implemented CanFocus
- Implemented CanSelect
- Implemented Capture
2004-08-21 12:35 pbartok
* XplatUIWin32.cs:
- Fixed bug with Async message handling
- Implemented getting the ModifierKeys
2004-08-21 12:32 jackson
* AsyncMethodResult.cs: Make sure we have the mutex before we
release it. Fixes BeginInvoke on windows
2004-08-21 11:31 pbartok
* XplatUIWin32.cs, XplatUIX11.cs:
- Drivers now return proper mouse state
2004-08-21 10:54 jackson
* Control.cs: Implement EndInvoke
2004-08-21 10:48 jackson
* Timer.cs: Remove unneeded finalizer
2004-08-20 19:52 ravindra
* ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
in mouse event handling in the ToolBar control.
2004-08-20 19:50 ravindra
* ImageList.cs: Changed draw method to use the arguments passed in
to draw the image.
2004-08-20 18:58 pbartok
* XplatUIStructs.cs:
- Added private message for async communication
2004-08-20 17:38 ravindra
* Control.cs: Made RightToLeft property virtual and removed a
Console.WriteLine.
2004-08-20 14:39 jordi
* ThemeGtk.cs: use style_attach
2004-08-20 14:39 pbartok
* XplatUIWin32.cs:
- Added jackson's Async code from X11 to Win32
2004-08-20 14:09 pbartok
* SWF.csproj:
- Added all new files
2004-08-20 14:09 pbartok
* Control.cs:
- Added call to set window background color
2004-08-20 14:03 pbartok
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
- Added method for setting the window background
2004-08-20 14:02 pbartok
* XplatUIWin32.cs:
- Added method for setting the background color
- Added handling for erasing the window background
2004-08-20 13:45 jordi
* TrackBar.cs: fixes timer, new properties and methods
2004-08-20 13:34 jackson
* ScrollBar.cs: Use the SWF timer so callbacks are run in the
correct thread
2004-08-20 13:22 jackson
* Timer.cs: Timer Tick events are now handed through Controls Async
mechanism so the callbacks are executed in the same thread as X
2004-08-20 13:19 jackson
* XplatUIDriver.cs: Expose functionality to send async messages
through the driver
2004-08-20 13:18 jackson
* Control.cs: Implement Begininvoke
2004-08-20 13:14 jackson
* XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
messages through the driver
2004-08-20 13:12 jackson
* XplatUIX11.cs: Lock before all X operations. Also added Async
method functionality through XSendEvent
2004-08-20 13:11 jackson
* X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
This will screw up on 64 bit systems)
2004-08-20 13:10 jackson
* AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
Async messages through X/Win32
2004-08-19 19:39 pbartok
* XplatUIX11.cs:
- Updated code to match new HandleData.DeviceContext type
2004-08-19 19:38 pbartok
* HandleData.cs:
- Made DeviceContext a generic object to allow usage from various
drivers
- Added support for queueing Windows messages
2004-08-19 19:37 pbartok
* XplatUIWin32.cs:
- Added generation of MouseEnter, MouseLeave and MouseHover events
- Added cleanup on EndPaint
2004-08-19 19:17 pbartok
* Control.cs:
- Added handling of WM_MOUSEHOVER
- Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
code
2004-08-19 18:55 jordi
* ThemeGtk.cs: fixes button order
2004-08-19 18:12 jordi
* Theme.cs, ThemeWin32Classic.cs: fixes methods signature
2004-08-19 17:09 pbartok
* Control.cs:
- Added Right property
- Added RightToLeft property
2004-08-19 16:27 jordi
* ThemeGtk.cs: experimental GTK theme support
2004-08-19 16:26 jordi
* ITheme.cs, Theme.cs: move themes from an interface to a class
2004-08-19 16:25 jordi
* Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
theme enhancaments
2004-08-19 16:04 pbartok
* XplatUIX11.cs:
- Added colormap basics
- Added a way to re-initialize with a different display handle
- Fixed setting of the window background color
- Added various X11 imports related to colors and colormaps
2004-08-19 15:51 pbartok
* X11Structs.cs:
- Removed packing hints (Paolo suggested this a while back)
- fixed colormap type
- Added default Atom types
- Added Screen and color structs and enums
2004-08-19 15:39 pbartok
* ImageList.cs:
- Added missing Draw() method
- Added missing RecreateHandle event
2004-08-19 15:30 pbartok
* Form.cs:
- Added handling of WM_CLOSE
2004-08-18 13:16 jordi
* ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
a table
2004-08-18 09:56 jordi
* ScrollBar.cs: fixes to scrollbar: steps and multiple timers
2004-08-17 15:31 ravindra
* SWF.csproj: Updated project.
2004-08-17 15:25 pbartok
* Control.cs:
- Drawing improvement; don't call UpdateBounds if we are not visible
(or have been minimized)
2004-08-17 15:24 pbartok
* XplatUIWin32.cs:
- Finished IsVisible
- Added Win32GetWindowPlacement
2004-08-17 15:08 jackson
* Panel.cs: Initial checkin of the Panel
2004-08-17 14:25 pbartok
* Control.cs:
- Fixed broken handling of default window sizes
2004-08-17 13:29 jackson
* ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
has a large startup time.
2004-08-17 10:25 jackson
* HandleData.cs: union areas properly
2004-08-17 10:12 jackson
* HandleData.cs: union areas properly
2004-08-16 20:00 ravindra
* ToolBar.cs, ToolBarButton.cs: Added attributes.
2004-08-16 18:48 ravindra
* ToolBar.cs: Added attributes.
2004-08-16 17:17 ravindra
* SWF.csproj: Updated project.
2004-08-16 17:16 jackson
* XplatUIX11.cs: Check for more expose events before sending a
WM_PAINT so they can all be grouped together. This makes dragging a
window across another window redraw in a sane way.
2004-08-16 15:47 pbartok
* Control.cs:
- Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
support OnMouseEnter/Leave()
- Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
exposure handling
2004-08-16 15:46 pbartok
* XplatUIStructs.cs, XplatUIX11.cs:
- Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
OnMouseEnter/Leave()
2004-08-16 15:34 jackson
* XplatUIX11.cs: Group multiple expose events in HandleData, make
sure messages get the message field set to WM_NULL if they are not
handled.
2004-08-16 15:24 jackson
* HandleData.cs: HandleData is used for storing message information
for window handles
2004-08-15 17:23 ravindra
* ColorDepth.cs: Added attribute.
2004-08-15 17:23 ravindra
* SWF.csproj: Updated project for ToolBar Control.
2004-08-15 17:20 ravindra
* ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
control and also dos2unix format.
2004-08-15 17:13 ravindra
* ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
ToolBarButtonClickEventArgs.cs,
ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
ToolBarTextAlign.cs: First Implementation of ToolBar control.
2004-08-15 15:31 pbartok
* ButtonBase.cs:
- First (mostly) working version
2004-08-13 16:15 pbartok
* Control.cs:
- Fixed Anchor default
2004-08-13 15:43 pbartok
* Control.cs:
- Changed GetCursorPos signature
2004-08-13 15:42 pbartok
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
- Changed signature for GetCursorPos
2004-08-13 15:25 pbartok
* XplatUIX11.cs:
- Cleanup
- Fixed resizing/exposure handling
2004-08-13 15:22 jordi
* ThemeWin32Classic.cs: removes redundant code and fixes issues
with tickposition
2004-08-13 14:55 jordi
* TrackBar.cs: change from wndproc to events
2004-08-13 13:00 jordi
* Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
XplatUIX11.cs: implements PointToClient (ScreenToClient)
2004-08-13 12:53 pbartok
* XplatUIWin32.cs:
- Changed GetWindowPos to also provide client area size
- Fixed broken prototypes for several win32 functions
2004-08-13 12:53 pbartok
* XplatUI.cs, XplatUIDriver.cs:
- Changed GetWindowPos to also provide client area size
2004-08-13 12:52 pbartok
* XplatUIX11.cs:
- Added generation of WM_POSCHANGED
- Changed GetWindowPos to also provide client area size
2004-08-13 12:52 pbartok
* Control.cs:
- Added Dispose() and destructor
- Fixed resizing and bounds calculation
- Fixed Layout
- Added memory savings for invisible windows
2004-08-13 12:46 jordi
* TrackBar.cs: adds timer and grap window
2004-08-13 10:25 jackson
* Timer.cs: SWF Timer
2004-08-12 16:59 pbartok
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
- Implemented method to get current mouse position
2004-08-12 14:29 jordi
* ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
enhancement, fix mouse problems, highli thumb, etc
2004-08-12 13:31 pbartok
* Control.cs:
- Fixed Anchoring bugs
2004-08-12 13:01 jackson
* StatusBar.cs: Don't forget things
2004-08-12 12:54 jackson
* ThemeWin32Classic.cs: Handle owner draw status bars
2004-08-12 12:54 jackson
* StatusBar.cs: Implement missing properties, events, and methods.
Handle mouse clicking
2004-08-12 10:19 jackson
* StatusBarPanelClickEventArgs.cs,
StatusBarPanelClickEventHandler.cs: Classes for handling status
bar panel click events
2004-08-12 10:10 jackson
* Control.cs: Add missing properties
2004-08-12 09:46 pbartok
* BindingsManagerBase.cs:
- Name changed to BindingManagerBase.cs
2004-08-12 09:25 jordi
* ScrollableControl.cs: calls ctrlbase instead of exeception
2004-08-11 16:28 pbartok
* InputLanguageChangingEventArgs.cs:
- Never check in before compiling. Fixes the last check-in
2004-08-11 16:26 pbartok
* InputLanguageChangingEventArgs.cs:
- More signature fixes
2004-08-11 16:20 pbartok
* BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
ImageListStreamer.cs, InputLanguage.cs,
InputLanguageChangedEventArgs.cs,
InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
- Signature fixes
2004-08-11 16:16 pbartok
* Application.cs:
- Fixed Signature
- Added .Net 1.1 method
2004-08-11 15:25 pbartok
* SWF.csproj:
- Fixed BindingManagerBase.cs filename
2004-08-11 15:22 pbartok
* BindingManagerBase.cs:
- Was checked in with wrong filename
2004-08-11 14:50 pbartok
* SWF.csproj:
- Updated
2004-08-11 13:41 jordi
* XplatUIWin32.cs: Fixes ClientRect
2004-08-11 13:19 pbartok
* Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
XplatUIX11.cs:
- We had SetWindowPos and MoveWindow to set window positions and
size, removed MoveWindow. We have GetWindowPos, so it made sense to
keep SetWindowPos as matching counterpart
- Added some X11 sanity checking
2004-08-11 12:59 pbartok
* Control.cs:
- Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
(It seems that SetBounds is just a front for SetBoundsCore and
SetBoundsCore updates the underlying window system and
UpdateBounds is responsible for updating the variables associated
with the Control and sending the events)
- Major cleanup of Size handling; we now have two sizes, client_size
and bounds. Bounds defines the window with decorations, client_size
without them.
2004-08-11 12:55 pbartok
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
- Added method to calculate difference between decorated window and
raw client area
2004-08-11 12:54 pbartok
* Label.cs:
- Forcing redraw on resize
2004-08-11 11:43 pbartok
* ImageList.cs:
- Removed disposing of the actual images when the list is disposed
2004-08-11 09:13 pbartok
* Control.cs:
- Now properly reparents windows
2004-08-11 08:37 pbartok
* Control.cs:
- Duh!
2004-08-11 07:47 pbartok
* Control.cs:
- Rewrote the collection stuff. Might not be as fast now, not
keeping the number of children around and accessible directly, but
it's more straightforward
2004-08-11 07:44 pbartok
* AccessibleObject.cs:
- Fixed to match ControlCollection rewrite
2004-08-11 07:43 pbartok
* ImageList.cs:
- Added missing creation of the collection list
2004-08-10 20:08 jackson
* StatusBar.cs: Get the paint message from WndProc
2004-08-10 19:31 jackson
* ThemeWin32Classic.cs: Create Brushes as little as possible
2004-08-10 19:20 jackson
* UICues.cs: Add Flags attribute
2004-08-10 19:19 jackson
* StatusBarPanel.cs: Signature cleanup
2004-08-10 19:10 jackson
* StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
Initial implementation of status bar item drawing
2004-08-10 17:27 jordi
* TrackBar.cs: add missing methods, properties, and restructure to
hide extra ones
2004-08-10 16:24 jackson
* AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
attribute
2004-08-10 13:21 jordi
* ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
enhancements and standarize on win colors defaults
2004-08-10 12:52 jackson
* DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
ThemeWin32Classic.cs: Implement DrawItem functionality
2004-08-10 12:47 jordi
* XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
2004-08-10 12:32 jordi
* Control.cs: throw ontextchange event
2004-08-10 11:43 pbartok
* Control.cs:
- Added more to the still unfinished Dock/Anchor layout code
2004-08-10 11:39 pbartok
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
- Added GetWindowPos method
2004-08-10 11:36 pbartok
* XplatUIWin32.cs:
- Implemented several methods
2004-08-10 09:47 jackson
* TrackBar.cs: Allow control to handle buffering
2004-08-10 09:41 jackson
* ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
2004-08-10 09:24 jackson
* Label.cs, LinkLabel.cs: Let Control handle buffering.
2004-08-10 09:09 jackson
* StatusBar.cs: Let Control handle all the buffering.
2004-08-10 09:08 jackson
* Control.cs: Control will now handle the buffering code, so each
control does not have to implement this.
2004-08-10 08:34 jackson
* XplatUIDriver.cs: Use default colors from the theme
2004-08-09 17:12 pbartok
* ImageList.cs:
- Fixed several bugs Ravindra pointed out
2004-08-09 16:11 pbartok
* Control.cs:
- Added incomplete dock layout code
- Added support for mouse wheel
2004-08-09 16:09 pbartok
* XplatUIX11.cs:
- Added handling for middle and right mousebutton
- Added handling for mouse wheel
- Added handling for key state and mouse state and position
- Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
messages
2004-08-09 15:40 jackson
* StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
checkin
2004-08-09 15:37 jackson
* StatusBar.cs: Initial implementation of StatusBar
2004-08-09 15:36 jackson
* ITheme.cs: Add support for drawing status bar and getting status
bar item sizes
2004-08-09 15:35 pbartok
* MouseButtons.cs:
- Fixed values
2004-08-09 15:34 jackson
* ThemeWin32Classic.cs: Add support for drawing status bar and get
status bar item sizes
2004-08-09 15:21 jackson
* ThemeWin32Classic.cs: Use known colors for default control
colours
2004-08-09 15:12 jackson
* ThemeWin32Classic.cs: Make the default font static, it is static
in control so this doesn't change functionality and creating fonts
is sloooooow.
2004-08-09 14:56 pbartok
* X11Structs.cs:
- Added GrabMode enum
2004-08-09 14:55 pbartok
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
- Removed Run method, was only required for initial development
2004-08-09 14:51 pbartok
* XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
- Implemented GrabWindow/ReleaseWindow methods to allow pointer
capture
2004-08-09 13:48 pbartok
* XplatUIX11.cs:
- Fixed default sizing for child windows
2004-08-09 12:56 pbartok
* XplatUIX11.cs:
- Added generation of WM_DESTROY message
- Added handling of window manager induced shutdown
2004-08-09 11:31 jackson
* ThemeWin32Classic.cs: New names for control properties
2004-08-09 11:25 jackson
* Control.cs: Use new color names
2004-08-09 11:02 jackson
* XplatUI.cs: Get default window properties from the theme
2004-08-09 11:01 jackson
* ITheme.cs: The theme engine now controls default window
properties
2004-08-09 11:00 jackson
* ThemeWin32Classic.cs: Add default window color properties
2004-08-09 10:17 jackson
* ThemeWin32Classic.cs: Use correct default back color
2004-08-09 10:05 jackson
* XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
the theme now.
2004-08-09 09:56 jackson
* XplatUI.cs: Remove defaults, these are handled by the theme now.
2004-08-09 09:54 jackson
* Control.cs: Get default properties from the theme.
2004-08-09 09:53 jackson
* ITheme.cs: Themes now handle default control properties
2004-08-09 09:53 jackson
* ThemeWin32Classic.cs: Themes now handle default control
properties so coloring will be consistent
2004-08-08 16:54 jordi
* ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
2004-08-08 15:08 jordi
* XplatUIX11.cs: fixes keyboard crash
2004-08-08 13:47 jordi
* Label.cs: add cvs header info
2004-08-08 12:09 jackson
* ThemeWin32Classic.cs: Add pen_buttonface
2004-08-08 11:52 jordi
* Label.cs, LinkLabel.cs: [no log message]
2004-08-08 11:34 jordi
* ThemeWin32Classic.cs: Use Windows Standard Colours
2004-08-07 17:32 jordi
* TrackBar.cs: throw exceptions of invalid enums values
2004-08-07 17:31 jordi
* Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
draw method name
2004-08-07 16:56 jackson
* HorizontalAlignment.cs: Initial checkin
2004-08-07 13:16 jordi
* Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
methods
2004-08-07 13:05 jordi
* ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
GetSysColor defines
2004-08-06 18:01 pbartok
* ThemeWin32Classic.cs:
- Fixed some rounding issues with float/int
2004-08-06 18:00 jackson
* DockStyle.cs, AnchorStyles.cs:
Add flags and serializable attributes.
2004-08-06 17:46 pbartok
* XplatUIX11.cs:
- Implemented GetParent
2004-08-06 17:18 pbartok
* TrackBar.cs:
- Fixed some rounding issues with float/int
2004-08-06 17:17 pbartok
* X11Structs.cs, XplatUIX11.cs:
- Fixed Refresh and Invalidate
2004-08-06 15:30 pbartok
* Control.cs, X11Structs.cs, XplatUIX11.cs:
- Fixed recursive loop when resizing
- Improved/fixed redrawing on expose messages
2004-08-06 09:53 jordi
* Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
keyboard navigation
2004-08-06 08:02 pbartok
* X11Structs.cs, XplatUIX11.cs:
- Fixed reparenting
- Fixed window border creation
2004-08-05 15:38 pbartok
* XplatUIX11.cs:
- Attempted fix for reparenting problems
2004-08-04 15:14 pbartok
* Control.cs:
- Fixed Invalidation bug (calculated wrong client area)
- Added ClientSize setter
2004-08-04 15:13 pbartok
* Form.cs:
- Added AutoScale properties
2004-08-04 15:13 pbartok
* SWF.csproj:
- Added latest files
2004-08-04 14:11 pbartok
* Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
XplatUIX11.cs:
- Added Invalidate handling
2004-08-03 17:09 jordi
* XplatUIDriver.cs: fixes spelling mistake
2004-07-27 09:53 jordi
* TrackBar.cs: fixes trackbar events, def classname, methods
signature
2004-07-27 09:29 jordi
* ScrollBar.cs: fixes scrollbar events
2004-07-27 04:38 jordi
* Control.cs: changes to be able to run winforms samples
2004-07-26 11:42 jordi
* ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
2004-07-26 05:41 jordi
* MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
implementation
2004-07-22 09:22 jordi
* LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
check link overlapping, implement events, and fixes
2004-07-21 10:28 jordi
* DialogResult.cs, IButtonControl.cs: fixes comments filenames
2004-07-21 10:19 jordi
* DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
LinkLabelLinkClickedEventArgs.cs,
LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
implementation
2004-07-19 13:09 jordi
* Control.cs, Label.cs: label control re-written: added missing
functionlity, events, and properties
2004-07-19 10:49 jordi
* Control.cs: fixes SetBounds logic
2004-07-19 01:29 jordi
* Control.cs: Call RefreshWindow only if the window has created
2004-07-15 14:05 pbartok
* ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
- Implemented ImageList and ImageList.ImageCollection classes
- Added ColorDepth enumeration
- Updated SWF VS.Net project
2004-07-15 11:06 jordi
* XplatUIStructs.cs: added MsgButons enum
2004-07-15 11:03 jordi
* Control.cs: added basic mouse handeling events
2004-07-15 03:38 jordi
* Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
Vertical TrackBar control implementation
2004-07-13 09:33 jordi
* HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
2004-07-13 09:31 jordi
* Control.cs, Form.cs: commit: new properties and fixes form size
problems
2004-07-09 14:13 miguel
* ProgressBar.cs: Spelling
2004-07-09 11:25 pbartok
* ProgressBar.cs:
- Removed usage of Rectangle for drawing. Miguel pointed out it's
faster
2004-07-09 11:17 miguel
* ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
* ProgressBar.cs: Fixed spelling for `block'
drawProgressBar: renamed to `DrawProgressBar' to follow the coding
style guidelines.
Avoid using the += on rect.X, that exposed a bug in the compiler.
2004-07-08 23:21 pbartok
* AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
AnchorStyles.cs, Application.cs, ApplicationContext.cs,
BaseCollection.cs, Binding.cs, BindingContext.cs,
BindingMemberInfo.cs, BindingsCollection.cs,
BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
ButtonState.cs, CaptionButton.cs, CheckBox.cs,
ContainerControl.cs, Control.cs, ControlEventArgs.cs,
ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
FrameStyle.cs, GiveFeedbackEventArgs.cs,
GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
InputLanguageChangedEventArgs.cs,
InputLanguageChangedEventHandler.cs,
InputLanguageChangingEventArgs.cs,
InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
InvalidateEventArgs.cs, InvalidateEventHandler.cs,
KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
QueryAccessibilityHelpEventArgs.cs,
QueryAccessibilityHelpEventHandler.cs,
QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
XplatUIX11.cs, lang.cs:
- Initial check-in
|