Voici un exemple. La rawtable est tracée ici en fond de boite, mais on peut la tracer dans n'importe quel GraphContext Code: Include "MSDefine" local boite=NewDialog("Test",410,200) if boite then itemOk=boite.NewPushButton("OK",10,180,110) boite.Show() boite.EnableDrawing(true,false) -- items systeme, fond utilisateur -- cree data rt=NewRawTable(100) for i=0,100-1 do rt[i]=sin(i*360*2/100) end -- Trace sur le fond de la boite boite.GraphContext.DrawRawTable(rt) -- Wait click while item ~= itemOk do item=boite.Select() end rt.Dispose() else print("err") end |
| Voici la doc de la fonction DrawRawTable Draw a rawtable in the content of an item as a curve. (experimental) Rawtable : RawTable containing the data to draw Optional Number: left of the area to draw into (default: left of the containing drawing surface) Optional Number: top of the area to draw into (default: top of the containing drawing surface) Optional Number: right of the area to draw into (default: right of the containing drawing surface) Optional Number: bottom of the area to draw into (default: bottom of the containing drawing surface) Optional Number: number of values to display (default: full size of data) Optional Number: first index to process (default:0) Optional Number: Minimum value for numbers in data (default : actual minimum value) Optional Number: Maximum value for numbers in data (default : actual maximum value) |