Quote:
but you can not initialize variables with other variables.

As far as I unterstand the manual, you can in a struct initialization. It says:
Quote:
Within the struct initialization, any numbers, variables, character strings, or pointers to other structs can be used


I also tested it with the Vector struct and it works:

Code:
#include <acknex.h>
var test = 42;
VECTOR* testVec = {x = test;}

function main()
{
	printf("%i", (int)testVec.x);
}



As i said in the original post, it's just not working for Panels...

Last edited by krial057; 06/03/13 14:07.