typograph-editor-documentation
    Preparing search index...

    Class FindReplaceDialog

    Base class for modal dialog's

    Standard header and footer with cancel and ok button's

    Hierarchy (View Summary)

    Index
    cancelDialogProc: callbackwithstring
    container: HTMLElement
    containerid: string
    content: HTMLElement
    dialogcontent: HTMLElement
    dialoglayer: HTMLElement
    dialoglayerid: string
    first_x: number
    first_y: number
    foooterheight: number = kFooterHeigth
    headerheight: number = kHeaderHeight
    height: number
    id: string
    okDialogProc: callbackwithstring
    orinal_x: number
    orinal_y: number
    type: string
    width: number
    • popupmenu call to check active item used by popmenucontroler when dialog propery !=null should be overridden by subclasses

      Parameters

      • id: string

      Returns boolean

    • popupmenu call for menu action used by popmenucontroler when dialog propery!=null should be overridden by subclasses

      Parameters

      • e: MouseEvent

      Returns void

    • No scrim behind this one.

      #dialoglayer carries a 30% black wash in the stylesheet, which is right for a modal dialog: it says the document is not accepting input. Find & Replace is the opposite — the document is being edited THROUGH it, the caret moves and the text changes while it is open — so dimming the very page the user is watching is the wrong signal, and makes the matches it is finding harder to see.

      Cleared on the way in and restored on the way out. The layer is shared, so leaving it transparent would take the scrim away from every modal dialog opened afterwards — which is exactly the bug the clip manager has, and why this wash appears in one host and not another depending on which dialog ran first (TYP-676).

      Returns void

    • genaral call back to dispatch events back to the dialog...

      Parameters

      • s: string

        can be null

      Returns void