View Issue Details

IDProjectCategoryView StatusLast Update
0006768JEDI VCL00 JVCL Componentspublic2024-01-02 15:00
Reporternosek1969Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status feedbackResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0006768: Add OnCanChange in TJvWizard
DescriptionAdd 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
TagsNo tags attached.

Activities

AHUser

2024-01-02 14:07

developer   ~0022066

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;
}

Issue History

Date Modified Username Field Change
2023-05-23 19:24 nosek1969 New Issue
2024-01-02 14:07 AHUser Note Added: 0022066
2024-01-02 14:07 AHUser Assigned To => AHUser
2024-01-02 14:07 AHUser Status new => feedback
2024-01-02 15:00 AHUser Assigned To AHUser =>