Hello. I would like to ask @Tomasz and/or other users about some GFX features.
For some time I've been trying to work out the best way of using charts to display only GFX stuff in codes similar to this one:
Usually I use
GfxSetOverlayMode(2) which allows to display only graphics (no charts, no grids, etc) and
GfxSetBkMode(1) - transparent background (i.e. of the text) and it works properly, but the only problem is that in such case I cannot use
GfxSetZOrder(). If I do so I get an Error: . Because of this, the only way in which I can decide which graphics elements are on top and which are are behind is the sequence in which they appear in the code. It is easy in simple cases, but as the code becomes complex it gets problematic and forces to move some parts of the code to (sometimes) distant locations. I find it especially challenging in case of custom functions or procedures - used to display some elements depending on many factors - which are declared at the beginning of the code. I would like to make sure if in such cases, moving some parts of the code is the only way?
I also ask, because some time ago I didn't know, that using
GfxOverlayMode in the same code is not allowed (if
GfxOverlayMode, AFL Editor doesn't display any Error) and was experimenting with different ways of achieving my goal. I came to the solution which uses both above functions and seems to work properly except one element which I can't get rid of. It is the black vertical line which separates the chart and the scale area. I can't make it disappear (although I've tried many different ways) if there is
GfxSetZOrder present in the code. Maybe there is an option allowing to do that, which I haven't found?
BTW I understand, that GuiButtons are always on top and cannot be obscured by any other element (that is logical).
Thank you in advance for any suggestions.