Recent Posts

Pages: [1] 2 3 ... 10
1
SlickEdit® / Compile current file on save
« Last post by asandler on Today at 01:31:28 am »
I saw "Build on Save", but it is quite crude. We have pretty large C project. Building implies compiling and linking large number of binaries and tests. I would like to compile current file (assuming this is a C file) on save.
I tried something like

Code: [Select]
_command save_and_compile() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL)
{
    save();
    activate_build();
    clear_pbuffer();
    _str cmd = "make some_file.o";
    concur_command(cmd, false, true, true, true);
}

It works, but it doesn't interface with Message List and I would really like it. Any ideas how to hook up Message List and point at errors in the code?
2
SlickEdit® / Re: Comparing Slickedit and Eclipse
« Last post by Graeme on July 14, 2018, 10:38:34 pm »
For which language are you trying to compare them?  Java only - or something else?
3
SlickEdit® / Re: Comparing Slickedit and Eclipse
« Last post by Clark on July 14, 2018, 02:04:12 pm »
For starters, the text editor in SlickEdit is faster and handles larger files (hex editing). When it comes to gluing build tools together, SlickEdit does a better job letting you hook in what you want (no one has to write a Java plugin first). The way SlickEdit tags source files means your source files don't have to compile in order for you to get useful tagging information. You can create a tag file for some library you're studying and add that as a language-specific tag file (files don't have to be in a project). In general, SlickEdit's tagging can handle larger projects. Eclipse is quite good at Java but not always so hot with other languages.

SlickEdit comes out of the box with support for a ton of languages and more language support is on the way. Eclipse will at least be really time consuming to get all the plugins added. Eclipse runs slower than SlickEdit (SlickEdit is highly optimized C++). Eclipse is quite slow on a Virtual Machine. SlickEdit has beautifiers for quite a few languages, some languages support beatifying as you type (semicolon and/or Tab key), directory aliases (ctrl-space expands directory aliases--I love these), dynamic surround (this is handy when you need it), can treat zip/tar/jar/gz/more as if they are directories and can read/search them.

SlickEdit has single file project support for a number of languages. This is great for debugging say Python/Perl scripts but also supports other languages.

SlickEdit also has emulations. In general, there are way more text editing commands/features in SlickEdit.

SlickEdit has a macro language where you can simply record a macro and it generates source code you can edit.

SlickEdit has a command line which is great for invoking commands which take arguments (maybe even your own).

I'm sure I haven't covered everything but this gives some good generalities.
4
SlickEdit® / Re: Perforce "unlock" and "get" commands in Slickedit 2011?
« Last post by Dan on July 14, 2018, 01:12:15 pm »
Newer versions of SlickEdit have better support for Perforce.  I would recommend getting the trial of 22.0.
5
SlickEdit® / Re: Dynamic forms in Slickedit
« Last post by Graeme on July 14, 2018, 07:05:05 am »
Yes it's possible.  There's three ways. 
(1)
Have a look at the code here
https://community.slickedit.com/index.php/topic,16128.msg61929.html#msg61929
and also search slick macro sources for create_window.

(2)
Search the help for textBoxDialog - it's a function you can call that displays a form with checkboxes, editboxes and buttons according to what you pass to the textBoxDialog function.  You use global variables _param1 _param2 etc to get results from the form.  Have a look at the "standard dialogs" section of SlickCMacroBestPractices.pdf in the installation docs folder.

(3)
You can generate some code that represents a form, then load that code.  e.g. below is the code for one of my forms.  Use the form designer - on the macro menu select new form.  Then put whatever gui elements you might need, including event handlers.  After your form is created, use the "insert form or macro source" command on the macro menu to get the source code that represents the form.  From that, you can see what you need to do to dynamically generate a form.  i.e. you need to create a slick C source file that has
#include "slick.sh"
at the top followed by event handlers and the source code for the form.
You then have to load that source code to get the form built  - to do that, you call the load function e.g.
load("yourfilename.e")
Then you use the "show" command to show the form.

Code: [Select]
_form xbar1 {
   p_backcolor=0x80000005;
   p_border_style=BDS_NONE;
   p_caption="xs";
   p_forecolor=0x80000008;
   p_height=6000;
   p_tool_window=true;
   p_width=3825;
   p_x=14925;
   p_y=1890;
   p_eventtab=xbar1;
   _list_box ctllist1 {
      p_border_style=BDS_FIXED_SINGLE;
      p_font_size=1;
      p_height=5460;
      p_multi_select=MS_NONE;
      p_scroll_bars=SB_NONE;
      p_tab_index=1;
      p_tab_stop=true;
      p_width=900;
      p_x=0;
      p_y=0;
      p_eventtab2=_ul2_listbox;
   }
   _image scrollbar_image {
      p_auto_size=false;
      p_backcolor=0x80000005;
      p_border_style=BDS_NONE;
      p_forecolor=0x80000008;
      p_height=5040;
      p_max_click=MC_SINGLE;
      p_Nofstates=1;
      p_picture='';
      p_stretch=true;
      p_style=PSPIC_DEFAULT;
      p_tab_index=2;
      p_tab_stop=false;
      p_value=0;
      p_width=780;
      p_x=600;
      p_y=360;
      p_eventtab2=_ul2_imageb;
   }
   _image current_line_image {
      p_auto_size=false;
      p_backcolor=0x00A8A8A8;
      p_border_style=BDS_NONE;
      p_forecolor=0x80000008;
      p_height=120;
      p_max_click=MC_SINGLE;
      p_Nofstates=1;
      p_picture='';
      p_stretch=false;
      p_style=PSPIC_DEFAULT;
      p_tab_index=4;
      p_tab_stop=false;
      p_value=0;
      p_width=780;
      p_x=300;
      p_y=5100;
      p_eventtab2=_ul2_imageb;
   }
   _image scrollbar_handle_image {
      p_auto_size=false;
      p_backcolor=0x00A8A8A8;
      p_border_style=BDS_NONE;
      p_forecolor=0x00D70625;
      p_height=960;
      p_max_click=MC_SINGLE;
      p_Nofstates=1;
      p_picture='';
      p_stretch=false;
      p_style=PSPIC_DEFAULT;
      p_tab_index=3;
      p_tab_stop=false;
      p_value=0;
      p_width=840;
      p_x=180;
      p_y=4080;
      p_eventtab2=_ul2_imageb;
   }
}



6
SlickEdit® / Dynamic forms in Slickedit
« Last post by jennycooper on July 14, 2018, 12:25:39 am »
hii,
I want to know if we can create dynamic dialog boxes in slickedit by reading the the value of form elements from an external file (.txt file) . If yes , how ??
________________________________________________________________________________________
jennycooper
Nox Showbox Vidmate


7
SlickEdit® / Comparing Slickedit and Eclipse
« Last post by williamsmith on July 14, 2018, 12:23:22 am »
hello,
I've been using Slickedit for about ten years. I really like it. Eclipse has almost become a standard in the Java community, so I think it might it might pay to learn a little bit of it to make transitioning to new jobs easier ( I own my own copy). My experience has been that bosses/coworkers are less hostile to me using Slickedit once they see what it can do and if they see that I can manipulate code their way on their computers when discussing a problem.

To that end I was wondering what features Eclipse has that Slickedit does not......or what features seem easier, more efficient in Eclipse.

william
Tutuapp 9apps free download Mobdro
8
SlickEdit® / Perforce "unlock" and "get" commands in Slickedit 2011?
« Last post by timur on July 13, 2018, 06:50:56 pm »
I'm new to Perforce (it's what they use at work), and when I try to enable Perforce support in Slickedit, it appears that the "unlock" and "get" commands are undefined.

