Dlg Collisione
{
   //Caption = "Si e' verificata una collisione!"
   Caption = MSG(110)
   Placement
   {
      posx = 100
      posy = 100
      dimx = 400
      dimy = 360

      save_pos = 1
   }

   Image Im1
   {
      Caption = ""
      Value = $wk_image
      Placement
      {
         posx = 120
         posy = 10
         dimx = 161
         dimy = 141
      }
   }

   Label lbl1
   {
      //Caption = "Si e' verificata una collisione tra"
      Caption = MSG(111)
      Placement
      {
         posx = 25
         posy = 175
         dimx = 150
         dimy = 25
      }
   }

   Label Txt1
   {
      Caption = $wk_label2
      Placement
      {
         posx = 25
         posy = 200
         dimx = 350
         dimy = 25
      }
   }

   Label Txt2
   {
      //Caption = "e"
      Caption = MSG(112)
      Placement
      {
         posx = 25
         posy = 225
         dimx = 350
         dimy = 25
      }
   }

   Label Txt2
   {
      Caption = $wk_label3
      Placement
      {
         posx = 25
         posy = 250
         dimx = 350
         dimy = 25
      }
   }

   Button SI
   {
      //Caption = "&Elimina articolo" / "&Annulla modifiche"
      Caption = $wk_btn_annulla
      Result = 1  // ModalOk $DlgResult__==1
      Default = 1

      Placement
      {
         posx = 80
         posy = 290
         dimx = 105
         dimy = 25
      }
   }

   Button NO
   {
      //Caption = "&Ignora"
      Caption = MSG(115)
      Result = 2  // ModalAnnulla  $DlgResult__==0
      Placement
      {
         posx = 225
         posy = 290
         dimx = 105
         dimy = 25
      }
   }
}

Dlg Attenzione
{
   Caption = $wk_caption
   Placement
   {
      posx = 100
      posy = 100
      dimx = 500
      dimy = 150

      save_pos = 1
   }

   Image Im1
   {
      Caption = ""
      Value = $wk_image
      Placement
      {
         posx = 25
         posy = 15
         dimx = 40
         dimy = 40
      }
   }

   Label Txt1
   {
      //Testo del quesito (1a riga)
      Caption = $wk_txt1
      Placement
      {
         posx = 90
         posy = 20
         dimx = 395
         dimy = 25
      }
   }

   Label Txt2
   {
      //Testo del quesito (2a riga)
      Caption = $wk_txt2
      Placement
      {
         posx = 90
         posy = 40
         dimx = 395
         dimy = 25
      }
   }

   Button SI
   {
//MA-    Caption = "&SI"
      Caption = $wk_DLG_Si
      Result = 1  // ModalOk $DlgResult__==1
      Default = 1
      Placement
      {
         posx = 150
         posy = 80
         dimx = 80
         dimy = 25
      }
   }

   Button NO
   {
//MA-    Caption = "&NO"
      Caption = $wk_DLG_No
      Result = 2  // ModalAnnulla  $DlgResult__==0
      Placement
      {
         posx = 270
         posy = 80
         dimx = 80
         dimy = 25
      }
   }
}

//Luca 04/03/2020
//su richiesta di Eugenio disattivo l'opzione 'ANNULLA e TORNA ALL'ORDINE'
Dlg OnTerminate
{
   //{***  IMPORTANTE ***
   //ogni modifica apportata all'elenco stampe di questa dialog deve
   //essere replicata anche alla dialog Print
   //}***  IMPORTANTE ***

   Caption = MSG(100)

   Placement
   {
      posx = 57
      posy = 50
      //dimx = 400
      dimx = 450
      dimy = 250
      save_pos = 1
   }

   Frame Lista
   {
      Caption = MSG(101)

      Placement
      {
         posx = 20
         posy = 20
         //dimx = 355
         dimx = 405
         dimy = 135
      }

      Radio Opz01
      {
         Caption = MSG(102)
         Hint    = MSG(103)
         Value   = $DLG_opz_immediato
         Enable  = 1

         Placement
         {
            posx = 20
            //posy = 25
            posy = 30
            dimx = 300
            dimy = 20
         }

         OnClick
         [
            $DLG_opz_immediato = 1
            $DLG_opz_sospeso   = 0
            $DLG_opz_annulla   = 0
            $DLG_opz_abbandona = 0
         ]
      }

      Check Check01
      {
         Caption = MSG(116)
         Value   = $DLG_opz_stampe
         Enable  = $DLG_opz_stampe_enable

         Placement
         {
            posx = 300
            //posy = 25
            posy = 30
            dimx = 300
            dimy = 20
         }
      }

      Radio Opz02
      {
         Caption = MSG(104)
         Hint    = MSG(105)
         Value   = $DLG_opz_sospeso
         Enable  = 1

         Placement
         {
            posx = 20
            //posy = 50
            posy = 60
            dimx = 300
            dimy = 20
         }

         OnClick
         [
            $DLG_opz_immediato = 0
            $DLG_opz_sospeso   = 1
            $DLG_opz_annulla   = 0
            $DLG_opz_abbandona = 0
         ]
      }

      //Radio Opz03
      //{
      //   Caption = MSG(106)
      //   Hint    = MSG(107)
      //   Value   = $DLG_opz_annulla
      //   Enable  = 1
      //
      //   Placement
      //   {
      //      posx = 20
      //      posy = 75
      //      dimx = 300
      //      dimy = 20
      //   }
      //
      //   OnClick
      //   [
      //      $DLG_opz_immediato = 0
      //      $DLG_opz_sospeso   = 0
      //      $DLG_opz_annulla   = 1
      //      $DLG_opz_abbandona = 0
      //   ]
      //}

      Radio Opz04
      {
         Caption = MSG(108)
         Hint    = MSG(109)
         Value   = $DLG_opz_abbandona
         Enable  = 1

         Placement
         {
            posx = 20
            //posy = 100
            //posy = 75
            posy = 90
            dimx = 300
            dimy = 20
         }

         OnClick
         [
            $DLG_opz_immediato = 0
            $DLG_opz_sospeso   = 0
            $DLG_opz_annulla   = 0
            $DLG_opz_abbandona = 1
         ]
      }

   }

   Button OK
   {
      Caption = MSG(150)
      Result  = 1
      Default = 1

      Placement
      {
         posx = 210
         posy = 180
         //dimx = 100
         dimx = 80
         dimy = 25
      }

      OnClick
      [
      ]

   }

   Button Annulla
   {
      Caption = MSG(151)
      Result  = 2

      Placement
      {
         posx = 330
         posy = 180
         //dimx = 100
         dimx = 80
         dimy = 25
      }

      OnClick
      [
         $DLG_opz_immediato = 0
         $DLG_opz_sospeso   = 0
         $DLG_opz_annulla   = 1
         $DLG_opz_abbandona = 0
      ]
   }
}

Dlg PrintStandard
{
   //{***  IMPORTANTE ***
   //ogni modifica apportata all'elenco stampe di questa dialog deve
   //essere replicata anche alla dialog OnTerminate
   //}***  IMPORTANTE ***

   Caption = MSG(3030)

   Placement
   {
      posx = 100
      posy = 100
      dimx = 350
      dimy = 340

      save_pos = 1
   }

   Frame Lista1
   {
      Caption = MSG(3040)

      Placement
      {
         posx = 20
         posy = 25
         dimx = 300
         dimy = 160
      }

      Check Pianta
      {
         Caption = MSG(3041)
         Value   = $PR_PIANTA
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 25
            dimx = 400
            dimy = 20
         }
      }

      Check Prospetti
      {
         Caption = MSG(3042)
         Value   = $PR_PROSPETTI
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 50
            dimx = 400
            dimy = 20
         }
      }

      Check ProspettiFro
      {
         Caption = MSG(3043)
         Value   = $PR_PROSPETTI_FRO
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 75
            dimx = 400
            dimy = 20
         }
      }

      Check Produzione
      {
         Caption = MSG(3044)
         Value   = $PR_PRODUZIONE
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 125
            dimx = 400
            dimy = 20
         }
      }
   }

   Frame Lista2
   {
      //Caption = " Opzioni aggiuntive"
      Caption = MSG(3050)

      Placement
      {
         posx = 20
         posy = 195
         dimx = 300
         dimy = 60
      }

      Check BN
      {
         //Caption = "Crea conferma per invio a mezzo fax"
         Caption = MSG(3051)
         Value   = $PR_BN
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 25
            dimx = 400
            dimy = 20
         }
      }
   }

   Button OK
   {
      Caption = MSG(3098)
      Result = 1  // ModalOk
      Default = 1

      Placement
      {
         posx = 140
         posy = 265
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(3099)
      Result = 2  // Modalannulla

      Placement
      {
         posx = 240
         posy = 265
         dimx = 80
         dimy = 25
      }
   }
}

// Fabrizio 11/01/16 - dialog stampa
Dlg Print
{
   //{***  IMPORTANTE ***
   //ogni modifica apportata all'elenco stampe di questa dialog deve
   //essere replicata anche alla dialog OnTerminate
   //}***  IMPORTANTE ***

   Caption = MSG(3030)

   Placement
   {
      posx = 100
      posy = 100
      dimx = 350
      dimy = 340

      save_pos = 1
   }

   Frame Lista1
   {
      Caption = MSG(3040)

      Placement
      {
         posx = 20
         posy = 25
         dimx = 300
         dimy = 160
      }

      Check VideoBN
      {
         Caption = MSG(3045)
         Value   = $PR_VIDEOBN
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 25
            dimx = 400
            dimy = 20
         }
      }

      Check VideoCol
      {
         Caption = MSG(3046)
         Value   = $PR_VIDEOCOL
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 50
            dimx = 400
            dimy = 20
         }
      }
   }

   Frame Lista2
   {
      //Caption = " Opzioni aggiuntive"
      Caption = MSG(3050)

      Placement
      {
         posx = 20
         posy = 195
         dimx = 300
         dimy = 60
      }

      Check Preventivo
      {
         Caption = MSG(3037)
         Value   = $PR_PREVENTIVO
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 25
            dimx = 400
            dimy = 20
         }
      }
   }

   Button OK
   {
      Caption = MSG(3098)
      Result = 1  // ModalOk
      Default = 1

      Placement
      {
         posx = 140
         posy = 265
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(3099)
      Result = 2  // Modalannulla

      Placement
      {
         posx = 240
         posy = 265
         dimx = 80
         dimy = 25
      }
   }
}

Dlg SalvaFile
{
   Caption = $wk_caption

   Placement
   {
      posx = 100
      posy = 100
      dimx = 600
      dimy = 170

      save_pos = 1
   }

   Label lbl
   {
      Caption = MSG(3062)

      Placement
      {
         posx = 25
         posy = 50
         dimx = 45
         dimy = 25
      }
   }

   Edit Percorso
   {
      Value = $wk_file_path

      Placement
      {
         posx = 70
         posy = 45
         dimx = 450
         dimy = 25
      }
   }

   Button Scelta
   {
      Caption = "..."
      Result = 0

      Placement
      {
         posx = 525
         posy = 44
         dimx = 50
         dimy = 24
      }
      OnClick
      [
         GOSUB CHIEDI_PATH_FILE
      ]
   }

   Button Ok
   {
      Caption = MSG(3063)
      Result = 1  // ModalOk $DlgResult__==1
      Default = 1

      Placement
      {
         posx = 400
         posy = 100
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(3099)
      Result = 2  // ModalAnnulla  $DlgResult__==0

      Placement
      {
         posx = 500
         posy = 100
         dimx = 80
         dimy = 25
      }
   }
}

Dlg CambiaPntAggancio
{
   //TODO -- da portare su messaggio
   Caption = "Cambia punto connessione"
   Placement
   {
      posx = 100
      posy = 100
      dimx = 425
      dimy = 450

      save_pos = 1
   }

   Image AF_se
   {
      Visible = $wk_AF_sel
      Value = $wk_image_sel

      Placement
      {
         posx = 50
         posy = 50
         dimx = 150
         dimy = 150
      }
   }

   //Button AR
   Image AR_sel
   {
      Visible = $wk_AR_sel
      Value = $wk_image_sel

      Placement
      {
         posx = 225
         posy = 50
         dimx = 150
         dimy = 150
      }
   }

   //Button BF
   Image BF_sel
   {
      Visible = $wk_BF_sel
      Value = $wk_image_sel

      Placement
      {
         posx = 50
         posy = 225
         dimx = 150
         dimy = 150
      }
   }

   //Button BR
   Image BR_sel
   {
      Visible = $wk_BR_sel
      Value = $wk_image_sel

      Placement
      {
         posx = 225
         posy = 225
         dimx = 150
         dimy = 150
      }
   }

   Image AF
   {
      Caption = "ALTO - FRONTE"
      Result = 1
      Value = $wk_image_AF

      Placement
      {
         posx = 50
         posy = 50
         dimx = 150
         dimy = 150
      }

      OnClick
      [
         $wk_cnt_new = "AF"
      ]
   }

   //Button AR
   Image AR
   {
      Caption = "ALTO - RETRO"
      Result = 1
      Value = $wk_image_AR

      Placement
      {
         posx = 225
         posy = 50
         dimx = 150
         dimy = 150
      }
      OnClick
      [
         $wk_cnt_new = "AR"
      ]
   }

   //Button BF
   Image BF
   {
      Caption = "BASSO - FRONTE"
      Result = 1
      Value = $wk_image_BF

      Placement
      {
         posx = 50
         posy = 225
         dimx = 150
         dimy = 150
      }
      OnClick
      [
         $wk_cnt_new = "BF"
      ]
   }

   //Button BR
   Image BR
   {
      Caption = "BASSO - RETRO"
      Result = 1
      Value = $wk_image_BR

      Placement
      {
         posx = 225
         posy = 225
         dimx = 150
         dimy = 150
      }
      OnClick
      [
         $wk_cnt_new = "BR"
      ]
   }
}

Dlg SchedaTecnicaFrigo
{
   Caption = $wk_title
   Placement
   {
      posx = 100
      posy = 100
      dimx = 675
      dimy = 575

      save_pos = 1
   }

   Image image
   {
      Value = $wk_image

      Placement
      {
         posx = 270
         posy = 40
         dimx = 400
         dimy = 500
      }
   }

   //{ larghezza - profondità - altezza
   Label lVAR_XFrigo
   {
      Caption =  $wk_leg_xfr

      Placement
      {
         posx = $wk_posx_leg
         posy = 50
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_XFrigo
   {
      Caption =  $wk_dsc_xfr

      Placement
      {
         posx = $wk_posx_lab
         posy = 50
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_XFrigo
   {
      Value = $wk_xfr

      Placement
      {
         posx = $wk_posx_edt
         posy = 45
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }

   Label lVAR_ZFrigo
   {
      Caption = $wk_leg_zfr

      Placement
      {
         posx = $wk_posx_leg
         posy = 90
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_ZFrigo
   {
      Caption = $wk_dsc_zfr

      Placement
      {
         posx = $wk_posx_lab
         posy = 90
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_ZFrigo
   {
      Value = $wk_zfr

      Placement
      {
         posx = $wk_posx_edt
         posy = 85
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }

   Label lVAR_YVanoMinFr
   {
      Caption = $wk_leg_yminfr

      Placement
      {
         posx = $wk_posx_leg
         posy = 130
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_YVanoMinFr
   {
      Caption = $wk_dsc_yminfr

      Placement
      {
         posx = $wk_posx_lab
         posy = 130
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_YVanoMinFr
   {
      Value = $wk_yminfr

      Placement
      {
         posx = $wk_posx_edt
         posy = 125
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }

   Label lVAR_YVanoMaxFr
   {
      Caption = $wk_leg_ymaxfr

      Placement
      {
         posx = $wk_posx_leg
         posy = 170
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_YVanoMaxFr
   {
      Caption = $wk_dsc_ymaxfr

      Placement
      {
         posx = $wk_posx_lab
         posy = 170
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_YVanoMaxFr
   {
      Value = $wk_ymaxfr

      Placement
      {
         posx = $wk_posx_edt
         posy = 165
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }
   //} larghezza - profondità - altezza

   //{ zoccolo - aria sopra
   Label lVAR_YZoccFr
   {
      Caption = $wk_leg_yzocc

      Placement
      {
         posx = $wk_posx_leg
         posy = 210
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_YZoccFr
   {
      Caption = $wk_dsc_yzocc

      Placement
      {
         posx = $wk_posx_lab
         posy = 210
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_YZoccFr
   {
      Value = $wk_yzocc

      Placement
      {
         posx = $wk_posx_edt
         posy = 205
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }

   Label lVAR_YSopraFr
   {
      Caption = $wk_leg_ysup

      Placement
      {
         posx = $wk_posx_leg
         posy = 250
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_YSopraFr
   {
      Caption = $wk_dsc_ysup

      Placement
      {
         posx = $wk_posx_lab
         posy = 250
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_YSopraFr
   {
      Value = $wk_ysup

      Placement
      {
         posx = $wk_posx_edt
         posy = 245
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }
   //} zoccolo - aria sopra

   //{ frontali
   Label lVAR_YAntaInFr
   {
      Caption = $wk_leg_yantinf

      Placement
      {
         posx = $wk_posx_leg
         posy = 290
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_YAntaInFr
   {
      Caption = $wk_dsc_yantinf

      Placement
      {
         posx = $wk_posx_lab
         posy = 290
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_YAntaInFr
   {
      Value = $wk_yantinf

      Placement
      {
         posx = $wk_posx_edt
         posy = 285
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }

   Label lVAR_DeltaAnFr
   {
      Caption = $wk_leg_deltafr
      Visible = $wk_enable2f

      Placement
      {
         posx = $wk_posx_leg
         posy = 330
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_DeltaAnFr
   {
      Caption = $wk_dsc_deltafr
      Visible = $wk_enable2f

      Placement
      {
         posx = $wk_posx_lab
         posy = 330
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_DeltaAnFr
   {
      Value = $wk_deltafr
      Visible = $wk_enable2f

      Placement
      {
         posx = $wk_posx_edt
         posy = 325
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }

   Label lVAR_YAntaSuFr
   {
      Caption = $wk_leg_yantsup
      Visible = $wk_enable2f

      Placement
      {
         posx = $wk_posx_leg
         posy = 370
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_YAntaSuFr
   {
      Caption = $wk_dsc_yantsup
      Visible = $wk_enable2f

      Placement
      {
         posx = $wk_posx_lab
         posy = 370
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_YAntaSuFr
   {
      Value = $wk_yantsup
      Visible = $wk_enable2f

      Placement
      {
         posx = $wk_posx_edt
         posy = 365
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }
   //} frontali

   Button Ok
   {
      Caption = MSG(150)
      Result  = 1
      Default = 1

      Placement
      {
         posx = 50
         posy = 490
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(151)
      Result = 2

      Placement
      {
         posx = 150
         posy = 490
         dimx = 80
         dimy = 25
      }
   }
}

Dlg SchedaTecnicaForno
{
   Caption = $wk_title
   Placement
   {
      posx = 100
      posy = 100
      //dimx = 375
      //dimy = 375
      dimx = 745
      dimy = 575

      save_pos = 1
   }

   Image image
   {
      Value = $wk_image

      Placement
      {
         posx = 340
         posy = 40
         dimx = 400
         dimy = 500
      }
   }

   //{ larghezza
   //Label lVAR_XFrigo
   //{
   //   Caption =  $wk_leg_xfr
   //
   //   Placement
   //   {
   //      posx = $wk_posx_leg
   //      posy = 50
   //      dimx = $wk_dimx_leg
   //      dimy = 25
   //   }
   //}
   //
   //Label VAR_XFrigo
   //{
   //   Caption =  $wk_dsc_xfr
   //
   //   Placement
   //   {
   //      posx = $wk_posx_lab
   //      posy = 50
   //      dimx = $wk_dimx_lab
   //      dimy = 25
   //   }
   //}
   //
   //Edit eVAR_XFrigo
   //{
   //   Value = $wk_xfr
   //
   //   Placement
   //   {
   //      posx = $wk_posx_edt
   //      posy = 45
   //      dimx = $wk_dimx_edt
   //      dimy = 25
   //   }
   //}
   //} larghezza

   //{ altezza vano
   Label lVAR_YVanoMinFr
   {
      Caption = $wk_leg_yminfr

      Placement
      {
         posx = $wk_posx_leg
         posy = 50
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_YVanoMinFr
   {
      Caption = $wk_dsc_yminfr

      Placement
      {
         posx = $wk_posx_lab
         posy = 50
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_YVanoMinFr
   {
      Value = $wk_yminfr

      Placement
      {
         posx = $wk_posx_edt
         posy = 45
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }

   Label range_yminfr
   {
      Caption = $wk_range_yminfr

      Placement
      {
         posx = $wk_posx_ran
         posy = 50
         dimx = $wk_dimx_ran
         dimy = 25
      }
   }

   Label lVAR_YVanoMaxFr
   {
      Caption = $wk_leg_ymaxfr

      Placement
      {
         posx = $wk_posx_leg
         posy = 90
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_YVanoMaxFr
   {
      Caption = $wk_dsc_ymaxfr

      Placement
      {
         posx = $wk_posx_lab
         posy = 90
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_YVanoMaxFr
   {
      Value = $wk_ymaxfr

      Placement
      {
         posx = $wk_posx_edt
         posy = 85
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }

   Label range_ymaxfr
   {
      Caption = $wk_range_ymaxfr

      Placement
      {
         posx = $wk_posx_ran
         posy = 90
         dimx = $wk_dimx_rab
         dimy = 25
      }
   }
   //} altezza vano

   //{ frontali
   Label lVAR_YFroFr
   {
      Caption = $wk_leg_yfrofr

      Placement
      {
         posx = $wk_posx_leg
         posy = 130
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_YAntaFro
   {
      Caption = $wk_dsc_yfrofr

      Placement
      {
         posx = $wk_posx_lab
         posy = 130
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_YAntaFro
   {
      Value = $wk_yfrofr

      Placement
      {
         posx = $wk_posx_edt
         posy = 125
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }

   Label range_yfrofr
   {
      Caption = $wk_range_yfrofr

      Placement
      {
         posx = $wk_posx_ran
         posy = 130
         dimx = $wk_dimx_ran
         dimy = 25
      }
   }

   Label lVAR_DeltaAnFr
   {
      Caption = $wk_leg_deltabs

      Placement
      {
         posx = $wk_posx_leg
         posy = 170
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_DeltaAnFr
   {
      Caption = $wk_dsc_deltabs

      Placement
      {
         posx = $wk_posx_lab
         posy = 170
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_DeltaBas
   {
      Value = $wk_deltabs

      Placement
      {
         posx = $wk_posx_edt
         posy = 165
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }

   Label range_deltabs
   {
      Caption = $wk_range_deltabs

      Placement
      {
         posx = $wk_posx_ran
         posy = 170
         dimx = $wk_dimx_ran
         dimy = 25
      }
   }

   Label lVAR_YRotEld
   {
      Caption = $wk_leg_roteld

      Placement
      {
         posx = $wk_posx_leg
         posy = 210
         dimx = $wk_dimx_leg
         dimy = 25
      }
   }

   Label VAR_YRotEld
   {
      Caption = $wk_dsc_roteld

      Placement
      {
         posx = $wk_posx_lab
         posy = 210
         dimx = $wk_dimx_lab
         dimy = 25
      }
   }

   Edit eVAR_YRotEld
   {
      Value = $wk_roteld

      Placement
      {
         posx = $wk_posx_edt
         posy = 205
         dimx = $wk_dimx_edt
         dimy = 25
      }
   }

   Label range_roteld
   {
      Caption = $wk_range_roteld

      Placement
      {
         posx = $wk_posx_ran
         posy = 210
         dimx = $wk_dimx_ran
         dimy = 25
      }
   }
   //} frontali

   Button Ok
   {
      Caption = MSG(150)
      Result  = 1
      Default = 1

      Placement
      {
         posx = 50
         posy = 490
         //posy = 290
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(151)
      Result = 2

      Placement
      {
         posx = 150
         posy = 490
         //posy = 290
         dimx = 80
         dimy = 25
      }
   }
}

Dlg Dlg3Bottoni
{
   Caption = $wk_caption
   Placement
   {
      posx = 100
      posy = 100
      dimx = 400
      dimy = 200

      save_pos = 1
   }

   Image Im1
   {
      Caption = ""
      Value = $wk_image
      Placement
      {
         posx = 25
         posy = 30
         dimx = 40
         dimy = 40
      }
   }

   Label Txt1
   {
      //Testo del quesito (1a riga)
      Caption = $wk_txt1
      Placement
      {
         //posx = 90
         posx = $wk_DLG_posx_lb
         posy = 30
         dimx = 300
         dimy = 25
      }
   }

   Label Txt2
   {
      //Testo del quesito (2a riga)
      Caption = $wk_txt2
      Placement
      {
         //posx = 90
         posx = $wk_DLG_posx_lb
         posy = 50
         dimx = 300
         dimy = 25
      }
   }

   Label Txt2
   {
      //Testo del quesito (2a riga)
      Caption = $wk_txt3
      Placement
      {
         //posx = 90
         posx = $wk_DLG_posx_lb
         posy = 70
         dimx = 300
         dimy = 25
      }
   }

   Button B1
   {
      Caption = $wk_DLG_B1
      Result = 1
      Default = 1
      Placement
      {
         posx = 50
         posy = 120
         dimx = 80
         dimy = 25
      }
      OnClick
      [
         $wk_DLG_Result = 1
      ]
   }

   Button B2
   {
      Caption = $wk_DLG_B2
      Result = 2
      Placement
      {
         posx = 160
         posy = 120
         dimx = 80
         dimy = 25
      }
      OnClick
      [
         $wk_DLG_Result = 2
      ]
   }

   Button B3
   {
      Caption = $wk_DLG_B3
      Result = 3
      Placement
      {
         posx = 270
         posy = 120
         dimx = 80
         dimy = 25
      }
      OnClick
      [
         $wk_DLG_Result = 3
      ]

   }
}

Dlg SchedaTecnicaPCottura
{
   Caption = $wk_title
   Placement
   {
      posx = 100
      posy = 100
      dimx = 725
      //dimy = 620
      dimy = 580

      save_pos = 1
   }

   Image imageapp
   {
      Value = $wk_image
      Placement
      {
         posx = 340
         posy = 40
         dimx = 400
         dimy = 500
      }
   }

   Frame Lista
   {
      Caption = $wk_dsc_tpinc

      Placement
      {
         posx = 20
         posy = 20
         dimx = 160
         dimy = 80
      }

      Radio Opz01
      {
         Caption = $wk_dsc_tpinc_opz1
         Value   = $wk_val_tpinc_opz1

         Placement
         {
            posx = 20
            posy = 25
            dimx = 300
            dimy = 20
         }

         OnClick
         [
            //$wk_image = STRCAT($path_bmp,"Dialog\PCotturaAppoggio.png")
            $wk_image = STRCAT($path_bdm,"bmp\Dialog\PCotturaAppoggio.png")
            $wk_val_tpinc_opz1 = 1
            $wk_val_tpinc_opz2 = 0
            $wk_val_tpinc_opz3 = 0
            GOSUB Sub_Note_SchedaTecnicaPianoCottura

         ]
      }

      Radio Opz02
      {
         Caption = $wk_dsc_tpinc_opz2
         Value   = $wk_val_tpinc_opz2

         Placement
         {
            posx = 20
            posy = 50
            dimx = 300
            dimy = 20
         }

         OnClick
         [
            //$wk_image = STRCAT($path_bmp,"Dialog\PCotturaFiloTop.png")
            $wk_image = STRCAT($path_bdm,"bmp\Dialog\PCotturaFiloTop.png")
            $wk_val_tpinc_opz1 = 0
            $wk_val_tpinc_opz2 = 1
            $wk_val_tpinc_opz3 = 0
            GOSUB Sub_Note_SchedaTecnicaPianoCottura
         ]
      }

      //Radio Opz03
      //{
      //   Caption = $wk_dsc_tpinc_opz3
      //   Value   = $wk_val_tpinc_opz3
      //
      //   Placement
      //   {
      //      posx = 20
      //      posy = 75
      //      dimx = 300
      //      dimy = 20
      //   }
      //
      //   OnClick
      //   [
      //      $wk_image = STRCAT($path_bmp,"Dialog\PCotturaSottoTop.png")
      //      $wk_val_tpinc_opz1 = 0
      //      $wk_val_tpinc_opz2 = 0
      //      $wk_val_tpinc_opz3 = 1
      //   ]
      //}
   }

   Frame Lista2
   {
      Caption = $wk_dsc_tpeld

      Placement
      {
         posx = 200
         posy = 20
         dimx = 160
         dimy = 80
      }

      Radio Opz01
      {
         Caption = $wk_dsc_tpeld_opz1
         Value   = $wk_val_tpeld_opz1

         Placement
         {
            posx = 20
            posy = 25
            dimx = 300
            dimy = 20
         }

      }

      Radio Opz02
      {
         Caption = $wk_dsc_tpeld_opz2
         Value   = $wk_val_tpeld_opz2

         Placement
         {
            posx = 20
            posy = 50
            dimx = 300
            dimy = 20
         }
      }
   }

   Frame Lista3
   {
      Caption = ""

      Placement
      {
         posx = 20
         posy = 120
         dimx = 340
         dimy = 270
         //dimy = 300
      }

      //{** DIMENSIONI ELDOM
      Label lVAR_Xpct
      {
         Caption =  $wk_leg_xeld

         Placement
         {
            posx = $wk_posx_leg
            posy = 20
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_Xpct
      {
         Caption =  $wk_dsc_xeld

         Placement
         {
            posx = $wk_posx_lab
            posy = 20
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_Xpct
      {
         Value = $wk_xeld

         Placement
         {
            posx = $wk_posx_edt
            posy = 15
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow1
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_xeld
         Placement
         {
            posx = 250
            posy = 12
            dimx = 50
            dimy = 25
         }
      }

      Label lVAR_Zpct
      {
         Caption =  $wk_leg_zeld

         Placement
         {
            posx = $wk_posx_leg
            posy = 50
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_Zpct
      {
         Caption =  $wk_dsc_zeld

         Placement
         {
            posx = $wk_posx_lab
            posy = 50
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_Zpct
      {
         Value = $wk_zeld

         Placement
         {
            posx = $wk_posx_edt
            posy = 45
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow2
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_zeld
         Placement
         {
            posx = 250
            posy = 42
            dimx = 50
            dimy = 25
         }
      }
      //}** DIMENSIONI ELDOM

      //{** DIMENSIONI SCASSO
      Label lVAR_Xscs
      {
         Caption =  $wk_leg_xscs

         Placement
         {
            posx = $wk_posx_leg
            posy = 80
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_Xscs
      {
         Caption =  $wk_dsc_xscs

         Placement
         {
            posx = $wk_posx_lab
            posy = 80
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_Xscs
      {
         Value = $wk_xscs

         Placement
         {
            posx = $wk_posx_edt
            posy = 75
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow3
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_xscs
         Placement
         {
            posx = 250
            posy = 72
            dimx = 50
            dimy = 25
         }
      }

      Label lVAR_Zscs
      {
         Caption =  $wk_leg_zscs

         Placement
         {
            posx = $wk_posx_leg
            posy = 110
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_Zscs
      {
         Caption =  $wk_dsc_zscs

         Placement
         {
            posx = $wk_posx_lab
            posy = 110
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_Zscs
      {
         Value = $wk_zscs

         Placement
         {
            posx = $wk_posx_edt
            posy = 105
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow4
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_zscs
         Placement
         {
            posx = 250
            posy = 102
            dimx = 50
            dimy = 25
         }
      }

      Label lVAR_rag
      {
         Caption =  $wk_leg_rag

         Placement
         {
            posx = $wk_posx_leg
            posy = 140
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_rag
      {
         Caption =  $wk_dsc_rag

         Placement
         {
            posx = $wk_posx_lab
            posy = 140
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_rag
      {
         Value = $wk_rag

         Placement
         {
            posx = $wk_posx_edt
            posy = 135
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Label lVAR_delta
      {
         Caption =  $wk_leg_delta

         Placement
         {
            posx = $wk_posx_leg
            posy = 170
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_delta
      {
         Caption =  $wk_dsc_delta

         Placement
         {
            posx = $wk_posx_lab
            posy = 170
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_delta
      {
         Value = $wk_delt

         Placement
         {
            posx = $wk_posx_edt
            posy = 165
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }
      //} ** DIMENSIONI SCASSO

      //{** DIMENSIONI ALTEZZA
      Label lVAR_ysup
      {
         Caption =  $wk_leg_ysup

         Placement
         {
            posx = $wk_posx_leg
            posy = 200
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_ysup
      {
         Caption =  $wk_dsc_ysup

         Placement
         {
            posx = $wk_posx_lab
            posy = 200
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_ysup
      {
         Value = $wk_ysup

         Placement
         {
            posx = $wk_posx_edt
            posy = 195
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow5
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_ysup
         Placement
         {
            posx = 250
            posy = 192
            dimx = 50
            dimy = 25
         }
      }

      Label lVAR_yrie
      {
         Caption =  $wk_leg_yrie

         Placement
         {
            posx = $wk_posx_leg
            posy = 230
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VARyrie
      {
         Caption =  $wk_dsc_yrie

         Placement
         {
            posx = $wk_posx_lab
            posy = 230
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_yrie
      {
         Value = $wk_yrie

         Placement
         {
            posx = $wk_posx_edt
            posy = 225
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow5
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_yrie
         Placement
         {
            posx = 250
            posy = 42
            dimx = 50
            dimy = 25
         }
      }

      //Label lVAR_xrft
      //{
      //   Caption =  $wk_leg_xrft
      //   Visible = $wk_val_tpinc_opz2
      //
      //   Placement
      //   {
      //      posx = $wk_posx_leg
      //      posy = 260
      //      dimx = $wk_dimx_leg
      //      dimy = 25
      //   }
      //}
      //
      //Label VAR_xrft
      //{
      //   Caption =  $wk_dsc_xrft
      //   Visible = $wk_val_tpinc_opz2
      //
      //   Placement
      //   {
      //      posx = $wk_posx_lab
      //      posy = 260
      //      dimx = $wk_dimx_lab
      //      dimy = 25
      //   }
      //}
      //
      //Edit eVAR_xrft
      //{
      //   Value = $wk_xrft
      //   Visible = $wk_val_tpinc_opz2
      //
      //   Placement
      //   {
      //      posx = $wk_posx_edt
      //      posy = 255
      //      dimx = $wk_dimx_edt
      //      dimy = 25
      //   }
      //}
      //} ** DIMENSIONI ALTEZZA
   }

   Frame Lista3
   {
      Caption = $wk_dsc_note

      Placement
      {
         posx = 20
         //posy = 440
         posy = 410
         dimx = 340
         dimy = 108
      }

      Label lnota_1
      {
         Caption =  $wk_val_not1

         Placement
         {
            posx = $wk_posx_leg
            posy = 20
            dimx = 320
            dimy = 25
         }
      }

      Label lnota_2
      {
         Caption =  $wk_val_not2

         Placement
         {
            posx = $wk_posx_leg
            posy = 40
            dimx = 320
            dimy = 25
         }
      }

      Label lnota_3
      {
         Caption =  $wk_val_not3

         Placement
         {
            posx = $wk_posx_leg
            posy = 60
            dimx = 320
            dimy = 25
         }
      }

      Label lnota_4
      {
         Caption = $wk_val_not4

         Placement
         {
            posx = $wk_posx_leg
            posy = 80
            dimx = 320
            dimy = 25
         }
      }
   }

   Button Ok
   {
      Caption = MSG(150)
      Result  = 1
      Default = 1

      Placement
      {
         posx = 450
         //posy = 530
         posy = 490
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(151)
      Result = 2

      Placement
      {
         posx = 550
         //posy = 530
         posy = 490
         dimx = 80
         dimy = 25
      }
   }
}

Dlg SchedaTecnicaLavello
{
   Caption = $wk_title
   Placement
   {
      posx = 100
      posy = 100
      dimx = 725
      //dimy = 620
      dimy = 580

      save_pos = 1
   }

   Image imageapp
   {
      Value = $wk_image
      Placement
      {
         posx = 340
         posy = 40
         dimx = 400
         dimy = 500
      }
   }

   Frame Lista
   {
      Caption = $wk_dsc_tpinc

      Placement
      {
         posx = 20
         posy = 20
         dimx = 340
         dimy = 80
      }

      Radio Opz01
      {
         Caption = $wk_dsc_tpinc_opz1
         Value   = $wk_val_tpinc_opz1

         Placement
         {
            posx = 20
            posy = 35
            dimx = 100
            dimy = 20
         }

         OnClick
         [
            //$wk_image = STRCAT($path_bmp,"Dialog\PCotturaAppoggio.png")
            $wk_image = STRCAT($path_bdm,"bmp\Dialog\PCotturaAppoggio.png")
            $wk_val_tpinc_opz1 = 1
            $wk_val_tpinc_opz2 = 0
            $wk_val_tpinc_opz3 = 0
            GOSUB Sub_Note_SchedaTecnicaPianoCottura

         ]
      }

      Radio Opz02
      {
         Caption = $wk_dsc_tpinc_opz2
         Value   = $wk_val_tpinc_opz2

         Placement
         {
            posx = 120
            posy = 35
            dimx = 100
            dimy = 20
         }

         OnClick
         [
            //$wk_image = STRCAT($path_bmp,"Dialog\PCotturaFiloTop.png")
            $wk_image = STRCAT($path_bdm,"Bmp\Dialog\PCotturaFiloTop.png")
            $wk_val_tpinc_opz1 = 0
            $wk_val_tpinc_opz2 = 1
            $wk_val_tpinc_opz3 = 0
            GOSUB Sub_Note_SchedaTecnicaPianoCottura
         ]
      }

      Radio Opz03
      {
         Caption = $wk_dsc_tpinc_opz3
         Value   = $wk_val_tpinc_opz3

         Placement
         {
            posx = 220
            posy = 35
            dimx = 100
            dimy = 20
         }

         OnClick
         [
            //$wk_image = STRCAT($path_bmp,"Dialog\PCotturaSottoTop.png")
            $wk_image = STRCAT($path_bdm,"bmp\Dialog\PCotturaSottoTop.png")
            $wk_val_tpinc_opz1 = 0
            $wk_val_tpinc_opz2 = 0
            $wk_val_tpinc_opz3 = 1
            GOSUB Sub_Note_SchedaTecnicaPianoCottura
         ]
      }
   }

   Frame Lista3
   {
      Caption = ""

      Placement
      {
         posx = 20
         posy = 120
         dimx = 340
         dimy = 270
         //dimy = 300
      }

      //{** DIMENSIONI ELDOM
      Label lVAR_Xpct
      {
         Caption =  $wk_leg_xeld

         Placement
         {
            posx = $wk_posx_leg
            posy = 20
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_Xpct
      {
         Caption =  $wk_dsc_xeld

         Placement
         {
            posx = $wk_posx_lab
            posy = 20
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_Xpct
      {
         Value = $wk_xeld

         Placement
         {
            posx = $wk_posx_edt
            posy = 15
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow1
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_xeld
         Placement
         {
            posx = 250
            posy = 12
            dimx = 50
            dimy = 25
         }
      }

      Label lVAR_Zpct
      {
         Caption =  $wk_leg_zeld

         Placement
         {
            posx = $wk_posx_leg
            posy = 50
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_Zpct
      {
         Caption =  $wk_dsc_zeld

         Placement
         {
            posx = $wk_posx_lab
            posy = 50
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_Zpct
      {
         Value = $wk_zeld

         Placement
         {
            posx = $wk_posx_edt
            posy = 45
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow2
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_zeld
         Placement
         {
            posx = 250
            posy = 42
            dimx = 50
            dimy = 25
         }
      }
      //}** DIMENSIONI ELDOM

      //{** DIMENSIONI SCASSO
      Label lVAR_Xscs
      {
         Caption =  $wk_leg_xscs

         Placement
         {
            posx = $wk_posx_leg
            posy = 80
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_Xscs
      {
         Caption =  $wk_dsc_xscs

         Placement
         {
            posx = $wk_posx_lab
            posy = 80
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_Xscs
      {
         Value = $wk_xscs

         Placement
         {
            posx = $wk_posx_edt
            posy = 75
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow3
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_xscs
         Placement
         {
            posx = 250
            posy = 72
            dimx = 50
            dimy = 25
         }
      }

      Label lVAR_Zscs
      {
         Caption =  $wk_leg_zscs

         Placement
         {
            posx = $wk_posx_leg
            posy = 110
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_Zscs
      {
         Caption =  $wk_dsc_zscs

         Placement
         {
            posx = $wk_posx_lab
            posy = 110
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_Zscs
      {
         Value = $wk_zscs

         Placement
         {
            posx = $wk_posx_edt
            posy = 105
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow4
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_zscs
         Placement
         {
            posx = 250
            posy = 102
            dimx = 50
            dimy = 25
         }
      }

      Label lVAR_rag
      {
         Caption =  $wk_leg_rag

         Placement
         {
            posx = $wk_posx_leg
            posy = 140
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_rag
      {
         Caption =  $wk_dsc_rag

         Placement
         {
            posx = $wk_posx_lab
            posy = 140
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_rag
      {
         Value = $wk_rag

         Placement
         {
            posx = $wk_posx_edt
            posy = 135
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Label lVAR_delta
      {
         Caption =  $wk_leg_delta

         Placement
         {
            posx = $wk_posx_leg
            posy = 170
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_delta
      {
         Caption =  $wk_dsc_delta

         Placement
         {
            posx = $wk_posx_lab
            posy = 170
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_delta
      {
         Value = $wk_delt

         Placement
         {
            posx = $wk_posx_edt
            posy = 165
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }
      //} ** DIMENSIONI SCASSO

      //{** DIMENSIONI ALTEZZA
      Label lVAR_ysup
      {
         Caption =  $wk_leg_ysup

         Placement
         {
            posx = $wk_posx_leg
            posy = 200
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_ysup
      {
         Caption =  $wk_dsc_ysup

         Placement
         {
            posx = $wk_posx_lab
            posy = 200
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_ysup
      {
         Value = $wk_ysup

         Placement
         {
            posx = $wk_posx_edt
            posy = 195
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow5
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_ysup
         Placement
         {
            posx = 250
            posy = 192
            dimx = 50
            dimy = 25
         }
      }

      Label lVAR_yrie
      {
         Caption =  $wk_leg_yrie

         Placement
         {
            posx = $wk_posx_leg
            posy = 230
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VARyrie
      {
         Caption =  $wk_dsc_yrie

         Placement
         {
            posx = $wk_posx_lab
            posy = 230
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_yrie
      {
         Value = $wk_yrie

         Placement
         {
            posx = $wk_posx_edt
            posy = 225
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow5
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_yrie
         Placement
         {
            posx = 250
            posy = 42
            dimx = 50
            dimy = 25
         }
      }

      //Label lVAR_xrft
      //{
      //   Caption =  $wk_leg_xrft
      //   Visible = $wk_val_tpinc_opz2
      //
      //   Placement
      //   {
      //      posx = $wk_posx_leg
      //      posy = 260
      //      dimx = $wk_dimx_leg
      //      dimy = 25
      //   }
      //}
      //
      //Label VAR_xrft
      //{
      //   Caption =  $wk_dsc_xrft
      //   Visible = $wk_val_tpinc_opz2
      //
      //   Placement
      //   {
      //      posx = $wk_posx_lab
      //      posy = 260
      //      dimx = $wk_dimx_lab
      //      dimy = 25
      //   }
      //}
      //
      //Edit eVAR_xrft
      //{
      //   Value = $wk_xrft
      //   Visible = $wk_val_tpinc_opz2
      //
      //   Placement
      //   {
      //      posx = $wk_posx_edt
      //      posy = 255
      //      dimx = $wk_dimx_edt
      //      dimy = 25
      //   }
      //}
      //} ** DIMENSIONI ALTEZZA
   }

   Frame Lista3
   {
      Caption = $wk_dsc_note

      Placement
      {
         posx = 20
         //posy = 440
         posy = 410
         dimx = 340
         dimy = 108
      }

      Label lnota_1
      {
         Caption =  $wk_val_not1

         Placement
         {
            posx = $wk_posx_leg
            posy = 20
            dimx = 320
            dimy = 25
         }
      }

      Label lnota_2
      {
         Caption =  $wk_val_not2

         Placement
         {
            posx = $wk_posx_leg
            posy = 40
            dimx = 320
            dimy = 25
         }
      }

      Label lnota_3
      {
         Caption =  $wk_val_not3

         Placement
         {
            posx = $wk_posx_leg
            posy = 60
            dimx = 320
            dimy = 25
         }
      }

      Label lnota_4
      {
         Caption = $wk_val_not4

         Placement
         {
            posx = $wk_posx_leg
            posy = 80
            dimx = 320
            dimy = 25
         }
      }
   }

   Button Ok
   {
      Caption = MSG(150)
      Result  = 1
      Default = 1

      Placement
      {
         posx = 450
         //posy = 530
         posy = 490
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(151)
      Result = 2

      Placement
      {
         posx = 550
         //posy = 530
         posy = 490
         dimx = 80
         dimy = 25
      }
   }
}

Dlg SchedaTecnicaScassoGen
{
   Caption = $wk_title
   Placement
   {
      posx = 100
      posy = 100
      dimx = 390
      //dimy = 620
      dimy = 560

      save_pos = 1
   }

   Frame Lista
   {
      Caption = $wk_dsc_tpinc

      Placement
      {
         posx = 20
         posy = 20
         dimx = 340
         dimy = 60
      }

      Radio Opz01
      {
         Caption = $wk_dsc_tpinc_opz1
         Value   = $wk_val_tpinc_opz1

         Placement
         {
            posx = 20
            posy = 25
            dimx = 300
            dimy = 20
         }

         OnClick
         [
            $wk_val_tpinc_opz1 = 1
            $wk_val_tpinc_opz2 = 0
            $wk_val_tpinc_opz3 = 0
            GOSUB Sub_Note_SchedaTecnicaPianoCottura

         ]
      }

      Radio Opz02
      {
         Caption = $wk_dsc_tpinc_opz2
         Value   = $wk_val_tpinc_opz2

         Placement
         {
            posx = 190
            posy = 25
            dimx = 300
            dimy = 20
         }

         OnClick
         [
            $wk_val_tpinc_opz1 = 0
            $wk_val_tpinc_opz2 = 1
            $wk_val_tpinc_opz3 = 0
            GOSUB Sub_Note_SchedaTecnicaPianoCottura
         ]
      }
   }

   Frame Lista3
   {
      Caption = ""

      Placement
      {
         posx = 20
         posy = 100
         dimx = 340
         dimy = 250
         //dimy = 300
      }

      //{** DIMENSIONI ELDOM
      Label lVAR_Xpct
      {
         Caption =  $wk_leg_xeld

         Placement
         {
            posx = $wk_posx_leg
            posy = 20
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_Xpct
      {
         Caption =  $wk_dsc_xeld

         Placement
         {
            posx = $wk_posx_lab
            posy = 20
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_Xpct
      {
         Value = $wk_xeld

         Placement
         {
            posx = $wk_posx_edt
            posy = 15
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow1
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_xeld
         Placement
         {
            posx = 250
            posy = 12
            dimx = 50
            dimy = 25
         }
      }

      Label lVAR_Zpct
      {
         Caption =  $wk_leg_zeld

         Placement
         {
            posx = $wk_posx_leg
            posy = 50
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_Zpct
      {
         Caption =  $wk_dsc_zeld

         Placement
         {
            posx = $wk_posx_lab
            posy = 50
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_Zpct
      {
         Value = $wk_zeld

         Placement
         {
            posx = $wk_posx_edt
            posy = 45
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow2
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_zeld
         Placement
         {
            posx = 250
            posy = 42
            dimx = 50
            dimy = 25
         }
      }
      //}** DIMENSIONI ELDOM

      //{** DIMENSIONI SCASSO
      Label lVAR_Xscs
      {
         Caption =  $wk_leg_xscs

         Placement
         {
            posx = $wk_posx_leg
            posy = 80
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_Xscs
      {
         Caption =  $wk_dsc_xscs

         Placement
         {
            posx = $wk_posx_lab
            posy = 80
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_Xscs
      {
         Value = $wk_xscs

         Placement
         {
            posx = $wk_posx_edt
            posy = 75
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow3
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_xscs
         Placement
         {
            posx = 250
            posy = 72
            dimx = 50
            dimy = 25
         }
      }

      Label lVAR_Zscs
      {
         Caption =  $wk_leg_zscs

         Placement
         {
            posx = $wk_posx_leg
            posy = 110
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_Zscs
      {
         Caption =  $wk_dsc_zscs

         Placement
         {
            posx = $wk_posx_lab
            posy = 110
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_Zscs
      {
         Value = $wk_zscs

         Placement
         {
            posx = $wk_posx_edt
            posy = 105
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow4
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_zscs
         Placement
         {
            posx = 250
            posy = 102
            dimx = 50
            dimy = 25
         }
      }

      Label lVAR_rag
      {
         Caption =  $wk_leg_rag

         Placement
         {
            posx = $wk_posx_leg
            posy = 140
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_rag
      {
         Caption =  $wk_dsc_rag

         Placement
         {
            posx = $wk_posx_lab
            posy = 140
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_rag
      {
         Value = $wk_rag

         Placement
         {
            posx = $wk_posx_edt
            posy = 135
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow4
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_rag
         Placement
         {
            posx = 250
            posy = 132
            dimx = 50
            dimy = 25
         }
      }

      //Label lVAR_delta
      //{
      //   Caption =  $wk_leg_delta
      //
      //   Placement
      //   {
      //      posx = $wk_posx_leg
      //      posy = 110
      //      dimx = $wk_dimx_leg
      //      dimy = 25
      //   }
      //}
      //
      //Label VAR_delta
      //{
      //   Caption =  $wk_dsc_delta
      //
      //   Placement
      //   {
      //      posx = $wk_posx_lab
      //      posy = 110
      //      dimx = $wk_dimx_lab
      //      dimy = 25
      //   }
      //}
      //
      //Edit eVAR_delta
      //{
      //   Value = $wk_delt
      //
      //   Placement
      //   {
      //      posx = $wk_posx_edt
      //      posy = 105
      //      dimx = $wk_dimx_edt
      //      dimy = 25
      //   }
      //}
      //} ** DIMENSIONI SCASSO

      //{** DIMENSIONI ALTEZZA
      Label lVAR_ysup
      {
         Caption =  $wk_leg_ysup

         Placement
         {
            posx = $wk_posx_leg
            posy = 170
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VAR_ysup
      {
         Caption =  $wk_dsc_ysup

         Placement
         {
            posx = $wk_posx_lab
            posy = 170
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_ysup
      {
         Value = $wk_ysup

         Placement
         {
            posx = $wk_posx_edt
            posy = 165
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow5
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_ysup
         Placement
         {
            posx = 250
            posy = 162
            dimx = 50
            dimy = 25
         }
      }

      Label lVAR_yrie
      {
         Caption =  $wk_leg_yrie

         Placement
         {
            posx = $wk_posx_leg
            posy = 200
            dimx = $wk_dimx_leg
            dimy = 25
         }
      }

      Label VARyrie
      {
         Caption =  $wk_dsc_yrie

         Placement
         {
            posx = $wk_posx_lab
            posy = 200
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_yrie
      {
         Value = $wk_yrie

         Placement
         {
            posx = $wk_posx_edt
            posy = 195
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Image arrow5
      {
         Value = $wk_image_red_arrow
         Visible = $wk_errore_yrie
         Placement
         {
            posx = 250
            posy = 192
            dimx = 50
            dimy = 25
         }
      }

      //Label lVAR_xrft
      //{
      //   Caption =  $wk_leg_xrft
      //   Visible = $wk_val_tpinc_opz2
      //
      //   Placement
      //   {
      //      posx = $wk_posx_leg
      //      posy = 260
      //      dimx = $wk_dimx_leg
      //      dimy = 25
      //   }
      //}
      //
      //Label VAR_xrft
      //{
      //   Caption =  $wk_dsc_xrft
      //   Visible = $wk_val_tpinc_opz2
      //
      //   Placement
      //   {
      //      posx = $wk_posx_lab
      //      posy = 260
      //      dimx = $wk_dimx_lab
      //      dimy = 25
      //   }
      //}
      //
      //Edit eVAR_xrft
      //{
      //   Value = $wk_xrft
      //   Visible = $wk_val_tpinc_opz2
      //
      //   Placement
      //   {
      //      posx = $wk_posx_edt
      //      posy = 255
      //      dimx = $wk_dimx_edt
      //      dimy = 25
      //   }
      //}
      //} ** DIMENSIONI ALTEZZA
   }

   Frame Lista3
   {
      Caption = $wk_dsc_note

      Placement
      {
         posx = 20
         //posy = 440
         posy = 355
         dimx = 340
         dimy = 108
      }

      Label lnota_1
      {
         Caption =  $wk_val_not1

         Placement
         {
            posx = $wk_posx_leg
            posy = 20
            dimx = 320
            dimy = 25
         }
      }

      Label lnota_2
      {
         Caption =  $wk_val_not2

         Placement
         {
            posx = $wk_posx_leg
            posy = 40
            dimx = 320
            dimy = 25
         }
      }

      Label lnota_3
      {
         Caption =  $wk_val_not3

         Placement
         {
            posx = $wk_posx_leg
            posy = 60
            dimx = 320
            dimy = 25
         }
      }

      Label lnota_4
      {
         Caption = $wk_val_not4

         Placement
         {
            posx = $wk_posx_leg
            posy = 80
            dimx = 320
            dimy = 25
         }
      }
   }

   Button Ok
   {
      Caption = MSG(150)
      Result  = 1
      Default = 1

      Placement
      {
         posx = 95
         //posy = 530
         posy = 480
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(151)
      Result = 2

      Placement
      {
         posx = 215
         //posy = 530
         posy = 480
         dimx = 80
         dimy = 25
      }
   }
}

Dlg Armadio_RidAng
{
   Caption = $wk_caption
   Placement
   {
      posx = 100
      posy = 100
      dimx = 870
      dimy = 575
   }

   Image Im1
   {
      Caption = ""
      Value = $wk_image
      Placement
      {
         posx = 350
         posy = 30
         dimx = 480
         dimy = 480
      }
   }

   Panel Lista
   {
      Caption = ""
      Visible = 1

      Placement
      {
         posx = 15
         posy = 15
         dimx = 300
         dimy = 140
      }
   }

   //{ Variabili conosciute
   //{ Riga 1 - 2
   Label Legx
   {
      Caption = $wk_legX
      Placement
      {
         posx = 30
         posy = 30
         dimx = 50
         dimy = 25
      }
   }

   Label LegX
   {
      Caption = $wk_dscX
      Placement
      {
         posx = 80
         posy = 30
         dimx = 50
         dimy = 25
      }
   }

   Label VALX
   {
      Caption = $wk_valX
      Layout = 4
      Placement
      {
         posx = 210
         posy = 30
         dimx = 50
         dimy = 25
      }
   }

   Label LegZ
   {
      Caption = $wk_legZ
      Placement
      {
         posx = 30
         posy = 60
         dimx = 50
         dimy = 25
      }
   }

   Label VALZ
   {
      Caption = $wk_dscZ
      Placement
      {
         posx = 80
         posy = 60
         dimx = 50
         dimy = 25
      }
   }

   Label VALZ
   {
      Caption = $wk_valZ
      Layout = 4
      Placement
      {
         posx = 210
         posy = 60
         dimx = 50
         dimy = 25
      }
   }
   //} Riga 1-2

   //{ Riga 3-4
   Label LegZFS
   {
      Caption = $wk_legZFS
      Placement
      {
         posx = 30
         posy = 90
         dimx = 50
         dimy = 25
      }
   }

   Label desZFS
   {
      Caption = $wk_dscZFS
      Placement
      {
         posx = 80
         posy = 90
         dimx = 50
         dimy = 25
      }
   }

   Label VALZFS
   {
      Caption = $wk_valZFS
      Layout = 4
      Placement
      {
         posx = 210
         posy = 90
         dimx = 50
         dimy = 25
      }
   }

   Label LegZFD
   {
      Caption = $wk_legZFD
      Placement
      {
         posx = 30
         posy = 120
         dimx = 50
         dimy = 25
      }
   }

   Label DescZFD
   {
      Caption = $wk_dscZFD
      Placement
      {
         posx = 80
         posy = 120
         dimx = 50
         dimy = 25
      }
   }

   Label ValZFD
   {
      Caption = $wk_valZFD
      Layout = 4
      Placement
      {
         posx = 210
         posy = 120
         dimx = 50
         dimy = 25
      }
   }
   //} Riga 2
   //} Variabili conosciute

   //{ TAGLIO X
   Frame ListaTaglioX
   {
      Caption = $wk_lb_tgX
      Visible = 1

      Placement
      {
         posx = 15
         posy = 170
         dimx = 300
         dimy = 140
      }

      Radio TXB
      {
         Caption = $wk_dsc_rd_txb
         Value   = $wk_val_rd_txb
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 30
            dimx = 300
            dimy = 20
         }
      }

      Label RidTXB_MIN
      {
         Caption = $wk_dsc_rid_txb_min
         Layout = 4
         Enable  = 1

         Placement
         {
            posx = 190
            posy = 33
            dimx = 80
            dimy = 20
         }
      }

      Radio TXA
      {
         Caption = $wk_dsc_rd_txa
         Value   = $wk_val_rd_txa
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 60
            dimx = 300
            dimy = 20
         }
      }

      Label RidTXB_MIN
      {
         Caption = $wk_dsc_rid_txa_min
         Layout = 4
         Enable  = 1

         Placement
         {
            posx = 190
            posy = 63
            dimx = 80
            dimy = 20
         }
      }

      Label NewX
      {
         Caption = $wk_desc_newX
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 100
            dimx = 300
            dimy = 20
         }
      }

      Edit eNewX
      {
         Value = $wk_edit_newX

         Placement
         {
            posx = 210
            posy = 95
            dimx = 50
            dimy = 20
         }
      }
   }
   //} TAGLIO X

   //{ TAGLIO Z
   Frame ListaTaglioZ
   {
      Caption = $wk_lb_tgZ
      Visible = 1

      Placement
      {
         posx = 15
         posy = 325
         dimx = 300
         dimy = 140
      }

      Radio TZB
      {
         Caption = $wk_dsc_rd_tzb
         Value   = $wk_val_rd_tzb
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 30
            dimx = 300
            dimy = 20
         }
      }

      Label RidTZB_MIN
      {
         Caption = $wk_dsc_rid_tzb_min
         Layout = 4
         Enable  = 1

         Placement
         {
            posx = 190
            posy = 33
            dimx = 80
            dimy = 20
         }
      }

      Radio TZA
      {
         Caption = $wk_dsc_rd_tza
         Value   = $wk_val_rd_tza
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 60
            dimx = 300
            dimy = 20
         }
      }

      Label RidTXA_MIN
      {
         Caption = $wk_dsc_rid_tza_min
         Layout = 4
         Enable  = 1

         Placement
         {
            posx = 190
            posy = 63
            dimx = 80
            dimy = 20
         }
      }

      Label NewX
      {

         Caption = $wk_desc_newZ
         Enable  = 1

         Placement
         {
            posx = 20
            posy = 100
            dimx = 300
            dimy = 20
         }
      }

      Edit eNewX
      {
         Value = $wk_edit_newZ

         Placement
         {
            posx = 210
            posy = 95
            dimx = 50
            dimy = 20
         }
      }
   }
   //} TAGLIO Z

   Button Ok
   {
      Caption = MSG(150)
      Result  = 1
      Default = 1

      Placement
      {
         posx = 80
         posy = 490
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(151)
      Result = 2

      Placement
      {
         posx = 180
         posy = 490
         dimx = 80
         dimy = 25
      }
   }
}

Dlg ScassiWallPanel
{
   Caption = $wk_title
   Placement
   {
      posx = 100
      posy = 100
      dimx = 400
      dimy = 460

      save_pos = 1
   }

   //{ SCASSO RETTANGOLARE
   Frame frame1
   {
      Caption = $wk_lbl_1
      Visible = $wk_enable_ret

      Placement
      {
         posx = $wk_posx_lab
         posy = 20
         dimx = 350
         dimy = 160
      }

      Label VAR_X
      {
         Caption =  MSG(1122)

         Placement
         {
            posx = $wk_posx_lab
            posy = 35
            dimx = $wk_dimx_lab
            dimy = 20
         }
      }

      Edit eVAR_X
      {
         Value = $wk_scs_x

         Placement
         {
            posx = $wk_posx_edt
            posy = 30
            dimx = $wk_dimx_edt
            dimy = 20
         }
      }

      Label VAR_Range_X
      {
         Caption = $wk_scs_x_range
         Layout = 4

         Placement
         {
            posx = $wk_posx_lim
            posy = 35
            dimx = $wk_dimx_lim
            dimy = 20
         }
      }

      Label VAR_Y
      {
         Caption =  MSG(1123)

         Placement
         {
            posx = $wk_posx_lab
            posy = 65
            dimx = $wk_dimx_lab
            dimy = 20
         }
      }

      Edit eVAR_Y
      {
         Value = $wk_scs_y

         Placement
         {
            posx = $wk_posx_edt
            posy = 60
            dimx = $wk_dimx_edt
            dimy = 20
         }
      }

      Label VAR_Range_Y
      {
         Caption = $wk_scs_y_range
         Layout = 4

         Placement
         {
            posx = $wk_posx_lim
            posy = 65
            dimx = $wk_dimx_lim
            dimy = 20
         }
      }

      Label VAR_R
      {
         Caption =  MSG(1124)
         Enable  = $wk_enale_raggio

         Placement
         {
            posx = $wk_posx_lab
            posy = 95
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_raggio
      {
         Value = $wk_scs_rag
         Enable  = $wk_enale_raggio

         Placement
         {
            posx = $wk_posx_edt
            posy = 90
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Label VAR_Range_R
      {
         Caption  = $wk_scs_rag_range
         Visible  = $wk_enale_raggio
         Layout = 4

         Placement
         {
            posx = $wk_posx_lim
            posy = 95
            dimx = $wk_dimx_lim
            dimy = 25
         }
      }
   }

   Frame frame2
   {
      Caption = $wk_lbl_2
      Visible = $wk_enable_pos_ret_3ci

      Placement
      {
         posx = $wk_posx_lab
         posy = 200
         dimx = 350
         dimy = 130
      }

      Label lbl2a
      {
         Caption = $wk_lbl_2a

         Placement
         {
            posx = $wk_posx_lab
            posy = 30
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Label VAR_OffX
      {
         Caption =  MSG(1125)

         Placement
         {
            posx = $wk_posx_lab
            posy = 60
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Label VAR_Range_OffX
      {
         Caption =  $wk_scs_offx_range
         Layout = 4

         Placement
         {
            posx = $wk_posx_lim
            posy = 60
            dimx = $wk_dimx_lim
            dimy = 25
         }
      }

      Edit eVAR_OX
      {
         Value = $wk_scs_offx

         Placement
         {
            posx = $wk_posx_edt
            posy = 55
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Label VAR_OY
      {
         Caption =  MSG(1126)

         Placement
         {
            posx = $wk_posx_lab
            posy = 90
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_OY
      {
         Value = $wk_scs_offy

         Placement
         {
            posx = $wk_posx_edt
            posy = 85
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Label VAR_Range_OY
      {
         Caption = $wk_scs_offy_range
         Layout = 4

         Placement
         {
            posx = $wk_posx_lim
            posy = 90
            dimx = $wk_dimx_lim
            dimy = 25
         }
      }
   }
   //} SCASSO RETTANGOLARE

   //{ SCASSO CILINDRO
   Frame frame3
   {
      Caption = $wk_lbl_2
      Visible = $wk_enable_cil

      Placement
      {
         posx = $wk_posx_lab
         posy = 20
         dimx = 350
         dimy = 160
      }

      Label VAR_X
      {
         Caption =  MSG(1127)

         Placement
         {
            posx = $wk_posx_lab
            posy = 35
            dimx = $wk_dimx_lab
            dimy = 20
         }
      }

      Edit eVAR_X
      {
         Value = $wk_scs_diam

         Placement
         {
            posx = $wk_posx_edt
            posy = 30
            dimx = $wk_dimx_edt
            dimy = 20
         }
      }

      Label VAR_Range_X
      {
         Caption =  $wk_scs_diam_range
         Layout = 4

         Placement
         {
            posx = $wk_posx_lim
            posy = 35
            dimx = $wk_dimx_lim
            dimy = 20
         }
      }
   }

   Frame frame4
   {
      Caption = $wk_lbl_2
      Visible = $wk_enable_cil

      Placement
      {
         posx = $wk_posx_lab
         posy = 200
         dimx = 350
         dimy = 130
      }

      Label lbl2b
      {
         Caption = $wk_lbl_2b

         Placement
         {
            posx = $wk_posx_lab
            posy = 30
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Label VAR_OffX
      {
         Caption =  MSG(1125)

         Placement
         {
            posx = $wk_posx_lab
            posy = 60
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_OX
      {
         Value = $wk_scs_cil_offx

         Placement
         {
            posx = $wk_posx_edt
            posy = 55
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Label VAR_Range_OffX
      {
         Caption =  $wk_scs_cil_offx_range
         Layout = 4

         Placement
         {
            posx = $wk_posx_lim
            posy = 60
            dimx = $wk_dimx_lim
            dimy = 25
         }
      }

      Label VAR_OY
      {
         Caption =  MSG(1126)

         Placement
         {
            posx = $wk_posx_lab
            posy = 90
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_OY
      {
         Value = $wk_scs_cil_offy

         Placement
         {
            posx = $wk_posx_edt
            posy = 85
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Label VAR_Range_OY
      {
         Caption =  $wk_scs_cil_offy_range
         Layout = 4

         Placement
         {
            posx = $wk_posx_lim
            posy = 90
            dimx = $wk_dimx_lim
            dimy = 25
         }
      }
   }
   //} SCASSO CILINDRO

   //{ SCASSO SOTTOLAVELLO
   Frame frame5
   {
      Caption = $wk_lbl_1
      Visible = $wk_enable_3ci

      Placement
      {
         posx = $wk_posx_lab
         posy = 20
         dimx = 350
         dimy = 160
      }

      Label VAR_X
      {
         Caption = MSG(1128)

         Placement
         {
            posx = $wk_posx_lab
            posy = 35
            dimx = $wk_dimx_lab
            dimy = 20
         }
      }

      Edit eVAR_X
      {
         Value = $wk_scs_3cil_dia1
         Enable = 0

         Placement
         {
            posx = $wk_posx_edt
            posy = 30
            dimx = $wk_dimx_edt
            dimy = 20
         }
      }

      //Label VAR_Range_X
      //{
      //   Caption = $wk_scs_x_range
      //   Layout = 4
      //
      //   Placement
      //   {
      //      posx = $wk_posx_lim
      //      posy = 35
      //      dimx = $wk_dimx_lim
      //      dimy = 20
      //   }
      //}

      Label VAR_Y
      {
         Caption = MSG(1129)

         Placement
         {
            posx = $wk_posx_lab
            posy = 65
            dimx = $wk_dimx_lab
            dimy = 20
         }
      }

      Edit eVAR_Y
      {
         Value = $wk_scs_3cil_dia2
         Enable = 0

         Placement
         {
            posx = $wk_posx_edt
            posy = 60
            dimx = $wk_dimx_edt
            dimy = 20
         }
      }

      //Label VAR_Range_Y
      //{
      //   Caption = $wk_scs_y_range
      //   Layout = 4
      //
      //   Placement
      //   {
      //      posx = $wk_posx_lim
      //      posy = 65
      //      dimx = $wk_dimx_lim
      //      dimy = 20
      //   }
      //}

      Label VAR_R
      {
         Caption = MSG(1130)

         Placement
         {
            posx = $wk_posx_lab
            posy = 95
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_raggio
      {
         Value  = $wk_scs_3cil_InAX
         Enable = 0

         Placement
         {
            posx = $wk_posx_edt
            posy = 90
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      //Label VAR_Range_R
      //{
      //   Caption  = $wk_scs_rag_range
      //   Visible  = $wk_enale_raggio
      //   Layout = 4
      //
      //   Placement
      //   {
      //      posx = $wk_posx_lim
      //      posy = 95
      //      dimx = $wk_dimx_lim
      //      dimy = 25
      //   }
      //}

      Label VAR_IntAsseY
      {
         Caption = MSG(1131)

         Placement
         {
            posx = $wk_posx_lab
            posy = 125
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_IntAsseY
      {
         Value = $wk_scs_3cil_InAY
         Enable  = 0

         Placement
         {
            posx = $wk_posx_edt
            posy = 120
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }
   }

   //Frame frame6
   //{
   //   Caption = $wk_lbl_2
   //   Visible = $wk_enable_3ci
   //
   //   Placement
   //   {
   //      posx = $wk_posx_lab
   //      posy = 200
   //      dimx = 350
   //      dimy = 130
   //   }
   //
   //   Label lbl2a
   //   {
   //      Caption = $wk_lbl_2a
   //
   //      Placement
   //      {
   //         posx = $wk_posx_lab
   //         posy = 30
   //         dimx = $wk_dimx_lab
   //         dimy = 25
   //      }
   //   }
   //
   //   Label VAR_OffX
   //   {
   //      Caption =  "Posizione in X"
   //
   //      Placement
   //      {
   //         posx = $wk_posx_lab
   //         posy = 60
   //         dimx = $wk_dimx_lab
   //         dimy = 25
   //      }
   //   }
   //
   //   Label VAR_Range_OffX
   //   {
   //      Caption =  $wk_scs_offx_range
   //      Layout = 4
   //
   //      Placement
   //      {
   //         posx = $wk_posx_lim
   //         posy = 60
   //         dimx = $wk_dimx_lim
   //         dimy = 25
   //      }
   //   }
   //
   //   Edit eVAR_OX
   //   {
   //      Value = $wk_scs_offx
   //
   //      Placement
   //      {
   //         posx = $wk_posx_edt
   //         posy = 55
   //         dimx = $wk_dimx_edt
   //         dimy = 25
   //      }
   //   }
   //
   //   Label VAR_OY
   //   {
   //      Caption =  "Posizione in Y"
   //
   //      Placement
   //      {
   //         posx = $wk_posx_lab
   //         posy = 90
   //         dimx = $wk_dimx_lab
   //         dimy = 25
   //      }
   //   }
   //
   //   Edit eVAR_OY
   //   {
   //      Value = $wk_scs_offy
   //
   //      Placement
   //      {
   //         posx = $wk_posx_edt
   //         posy = 85
   //         dimx = $wk_dimx_edt
   //         dimy = 25
   //      }
   //   }
   //
   //   Label VAR_Range_OY
   //   {
   //      Caption = $wk_scs_offy_range
   //      Layout = 4
   //
   //      Placement
   //      {
   //         posx = $wk_posx_lim
   //         posy = 90
   //         dimx = $wk_dimx_lim
   //         dimy = 25
   //      }
   //   }
   //}
   //} SCASSO 3 CILINDRI

   Label LBL_EDIT
   {
      Caption =  $wk_lbl_ctrl

      Placement
      {
         posx = 20
         posy = 340
         dimx = 400
         dimy = 25
      }

      Font
      {
         color = 255
         type = 1
      }
   }

   Button Ok
   {
      Caption = MSG(150)
      Result  = 1
      Default = 1

      Placement
      {
         posx = 105
         posy = 380
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(151)
      Result = 2

      Placement
      {
         posx = 205
         posy = 380
         dimx = 80
         dimy = 25
      }
   }
}

Dlg ScorriSxDX_Freccie
{
   Caption = $wk_dlg_caption
   Placement
   {
      posx = 100
      posy = 100
      dimx = 240
      dimy = 250

      save_pos = 1
   }

   Label lbl1
   {
      Caption = $wk_dlg_lbl1
      Placement
      {
         posx = 25
         posy = 20
         dimx = 250
         dimy = 25
      }
   }

   Label lbl12
   {
      Caption = $wk_dlg_lbl2
      Placement
      {
         posx = 25
         posy = 40
         dimx = 250
         dimy = 25
      }
   }

   Image prev
   {
      Caption = ""
      Value = $wk_dlg_bnt_prev
      Placement
      {
         posx = 25
         posy = 70
         dimx = 80
         dimy = 80
      }

      OnClick
      [
         $wk_dlg_azione = -1
         GOSUB $wk_dlg_bnt_azione
      ]
   }

   Image Next
   {
      Caption = ""
      Value = $wk_dlg_bnt_next
      Placement
      {
         posx = 125
         posy = 70
         dimx = 80
         dimy = 80
      }

      OnClick
      [
         $wk_dlg_azione = 1
         GOSUB $wk_dlg_bnt_azione
      ]
   }

   Button Ok
   {
      Caption = MSG(150)
      Result  = 1
      Default = 1

      Placement
      {
         posx = 25
         posy = 170
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(151)
      Result = 2

      Placement
      {
         posx = 125
         posy = 170
         dimx = 80
         dimy = 25
      }
   }
}

//Alberto B.

Dlg M_CabinaVista
{
   Caption = MSG(1147)
   Placement
   {
      posx = 100
      posy = 100
      dimx = 450
      dimy = 450

      save_pos = 1
   }

   Button Ok
   {
      Caption = MSG(150)
      Result  = 1
      Default = 1

      Placement
      {
         posx = 120
         posy = 375
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(151)
      Result = 2

      Placement
      {
         posx = 220
         posy = 375
         dimx = 80
         dimy = 25
      }
   }


   Frame gen
   {
      Caption = $wk_DLG_Titolo_FrDim

      Placement
      {
         posx = 20
         posy = 20
         dimx = 400
         dimy = 170
      }

      Label X_vano
      {
         Caption = $wk_DLG_Label_Lar
         Placement
         {
            posx = 20
            posy = 32
            dimx = 150
            dimy = 25
         }
      }

      Button I_X_vano
      {
         Caption = $wk_X
         Default = 1
         Placement
         {
            posx = 170
            posy = 26
            dimx = 40
            dimy = 20
         }

         OnClick
         [
            CHIEDI($wk_DLG_idx , "X")
            $wk_X = STR(VAR_VAL($wk_DLG_idx , "X"))
         ]
      }

      Label Y_tubo
      {
         Caption = $wk_DLG_Label_AltS
         Placement
         {
            posx = 20
            posy = 64
            dimx = 150
            dimy = 25
         }
      }

      Edit I_Y_tubo
      {
         Value = $wk_Y_Tubo_Soffitto
         Placement
         {
            posx = 170
            posy = 61
            dimx = 40
            dimy = 20
         }
      }

      Label Y_soff
      {
         Caption = $wk_DLG_Label_AltT
         Placement
         {
            posx = 20
            posy = 96
            dimx = 150
            dimy = 25
         }
      }

      Label R_Y_soff
      {
         Caption = $wk_Y_Tubo_Soffitto
         Caption = $wk_Y_Soffitto
         Layout = 4
         Placement
         {
            posx = 170
            posy = 96
            dimx = 35
            dimy = 25
         }
      }

      Label Z_vano
      {
         Caption = $wk_DLG_Label_Prf
         Placement
         {
            posx = 20
            posy = 128
            dimx = 150
            dimy = 25
         }
      }

      Label R_Z_vano
      {
         Caption = $wk_Z
         Layout = 4
         Placement
         {
            posx = 170
            posy = 128
            dimx = 35
            dimy = 25
         }
      }
   }

   Frame tubSX
   {
      Caption = ""

      Placement
      {
         posx = 20
         posy = 200
         dimx = 400
         dimy = 75
      }

      Check SX_tubo
      {
         Caption = $wk_DLG_Label_TuboSx
         Value = $wk_TuboSX
         Enable = $wk_enable_tubo_sx
         Placement
         {
            posx = 20
            posy = 15
            dimx = 150
            dimy = 25
         }
      }

      Label I_SX_tubo
      {
         Caption = $wk_DLG_Label_TipoTuboSx
         Value = 1
         Enable = $wk_enable_tubo_sx
         Placement
         {
            posx = 125
            posy = 20
            dimx = 150
            dimy = 25
         }
      }

      Radio sofSX
      {
         Caption = $wk_DLG_Label_Soffitto
         Value = $wk_TP_SoffSX
         Enable = $wk_enable_tubo_sx
         Placement
         {
            posx = 250
            posy = 15
            dimx = 150
            dimy = 25
         }
         OnClick
         [
            $wk_TP_SoffSX = 1
            $wk_TP_ParSX  = 0
         ]

      }

      Radio parSX
      {
         Caption = $wk_DLG_Label_Parete
         Value = $wk_TP_ParSX
         Enable = $wk_enable_tubo_sx
         Placement
         {
            posx = 250
            posy = 35
            dimx = 150
            dimy = 25
         }
         OnClick
         [
            $wk_TP_SoffSX = 0
            $wk_TP_ParSX  = 1
            if( $wk_enable_tubo_sx==0 ) { $wk_TP_ParSX  = 0 }
         ]

      }

      Edit HparSX
      {
         Value  = $wk_H_ParSX
         Enable = $wk_TP_ParSX
         Placement
         {
            //posx = 250
            //posy = 60
            //dimx = 75
            //dimy = 20
            posx = 340
            posy = 37
            dimx = 50
            dimy = 20
         }
      }
   }

   Frame tubDX
   {
      Caption = ""

      Placement
      {
         posx = 20
         posy = 285
         dimx = 400
         dimy = 75
      }

      Check DX_tubo
      {
         Caption = $wk_DLG_Label_TuboDx
         Value = $wk_TuboDX
         Enable = $wk_enable_tubo_dx
         Placement
         {
            posx = 20
            posy = 15
            dimx = 150
            dimy = 25
         }
      }

      Label I_DX_tubo
      {
         Caption = $wk_DLG_Label_TipoTuboDx
         Value = 1
         Enable = $wk_enable_tubo_dx
         Placement
         {
            posx = 125
            posy = 20
            dimx = 150
            dimy = 25
         }
      }

      Radio sofDX
      {
         Caption = $wk_DLG_Label_Soffitto
         Value = $wk_TP_SoffDX
         Enable = $wk_enable_tubo_dx
         Placement
         {
            posx = 250
            posy = 15
            dimx = 150
            dimy = 25
         }
         OnClick
         [
            $wk_TP_SoffDX = 1
            $wk_TP_ParDX  = 0
         ]
      }

      Radio parDX
      {
         Caption = $wk_DLG_Label_Parete
         Value = $wk_TP_ParDX
         Enable = $wk_enable_tubo_dx
         Placement
         {
            posx = 250
            posy = 35
            dimx = 150
            dimy = 25
         }
         OnClick
         [
            $wk_TP_SoffDX = 0
            $wk_TP_ParDX  = 1

            if( $wk_enable_tubo_dx==0 ) { $wk_TP_ParDX  = 0 }
         ]
      }

      Edit HparDX
      {
         Value = $wk_H_ParDX
         Enable = $wk_TP_ParDX
         Placement
         {
            //posx = 250
            //posy = 60

            posx = 340
            posy = 37
            dimx = 50
            dimy = 20
         }
      }
   }
}

Dlg CG_Riassunto
{
   Caption = $wk_DLG_CG_Titolo
   Placement
   {
      posx = 100
      posy = 100
      dimx = $wk_DLG_CG_DimX
      dimy = $wk_DLG_CG_DimY

      save_pos = 1
   }

   Frame A
   {
      Caption = MSG(1222)
      Visible  =  $wk_DLG_CG_FrameA_enable

      Placement
      {
         posx = 20
         posy = $wk_DLG_CG_FrameA_OffY
         dimx = 700
         dimy = $wk_DLG_CG_FrameA_Y
      }

      //{ LINEA 1
      Label Label1a
      {
         Caption = $wk_DLG_CG_Label_1a
         WordWrap = 1

         Placement
         {
            posx = 25
            posy = 35
            dimx = 400
            dimy = 25
         }
      }

      Button Button1
      {
         Caption = $wk_DLG_CG_Button
         Visible = $wk_DLG_CG_Btn_visible_1a

         Placement
         {
            posx = 600
            posy = 30
            dimx = 80
            dimy = 25
         }

         OnClick
         [
            SpegniTuttiIDX()
            Riassunto_CG_CFO_AccendiIDX_Gruppo($wk_DLG_CG_Btn_1a)
         ]
      }
      //} LINEA 1

      //{ LINEA 2
      Label Label2
      {
         Caption = $wk_DLG_CG_Label_2a

         Placement
         {
            posx = 25
            posy = 75
            dimx = 500
            dimy = 25
         }
      }

      Button Label2
      {
         Caption = $wk_DLG_CG_Button
         Visible = $wk_DLG_CG_Btn_visible_2a

         Placement
         {
            posx = 600
            posy = 70
            dimx = 80
            dimy = 25
         }

         OnClick
         [
            SpegniTuttiIDX()
            Riassunto_CG_CFO_AccendiIDX_Gruppo($wk_DLG_CG_Btn_2a)
         ]
      }
      //} LINEA 2


      //{ LINEA 3
      Label Label3
      {
         Caption = $wk_DLG_CG_Label_3a

         Placement
         {
            posx = 25
            posy = 115
            dimx = 500
            dimy = 25
         }
      }

      Button Label3
      {
         Caption = $wk_DLG_CG_Button
         Visible = $wk_DLG_CG_Btn_visible_3a

         Placement
         {
            posx = 600
            posy = 110
            dimx = 80
            dimy = 25
         }

         OnClick
         [
            SpegniTuttiIDX()
            Riassunto_CG_CFO_AccendiIDX_Gruppo($wk_DLG_CG_Btn_3a)
         ]
      }
      //} LINEA 3

      //{ LINEA 4
      Label Label4
      {
         Caption = $wk_DLG_CG_Label_4a

         Placement
         {
            posx = 25
            posy = 155
            dimx = 500
            dimy = 25
         }
      }

      Button Label4
      {
         Caption = $wk_DLG_CG_Button
         Visible = $wk_DLG_CG_Btn_visible_4a

         Placement
         {
            posx = 600
            posy = 150
            dimx = 80
            dimy = 25
         }

         OnClick
         [
            SpegniTuttiIDX()
            Riassunto_CG_CFO_AccendiIDX_Gruppo($wk_DLG_CG_Btn_4a)
         ]
      }
      //} LINEA 4

      //{ LINEA 5
      Label Label5a
      {
         Caption = $wk_DLG_CG_Label_5a

         Placement
         {
            posx = 25
            posy = 195
            dimx = 500
            dimy = 25
         }
      }

      Button Label5
      {
         Caption = $wk_DLG_CG_Button
         Visible = $wk_DLG_CG_Btn_visible_5a

         Placement
         {
            posx = 600
            posy = 190
            dimx = 80
            dimy = 25
         }

         OnClick
         [
            SpegniTuttiIDX()
            Riassunto_CG_CFO_AccendiIDX_Gruppo($wk_DLG_CG_Btn_5a)
         ]
      }
      //} LINEA 5

      //{ LINEA 6
      Label Label6
      {
         Caption = $wk_DLG_CG_Label_6a

         Placement
         {
            posx = 25
            posy = 235
            dimx = 500
            dimy = 25
         }
      }

      Button Label6
      {
         Caption = $wk_DLG_CG_Button
         Visible = $wk_DLG_CG_Btn_visible_6a

         Placement
         {
            posx = 600
            posy = 223
            dimx = 80
            dimy = 25
         }

         OnClick
         [
            SpegniTuttiIDX()
            Riassunto_CG_CFO_AccendiIDX_Gruppo($wk_DLG_CG_Btn_6a)
         ]
      }
      //} LINEA 6
   }

   Frame B
   {
      Caption = MSG(1223)
      Visible  =  $wk_DLG_CG_FrameB_enable

      Placement
      {
         posx = 20
         posy = $wk_DLG_CG_FrameB_OffY
         dimx = 700
         dimy = $wk_DLG_CG_FrameB_Y
      }

      //{ LINEA 1
      Label Label1b
      {
         Caption = $wk_DLG_CG_Label_1b
         WordWrap = 1

         Placement
         {
            posx = 25
            posy = 35
            dimx = 500
            dimy = 25
         }
      }

      Button Button1b
      {
         Caption = $wk_DLG_CG_Button
         Visible = $wk_DLG_CG_Btn_visible_1b

         Placement
         {
            posx = 600
            posy = 30
            dimx = 80
            dimy = 25
         }

         OnClick
         [
            SpegniTuttiIDX()
            Riassunto_CG_CFO_AccendiIDX_Gruppo($wk_DLG_CG_Btn_1b)
         ]
      }
      //} LINEA 1

      //{ LINEA 2
      Label Label2b
      {
         Caption = $wk_DLG_CG_Label_2b

         Placement
         {
            posx = 25
            posy = 75
            dimx = 500
            dimy = 25
         }
      }

      Button Label2b
      {
         Caption = $wk_DLG_CG_Button
         Visible = $wk_DLG_CG_Btn_visible_2b

         Placement
         {
            posx = 600
            posy = 70
            dimx = 80
            dimy = 25
         }

         OnClick
         [
            SpegniTuttiIDX()
            Riassunto_CG_CFO_AccendiIDX_Gruppo($wk_DLG_CG_Btn_2b)
         ]
      }
      //} LINEA 2


      //{ LINEA 3
      Label Label3b
      {
         Caption = $wk_DLG_CG_Label_3b

         Placement
         {
            posx = 25
            posy = 115
            dimx = 500
            dimy = 25
         }
      }

      Button Label3
      {
         Caption = $wk_DLG_CG_Button
         Visible = $wk_DLG_CG_Btn_visible_3b

         Placement
         {
            posx = 600
            posy = 110
            dimx = 80
            dimy = 25
         }

         OnClick
         [
            SpegniTuttiIDX()
            Riassunto_CG_CFO_AccendiIDX_Gruppo($wk_DLG_CG_Btn_3b)
         ]
      }
      //} LINEA 3

      //{ LINEA 4
      Label Label4
      {
         Caption = $wk_DLG_CG_Label_4b

         Placement
         {
            posx = 25
            posy = 155
            dimx = 500
            dimy = 25
         }
      }

      Button Label4
      {
         Caption = $wk_DLG_CG_Button
         Visible = $wk_DLG_CG_Btn_visible_4b

         Placement
         {
            posx = 600
            posy = 155
            dimx = 80
            dimy = 25
         }

         OnClick
         [
            SpegniTuttiIDX()
            Riassunto_CG_CFO_AccendiIDX_Gruppo($wk_DLG_CG_Btn_4b)
         ]
      }
      //} LINEA 4

      //{ LINEA 5
      Label Label5b
      {
         Caption = $wk_DLG_CG_Label_5b

         Placement
         {
            posx = 25
            posy = 195
            dimx = 500
            dimy = 25
         }
      }

      Button Label5
      {
         Caption = $wk_DLG_CG_Button
         Visible = $wk_DLG_CG_Btn_visible_5b

         Placement
         {
            posx = 600
            posy = 190
            dimx = 80
            dimy = 25
         }

         OnClick
         [
            SpegniTuttiIDX()
            Riassunto_CG_CFO_AccendiIDX_Gruppo($wk_DLG_CG_Btn_5b)
         ]
      }
      //} LINEA 5

      //{ LINEA 6
      Label Label6
      {
         Caption = $wk_DLG_CG_Label_6b

         Placement
         {
            posx = 25
            posy = 235
            dimx = 500
            dimy = 25
         }
      }

      Button Label6
      {
         Caption = $wk_DLG_CG_Button
         Visible = $wk_DLG_CG_Btn_visible_6b

         Placement
         {
            posx = 600
            posy = 230
            dimx = 80
            dimy = 25
         }

         OnClick
         [
            SpegniTuttiIDX()
            Riassunto_CG_CFO_AccendiIDX_Gruppo($wk_DLG_CG_Btn_6b)
         ]
      }
      //} LINEA 6
   }

   Label label
   {
      Caption = $wk_DLG_CG_Lbl_Blocco

      Font
      {
         color = 255
         type  = 1
         size  = 10.5
      }

      Placement
      {
         posx = 20
         posy = $wk_DLG_CG_Pos_Lbl_Y
         dimx = 400
         dimy = 25
      }
   }

   Button Ok
   {
      Caption = MSG(150)
      Result  = 1
      Default = 1

      Placement
      {
         posx = 520
         posy = $wk_DLG_CG_Pos_Btn_Y
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(151)
      Result = 2

      Placement
      {
         posx = 620
         posy = $wk_DLG_CG_Pos_Btn_Y
         dimx = 80
         dimy = 25
      }
   }
}

Dlg Misure3
{
   Caption = $wk_titolo
   Placement
   {
      posx = 100
      posy = 100
      dimx = 460
      dimy = 520

      save_pos = 1
   }

   Frame fim
   {
      Caption = ""

      Placement
      {
         posx = 24
         posy = 24
         dimx = 401
         dimy = 401
      }

      Image Im1
      {
         Value = $wk_dlg_img

         Placement
         {
            posx = 1
            posy = 1
            dimx = 400
            dimy = 400
         }
      }

      Button lbl1
      {
         Caption = $wk_dim1_val
         Visible = $wk_dlg_dim1_edit
         Placement
         {
            posx = $wk_dlg_dim1_bpx
            posy = $wk_dlg_dim1_bpy
            dimx = 45
            dimy = 25
         }

         OnClick
         [
            CHIEDI(-1,"SM_DIM1")
            $wk_dim1_val = STR(VAR_VAL(-1,"SM_DIM1"))
         ]

         Font
         {
            //color = 0
            type  = $wk_dim2_font
         }
      }

      Label lbl1
      {
         Caption = $wk_dim1_val
         Layout  = 4
         Visible = 1 - $wk_dlg_dim1_edit

         Placement
         {
            posx = $wk_dlg_dim1_bpx
            posy = $wk_dlg_dim1_bpy
            dimx = 45
            dimy = 20
         }

         Font
         {
            //color = 0
            type = 1
         }
      }

      Button lbl2
      {
         Caption = $wk_dim2_val
         Visible = $wk_dlg_dim2_edit

         Placement
         {
            posx = $wk_dlg_dim2_bpx
            posy = $wk_dlg_dim2_bpy
            dimx = 45
            dimy = 25
         }

         Font
         {
            //color = 0
            type  = $wk_dim2_font
         }

         OnClick
         [

            CHIEDI(-1,"SM_DIM2")
            $wk_dim2_val = STR(VAR_VAL(-1,"SM_DIM2"))
         ]
      }

      Label lbl2
      {
         Caption = $wk_dim2_val
         Layout  = 4
         Visible = 1 - $wk_dlg_dim2_edit

         Placement
         {
            posx = $wk_dlg_dim2_bpx
            posy = $wk_dlg_dim2_bpy
            dimx = 45
            dimy = 20
         }

         Font
         {
            //color = 0
            type = 1
         }
      }

      Button btn3
      {
         Caption = $wk_dim3_val
         Visible = $wk_dlg_dim3_edit

         Placement
         {
            posx = $wk_dlg_dim3_bpx
            posy = $wk_dlg_dim3_bpy
            dimx = 45
            dimy = 25
         }

         Font
         {
            //color = 0
            type  = $wk_dim3_font
         }

         OnClick
         [
            CHIEDI(-1,"SM_DIM3")
            $wk_dim3_val = STR(VAR_VAL(-1,"SM_DIM3"))
         ]
      }

      Label lbl3
      {
         Caption = $wk_dim3_val
         Layout  = 4
         Visible = 1 - $wk_dlg_dim3_edit

         Placement
         {
            posx = $wk_dlg_dim3_bpx
            posy = $wk_dlg_dim3_bpy
            dimx = 45
            dimy = 20
         }

         Font
         {
            //color = 0
            type = 1
         }
      }
      //} DIM 3
   }

   Button OK
   {
      Caption = MSG(150)
      Result  = 1
      Default = 1

      Placement
      {
         posx = 220
         posy = 440
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(151)
      Result  = 2

      Placement
      {
         posx = 340
         posy = 440
         dimx = 80
         dimy = 25
      }
   }
}

Dlg SpostaPassacavi_368
{
   Caption = $wk_title

   Placement
   {
      posx = 100
      posy = 100
      //dimx = 400
      dimx = 350
      //dimy = 460
      dimy = $wk_DLG_dimy

      save_pos = 1
   }

   Frame frame1
   {
      Caption = $wk_lbl_1

      Placement
      {
         posx = $wk_posx_lab
         posy = 20
         //dimx = 350
         dimx = 300
         dimy = 140
      }

      Label lbl2a
      {
         Caption = $wk_lbl_2a

         Placement
         {
            posx = $wk_posx_lab
            posy = 30
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Label VAR_OffX
      {
         Caption =  MSG(1125)

         Placement
         {
            posx = $wk_posx_lab
            posy = 60
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      //Label VAR_Range_OffX
      //{
      //   Caption =  $wk_scs_offx_range
      //   Layout = 4
      //
      //   Placement
      //   {
      //      posx = $wk_posx_lim
      //      posy = 60
      //      dimx = $wk_dimx_lim
      //      dimy = 25
      //   }
      //}

      Edit eVAR_OX
      {
         Value = $wk_pcv_offx

         Placement
         {
            posx = $wk_posx_edt
            posy = 55
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      Label VAR_OZ
      {
         Caption =  MSG(1230)

         Placement
         {
            posx = $wk_posx_lab
            posy = 90
            dimx = $wk_dimx_lab
            dimy = 25
         }
      }

      Edit eVAR_OZ
      {
         Value  = $wk_pcv_offz
         Enable = $wk_enable_offz

         Placement
         {
            posx = $wk_posx_edt
            posy = 85
            dimx = $wk_dimx_edt
            dimy = 25
         }
      }

      //Label VAR_Range_OY
      //{
      //   Caption = $wk_scs_offy_range
      //   Layout = 4
      //
      //   Placement
      //   {
      //      posx = $wk_posx_lim
      //      posy = 90
      //      dimx = $wk_dimx_lim
      //      dimy = 25
      //   }
      //}
   }

   Frame frame2
   {
      Caption = $wk_lbl_2
      Visible = $wk_DLG_AttivaRot

      Placement
      {
         posx = $wk_posx_lab
         posy = 190
         dimx = 300
         dimy = 130
      }

      Radio Opz01
      {
         Caption = "0°"
         Value   = $wk_DLG_radio1
         Enable  = 1

         Placement
         {
            posx = 125
            posy = 30
            dimx = 150
            dimy = 20
         }

         OnClick
         [
            $wk_DLG_radio1 = 1
            $wk_DLG_radio2 = 0
            $wk_DLG_radio3 = 0
            $wk_DLG_radio4 = 0
         ]
      }

      Radio Opz02
      {
         Caption = "90°"
         Value   = $wk_DLG_radio2
         Enable  = 1

         Placement
         {
            posx = 50
            posy = 60
            dimx = 150
            dimy = 20
         }

         OnClick
         [
            $wk_DLG_radio1 = 0
            $wk_DLG_radio2 = 1
            $wk_DLG_radio3 = 0
            $wk_DLG_radio4 = 0
         ]
      }

      Radio Opz03
      {
         Caption = "180°"
         Value   = $wk_DLG_radio3
         Enable  = 1

         Placement
         {
            posx = 125
            posy = 90
            dimx = 150
            dimy = 20
         }

         OnClick
         [
            $wk_DLG_radio1 = 0
            $wk_DLG_radio2 = 0
            $wk_DLG_radio3 = 1
            $wk_DLG_radio4 = 0
         ]
      }

      Radio Opz03
      {
         Caption = "270°"
         Value   = $wk_DLG_radio4
         Enable  = 1

         Placement
         {
            posx = 195
            posy = 60
            dimx = 150
            dimy = 20
         }

         OnClick
         [
            $wk_DLG_radio1 = 0
            $wk_DLG_radio2 = 0
            $wk_DLG_radio3 = 0
            $wk_DLG_radio4 = 1
         ]
      }
   }

   Label LBL_EDIT
   {
      Caption =  $wk_lbl_ctrl

      Placement
      {
         posx = 20
         posy = $wk_DLG_lbl_ctrl_posy
         dimx = 400
         dimy = 25
      }

      Font
      {
         color = 255
         type = 1
      }
   }

   Button Ok
   {
      Caption = MSG(150)
      Result  = 1
      Default = 1

      Placement
      {
         posx = 125
         posy = $wk_DLG_btn_ctrl_posy
         dimx = 80
         dimy = 25
      }
   }

   Button Annulla
   {
      Caption = MSG(151)
      Result = 2

      Placement
      {
         posx = 230
         posy = $wk_DLG_btn_ctrl_posy
         dimx = 80
         dimy = 25
      }
   }

   //aggiungo per evitare loop
   Button Elimina
   {
      Caption = MSG(1236)
      Result = 3

      Placement
      {
         posx = 20
         posy = $wk_DLG_btn_ctrl_posy
         dimx = 80
         dimy = 25
      }

      OnClick
      [
         $wk_dlg_button_elimina = 1
      ]
   }

   //Image lb
   //{
   //   Value = ""
   //   Placement
   //   {
   //      posx = 0
   //      posy = $wk_DLG_btn_ctrl_posy
   //      dimx = 50
   //      dimy = 100
   //   }
   //   OnClick
   //   [
   //      $wk_dlg_forza_uscita = 1
   //   ]
   //}
}

// FT 10/09/18
Dlg CtrlGruppiXGlass
{
   Caption = "GRUPPI XGLASS"

   Placement
   {
      posx = 150
      posy = 150
      dimx = 300
      //dimy = 290
      dimy = 340
      save_pos = 1
   }

   //Font
   //{
   //   size = $SizeFont
   //   name = $TypeFont
   //}

   Button btnGenera
   {
      Caption = "(1) Genera Gruppi"
      Hint = "Genera Gruppi"
      Enable = $wk_dlg_genera

      Placement
      {
         posx = 10
         posy = 20
         dimx = 120
         dimy = 30
      }

      OnClick
      [
         COMANDO2("Esegui GeneraGruppiXGlass")
         // GOSUB GeneraGruppiXGlass

         $wk_dlg_step = 1

         $wk_dlg_genera_lbl = STRCAT(STR(VAR_VAL(-1, "wk_dlg_Groups")), " gruppi generati")

         $wk_dlg_genera = 0     $wk_dlg_genera_ok = 1
         $wk_dlg_unisci = 1     $wk_dlg_unisci_ok = 0
         $wk_dlg_setta  = 1     $wk_dlg_setta_ok  = 0
         $wk_dlg_numera = 0     $wk_dlg_numera_ok = 0
      ]

   }

   Image ImgGenera
   {
      Value   = $wk_dlg_check
      Visible = $wk_dlg_genera_ok

      Placement
      {
         posx = 145
         posy = 25
         dimx = 15
         dimy = 15
      }
   }

   Label LblGenera
   {
      Caption = $wk_dlg_genera_lbl
      Visible = $wk_dlg_genera_ok

      Placement
      {
         posx = 175
         posy = 25
         dimx = 150
         dimy = 25
      }
   }

   Button btnUnisci
   {
      Caption = "(2) Unisci Gruppi"
      Hint = "Unisci automaticamente i gruppi collisi"
      Enable = $wk_dlg_unisci

      Placement
      {
         posx = 10
         posy = 60
         dimx = 120
         dimy = 30
      }

      OnClick
      [
         COMANDO2("Esegui UnisciGruppiXGlass")

         $wk_dlg_step = 2

         $wk_dlg_unioni = VAR_VAL(-1, "wk_dlg_unioni") + 1
         WITH_ALIAS("$wk_xg_StpGruppoXG", "StpGruppoXG")
         $wk_dlg_unisci_lbl = STRCAT(STR($wk_dlg_unioni), " Unioni (", STR($wk_xg_StpGruppoXG), " gruppi)")

         $wk_dlg_genera = 0     $wk_dlg_genera_ok = 1
         $wk_dlg_unisci = 1     $wk_dlg_unisci_ok = 1
         $wk_dlg_setta  = 1     $wk_dlg_setta_ok  = 0
         $wk_dlg_numera = 0     $wk_dlg_numera_ok = 0
      ]
   }

   Image ImgUnisci
   {
      Value   = $wk_dlg_check
      Visible = $wk_dlg_unisci_ok

      Placement
      {
         posx = 145
         posy = 65
         dimx = 15
         dimy = 15
      }
   }

   Label LblUnisci
   {
      Caption   = $wk_dlg_unisci_lbl
      Visible = $wk_dlg_unisci_ok

      Placement
      {
         posx = 175
         posy = 65
         dimx = 150
         dimy = 25
      }
   }

   Button btnSetta
   {
      Caption = "(3) Setta Gruppi"
      Hint = "Setta i gruppi e apri interfaccia di Metron"
      Result = 1
      Enable = $wk_dlg_setta

      Placement
      {
         posx = 10
         posy = 100
         dimx = 120
         dimy = 30
      }

      OnClick
      [
         $CtrlGruppiXGlass = 1
         COMANDO2("Esegui SettaGruppiXGlass")

         $wk_dlg_step = 3

         $wk_dlg_genera = 0     $wk_dlg_genera_ok = 1
         $wk_dlg_unisci = 0     $wk_dlg_unisci_ok = 1
         $wk_dlg_setta  = 0     $wk_dlg_setta_ok  = 1
         //$wk_dlg_numera = 1     $wk_dlg_numera_ok = 0
         $wk_dlg_numera = 0     $wk_dlg_numera_ok = 1

         $wk_dlg_setta_lbl = "Gruppi settati"
      ]
   }

   Image ImgSetta
   {
      Value   = $wk_dlg_check
      Visible = $wk_dlg_setta_ok

      Placement
      {
         posx = 145
         posy = 105
         dimx = 15
         dimy = 15
      }
   }

   //Label LblSetta
   //{
   //   Caption = $wk_dlg_setta_lbl
   //   Visible = $wk_dlg_setta_ok
   //
   //   Placement
   //   {
   //      posx = 175
   //      posy = 105
   //      dimx = 150
   //      dimy = 25
   //   }
   //}
   //
   //Button btnNumera
   //{
   //   Caption = "(4) Numera Strutture"
   //   Hint = "Numera le strutture con progressivo assoluto"
   //   Enable = $wk_dlg_numera
   //   // Result  = 1
   //
   //   Placement
   //   {
   //      posx = 10
   //      posy = 140
   //      dimx = 120
   //      dimy = 30
   //   }
   //
   //   OnClick
   //   [
   //      COMANDO2("Esegui NumeraStruttureXGlass")
   //      //GOSUB NumeraStruttureXGlass
   //
   //      $wk_dlg_step = 4
   //
   //      $wk_dlg_numera_lbl = "Gruppi numerati"
   //
   //      $wk_dlg_xglass_lbl = STRCAT("Totale elementi XGlass numerati: ", STR(VAR_VAL(-1, "wk_xg_XGlassNumeroProg")))
   //
   //      $wk_dlg_genera = 0     $wk_dlg_genera_ok = 1
   //      $wk_dlg_unisci = 0     $wk_dlg_unisci_ok = 1
   //      $wk_dlg_setta  = 0     $wk_dlg_setta_ok  = 1
   //      $wk_dlg_numera = 0     $wk_dlg_numera_ok = 1
   //   ]
   //}
   //
   //Image ImgNumera
   //{
   //   Value   = $wk_dlg_check
   //   Visible = $wk_dlg_numera_ok
   //
   //   Placement
   //   {
   //      posx = 145
   //      posy = 145
   //      dimx = 15
   //      dimy = 15
   //   }
   //}

   Label LblNumera
   {
      Caption = $wk_dlg_numera_lbl
      Visible = $wk_dlg_numera_ok

      Placement
      {
         posx = 175
         posy = 145
         dimx = 150
         dimy = 25
      }
   }

   Label LbProgXGlass
   {
      Caption = $wk_dlg_xglass_lbl
      Visible = $wk_dlg_numera_ok

      Placement
      {
         posx = 15
         posy = 185
         dimx = 270
         dimy = 25
      }
   }

   Button btnStampa
   {
      Caption = "(5) Stampa XGLASS"
      //Hint = "Numera le strutture con progressivo assoluto"
      Enable = $wk_dlg_numera_ok
      Result  = 1

      Placement
      {
         posx = 10
         posy = 210
         dimx = 120
         dimy = 30
      }

      //OnClick
      //[
      //   //COMANDO2("esegui Stampa_XGLASS")
      //]
   }

   Button btnEsci
   {
      Caption = "Esci"
      Result  = 2
      Hint = "Esci dalla dialog"

      Placement
      {
         posx = 10
         //posy = 220
         posy = 270
         dimx = 120
         dimy = 25
      }

      OnClick
      [
         // flag di segnalazione
         $wk_dlg_uscita = 1
      ]
   }
}

// UNIFICO  (cerco) LA STRUTTURA DELLE VARIE DIALOG
// 1. prima Label in alto a sx a 25;25
// 2. bottoni OK/CONFERMA/ANNULLA IN BASSO A DX
//    2a. dimenisione bottone 80x20
//    2b. tengo 40 dal bordo dx e 30 da bottone a bottone

