584,808 active members*
5,362 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > PlanetCNC > dialog documementation needed (dlg, dlgname, dlgshow)
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2022
    Posts
    6

    dialog documementation needed (dlg, dlgname, dlgshow)

    Documentation for dialoge (dlg, dlgname, dlgshow) is still missing here at cnczone.
    Can anybody advise where to find description and parameters of these functions?

  2. #2
    Join Date
    Jan 2022
    Posts
    107

    Re: dialog documementation needed (dlg, dlgname, dlgshow)

    As I Know there is no documentation available right now. But you can find some examples when searching for "dlgname" in this forum.

    Here is what i got so far

    Always start with (dlgname,Dialog Headline here)
    Content goes here...
    Always end Dialog with (dlgshow)

    Adding opt=1 hides cancel button:
    (dlgname,Dialog Headline here, opt=1)

    Add Text
    (dlg,my Text, typ=label, x=0, w=410, color=0xffffff)

    Add input field
    (dlg,Bezeichnung, dec=3, def=-20, min=-1000, max=1000, param=length)
    or
    (dlg,Distance, x=0, dec=2, def='setunit(10, 0.5);', min=0.1, max=10000, setunits, store, param=dist)


    Image
    (dlg,./Icons/Warning.png, typ=image, x=0)

    Checkbox (may contain multiple elements separated by |)
    (dlg,|Yes|No, typ=checkbox, x=50, w=600, def=1, store, param=option)

    with linebreat before "option3" with \
    (dlg,caption|option1|option2|\option3|option4, typ=checkbox, x=20, w=90, def=1, store, param=action)

    param= parameter where to store result
    def= default value
    dec=decimal places
    x= left distance in pixels
    w= width of item. per Item in case of checkbox

  3. #3
    Join Date
    Mar 2017
    Posts
    1295

    Re: dialog documementation needed (dlg, dlgname, dlgshow)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •