Templot logo

Templot Club Archive - Search Results

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


Search results for: switch_info_showing

2 results found.

Did you mean: 'switch_info?
... Nov 2019 15:05 by Graeme posted: 29 Nov 2019 22:21 from: Martin Wynne Hi Graeme, Did you forget to include switch_select.lfm in your post? You are referencing a component switch_info:TMemo; which isn't on the existing form, so not surprisingly all I'm getting is an AV when clicking the button. I'm a bit surprised 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 ...
Terms matched: 1  -  Score: 118  -  170k  -  URL: https://85a.uk/templot/archive/topics/topic_3544.php
... ', 'case', or whatever). This is anyway how it would work in most other languages. (Yes, I know we are not using other languages, but it will at least have a familiar feel for most newcomers.) Anyway, the procedure I 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!) ...
Terms matched: 1  -  Score: 29  -  69k  -  URL: https://85a.uk/templot/archive/topics/topic_3564.php


Search took 0.158 seconds


Back to Templot Club