View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006768 | JEDI VCL | 00 JVCL Components | public | 2023-05-23 19:24 | 2024-01-02 15:00 |
Reporter | nosek1969 | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | feedback | Resolution | open | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0006768: Add OnCanChange in TJvWizard | ||||
Description | Add Events OnCanChange in TJvWizard ex.: void Tform1::JvWiazadCanChange (TObject *Sender, bool &Change) { if (JvWiazad->ActivePage == Page1) Change = true; else if (JvWiazad->ActivePage == Page2) Change = !Gloga.IsEmpty(); } OnCanChange event fired before OnActivePageChanged, OnActivePageChanging | ||||
Tags | No tags attached. | ||||
|
You can use OnActivePageChanging for this by setting the "ToPage" parameter to the ActivePage if you don't want to allow the page to be changed. void Tform1::JvWizardActivePageChanging (TObject *Sender, TJvWizardCustomPage *ToPage) { if (JvWizard->ActivePage == Page2 && !Gloga.IsEmpty()) ToPage = JvWizard->ActivePage; } |