litrax
18th July 2012, 08:48
Hello,
I have an issue when I was trying to experiment with some graphical features.
I already scripted some rectangles with DsCgwindow (e.g. a progress bar in a session to upload and download files)
Now I thougt: How about programming some status displays like traffic lights!?
But ERPLN won't let me do this.
E.g. this code for the rectangles works:
rahmen.id = create.object(DsCgwindow, current.mwindow(),
DsNx, 17,
DsNy, 80,
DsNwidth, 20,
DsNheight, 20,
DsNborderColor, RGB.BLACK,
DsNborderWidth, 1)
update.object(rahmen.id)
frame.id = create.object(DsCgwindow, current.mwindow(),
DsNx, 18,
DsNy, 81,
DsNwidth, 20,
DsNheight, 20,
DsNinferiorPointerCursor, DSCHAND,
DsNbackground, RGB.GREEN)
update.object(frame.id)
Paints green rectangle with black frame around it. Easy.
But the code
pie.id = create.object(DsCgpPie, current.mwindow(),
DsNangle, 360,
DsNgcBackground, RGB.RED,
DsNgcFillColor, RGB.RED,
DsNgcFillStyle, GCFILLSOLID,
DsNheight, 20,
DsNwidth, 20,
DsNx, 18,
DsNy, 81
)
update.object(pie.id)
throws (to me) weird error messages at session startup (see attached hardcopy DsCgpPie_Error).
What the heck has DsCgpPie to do with this ominous DsCpopupMenu!?
Can somebody give me a hint?
Has somebody have succesfully created a DsCgpPie in a session and can describe the steps to me?
Thx, Litrax
I have an issue when I was trying to experiment with some graphical features.
I already scripted some rectangles with DsCgwindow (e.g. a progress bar in a session to upload and download files)
Now I thougt: How about programming some status displays like traffic lights!?
But ERPLN won't let me do this.
E.g. this code for the rectangles works:
rahmen.id = create.object(DsCgwindow, current.mwindow(),
DsNx, 17,
DsNy, 80,
DsNwidth, 20,
DsNheight, 20,
DsNborderColor, RGB.BLACK,
DsNborderWidth, 1)
update.object(rahmen.id)
frame.id = create.object(DsCgwindow, current.mwindow(),
DsNx, 18,
DsNy, 81,
DsNwidth, 20,
DsNheight, 20,
DsNinferiorPointerCursor, DSCHAND,
DsNbackground, RGB.GREEN)
update.object(frame.id)
Paints green rectangle with black frame around it. Easy.
But the code
pie.id = create.object(DsCgpPie, current.mwindow(),
DsNangle, 360,
DsNgcBackground, RGB.RED,
DsNgcFillColor, RGB.RED,
DsNgcFillStyle, GCFILLSOLID,
DsNheight, 20,
DsNwidth, 20,
DsNx, 18,
DsNy, 81
)
update.object(pie.id)
throws (to me) weird error messages at session startup (see attached hardcopy DsCgpPie_Error).
What the heck has DsCgpPie to do with this ominous DsCpopupMenu!?
Can somebody give me a hint?
Has somebody have succesfully created a DsCgpPie in a session and can describe the steps to me?
Thx, Litrax