How to put Input over Image in User Interface GDL
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-04-19 09:53 PM
2020-04-19
09:53 PM
I managed to position them where I want, only that it doesn't work, only those that are out of the picture work.
Is there any possibility to order them on the Z axis, for example Z +1, the image to be down and the inputs to be over to work?
I have
UI_PICT 'arch.png', 0, 0, 370, 320
UI_INFIELD "l_fund", 100,100, 60, 20
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-04-19 11:55 PM
2020-04-19
11:55 PM
You're on the right track: Things that come later in the script are getting drawn above the items which came before.
But – and I admit this is really silly and inexplicable – to be able to write into that infield, you have to put it there twice: once before and once after the ui_pict.
¯\_(ツ)_/¯
I.e.:
But – and I admit this is really silly and inexplicable – to be able to write into that infield, you have to put it there twice: once before and once after the ui_pict.
¯\_(ツ)_/¯
I.e.:
UI_INFIELD "l_fund", 100,100, 60, 20 UI_PICT 'arch.png', 0, 0, 370, 320 UI_INFIELD "l_fund", 100,100, 60, 20
Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-04-20 03:42 AM
2020-04-20
03:42 AM
Is that not what DRAWINDEX is for? I have never used it, but by the reference guide that is what is does.
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-04-20 03:45 AM
2020-04-20
03:45 AM
Yes this can be a bit of a problem but runxel has given you the solution.
The UI_INFIELD scripted before the UI_PICT is the active one that the user can alter.
But the problem is that the UI_PICT covers it and the user can't see it.
So you add a second UI_INFIELD after the UI_PICT that the user can see (but isn't really the one they are altering).
For some reason that I can't understand, just having the UI_INFIELD after the UI_PICT as you have done, while visible to the user, it is not editable.
I haven't tried with images that have a transparent alpha channel, so I am no sure if that makes any difference.
Barry.
The UI_INFIELD scripted before the UI_PICT is the active one that the user can alter.
But the problem is that the UI_PICT covers it and the user can't see it.
So you add a second UI_INFIELD after the UI_PICT that the user can see (but isn't really the one they are altering).
For some reason that I can't understand, just having the UI_INFIELD after the UI_PICT as you have done, while visible to the user, it is not editable.
I haven't tried with images that have a transparent alpha channel, so I am no sure if that makes any difference.
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-04-20 03:51 AM
2020-04-20
03:51 AM
Lingwisyer wrote:No that is for layering the 2D images displayed by the object.
Is that not what DRAWINDEX is for? I have never used it, but by the reference guide that is what is does.
This problem is in the user interface.
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-04-20 05:19 AM
2020-04-20
05:19 AM
Ah. I had figured that I would work with the UI Script as well as it is essentially 2D as well.
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-04-20 01:33 PM
2020-04-20
01:33 PM
Thank you very much! Good luck with the forum, there are no video tutorials.