Recent Posts

Pages: 1 ... 8 9 [10]
91
SlickEdit® / Re: Options Window Size Too Large
« Last post by Graeme on April 06, 2018, 12:39:23 am »
Hi
Not entirely sure what's going on but below is the "code" for _color_form from my sysobjs.e file.  When the color form is shown in the options dialog, the _color_form is embedded in the form _options_tree_form.  You can actually open both of these forms in the form designer  - macro menu -> open form.  If you open _color_form in the form designer and resize it vertically a little bit by dragging the bottom edge of the window up, then right click on the form and select save.  When you next open the options dialog to colors, you will be able to reduce the vertical height of the window to the point where you can see the OK and cancel buttons etc.

Assuming that the pics you posted are un-scaled you can see that the vertical height of all of the controls/ widgets is just a little bit greater with the Centos pic (V22) than with your V20 pic and on my PC (Win 10) the heights are smaller still.

For your V22 pic, the distance from the top of the options dialog to the bottom of the image is approx 956 pixels, then you need approx another 70 pixels to be able to see the buttons  - 1026 vertical pixels.  If your monitor is 1024 pixels high, you run out of room by a small amount.

You could try resizing the color-form as I mentioned or maybe have a look at _options_tree_form.on_resize in optionsxml.e and see if you can understand it.


You could try comparing the p_height and p_y property values for your _color_form with what's below.
Also you can just press ESCAPE from anywhere and slick will ask if you want to apply/ discard/ cancel any changes.
You can also add your own event handlers to the form as shown below for F6 and F7.

Code: [Select]
defeventtab _options_tree_form;

void _options_tree_form.f6()
{
   _control _ctl_ok;
   call_event(_ctl_ok, LBUTTON_UP, 'W');
}


void _options_tree_form.f7()
{
   _control _ctl_apply;
   call_event(_ctl_apply, LBUTTON_UP, 'W');
}
 

