Templot logo

Templot Club Archive - Search Results

To search again, click the Back button in your browser.


Search results for: switch_selector_listbox.Visible

2 results found.
... that the Lazarus compiler isn't complaining about it. I'm finding your indenting style: begin if check_valid_switch_selected=False then EXIT; // no switch or no data for it. if switch_info_showing=True then begin show_info_button.Caption := 'show switch info'; resize_small(); switch_info_showing := False; end else begin show_switch_info(full_size_mm_radiobutton.Checked, switch_info_showing); show_info_button.Caption := 'hide switch info'; resize_big(); switch_info_showing := True; end; // ??? Is this next line required? ??? if switch_selector_listbox.Visible then switch_selector_listbox.SetFocus; end; very difficult to follow. I realise I will need to be flexible and less set in my ways for a collaborative project, but I'm wondering if there is a reason for not following my style: begin if check_valid_switch_selected=False then EXIT; // no switch or no data for it. if switch_info_showing=True then begin data_child_form.Close; show_info_button.Caption:= 'show switch &info'; switch_info_showing:=False; end else begin show_switch_info(full_size_mm_radiobutton.Checked,switch_info_showing); show_info_button.Caption:= 'hide ...
Terms matched: 1  -  Score: 29  -  170k  -  URL: https://85a.uk/templot/archive/topics/topic_3544.php
... wrote for showing switch info comes out looking like this... // _____ procedure Tswitch_select_form.show_info_butt onClick(Sender: TObject); begin if check_valid_switch_selected= False then EXIT; // no switch or no data for it. if switch_info_showing= True then begin show_info_button.Caption := 'show switch info'; resize_small(); switch_info_showing := False; end else begin show_switch_info(full_size_mm_radiobutton.Checked, switch_info_showing); show_info_button.Caption := 'hide switch info'; resize_big(); switch_info_showing := True; end; if switch_selector_listbox.Visible then switch_selector_listbox.SetFocus; end; Not perfect by any means (certainly not your 'Bingo!' moment) but I could live with it. If you want to try on a bigger sample, copy the attached file (with change of extension!) into your equivalent of C:\Documents and Settings\graeme\Local Settings\Application Data\lazarus\jcfsettings.cfg The example you gave is always going to be a hard one because a human eye will always be able to pick out cases where fortuitous similarity of lines of ...
Terms matched: 1  -  Score: 8  -  69k  -  URL: https://85a.uk/templot/archive/topics/topic_3564.php


Search took 0.101 seconds


Back to Templot Club