comparison mac/dw.m @ 929:d7e88ac1647c

Removed some code that had been used for debugging the layout code. Also put in a missing resize handler on scrollboxes.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 23 Apr 2011 13:37:17 +0000
parents 43a5b3c78c41
children b6ee515cad8a
comparison
equal deleted inserted replaced
928:43a5b3c78c41 929:d7e88ac1647c
2020 /* Used for the SIZEEXPAND */ 2020 /* Used for the SIZEEXPAND */
2021 int nux = *usedx, nuy = *usedy; 2021 int nux = *usedx, nuy = *usedy;
2022 int nupx = *usedpadx, nupy = *usedpady; 2022 int nupx = *usedpadx, nupy = *usedpady;
2023 int thispadx = thisbox->pad * 2; 2023 int thispadx = thisbox->pad * 2;
2024 int thispady = thisbox->pad * 2; 2024 int thispady = thisbox->pad * 2;
2025 char tmpbuf[20], tabbuf[] = "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
2026 strcpy(tmpbuf, tabbuf);
2027
2028 tmpbuf[*depth] = '\0';
2029 2025
2030 /* Handle special groupbox case */ 2026 /* Handle special groupbox case */
2031 if(thisbox->grouphwnd) 2027 if(thisbox->grouphwnd)
2032 { 2028 {
2033 DWGroupBox *groupbox = thisbox->grouphwnd; 2029 DWGroupBox *groupbox = thisbox->grouphwnd;
2416 } 2412 }
2417 [contentbox setFrameSize:contentsize]; 2413 [contentbox setFrameSize:contentsize];
2418 2414
2419 /* Layout the content of the scrollbox */ 2415 /* Layout the content of the scrollbox */
2420 _do_resize(thisbox, contentsize.width, contentsize.height); 2416 _do_resize(thisbox, contentsize.width, contentsize.height);
2417 _handle_resize_events(thisbox);
2421 } 2418 }
2422 /* Special handling for spinbutton controls */ 2419 /* Special handling for spinbutton controls */
2423 else if([handle isMemberOfClass:[DWSpinButton class]]) 2420 else if([handle isMemberOfClass:[DWSpinButton class]])
2424 { 2421 {
2425 DWSpinButton *spinbutton = (DWSpinButton *)handle; 2422 DWSpinButton *spinbutton = (DWSpinButton *)handle;