Code: [Select]
_form _color_form {
   p_backcolor=0x80000005;
   p_border_style=BDS_SIZABLE;
   p_caption='Color Settings';
   p_forecolor=0x80000008;
   p_height=6990;
   p_width=10005;
   p_x=31005;
   p_y=4845;
   p_eventtab=_color_form;
   _label ctl_scheme_label {
      p_alignment=AL_LEFT;
      p_auto_size=true;
      p_backcolor=0x80000005;
      p_border_style=BDS_NONE;
      p_caption='Profile:';
      p_forecolor=0x80000008;
      p_height=195;
      p_tab_index=1;
      p_width=510;
      p_word_wrap=false;
      p_x=120;
      p_y=143;
   }
   _combo_box ctl_scheme {
      p_auto_size=true;
      p_backcolor=0x80000005;
      p_case_sensitive=false;
      p_completion=NONE_ARG;
      p_forecolor=0x80000008;
      p_height=300;
      p_style=PSCBO_NOEDIT;
      p_tab_index=2;
      p_tab_stop=true;
      p_width=3555;
      p_x=735;
      p_y=90;
      p_eventtab2=_ul2_combobx;
   }
   _command_button ctl_save_scheme_as {
      p_auto_size=false;
      p_cancel=false;
      p_caption='Copy...';
      p_default=false;
      p_height=330;
      p_tab_index=3;
      p_tab_stop=true;
      p_width=1200;
      p_x=4530;
      p_y=75;
   }
   _command_button ctl_reset_scheme {
      p_auto_size=false;
      p_cancel=false;
      p_caption='Reset';
      p_default=false;
      p_height=330;
      p_tab_index=4;
      p_tab_stop=true;
      p_width=1200;
      p_x=5925;
      p_y=75;
   }
   _command_button ctl_delete_scheme {
      p_auto_size=false;
      p_cancel=false;
      p_caption='Delete';
      p_default=false;
      p_height=330;
      p_tab_index=5;
      p_tab_stop=true;
      p_width=1200;
      p_x=7305;
      p_y=75;
   }
   _command_button ctl_rename_scheme {
      p_auto_size=false;
      p_cancel=false;
      p_caption='Rename...';
      p_default=false;
      p_height=330;
      p_tab_index=6;
      p_tab_stop=true;
      p_width=1200;
      p_x=8670;
      p_y=75;
   }
   _label ctl_assoc_label {
      p_alignment=AL_RIGHT;
      p_auto_size=true;
      p_backcolor=0x80000005;
      p_border_style=BDS_NONE;
      p_caption='Associated symbol coloring profile:';
      p_forecolor=0x80000008;
      p_height=195;
      p_tab_index=7;
      p_width=2475;
      p_word_wrap=false;
      p_x=120;
      p_y=548;
   }
   _combo_box ctl_symbol_scheme {
      p_auto_size=true;
      p_backcolor=0x80000005;
      p_case_sensitive=false;
      p_completion=NONE_ARG;
      p_forecolor=0x80000008;
      p_height=300;
      p_style=PSCBO_NOEDIT;
      p_tab_index=8;
      p_tab_stop=true;
      p_width=3315;
      p_x=2745;
      p_y=495;
      p_eventtab2=_ul2_combobx;
   }
   _command_button ctl_symbol_coloring {
      p_auto_size=false;
      p_cancel=false;
      p_caption='Symbol Coloring...';
      p_default=false;
      p_height=330;
      p_tab_index=9;
      p_tab_stop=true;
      p_width=1800;
      p_x=6210;
      p_y=480;
   }
   _command_button ctl_reset_colors {
      p_auto_size=false;
      p_cancel=false;
      p_caption='Reset Colors';
      p_default=false;
      p_height=330;
      p_tab_index=10;
      p_tab_stop=true;
      p_width=1800;
      p_x=8085;
      p_y=480;
   }
   _image ctl_scheme_divider {
      p_auto_size=true;
      p_backcolor=0x80000005;
      p_border_style=BDS_NONE;
      p_forecolor=0x80000008;
      p_height=90;
      p_max_click=MC_SINGLE;
      p_Nofstates=1;
      p_picture='';
      p_stretch=false;
      p_style=PSPIC_TOOLBAR_DIVIDER_HORZ;
      p_tab_index=11;
      p_tab_stop=false;
      p_value=0;
      p_width=9780;
      p_x=120;
      p_y=855;
      p_eventtab2=_ul2_imageb;
   }
   _tree_view ctl_rules {
      p_after_pic_indent_x=30;
      p_backcolor=0x80000005;
      p_border_style=BDS_FIXED_SINGLE;
      p_CheckListBox=false;
      p_ColorEntireLine=false;
      p_EditInPlace=false;
      p_delay=0;
      p_forecolor=0x80000008;
      p_Gridlines=TREE_GRID_NONE;
      p_height=5796;
      p_LevelIndent=-1;
      p_LineStyle=TREE_DOTTED_LINES;
      p_multi_select=MS_NONE;
      p_NeverColorCurrent=false;
      p_ShowRoot=false;
      p_AlwaysColorCurrent=false;
      p_SpaceY=40;
      p_scroll_bars=SB_VERTICAL;
      p_UseFileInfoOverlays=FILE_OVERLAYS_NONE;
      p_tab_index=12;
      p_tab_stop=true;
      p_width=2428;
      p_x=120;
      p_y=1050;
      p_eventtab2=_ul2_tree;
   }
   _label ctl_color_note {
      p_alignment=AL_LEFT;
      p_auto_size=false;
      p_backcolor=0x80000005;
      p_border_style=BDS_SUNKEN;
      p_caption='This element uses the foreground color of underlying color coded text if visible against the selected background color.';
      p_forecolor=0x80000008;
      p_height=885;
      p_tab_index=13;
      p_width=7200;
      p_word_wrap=true;
      p_x=2700;
      p_y=1035;
   }
   _frame ctl_foreground_frame {
      p_backcolor=0x80000005;
      p_caption='Foreground color';
      p_forecolor=0x80000008;
      p_height=780;
      p_tab_index=14;
      p_width=3540;
      p_x=2700;
      p_y=2010;
      _image ctl_foreground_color {
         p_auto_size=false;
         p_backcolor=0x00000000;
         p_border_style=BDS_FIXED_SINGLE;
         p_forecolor=0x80000008;
         p_height=360;
         p_max_click=MC_SINGLE;
         p_Nofstates=1;
         p_picture='';
         p_stretch=false;
         p_style=PSPIC_DEFAULT;
         p_tab_index=2;
         p_tab_stop=false;
         p_value=0;
         p_width=3300;
         p_x=120;
         p_y=300;
         p_eventtab2=_ul2_imageb;
      }
   }
   _frame ctl_background_frame {
      p_backcolor=0x80000005;
      p_caption='Background colors';
      p_forecolor=0x80000008;
      p_height=1836;
      p_tab_index=15;
      p_width=3540;
      p_x=2700;
      p_y=2910;
      _image ctl_background_color {
         p_auto_size=false;
         p_backcolor=0x00FFFFFF;
         p_border_style=BDS_FIXED_SINGLE;
         p_forecolor=0x80000008;
         p_height=360;
         p_max_click=MC_SINGLE;
         p_Nofstates=1;
         p_picture='';
         p_stretch=false;
         p_style=PSPIC_DEFAULT;
         p_tab_index=2;
         p_tab_stop=false;
         p_value=0;
         p_width=3000;
         p_x=420;
         p_y=602;
         p_eventtab=_color_form.ctl_foreground_color;
         p_eventtab2=_ul2_imageb;
      }
      _label ctl_embedded_label {
         p_alignment=AL_LEFT;
         p_auto_size=true;
         p_backcolor=0x80000005;
         p_border_style=BDS_NONE;
         p_caption='&Embedded code';
         p_forecolor=0x80000008;
         p_height=195;
         p_tab_index=3;
         p_width=1140;
         p_word_wrap=false;
         p_x=420;
         p_y=1083;
      }
      _image ctl_embedded_color {
         p_auto_size=false;
         p_backcolor=0x00FFFFFF;
         p_border_style=BDS_FIXED_SINGLE;
         p_forecolor=0x80000008;
         p_height=360;
         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=3000;
         p_x=420;
         p_y=1338;
         p_eventtab=_color_form.ctl_foreground_color;
         p_eventtab2=_ul2_imageb;
      }
      _check_box ctl_background_inherit {
         p_alignment=AL_LEFT;
         p_auto_size=false;
         p_backcolor=0x80000005;
         p_caption='Inherit';
         p_forecolor=0x80000008;
         p_height=252;
         p_style=PSCH_AUTO2STATE;
         p_tab_index=5;
         p_tab_stop=true;
         p_value=0;
         p_width=2702;
         p_x=120;
         p_y=300;
      }
   }
   _check_box ctl_system_default {
      p_alignment=AL_LEFT;
      p_auto_size=false;
      p_backcolor=0x80000005;
      p_caption='Use system default color';
      p_forecolor=0x80000008;
      p_height=255;
      p_style=PSCH_AUTO2STATE;
      p_tab_index=16;
      p_tab_stop=true;
      p_value=0;
      p_visible=false;
      p_width=2730;
      p_x=6735;
      p_y=2010;
   }
   _frame ctl_font_frame {
      p_backcolor=0x80000005;
      p_caption='Font style';
      p_forecolor=0x80000008;
      p_height=990;
      p_tab_index=17;
      p_width=3150;
      p_x=6735;
      p_y=2010;
      _radio_button ctl_normal {
         p_alignment=AL_LEFT;
         p_backcolor=0x80000005;
         p_caption='&Normal';
         p_forecolor=0x80000008;
         p_height=240;
         p_tab_index=11;
         p_tab_stop=true;
         p_value=1;
         p_width=1110;
         p_x=150;
         p_y=300;
      }
      _radio_button ctl_bold {
         p_alignment=AL_LEFT;
         p_backcolor=0x80000005;
         p_caption='&Bold';
         p_forecolor=0x80000008;
         p_height=240;
         p_tab_index=12;
         p_tab_stop=true;
         p_value=0;
         p_width=1110;
         p_x=1410;
         p_y=300;
         p_eventtab=_color_form.ctl_normal;
      }
      _radio_button ctl_italic {
         p_alignment=AL_LEFT;
         p_backcolor=0x80000005;
         p_caption='&Italic';
         p_forecolor=0x80000008;
         p_height=300;
         p_tab_index=13;
         p_tab_stop=true;
         p_value=0;
         p_width=1110;
         p_x=150;
         p_y=600;
         p_eventtab=_color_form.ctl_normal;
      }
      _radio_button ctl_underline {
         p_alignment=AL_LEFT;
         p_backcolor=0x80000005;
         p_caption='&Underline';
         p_forecolor=0x80000008;
         p_height=300;
         p_tab_index=14;
         p_tab_stop=true;
         p_value=0;
         p_width=1110;
         p_x=1410;
         p_y=600;
         p_eventtab=_color_form.ctl_normal;
      }
   }
   _label ctl_sample {
      p_alignment=AL_CENTERBOTH;
      p_auto_size=false;
      p_backcolor=0x80000005;
      p_border_style=BDS_FIXED_SINGLE;
      p_caption='Sample Text 1234567890';
      p_font_size=10;
      p_forecolor=0x80000008;
      p_height=820;
      p_tab_index=18;
      p_width=3150;
      p_word_wrap=false;
      p_x=6735;
      p_y=3105;
   }
   _label ctl_embedded_sample {
      p_alignment=AL_CENTERBOTH;
      p_auto_size=false;
      p_backcolor=0x80000005;
      p_border_style=BDS_FIXED_SINGLE;
      p_caption='Embedded 1234567890';
      p_font_size=10;
      p_forecolor=0x80000008;
      p_height=820;
      p_tab_index=19;
      p_width=3150;
      p_word_wrap=false;
      p_x=6735;
      p_y=3916;
   }
   _frame ctl_sample_frame {
      p_backcolor=0x80000005;
      p_caption='Sample Code:';
      p_forecolor=0x80000008;
      p_height=2130;
      p_tab_index=20;
      p_width=7200;
      p_x=2702;
      p_y=4802;
      _combo_box ctl_mode_name {
         p_auto_size=true;
         p_backcolor=0x80000005;
         p_case_sensitive=false;
         p_completion=NONE_ARG;
         p_forecolor=0x80000008;
         p_height=300;
         p_style=PSCBO_NOEDIT;
         p_tab_index=1;
         p_tab_stop=true;
         p_width=1680;
         p_x=1575;
         p_y=0;
         p_eventtab2=_ul2_combobx;
      }
      _editor ctl_code_sample {
         p_border_style=BDS_FIXED_SINGLE;
         p_height=1665;
         p_scroll_bars=SB_BOTH;
         p_tab_index=2;
         p_tab_stop=true;
         p_width=6960;
         p_x=120;
         p_y=360;
         p_eventtab2=_ul2_editwin;
      }
   }
}
92
SlickEdit® / Re: Open File Dialog favorites?
« Last post by Clark on April 05, 2018, 10:30:26 pm »
Is there a way to add additional directories or favorites to the navigation pane in the Open File Dialog?

