public void Configurar() { gui.InitDialog(false, false); profiling = true; int W = GuiController.Instance.Panel3d.Width; int H = GuiController.Instance.Panel3d.Height; int x0 = 50; int y0 = 50; int dy = H - 100; int dx = W - 100; gui_item frame = gui.InsertIFrame("Profiling", x0, y0, dx, dy, Color.FromArgb(140, 240, 140)); frame.c_font = Color.FromArgb(0, 0, 0); gui.InsertButton(IDOK, "OK", x0 + dx - 300, y0 + dy - 60, 120, 60); gui.InsertButton(IDCANCEL, "Salir", x0 + dx - 140, y0 + dy - 60, 120, 60); gui.InsertItem("Configure el color", x0 + 50, y0 + 130); int cdx = 50; int pos_x = x0 + 100; int pos_y = y0 + 220; int s = 0; for (int i = 0; i < cant_colores; ++i) { gui_item item = gui.InsertItemColor(pos_x, pos_y, lst_colores[i], 1000 + i); if ((i + 1) % 4 == 0) { if (s % 2 == 1) { pos_x = x0 + 100; } else { pos_x = x0 + 100 - 38; } pos_y += cdx / 2; s++; } else { pos_x += cdx + cdx / 2; } // uso el texto para meter el dato del nro de color item.text = "" + i; } }