Form VR-VIEW, troubles found.

Post Reply
Javi
Posts: 29
Joined: Sat Jun 11, 2022 5:14 am
Been thanked: 10 times

Form VR-VIEW, troubles found.

Post by Javi »

Quiero construir un formulario con VR-VIEW

http://msxvr.es/doc/wiki/mdwiki.html#!a ... bd74c8d.md


Checkbox


una vez creada una casilla de verificación,

Code: Select all

_cb = GetTopWindow().CreateCheckBox(10, 10, 100, -1, "CheckBox");


- ¿Cómo puedo leer si "_cb" es verdadero o falso?



Agregar tecla de acceso directo


¿Qué pasa con la tecla de acceso rápido, es decir, una letra de un texto de un botón que cuando se presiona (la letra) activa el botón?

Code: Select all

función CreateButton (x, y, w, h = -1, text = "") : puntero

Code: Select all

función AddHotKey (lista, ctx, función, nivel = 0): puntero

- ¿Cómo se usa AddHotKey? ¿Qué lista es, ctx, función, nivel?



PESTAÑA


He observado que el botón 'TAB' desplaza el campo activo solo en campos no en casillas de verificación ni botones.
¿Puede ser esto posible con el objetivo de ahorrar el uso del ratón? gracias.




I want to build a form with VR-VIEW

http://msxvr.es/doc/wiki/mdwiki.html#!a ... bd74c8d.md


CheckBox


once created a checkbox,

Code: Select all

_cb = GetTopWindow().CreateCheckBox(10, 10, 100, -1, "CheckBox");


- How I can read if "_cb" is true or false?



AddHotKey


What about hotkey, meaning a letter from a text of a button that when pressed (the letter) activates the button.

Code: Select all

function CreateButton (x, y, w, h = -1, text = "") : pointer

Code: Select all

function AddHotKey (list, ctx, function, level = 0) : pointer

- How AddHotKey is used? What list is , ctx, function, level ?



TAB


I have observed the 'TAB' button displaces the active field only in fields not in checboxes neither buttons.
Can be this possible with the goal to save the mouse use? thank you.
Javi
Posts: 29
Joined: Sat Jun 11, 2022 5:14 am
Been thanked: 10 times

Re: Form VR-VIEW, troubles found.

Post by Javi »

Code: Select all

_lb = GetTopWindow().CreateComboBox(10, 10, 100);
_lb.AddItem("Item1");
_lb.AddItem("Item2");

Lo mismo, ¿como saber que item esta seleccionado en _lb?

The same, ¿How to know which item is selected on _lb?
Post Reply