OnInsertImgDlg Event (Fred)

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:12

Description

This event runs when an image is inserted.

Syntax

OnInsertImgDlg

Code

This code is available in the PageDesignerAddIn Class in the Page.Vb file within FredSystemAddInExpress project.

  <ShellCommand(CanExecute:="Ena_IsWindowActive")> _

  Public Overridable Function ImgInsertDlg() As Integer Implements IFredEvent.OnInsertImgDlg

    Dim result As Nullable(Of Boolean)

    Dim ids As Integer = Utils.OpenImageDlgBase(FredApp.AppBase.Windows.Item(0), My.Resources.IDS_SELIMAGE, True, result)(0)

 

    If result = True Then

      Page.ImgInsertId(ids, "photocaption")

      Return ids

    End If

    Return 0

  End Function

Context

Fred application dispatcher events