Visualizza post

Questa sezione ti permette di visualizzare tutti i post inviati da questo utente. N.B: puoi vedere solo i post relativi alle aree dove hai l'accesso.


Post - Raffa50

Pagine: 1 ... 3 4 [5] 6 7
61
si bisogna provarlo!
beh è in sviluppo, ha poco tempo di vita, contando che lo sviluppo da solo!!!
ma è in grado di generare sorgente terminale perfettamente!

62
Programmazione / Re: creare controlli dinamicamente
« il: 01 Dicembre 2011, 22:34:11 »
aiutoo

63
ora li ho messi

64
Programmazione / Re: creare controlli dinamicamente
« il: 30 Novembre 2011, 17:57:29 »
eh già.. per ora sn riuscito a creare il bottone e a spostarlo...
xò devo creare + ogetti no... devo usare un array di ogetti... ma come gestisco il click sui singoli oggetti? (cioè al click li sposto nel nuovo punto dove clicco, rudimentale ma và)

65
Progetti degli utenti / Sly IDE closedsource no release
« il: 29 Novembre 2011, 21:03:05 »
sly è privato

66
Programmazione / Re: creare controlli dinamicamente
« il: 29 Novembre 2011, 20:39:42 »
eh si ma come faccio per farlo creare come fà gambas e renderlo ridimensionabile?
e per muoverlo?
(stò creando un IDE si chiama sly, cercate su launchpad)

67
Programmazione / creare controlli dinamicamente
« il: 29 Novembre 2011, 19:05:26 »
salve

vorrei fare un programma che l'utente clicca su un bottone e l'utente può disegnare un altro controllo (per esempio un bottone) sulla form
come posso fare?

68
Programmazione / Re: creare array illimitati come si fà?
« il: 28 Novembre 2011, 14:15:21 »
ok funge e se volessi editare un attributo di un elmento ke si trova a una certa posizione?

69
Programmazione / Re: creare array illimitati come si fà?
« il: 27 Novembre 2011, 11:57:01 »
nn credo di aver capito...

devo dichiararlo: 
Codice: [Seleziona]
Private mioarray As New classe[]
Private utente As classe

Codice: [Seleziona]
utente = New classe
utente.atr1 = "valore"
mioarray.add(utente)

esatto? e come recupero il valore?

ps: mi pare complicato, non si può fare il redim con in vb6??

70
Programmazione / Re: creare array illimitati come si fà?
« il: 26 Novembre 2011, 18:31:11 »
è un array a una dimensione a cui viene assegnato un oggetto!

Codice: [Seleziona]
miorarray[indice] = New nomeclasse
mioarray[indice].attributo = "valore"

71
Programmazione / creare array illimitati come si fà?
« il: 25 Novembre 2011, 15:30:35 »
come si fa a creare array illimitati?
x ora stò usando un array di 5000 elementi

72
Programmazione / Re: come leggo xml con la xmllib??
« il: 12 Settembre 2011, 21:27:39 »
Codice: [Seleziona]
Dim $root As Element
  Dim oRoot As Element
  Dim oElement As Element
  Dim oAttribute As Attribute
  Dim oXml As New XmlReader
 
  Dim enam As String
  Dim cp As Variant
  Dim sv As Variant

  doc = New Document
  Dialog.Title = "Open a Project"
  Dialog.Filter = ["Sly Project (*.slyproj)"]
  If Dialog.OpenFile() Then Return
  SetPath(Dialog.Path)
 
  iab = 4
  tvcode.Clear()
 
  $root = New Element(Null, Null, Null)
  $root.Name = "root"
  $root.Elements.Clear()
  $root.Attributes.Clear()
  oRoot = $root
  oXml.Open($sPath)
 
  Do Until (oXml.Eof)
    Select Case oXml.Node.Type
    Case XmlReaderNodeType.Element
      'Message.Info(oXml.Node.Name)
     
      Select Case oXml.Node.Name
        Case "glvar"
          tvcode.Add("1", "global variables", vars)
          cp = "1"
        Case "func"
          tvcode.Add("2", "functions", func)
          cp = "2"
        Case "main"
          tvcode.Add("3", "main", main)
          cp = "3"
        Default
          If oXml.Node.Name <> "slyproj" And oXml.Node.Name <> "prognam" And oXml.Node.Name <> "cprint" And oXml.Node.Name <> "cinput" Then
            tvcode.Add(iab, oXml.Node.Name, act, cp).EnsureVisible
            tvcode.Item.EnsureVisible
            ablocks[iab] = New Block
            ablocks[iab].tp = oXml.Node.Name
            ablocks[iab].father = True
            cp = iab
            iab = iab + 1
          Endif
      End Select
     
      enam = oXml.Node.Name
      oElement = New Element(oRoot, oXml.Node.Name, oXml.Node.Value)
      For Each oXml.Node.Attributes
        oAttribute = New Attribute(oElement, oXml.Node.Name, oXml.Node.Value)
        oElement.Attributes.Add(oAttribute)
      Next
      oRoot.Elements.Add(oElement)
      oRoot = oElement
    Case XmlReaderNodeType.EndElement
      If (enam = "if" Or enam = "while" Or enam = "else") And iab > 4 Then
        cp = tvcode.Item.ParentKey
        sv = CInteger(cp)
        sv = sv - 1
        cp = CString(sv)
      Endif
      oRoot = oRoot.Parent
    Case XmlReaderNodeType.Text
      oElement.Value &= Trim(oXml.Node.Value)
      'Message.Info(oXml.Node.Value)
      If enam <> "slyproj" And enam <> "prognam" Then
        tvcode.Add(CString(iab), enam & " " & oXml.Node.Value, cond, cp).EnsureVisible
        tvcode.Item.EnsureVisible
        ablocks[iab] = New Block
        ablocks[iab].tp = enam
        ablocks[iab].father = False
        iab = iab + 1
      Else If enam = "prognam" Then
        progname = oXml.Node.Value
      Endif
    End Select
    oXml.Read()
  Loop
  oXml.Close()