What should they be set to?

SlickEdit 2011 (v16.0.3.0 64-bit)

Serial number: VLX819302
Licensed number of users: Single user
License file: /home/ttabi/vslick/bin/slickedit.lic

Build Date: October 06, 2011
Emulation: CUA

OS: Linux
OS Version: Ubuntu 18.04 LTS
Kernel Level: 4.15.0-24-generic
Build Version: #26-Ubuntu SMP Wed Jun 13 08:44:47 UTC 2018
Processor Architecture: x86_64

X Server Vendor: The X.Org Foundation
Memory: 98% Load, 27773MB/28146MB Virtual
Shell Info: /home/ttabi/vslick/bin/secsh -i
Screen Size: 1920 x 1200

Project Type: (Other)
Language: .c (C/C++)

Installation Directory: /home/ttabi/vslick/
Configuration Directory: /home/ttabi/.slickedit/16.0.3/
Spill File: /tmp/$slk.ttabi.21765
9
SlickEdit® / Re: Installing hotfix resets auto update option
« Last post by Nosh on July 13, 2018, 11:31:45 am »
No comment?
10
SlickEdit® / Re: vtg not retained in profile
« Last post by bbcorp on July 12, 2018, 08:32:33 pm »
This hotfix fixed the problem.
Thanks for the recommendation.

I am running a single-user install and license.
No worries.

BR
Pages: [1] 2 3 ... 10