cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Lingwisyer
Guru

GDL: Basic UI Shapes

Hi all,

Is there a way to create basic shapes in the UI script without resorting to images?



Ling.

AC22-29 AUS 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
2 Replies 2
Barry Kelly
Moderator
Apart from horizontal or vertical lines or rectangles, not that I know of.
You will have to use a picture.

And be aware that the bounding box of the picture will block other infields & outfields even if the picture has a transparent background.
It is especially troublesome for infields - it may look like it is in front of the picture but you can type anything in the field.
The trick I have found if you want an infield and picture to overlap is to script the infield, then the picture and then the same infield again.

UI_INFIELD...
UI_PICTURE...
UI_INFIELD...

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
I use single pixel bitmaps for frames and line (H&V),
It could be possible to script the other shapes using such single pixel bitmaps as well...yet I try avoiding it, because more complicated the UI scrip is, the less responsive the UI can be (especially the first use until it is cached).

Best Regards,
Piotr

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!