Sidebar

Home



Expressions


About

Functions

  abs()
  acos()
  and()
  array_clear()
  array_copy()
  array_crc16()
  array_crc32()
  array_delete()
  array_getdata16()
  array_getdata32()
  array_getdata64()
  array_getdataflt32()
  array_getdataflt64()
  array_getdata()
  array_getstring()
  array_insert()
  array_isvalid()
  array_new()
  array_printdata()
  array_printstring()
  array_remove()
  array_resize()
  array_setdata16()
  array_setdata32()
  array_setdata64()
  array_setdataflt32()
  array_setdataflt64()
  array_setdata()
  array_setstring()
  array_size()
  asin()
  atan2()
  atan()
  beep()
  bin()
  bit()
  cam_color()
  cam_grab()
  cam_load()
  cam_rect()
  ceil()
  centerex()
  center()
  chr()
  clear()
  close()
  cmd()
  cmdcount()
  cmddisplayname()
  cmdid()
  cmdischecked()
  cmdisenabled()
  cmdlist()
  cmdname()
  cos()
  crc16()
  crc32()
  datetime()
  date()
  day()
  debug()
  dec()
  defnz()
  def()
  deg2rad()
  dlg_new()
  dlg_show()
  dlg_delete()
  dlg_addimage()
  dlg_addlabel()
  dlg_addcheckbox()
  dlg_addinput()
  eq()
  estop()
  exec()
  exists()
  exit()
  exitforce()
  exp10()
  exp2()
  exp()
  extout1()
  extout2()
  e()
  file_append()
  file_close()
  file_delete()
  file_flush()
  file_open()
  flood()
  floor()
  for()
  getparam()
  ge()
  gt()
  hex()
  hour()
  if()
  inc()
  isnum()
  isuiready()
  jog()
  land()
  le()
  lnand()
  lnor()
  lnot()
  log10()
  log2()
  log()
  lor()
  lt()
  lxnor()
  lxor()
  match()
  max()
  md5_f()
  md5()
  midiin_channel()
  midiin_ctrl()
  midiin_note()
  midiin_prog()
  midi_ctrl()
  midi_isplaying()
  midi_noteOff()
  midi_noteOn()
  midi_play()
  midi_prog()
  midi_stop()
  millisec()
  minute()
  min()
  mist()
  mmtosetunit()
  mmtounit()
  month()
  msg()
  msgex()
  nand()
  nan()
  ne()
  nop()
  nor()
  notexists()
  not()
  open()
  openfn()
  opencode()
  or()
  outpwm()
  outrc()
  out()
  pause()
  pi()
  pk_analog()
  pk_digital()
  pow()
  print()
  progress()
  pythr()
  py()
  rad2deg()
  rand()
  remparam()
  return()
  rgb2hue()
  rgb2lum()
  rgb2name()
  rgb2sat()
  roundup()
  round()
  rubik()
  second()
  serial_addlistener()
  serial_close()
  serial_config()
  serial_info()
  serial_list()
  serial_open()
  serial_readarray()
  serial_readdata()
  serial_readflush()
  serial_read()
  serial_remlistener()
  serial_writearray()
  serial_writedata16()
  serial_writedata32()
  serial_writedata()
  serial_writeflush()
  serial_write()
  setparam()
  settings()
  setunittomm()
  setunit()
  sha256_f()
  sha256()
  shl()
  shr()
  sign()
  sin()
  siren()
  sleep()
  sound_isplaying()
  sound_load()
  sound_play()
  sound_stop()
  sound_unload()
  spindle()
  sqrt()
  sqr()
  startcode()
  startfn()
  start()
  status()
  stop()
  strlen()
  str()
  tan()
  testfn()
  testcode()
  tomachineuv()
  tomachinexy()
  tomachine()
  toworkuv()
  toworkxy()
  towork()
  trunc()
  unittomm()
  url()
  usb_addlistener()
  usb_close()
  usb_info()
  usb_list()
  usb_open()
  usb_readarray()
  usb_readdata()
  usb_read()
  usb_remlistener()
  usb_writearray()
  usb_writedata()
  usb_write()
  xnor()
  xor()
  year()

Operators

Events

expr:functions:func-dlg_addcheckbox

dlg_addcheckbox()

Adds check box to dialog.

Syntax

dlg_addcheckbox(hnd, text, param, val, store, x, y, w, h, color);

Parameters

hnd Dialog handle.
text Text.
param Parameter name. (optional)
val Value. (optional)
store Store value. (optional)
x X position. (optional)
y Y position. (optional)
w Width. (optional)
h Height. (optional)
color Color. (optional)
Return Value Returns component index.

Note:
Optional parameters with nan() value will be set to default.

Examples

hnd = dlg_new('My dialog');
dlg_addcheckbox(hnd, 'My selection');
dlg_show(hnd);



hnd = dlg_new('Select origin', 0, 0, 1, 1);
dlg_addcheckbox(hnd, 'Origin|None~|\ | |\~ |\ | ', 'myorig', 1, 1, nan(), nan(), 1, nan());
dlg_show(hnd, '#MyOriginResult');

Expr.txt

#MyOriginResult
print('This is #MyOriginResult');
print('  result=', .result);
print('  title=', .title);
print('  myorig=', .myorig);
for(i=1, i<=.count, i=i+1, print('    ', i, ': ', getparam('.name'+i), '=', getparam('.value'+i))  );



hnd = dlg_new('Select animal', 0, 0, 1, 0);
dlg_addcheckbox(hnd, '"Animal"|"Bear~"|"Birds, Bees~"|"Aligator~"|"Ox~"|"Hummingbird~"|"Rattlesnake~"', 'myanimal', 0, 0);
dlg_show(hnd, '#MyAnimalResult');

Expr.txt

#MyAnimalResult
print('This is #MyAnimalResult');
print('  result=', .result);
print('  title=', .title);
print('  myanimal=', .myanimal);
for(i=1, i<=.count, i=i+1, print('    ', i, ': ', getparam('.name'+i), '=', getparam('.value'+i))  );

See also

expr/functions/func-dlg_addcheckbox.txt · Last modified: 2023/05/14 18:26 by 127.0.0.1

Page Tools