Recent Posts

Pages: 1 ... 8 9 [10]
Slick-C® Macro Programming / Show menu when text selected.
« Last post by sandbox on April 05, 2018, 04:27:25 pm »
Hi, is there a macro that automatically displays the right click menu when text is selected. This is the way it works in the Opera Browser. Thank you
SlickEdit® / Re: Set Default Empty File to Edit (Or create key binding?)
« Last post by Graeme on April 05, 2018, 02:23:47 am »
You could try this.  Copy the code to e.g. macros1.e and load it using the load module command on the macro menu.
[BTW my personal opinion is if you haven't found what you're looking for after 10 minutes you should just ask.]

Code: [Select]
#include ""

#pragma option(strictsemicolons,on)
#pragma option(strict,on)
#pragma option(autodecl,off)
#pragma option(strictparens,on)

int xx1 = 10000;

_command void new_sql_file() name_info(',')
   if ( ++xx1 > 1000000 ) {
      xx1 = 10000;
   if (edit('+t temp' :+ xx1 :+ '.sql'))
      _message_box("Unable to create file");
   if (_message_box('Add to project?  : ' \n :+ _project_name :+ \n :+ 'File : ' :+ _mdi.p_child.p_buf_name, "new file", MB_YESNO) == IDYES)

SlickEdit® / Set Default Empty File to Edit (Or create key binding?)
« Last post by indy042 on April 05, 2018, 01:07:42 am »
Good evening,
I searched through the archives, but didn't see this question. May have missed it. If it has been asked, my apologies...
I create a lot of small .sql files, and instead of selecting the 'Create Empty File to Edit' and selecting PL/SQL, I would make a shortcut that would automagically do it.
I tried creating a key binding in the options but it wouldn't open anything. I then tried what was listed as new-file (ALT+N) and it didn't work either. (Just found out it does work, I just have to already have an empty file opened.)
Is there a way I can set up a binding that will accomplish this without doing the Create Empty File>PL/SQL>OK?

I appreciate the help!

SlickEdit® / Re: Options Window Size Too Large
« Last post by Graeme on April 04, 2018, 11:17:03 pm »
What platform and window manager are you using?  On my machine (Win 10) the minimum size of the dialog is 1028(w) by 750(h).  In your pic, the height of the "copy" button is greater than the height of the "profile" combo box  - in mine they're exactly the same.  There's also more vertical space between widgets in your picture than in mine.  I doubt if slick has different dialogs for different platforms.  Can you post a pic of the dialog from your 20.0.3 installation?
SlickEdit® / Re: What is setting to change tool window background colors? v22.0.2.1
« Last post by Dennis on April 04, 2018, 09:52:20 pm »
Tools > Options > Appearance > General > Application Theme.   First thing in the list.
SlickEdit® / What is setting to change tool window background colors? v22.0.2.1
« Last post by JimmieC on April 04, 2018, 09:23:51 pm »
I noticed on that the image of the editor has the tool windows colors set to match the edit window. Where is the settings for that? I looked in the help and in the configuration and I am missing it. I selected a couple of dark color schemes and tried "Reset Colors". My tool windows still have a white background.

FYI... In the help file under Colors (Quick Start), it has a screen shot from an older implementation of SE.
SlickEdit® / Re: Open File Dialog favorites?
« Last post by JimmieC on April 04, 2018, 09:16:27 pm »
Looks useful.
It would be very convenient to have buttons right on the file dialog though.
SlickEdit® / Re: Open File Dialog favorites?
« Last post by rowbearto on April 04, 2018, 08:09:28 pm »
With a small modification of my macro, you could have another macro that will automatically bring up the open file dialog to the directory of the active buffer. Here is the modification:

Code: [Select]
_command void cdToBufferLaunchBrowseOpen() name_info(',' VSARG2_READ_ONLY|VSARG2_REQUIRES_EDITORCTL)

I'm sure you could create a similar macro for launching Open File in the project directory as well.
SlickEdit® / Re: Open File Dialog favorites?
« Last post by rowbearto on April 04, 2018, 08:04:50 pm »
If you right click on the tab for any open buffer, you can do: "Change directory to", and go to the directory of that file before launching the Open File dialog. The Open file dialog opens at the current working directory, so if you changed there just before launching the Open File dialog, you will be there.

I also have a macro bound to a key (I use Alt-C) that will change to the directory of the active buffer AND put the focus on the smart open window. I use it VERY FREQUENTLY, here it is:

Code: [Select]
_command void cdToBufferFocusSmartOpen() name_info(',' VSARG2_READ_ONLY|VSARG2_REQUIRES_EDITORCTL)

I would think that macros to change the current directory to the project directory could easily be written and bound to another key.

I find myself frequently using the Smart Open tool window instead of Open File dialog. I tend to only use the Open File dialog when I want to create a new file, I navigate to the desired directory in File->Open and type the name of a file that does not exist, then I have a new file. But for opening existing files I use Smart Open with my macro often, or just type a few characters of the filename in Smart Open and I can get to that file very quickly.
Pages: 1 ... 8 9 [10]