hexagon logo

Has anyone done any 'advanced' Dialogs in PC-DMIS Basic?

I'm struggling with trying to produce an advanced dialog in PC-DMIS Basic, i.e. one where entry fields are turned on/off when certain radio buttons are clicked, data entry fields filled when selecting a feature in a combo box, etc. etc.

The Help isn't very helpful, and sometimes obviously wrong - unfortunately that help comes verbatim from the Cypress Enable product which is used in PCD, and googling doesn't help...

I've come quite far, but am having large problems with radio groups, as each radio group has it's items numbered 0-N, but the click event doesn't tell me which group has been clicked, just the number and (mangled) caption of the item, which means that I can only have one radio group in each dialog!? Button clicks give me the wrong button caption (I get "Cancel" when I click the "OK" button, and an empty string when clicking the "Cancel" button).

Also, I haven't managed to set the selected value of a listbox or radio group programmatically (DlgText, DlgValue, nothing happens) while the dialog is active.

It's not that I have to do it, it started as a way to try to learn using Dialog events in Basic, hopefully to be able to tell others how to do it, but I'm on the brink of giving up now after two days of experimentation (OK, I've done some SW support during those days, too) and frustration.

Has anyone fiddled with this? Any insights? Examples?
Parents
  • Why use Basic, and not something like an HTA?

    EDIT:
    I read it again and noticed it was more for experimentation and information.
    If I were to do it, I'd use Basic commands wrapped in an HTA; but that's only because I can play around with HTML and VBS. I don't even know if that's possible, but I don't see why not.
    I've never used the Dialog box options or Basic, but I've done something similar with HTA & VBS when trying to come up with a startup program for PC-DMIS
Reply
  • Why use Basic, and not something like an HTA?

    EDIT:
    I read it again and noticed it was more for experimentation and information.
    If I were to do it, I'd use Basic commands wrapped in an HTA; but that's only because I can play around with HTML and VBS. I don't even know if that's possible, but I don't see why not.
    I've never used the Dialog box options or Basic, but I've done something similar with HTA & VBS when trying to come up with a startup program for PC-DMIS
Children
No Data