Closed nadjet09 closed 2 years ago
@nadjet09 The problem here is that GUIslice doesn't have a circle element, It only has circle drawing commands, gslc_DrawFrameCircle() and gslc_DrawFillCircle() which are not associated with pages.
For example, Line is a real full element (a widget) gslc_ElemCreateLine() placed on a Page while gslc_DrawLine is a drawing command used within the Line element to draw itself. Elements are placed on a page and pages know how and when to repaint themselves and the elements that have been placed on them.
The issue is that the Builder isn't a drawing program. It's mainly a layout of widgets on pages so its awkward to support simple draw commands because it doesn't know when to paint or repaint them or what pages to place them on. If you want to use draw commands with GUIslice the only supported way is to create a Box element on a page, turn its frame on or off, set a draw callback function Draw Function = true
and draw your Circle inside this box in side the draw callback function. This gets complicated with more than one circle on more than one page, of course.
Frankly, I think you should post an issue to GUIslice and ask for a Circle element to be created like Box, and Line which seems reasonable to me. Then I can add support to the Builder once the GUIslice API has this element. Paul--
Ok sounds fair to me. will post on GUIslice. thanks
Describe the solution you'd like The create circle is in the GUI library already exist, may be need to be linked to an element in the GuiSlice.
Additional context additionally if the circle element can be added and still be able to set as oval shape or circle shape.