void DocManager::RedrawPage (ddjvu_document_t *nativeDoc, ddjvu_page_t *page) { auto weak = Documents_ [nativeDoc]; auto doc = weak.lock (); if (doc) doc->RedrawPage (page); }
void __fastcall TEditTiffForm::DecBitBtnClick(TObject *Sender) { //------------------------------------------------------------------------------- //------------------------------------------------------------------------------- // if (ti == NULL) return; // if (ti->DecPageNumber()) RedrawPage(); if (tb == NULL) return; if (tb->DecPageNumber()) RedrawPage(); }
void __fastcall TEditTiffForm::PageComboBoxSelect(TObject *Sender) { //------------------------------------------------------------------------------- //------------------------------------------------------------------------------- //if (ti == NULL) return; //ti->SetPage(PageComboBox->ItemIndex); if (tb == NULL) return; tb->SetPage(PageComboBox->ItemIndex); RedrawPage(); }
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(); }