Author Topic: Show command not working  (Read 6607 times)

outsider

  • Community Member
  • Posts: 64
  • Hero Points: 1
Show command not working
« on: July 01, 2011, 03:03:36 PM »
Hello,

I am following the example in the help on how to create a dialog box. However, I cannot show the form using the command

show form1

In fact, the command line will not even let me enter a space after the w in show.
I also tried show("form1") to no avail. (I get the message 'Unknown command')

The form shows up when I go Macro/Open Form so I can still edit it and I can show it while I am editing it by going Shift-Space but there appears to be no way to call the form from code.

Any suggestions?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: Show command not working
« Reply #1 on: July 01, 2011, 03:07:43 PM »
What version of SlickEdit are you using?

What happens if you type "sh" followed by a question mark on the SlickEdit command line?  This will give a list of all the commands that start with "sh".

outsider

  • Community Member
  • Posts: 64
  • Hero Points: 1
Re: Show command not working
« Reply #2 on: July 01, 2011, 03:15:55 PM »
16.0.0.6

It seems to be working now if I hit enter after typing show - it then requests a form name.

This isn't the behaviour in the documentation though. Nor will 'Esc' close the form, as stated in the documentation.

Thanks for the speedy reply Dan.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: Show command not working
« Reply #3 on: July 01, 2011, 03:22:19 PM »
I'd like to be sure I'm looking at the same example, which exact topic in the help are you looking at?

outsider

  • Community Member
  • Posts: 64
  • Hero Points: 1
Re: Show command not working
« Reply #4 on: July 01, 2011, 03:32:23 PM »
Slick-C Macro Programming Guide/Four Ways to Use Slick-C/Event-Driven Dialog Boxes/Creating a Simple Event-Driven Dialog Box

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: Show command not working
« Reply #5 on: July 01, 2011, 03:45:30 PM »
Pressing Esc to close is not correct(in this case).  I will log an error on the documentation.

I am still curious about your first issue.  If you type "show" followed by a question mark, what happens?

outsider

  • Community Member
  • Posts: 64
  • Hero Points: 1
Re: Show command not working
« Reply #6 on: July 01, 2011, 03:52:31 PM »
show? brings up the 'Select a Command Parameter' dialog listing all commands beginning with show, of which show is of course the first.

BTW - I'm impressed with your sense of perfectionism in wanting to pursue this.  (Or should I say standard of excellence?)  :)

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: Show command not working
« Reply #7 on: July 01, 2011, 03:59:51 PM »
What emulation are you using?

outsider

  • Community Member
  • Posts: 64
  • Hero Points: 1
Re: Show command not working
« Reply #8 on: July 01, 2011, 04:03:11 PM »
vim

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: Show command not working
« Reply #9 on: July 01, 2011, 04:05:49 PM »
How are you activating the SlickEdit command line?

outsider

  • Community Member
  • Posts: 64
  • Hero Points: 1
Re: Show command not working
« Reply #10 on: July 01, 2011, 04:24:11 PM »
Ctrl+A

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2898
  • Hero Points: 153
Re: Show command not working
« Reply #11 on: July 01, 2011, 04:26:55 PM »
OK.  I'm going to get our Vim guy to review this and see if he has any thoughts on that.  I think that completion is going awry, possibly because of a Vim specific option.

outsider

  • Community Member
  • Posts: 64
  • Hero Points: 1
Re: Show command not working
« Reply #12 on: July 03, 2011, 12:47:02 AM »
Dan,

Any luck on this? It's getting a bit annoying as I can confirm that I cannot type any spaces in commands (and hence arguments I want to supply to commands) entered at the command line whilst in vim emulation mode.

thanks

SlickEdit Support

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 384
  • Hero Points: 29
Re: Show command not working
« Reply #13 on: July 05, 2011, 09:41:41 PM »
While Dan and the Vim guy are looking into this for you does the right-arrow key work for you in place of using the space bar?

Best,
SlickEdit Support

outsider

  • Community Member
  • Posts: 64
  • Hero Points: 1
Re: Show command not working
« Reply #14 on: July 05, 2011, 10:44:19 PM »
Yes - right arrow works for me so I can live with that, thanks.

BTW - if this helps, the functionality returns (i.e. I can type a space) if you close all the buffers.

thanks once again