LineEdit& LineEdit::SetFont(Font f) { font = f; Layout(); TabSize(tabsize); SetSb(); return *this; }
RichTextView& RichTextView::SetZoom(Zoom z) { zoom = z; sb = 0; SetSb(); Refresh(); return *this; }
RichTextView& RichTextView::PageWidth(int _cx) { cx = _cx; sb = 0; SetSb(); Refresh(); return *this; }
void RichTextView::Clear() { sb = 0; text.Clear(); SetSb(); Refresh(); anchor = cursor = sell = selh = 0; }
void RichTextView::Pick(pick_ RichText& rt) { sb = 0; anchor = cursor = sell = selh = 0; text = rt; SetSb(); UpdateRefresh(); highlight = -1; }
void RichTextView::Layout() { sizetracking = false; if(IsOpen() && lazy) { sizetracking = true; KillTimeCallback(TIMEID_ENDSIZETRACKING); SetTimeCallback(250, THISBACK(EndSizeTracking), TIMEID_ENDSIZETRACKING); } SetSb(); Refresh(); }
/* %F Muda a largura de uma coluna ou a altura de uma linha, redesenhando se estiver visivel %i col : coluna/linha a ter sua largura modificada, Esta funcao trbalha com a representacao interna para o numero de coluna, ou seja col = 0 e a primeira coluna, col = -1 e a coluna de titulos. O mesma representacao e' usada para linhas largura : largura em pixels da coluna/linha col. m : Indica se estou atuando sobre uma coluna (MAT_COL) ou linha (MAT_LIN). */ static void ChangeMatrixWH(Ihandle *h,int col,int largura, int m) { Tmat *mat=(Tmat*)matrix_data(h); Ihandle *d = IupGetDialog(h); int visible = (iupCheck(h,IUP_VISIBLE)==YES) && (iupCheck(d,IUP_VISIBLE)==YES); int err,drawmode = m; Tlincol *p; if (m == MAT_LIN) p = &(mat->lin); else p = &(mat->col); IsCanvasSet(mat,err); if (col != -1) /* col -1 indica largura do titulo */ { if (largura > p->size) /* largura nao pode ser maior que area util */ largura = p->size; /* Recalcula espaco total ocupado pelas colunas/linhas */ p->totalwh=p->totalwh - p->wh[col] + largura; p->wh[col]=largura; } else if (p->titlewh > 0) /* so muda tamanho, se ja' existir titulo */ { if(largura > XmaxCanvas(mat)) largura = XmaxCanvas(mat); /* Recalcula espaco que sobra para as outras celulas */ p->size=p->size+p->titlewh-largura; p->titlewh = largura; drawmode = DRAW_ALL; /* Tenho que redesenhar os titulos de linha/coluna tambem */ } iupmatGetLastWidth(h,m); /* Se a coluna/linha esta na parte visivel, redesenha a matriz */ if (((col >= p->first)&&(col <= p->last)) || col==-1) if (visible && err == CD_OK) { SetSb(m); iupmatDrawMatrix(h,drawmode); iupmatShowFocus(h); } }
void DocEdit::Layout() { SetSb(); Invalidate(); }
void IconDes::Layout() { SetSb(); }