17 #include <gwenhywfar/debug.h>
18 #include <gwenhywfar/i18n.h>
23 #define MAX_DEFAULT_WIDTH 400
42 FXint x, FXint y, FXint w, FXint h)
43 :FXScrollArea(p, opts, x, y, w, h)
47 ,m_haveDefaultDims(false)
136 FXEvent*
event=(FXEvent*)ptr;
137 FXDCWindow dc(
this,event);
142 dc.setForeground(backColor);
143 dc.fillRectangle(event->rect.x, event->rect.y, event->rect.w, event->rect.h);
147 dc.setForeground(backColor);
148 dc.fillRectangle(0, 0, viewport_w,
margintop);
152 if (event->rect.y+event->rect.h>=viewport_h-
marginbottom){
153 dc.setForeground(backColor);
159 dc.setForeground(backColor);
164 if(event->rect.x+event->rect.w>=viewport_w-
marginright){
165 dc.setForeground(backColor);
236 if (xPos>=0 && yPos>=0)
237 setPosition(-xPos, -yPos);