si il problema era che la treeview era vuota (null object) ora và (sembra di si testato)

73
Programmazione / Re: come leggo xml con la xmllib??
« il: 11 Settembre 2011, 19:31:08 »
Codice: [Seleziona]
Public Sub load_Click()
  Dim $root As Element
  Dim oRoot As Element
  Dim oElement As Element
  Dim oAttribute As Attribute
  Dim oXml As New XmlReader
 
  Dim enam As String
  Dim cp As String
  Dim sv As Integer

  doc = New Document
  Dialog.Title = "Open a Project"
  Dialog.Filter = ["Sly Project (*.slyproj)"]
  If Dialog.OpenFile() Then Return
  SetPath(Dialog.Path)
 
  iab = 4
  tvcode.Clear()
 
  $root = New Element(Null, Null, Null)
  $root.Name = "root"
  $root.Elements.Clear()
  $root.Attributes.Clear()
  oRoot = $root
  oXml.Open($sPath)
  Do Until (oXml.Eof)
    Select Case oXml.Node.Type
    Case XmlReaderNodeType.Element
      'Message.Info(oXml.Node.Name)
     
      Select Case oXml.Node.Name
        Case "glvar"
          tvcode.Add("1", "global variables", vars)
          cp = "1"
        Case "func"
          tvcode.Add("2", "functions", func)
          cp = "2"
        Case "main"
          tvcode.Add("3", "main", main)
          cp = "3"
        Default
          If oXml.Node.Name <> "slyproj" And oXml.Node.Name <> "prognam" Then
            tvcode.Add(iab, oXml.Node.Name, act, cp).EnsureVisible
            tvcode.Item.EnsureVisible
            cp = iab
            iab = iab + 1
          Endif
      End Select
     
      enam = oXml.Node.Name
      oElement = New Element(oRoot, oXml.Node.Name, oXml.Node.Value)
      For Each oXml.Node.Attributes
        oAttribute = New Attribute(oElement, oXml.Node.Name, oXml.Node.Value)
        oElement.Attributes.Add(oAttribute)
      Next
      oRoot.Elements.Add(oElement)
      oRoot = oElement
    Case XmlReaderNodeType.EndElement
      oRoot = oRoot.Parent
      If enam <> "slyproj" And enam <> "prognam" And enam <> "glvar" And enam <> "functions" And enam <> "main" Then
        cp = tvcode.Item.ParentKey
        sv = CInteger(cp) 'ERRORE
        sv = sv - 1
        cp = CString(sv)
      Endif
    Case XmlReaderNodeType.Text
      oElement.Value &= Trim(oXml.Node.Value)
      'Message.Info(oXml.Node.Value)
      If enam <> "slyproj" And enam <> "prognam" Then
        tvcode.Add(CString(iab), enam & " " & oXml.Node.Value, cond, cp).EnsureVisible
        tvcode.Item.EnsureVisible
        iab = iab + 1
      Else If enam = "prognam" Then
        progname = oXml.Node.Value
      Endif
    End Select
    oXml.Read()
  Loop
  oXml.Close()

End

se non mi dasse errore andrebbe! mi dice type mysmatch wanted integer got string  (dove ho fatto il commento errore)

74
Programmazione / Re: ridimensionare form e ogetti
« il: 09 Settembre 2011, 11:36:22 »
ho cercato ridimensionare form e oggetti ma non c'è nulla...  :hard:

75
Programmazione / [risolto]ridimensionare form e ogetti
« il: 07 Settembre 2011, 16:08:41 »
salve io ho una form, con deglio ogetti: una tab strip e una treeview

come faccio a fare in modo che se si allarga la form si allargano anche gli ogetti???

Pagine: 1 ... 3 4 [5] 6 7