Author Topic: Options Window Size Too Large  (Read 469 times)

jprod1038

  • Junior Community Member
  • Posts: 7
  • Hero Points: 0
Options Window Size Too Large
« on: April 04, 2018, 05:37:13 pm »
I have v22.0.2 and when accessing the 'Colors' settings via 'Tools -> Options... -> Appearance -> Colors', the size of the window is too tall so I can't see any of the buttons (i.e. 'OK', 'Cancel', 'Apply').  When trying to resize the window, it doesn't let me do it past a certain point.  This isn't like this on my older version (v20.0.3).  Any ideas on how to fix this or why this is?


Graeme

  • Senior Community Member
  • Posts: 2117
  • Hero Points: 257
Re: Options Window Size Too Large
« Reply #1 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?

jprod1038

  • Junior Community Member
  • Posts: 7
  • Hero Points: 0
Re: Options Window Size Too Large
« Reply #2 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.

Graeme

  • Senior Community Member
  • Posts: 2117
  • Hero Points: 257
Re: Options Window Size Too Large
« Reply #3 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;
      }
   }
}

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4175
  • Hero Points: 300
Re: Options Window Size Too Large
« Reply #4 on: April 06, 2018, 01:25:04 am »
The easiest workaround is to just press ESCAPE to be prompted to apply/discard/cancel changes like Graeme has suggested.

Would be nice for the options dialog to automatically create a scrollable dialog. It's doable but I'm not sure how hard it would be.

Graeme

  • Senior Community Member
  • Posts: 2117
  • Hero Points: 257
Re: Options Window Size Too Large
« Reply #5 on: April 06, 2018, 02:26:42 am »
Also, forgot to mention, there's a minor bug with the color options form.  If you repeatedly resize the window, the width of the treeview just to the left of the foreground color, gets progressively narrower and narrower until it disappears completely.

jprod1038

  • Junior Community Member
  • Posts: 7
  • Hero Points: 0
Re: Options Window Size Too Large
« Reply #6 on: April 06, 2018, 03:48:58 pm »
Thanks Graeme, resizing the _color_form worked for me!  Thanks for everyone's help and suggestions!