if (s.IsNull()) s = "H";
wxCoord lw,lh;
dc->GetTextExtent( s, &lw, &lh );
+ if (lh < 15) lh = 15;
item->SetSize( item->GetWidth(), lh );
m_bound_all.width += lw;
m_bound_all.height = lh;
{
wxCoord lw,lh;
dc->GetTextExtent( "H", &lw, &lh );
+ if (lh < 15) lh = 15;
m_bound_all.x = 0;
m_bound_all.y -= 0;
m_bound_all.height = lh+3;
if (s.IsEmpty()) s = wxT("H");
wxCoord lw,lh;
dc->GetTextExtent( s, &lw, &lh );
+ if (lh < 15) lh = 15;
m_bound_label.width = lw;
m_bound_label.height = lh;
if (item->HasImage())
while (node)
{
wxListItemData *item = (wxListItemData*)node->Data();
- dc->SetClippingRegion( item->GetX(), item->GetY(), item->GetWidth()-3, item->GetHeight() );
int x = item->GetX();
if (item->HasImage())
{
m_owner->GetImageSize( item->GetImage(), x, y );
x += item->GetX() + 5;
}
+ dc->SetClippingRegion( item->GetX(), item->GetY(), item->GetWidth()-3, item->GetHeight() );
if (item->HasText())
{
- dc->DrawText( item->GetText(), x, item->GetY() );
+ dc->DrawText( item->GetText(), x, item->GetY()+1 );
}
dc->DestroyClippingRegion();
node = node->Next();
dc.SetPen( *wxWHITE_PEN );
DoDrawRect( &dc, x, y, cw, h-2 );
-// dc.SetClippingRegion( x, y, cw-5, h-4 );
+ dc.SetClippingRegion( x, y, cw-5, h-4 );
dc.DrawText( item.m_text, x+4, y+3 );
-// dc.DestroyClippingRegion();
+ dc.DestroyClippingRegion();
x += item.m_width;
#if wxUSE_GENERIC_LIST_EXTENSIONS
if (dc.LogicalToDeviceX(x) > w+5) break;
gdk_gc_set_fill( gc, GDK_OPAQUE_STIPPLED );
gdk_gc_set_stipple( gc, mask );
gdk_draw_rectangle( new_mask, gc, TRUE, 0, 0, ww, hh );
+/*
+ gdk_gc_set_clip_mask( m_brushGC, NULL );
+ gdk_gc_set_clip_mask( m_textGC, NULL );
+ SetBrush( *wxRED_BRUSH );
+ DrawRectangle( 70, 0, 70, 1000 );
+ gdk_draw_bitmap( m_window, m_textGC, new_mask, 0, 0, 100, 5, ww, hh );
+ gdk_draw_bitmap( m_window, m_textGC, mask, 0, 0, 80, 5, ww, hh );
+*/
gdk_gc_unref( gc );
}
{
DEBUG_MAIN_THREAD
+/*
if (win->GetName() == wxT("columntitles"))
{
wxPrintf( wxT("OnExpose from ") );
(int)gdk_event->area.width,
(int)gdk_event->area.height );
}
+*/
win->GetUpdateRegion().Union( gdk_event->area.x,
gdk_event->area.y,
if ((rect->x == 0) && (rect->y == 0) && (rect->width <= 1) && (rect->height <= 1))
return;
+/*
if (win->GetName() == wxT("columntitles"))
{
wxPrintf( wxT("OnDraw from ") );
(int)rect->width,
(int)rect->height );
}
+*/
win->GetUpdateRegion().Union( rect->x, rect->y,
rect->width, rect->height );
gdk_gc_set_fill( gc, GDK_OPAQUE_STIPPLED );
gdk_gc_set_stipple( gc, mask );
gdk_draw_rectangle( new_mask, gc, TRUE, 0, 0, ww, hh );
+/*
+ gdk_gc_set_clip_mask( m_brushGC, NULL );
+ gdk_gc_set_clip_mask( m_textGC, NULL );
+ SetBrush( *wxRED_BRUSH );
+ DrawRectangle( 70, 0, 70, 1000 );
+ gdk_draw_bitmap( m_window, m_textGC, new_mask, 0, 0, 100, 5, ww, hh );
+ gdk_draw_bitmap( m_window, m_textGC, mask, 0, 0, 80, 5, ww, hh );
+*/
gdk_gc_unref( gc );
}
{
DEBUG_MAIN_THREAD
+/*
if (win->GetName() == wxT("columntitles"))
{
wxPrintf( wxT("OnExpose from ") );
(int)gdk_event->area.width,
(int)gdk_event->area.height );
}
+*/
win->GetUpdateRegion().Union( gdk_event->area.x,
gdk_event->area.y,
if ((rect->x == 0) && (rect->y == 0) && (rect->width <= 1) && (rect->height <= 1))
return;
+/*
if (win->GetName() == wxT("columntitles"))
{
wxPrintf( wxT("OnDraw from ") );
(int)rect->width,
(int)rect->height );
}
+*/
win->GetUpdateRegion().Union( rect->x, rect->y,
rect->width, rect->height );