Ejemplo n.º 1
0
void DocManager::RedrawPage (ddjvu_document_t *nativeDoc, ddjvu_page_t *page)
{
    auto weak = Documents_ [nativeDoc];
    auto doc = weak.lock ();
    if (doc)
        doc->RedrawPage (page);
}
Ejemplo n.º 2
0
void __fastcall TEditTiffForm::DecBitBtnClick(TObject *Sender) {
//-------------------------------------------------------------------------------
//-------------------------------------------------------------------------------
    // if (ti == NULL) return;
    // if (ti->DecPageNumber()) RedrawPage();
    if (tb == NULL) return;
    if (tb->DecPageNumber()) RedrawPage();
}
Ejemplo n.º 3
0
void __fastcall TEditTiffForm::PageComboBoxSelect(TObject *Sender) {
//-------------------------------------------------------------------------------
//-------------------------------------------------------------------------------
    //if (ti == NULL) return;
    //ti->SetPage(PageComboBox->ItemIndex);
    if (tb == NULL) return;
    tb->SetPage(PageComboBox->ItemIndex);
    RedrawPage();
}
Ejemplo n.º 4
0
void __fastcall TEditTiffForm::ScrollBar1Change(TObject *Sender) {
//-------------------------------------------------------------------------------
//-------------------------------------------------------------------------------
    // if (ti == NULL) return;
    if (tb == NULL) return;
    if (InsideChange) return;
    InsideChange = true;
    // ti->SetPage(ScrollBar1->Position);
    tb->SetPage(ScrollBar1->Position);
    InsideChange = false;
    RedrawPage();
}