You can drag/drop folders from the right pane to the favorites pane. I added a few to mine. It didn't look like any of the responses mentioned this but maybe a missed it.
93
SlickEdit® / Re: Open File Dialog favorites?
« Last post by rowbearto on April 05, 2018, 05:11:47 pm »
I'm sure you could get even fancier popping up a little menu from an SE macro with a list of your favorites, then click on one. It is not as nice as having favorites, and requires a little work, but it is doable now.
94
SlickEdit® / Re: Open File Dialog favorites?
« Last post by rowbearto on April 05, 2018, 05:10:43 pm »
Not as ideal as having it in favorites, but you can write a macro for each of the directories you would put into favorites to pop up the File Open dialog in your desired directory. Bind it to a key and you can do it in 1 key press for each favorite.
95
SlickEdit® / Re: Open File Dialog favorites?
« Last post by jprod1038 on April 05, 2018, 04:51:44 pm »
Agreed, it does look useful rowbearto and I have started using it, but it doesn't exactly accomplish what I was hoping for.  I like to use favorites to open files to multiple local GIT Repos and also to review changes for other developers.  So in order to use your trick, I'd first have to navigate to the directory in question.  Would be nice to just do it in one click...similar to how you can do this in Eclipse like so:
96
SlickEdit® / Re: Options Window Size Too Large
« Last post by jprod1038 on April 05, 2018, 04:43:26 pm »
Hi Graeme, I am using Centos 6.9 with Gnome 2.28.2 for VS 22.0.2.  For VS 20.0.3 it's on a different machine RHEL 6.2, GNOME 2.28.2.  I did find that I can do Alt+LeftClickDrag to drag the window up, but I shouldn't have to do this.  Here is the output from VS 20.0.3.
97
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
98
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 "slick.sh"

#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");
      return;
   }
   gui_save_as();
   if (_message_box('Add to project?  : ' \n :+ _project_name :+ \n :+ 'File : ' :+ _mdi.p_child.p_buf_name, "new file", MB_YESNO) == IDYES)
   {
      project_add_file(_mdi.p_child.p_buf_name);
   }
}

99
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!
-Andy


100
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?
Pages: 1 ... 8 9 [10]