BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

How to put Input over Image in User Interface GDL

Anonymous
Not applicable
Hello, I have an image in the user interface and I want to put some Inputs over the image.

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
runxel
Legend
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.:
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 | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
Lingwisyer
Guru
Is that not what DRAWINDEX is for? I have never used it, but by the reference guide that is what is does.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Barry Kelly
Moderator
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.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Barry Kelly
Moderator
Lingwisyer wrote:
Is that not what DRAWINDEX is for? I have never used it, but by the reference guide that is what is does.
No that is for layering the 2D images displayed by the object.
This problem is in the user interface.

Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Lingwisyer
Guru
Ah. I had figured that I would work with the UI Script as well as it is essentially 2D as well.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Anonymous
Not applicable
Thank you very much! Good luck with the forum, there are no video tutorials.
Learn and get certified!