Archicad C++ API
About Archicad add-on development using the C++ API.

Get current index of the tabulator field

Anonymous
Not applicable
if my list box set 2 tab field and then user click first tab field position.
I would like to get current index of the tabulator field from click MSG.

Thank you.
1 REPLY 1
ReignBough
Enthusiast
If my understanding is correct, you should try DGListGetItemFromPosition().

Something like:
//...
case DG_MSG_CLICK:
	DGListMsgData* listMsgData = (DGListMsgData*)msgData;
	short idx = DGListGetItemFromPosition(dialId, itemId, listMsgData->xPos, listMsgData->yPos);
//...
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS

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!