We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.
SOLVED!

Custom MVO checkbox title won't show up

silvermat
Participant

Hello,

I've created custom MVO with one checkbox. It shows only category title but not the checkbox until I disable it and enable again.
Any idea why it happen? 

 

Windows 11

Archicad 28 POL

 

silvermat_0-1730708434657.png

silvermat_1-1730708447403.png

silvermat_2-1730708454604.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

There is one easy fix: Double the last line and replace the "0" with a "1".

Since there is no actual command for a checkbox (it's just a subtype set with the "7") the UI_INFIELD command is very broad in it's definition. Just remembert this: You need to explicitly mention every state the UI thingy can take. Even it is just a checkbox with literally two states.

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»

View solution in original post

4 REPLIES 4
Barry Kelly
Moderator

Is it the size of the checkbox?

Is it overlapping the text?

 

In the interface preview, hit the 'Check' button to see if there are any overlaps.

 

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

There is my code. I don't see any overlaps, but it's my first project with interface so I can miss something.

 

! ------------------------------------------------------------
! set basic variables
! ------------------------------------------------------------
_yCurr		= 5
_dy		= 25		! generic line spacing		

_totalWidth	= 600		! fixed value to match the exisiting panels
_totalHeight	= 4* _dy	! calculate the height from line spacing
_stDialogTitle	= `Janowicz Architekci`

! ------------------------------------------------------------
! set title and height for the custom MVO panel
! ------------------------------------------------------------
ui_dialog _stDialogTitle, _totalWidth, _totalHeight

! ------------------------------------------------------------
! content
! ------------------------------------------------------------
ui_style 0, 1
ui_outfield `Widoczność elementów`, 0, _yCurr, 150, 15
ui_style 0, 0

ui_infield{4} "JA_show_c_z_w", 0, _dy, 200, 19,
			7, "",
			0, 
			0, 0, 0,
			0, 0, 
			"", "Pokaż wyposażenie sanitarne", 0
Solution

There is one easy fix: Double the last line and replace the "0" with a "1".

Since there is no actual command for a checkbox (it's just a subtype set with the "7") the UI_INFIELD command is very broad in it's definition. Just remembert this: You need to explicitly mention every state the UI thingy can take. Even it is just a checkbox with literally two states.

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»

It's works! Thank You