×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    5

    redrawing and multipage dialogs

    I've successfully gotten a basic dialog page running, with all the definitions in the resource file, I then decided to modify the program to use multipage dialogs, but for some reason the controls won't draw. Literally the only changes I've made were the following:


    RESOURCE DIALOG r_adova_dialog
    {
    flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect |
    EEikDialogFlagCbaButtons | EEikDialogFlagWait;
    buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
    items=
    {
    DLG_LINE
    {
    id=EAdovaDlgLoginLabel;
    type=EEikCtLabel;
    control= LABEL
    {
    txt = "Username:";
    vert_align=EEikLabelAlignVCenter;
    };
    },
    DLG_LINE
    {
    id=EAdovaDlgLoginInput;
    type=EEikCtEdwin;
    control= EDWIN
    {
    maxlength = 10;
    };
    }
    };
    }

    ------------------------------------------------------
    was replaced with ---------->
    ------------------------------------------------------

    RESOURCE DIALOG r_adova_dialog
    {
    flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect |
    EEikDialogFlagCbaButtons | EEikDialogFlagWait;
    buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
    pages = front_pages;
    }

    RESOURCE ARRAY front_pages
    {
    items =
    {
    PAGE
    {
    text = "Login";
    lines = login_lines;
    },
    PAGE
    {
    text = "Pending";
    lines = pending_lines;
    },
    PAGE
    {
    text = "Available";
    lines = available_lines;
    }
    };
    }

    RESOURCE DIALOG login_lines
    {
    items=
    {
    DLG_LINE
    {
    id=EAdovaDlgLoginLabel;
    type=EEikCtLabel;
    control= LABEL
    {
    txt = "Username:";
    vert_align=EEikLabelAlignVCenter;
    };
    },
    DLG_LINE
    {
    id=EAdovaDlgLoginInput;
    type=EEikCtEdwin;
    control= EDWIN
    {
    maxlength = 10;
    };
    }
    };
    }

    RESOURCE DIALOG pending_lines
    {
    items=
    {
    DLG_LINE
    {
    id=EAdovaDlgPendingLabel;
    type=EEikCtLabel;
    control= LABEL
    {
    txt = "Still to service";
    };
    }
    };
    }

    RESOURCE DIALOG available_lines
    {
    items=
    {
    DLG_LINE
    {
    id=EAdovaDlgAvailableLabel;
    type=EEikCtLabel;
    control= LABEL
    {
    txt = "Available jobs";
    };
    }
    };
    }

    I'm guessing I've forgotten something simple, the program was written in .net with the 8.0a SDK, there are no error messages and the code for the rest of the program is unmodified from the Nokia wizard creation.

    Much appreciated, thankyou

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    5
    Anyone??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •