[Gambas-user] Gridview

Steven Lobbezoo steven at ...1652...
Thu Nov 1 10:52:06 CET 2007


Hi,

Still on my problem to be unable to set a row of a gridview (stays allways -1)

Further reseach showed that each time i reference a cell in a grid
like with : Oper = GridView2[r, 0].Text, the show_data routine is executed.
Is this normal behavour ?

Hope this helps. I attach the form to this mail.

Regards,
Steven

-------------- next part --------------
A non-text attachment was scrubbed...
Name: FormA.class
Type: application/x-java
Size: 13746 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20071101/5638c4a1/attachment.bin>
-------------- next part --------------
# Gambas Form File 2.0

{ Form Form
  MoveScaled(0,0,96,83)
  Background = &HFFFFBF&
  Expand = True
  Text = ("")
  Icon = Picture["icon:/16/color"]
  { ToolButton1 ToolButton TBs
    Name = "ToolButton1"
    MoveScaled(1,1,6,3)
    Background = &HFFFFBF&
    Tag = "No|DESC"
    ToolTip = ("Clique moi pour\ntrier la colonne")
    Text = ("No")
    Picture = Picture["icon:/16/redo"]
  }
  { ToolButton2 ToolButton TBs
    Name = "ToolButton2"
    MoveScaled(9,1,11,3)
    Background = &HFFFFBF&
    Tag = "Prenom|DESC"
    ToolTip = ("Clique moi pour\ntrier la colonne")
    Text = ("Prenom")
    Picture = Picture["icon:/16/redo"]
  }
  { ToolButton3 ToolButton TBs
    Name = "ToolButton3"
    MoveScaled(23,1,10,3)
    Background = &HFFFFBF&
    Tag = "Nom|DESC"
    ToolTip = ("Clique moi pour\ntrier la colonne")
    Text = ("Nom")
    Picture = Picture["icon:/16/redo"]
  }
  { ToolButton4 ToolButton TBs
    Name = "ToolButton4"
    MoveScaled(41,1,12,3)
    Background = &HFFFFBF&
    Tag = "Adresse|DESC"
    ToolTip = ("Clique moi pour\ntrier la colonne")
    Text = ("Adresse")
    Picture = Picture["icon:/16/redo"]
  }
  { ToolButton5 ToolButton TBs
    Name = "ToolButton5"
    MoveScaled(63,1,10,3)
    Background = &HFFFFBF&
    Tag = "Ville|DESC"
    ToolTip = ("Clique moi pour\ntrier la colonne")
    Text = ("Ville")
    Picture = Picture["icon:/16/redo"]
  }
  { ToolButton6 ToolButton TBs
    Name = "ToolButton6"
    MoveScaled(82,1,9,3)
    Background = &HFFFFBF&
    Tag = "Pays|DESC"
    ToolTip = ("Clique moi pour\ntrier la colonne")
    Text = ("Pays")
    Picture = Picture["icon:/16/redo"]
  }
  { VSplit1 VSplit
    MoveScaled(0,4,96,79)
    Expand = True
    { VPanel1 VPanel
      MoveScaled(1,1,94,42)
      Expand = True
      { GridView2 GridView
        MoveScaled(0,0,94,43)
        Background = &HFFFFBF&
        Foreground = &H404040&
        ToolTip = ("Clique un propri\xC3\xA9taire\npour voir / changer les\nd\xC3\xA9tails de celui ci")
        Expand = True
        Scrollbar = Scroll.Vertical
      }
    }
    { Panel1 Panel
      MoveScaled(1,44,93,34)
      { Prenom TextBox
        MoveScaled(10,0,35,3)
        Background = &HFFFFBF&
        Text = ("")
      }
      { Nom TextBox
        MoveScaled(10,4,35,3)
        Background = &HFFFFBF&
        Text = ("")
      }
      { TextLabel1 TextLabel
        MoveScaled(0,4,5,3)
        Text = ("Nom :")
      }
      { TextLabel3 TextLabel
        MoveScaled(0,8,10,3)
        Text = ("T\xC3\xA9l\xC3\xA9phone :")
      }
      { Telephone TextBox
        MoveScaled(10,8,35,3)
        Background = &HFFFFBF&
        Text = ("")
      }
      { Fax TextBox
        MoveScaled(10,12,35,3)
        Background = &HFFFFBF&
        Text = ("")
      }
      { TextLabel4 TextLabel
        MoveScaled(0,12,10,3)
        Text = ("Fax :")
      }
      { TextLabel5 TextLabel
        MoveScaled(0,16,10,3)
        Text = ("Portable :")
      }
      { Portable TextBox
        MoveScaled(10,16,35,3)
        Background = &HFFFFBF&
        Text = ("")
      }
      { TextLabel2 TextLabel
        MoveScaled(0,0,7,3)
        Text = ("Prenom :")
      }
      { Button1 Button
        MoveScaled(79,30,13,3)
        Background = &H800000&
        Foreground = &HFFFFBF&
        ToolTip = ("Appuyer pour\nfermer la fen\xC3\xAAtre")
        Text = ("Sortir")
      }
      { TextLabel6 TextLabel
        MoveScaled(0,20,10,3)
        Text = ("Travail :")
      }
      { Travail TextBox
        MoveScaled(10,20,35,3)
        Background = &HFFFFBF&
        Text = ("")
      }
      { Email TextBox
        MoveScaled(10,25,35,3)
        Background = &HFFFFBF&
        Text = ("")
      }
      { TextLabel7 TextLabel
        MoveScaled(0,25,8,3)
        Text = ("E-Mail :")
      }
      { Adresse TextArea
        MoveScaled(57,12,36,7)
        Background = &HFFFFBF&
        Text = ("")
      }
      { TextLabel8 TextLabel
        MoveScaled(47,12,9,3)
        Text = ("Adresse :")
      }
      { TextLabel9 TextLabel
        MoveScaled(47,20,8,5)
        Text = ("Code P- Ville")
      }
      { TextLabel10 TextLabel
        MoveScaled(47,25,10,3)
        Text = ("Pays :")
      }
      { TextLabel11 TextLabel
        MoveScaled(47,0,13,3)
        Text = ("Observations:")
      }
      { Observations TextArea
        MoveScaled(47,3,46,8)
        Background = &HFFFFBF&
        Text = ("")
      }
      { Code_Postal TextBox
        MoveScaled(57,20,7,3)
        Background = &HFFFFBF&
        Text = ("")
      }
      { Ville TextBox
        MoveScaled(66,20,27,3)
        Background = &HFFFFBF&
        Text = ("")
      }
      { Pays TextBox
        MoveScaled(57,25,36,3)
        Background = &HFFFFBF&
        Text = ("")
      }
      { Detail Button
        MoveScaled(4,30,12,3)
        Background = &H4E8036&
        Foreground = &HFFFFBF&
        ToolTip = ("Appuyer pour voir des\nd\xC3\xA9tails supplementaires")
        Text = ("+ D\xC3\xA9tails")
      }
      { Mandat Button
        MoveScaled(34,30,12,3)
        Background = &H4E8036&
        Foreground = &HFFFFBF&
        ToolTip = ("Appuyer pour voir le(s)\nmandat(s) du \npropri\xC3\xA9taire")
        Text = ("Mandat(s)")
      }
      { Delete Button
        MoveScaled(64,30,12,3)
        Background = &H800000&
        Foreground = &HFFFFBF&
        ToolTip = ("Appuyer pour supprimer\nle client selectionn\xC3\xA9 ?")
        Text = ("Supprimer")
      }
      { Nouveau Button
        MoveScaled(49,30,12,3)
        Background = &H323C80&
        Foreground = &HFFFFBF&
        ToolTip = ("Appuyer pour nettoyer\net entrer un nouveau\n---------Client------------\nApr\xC3\xA8s avoir remplit les\nchamps, un 2i\xC3\xA8me\nclique sauvegarde les\ndonn\xC3\xA9es ")
        Text = ("Nouveau")
      }
      { Chercher Button
        MoveScaled(19,30,12,3)
        Background = &H4E8036&
        Foreground = &HFFFFBF&
        ToolTip = ("Appuyer pour chercher\nune client sp\xC3\xA9cifique")
        Text = ("Chercher")
      }
    }
  }
  { Details Panel
    MoveScaled(1,1,95,46)
    Visible = False
    Background = &HFFFFBF&
    { Fermer Button
      MoveScaled(81,41,12,3)
      Background = &H4E8036&
      Foreground = &HFFFFBF&
      ToolTip = ("Appuyer pour fermer \nle panneau 'd\xC3\xA9tails'")
      Text = ("Fermer +")
    }
    { TextLabel12 TextLabel
      MoveScaled(27,3,13,3)
      Text = ("\xC3\xA0 Ville, Pays :")
    }
    { TextLabel13 TextLabel
      MoveScaled(3,3,9,3)
      Text = ("N\xC3\xA9(e) le :")
    }
    { TextLabel14 TextLabel
      MoveScaled(3,7,8,3)
      Text = ("Metier :")
    }
    { TextLabel15 TextLabel
      MoveScaled(3,11,17,3)
      Text = ("Quote-part acquireur :")
    }
    { TextLabel16 TextLabel
      MoveScaled(27,11,2,3)
      Text = ("%")
    }
    { TextLabel17 TextLabel
      MoveScaled(3,15,11,3)
      Text = ("Relation :")
    }
    { TextLabel18 TextLabel
      MoveScaled(27,15,11,3)
      Text = ("Avec qui :")
    }
    { TextLabel19 TextLabel
      MoveScaled(3,19,11,3)
      Text = ("Depuis :")
    }
    { TextLabel20 TextLabel
      MoveScaled(27,19,15,3)
      Text = ("Ou (Ville, Pays) :")
    }
    { TextLabel21 TextLabel
      MoveScaled(3,23,12,3)
      Text = ("Conditions :")
    }
    { TextLabel22 TextLabel
      MoveScaled(75,19,5,3)
      Text = ("Noce :")
    }
    { TextLabel23 TextLabel
      MoveScaled(3,27,31,3)
      Text = ("Desciption Conditions / Observations")
    }
    { Ne TextBox
      MoveScaled(12,3,14,3)
      Background = &HFFFFBF&
      Text = ("")
    }
    { NeOu TextBox
      MoveScaled(40,3,50,3)
      Background = &HFFFFBF&
      Text = ("")
    }
    { Metier TextBox
      MoveScaled(12,7,78,3)
      Background = &HFFFFBF&
      Text = ("")
    }
    { Quote TextBox
      MoveScaled(20,11,6,3)
      Background = &HFFFFBF&
      Text = ("")
    }
    { Mariage TextBox
      MoveScaled(12,19,14,3)
      Background = &HFFFFBF&
      Text = ("")
    }
    { MariageOU TextBox
      MoveScaled(41,19,30,3)
      Background = &HFFFFBF&
      Text = ("")
    }
    { Noce TextBox
      MoveScaled(82,19,8,3)
      Background = &HFFFFBF&
      Text = ("")
    }
    { Conditions TextBox
      MoveScaled(12,23,78,3)
      Background = &HFFFFBF&
      Text = ("")
    }
    { Conddesc TextArea
      MoveScaled(3,30,75,14)
      Background = &HFFFFBF&
      Text = ("")
    }
    { DateChooser2 DateChooser
      MoveScaled(21,25,27,16)
      Visible = False
      Background = &H606060&
      Foreground = Color.Foreground
      ToolTip = ("Selectionnez une date")
    }
    { Relation TextBox
      MoveScaled(41,15,49,3)
      Background = &HFFFFBF&
      Text = ("")
    }
    { TypeLiaison ComboBox
      MoveScaled(12,15,14,3)
      Background = &HFFFFBF&
      Foreground = Color.Foreground
      Text = ("ComboBox1")
      List = [(""), ("Epouse"), ("Enfant"), ("Parent"), ("Pax\xC3\xA9"), ("Famille"), ("Consort"), ("Associ\xC3\xA9"), ("Copro"), ("Divers"), ("Fr\xC3\xA8re"), ("Soeur")]
    }
    { DateChooser1 DateChooser
      MoveScaled(50,25,26,16)
      Visible = False
      Background = &H606060&
      Foreground = Color.Foreground
      ToolTip = ("Selectionnez une date")
    }
    { TextLabel24 TextLabel
      MoveScaled(28,0,33,2)
      Font = Font["Bold"]
      Text = ("........................... les d\xC3\xA9tails ..........................")
    }
  }
  { Nombre TextLabel
    MoveScaled(90,0,6,2)
    Font = Font["-1"]
    ToolTip = ("Nombre des \nenregistrements")
    Text = ("TextLabel25")
  }
}


More information about the User mailing list