Jump to content

Search the Community

Showing results for tags 'tpanel'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Delphi Questions and Answers
    • Algorithms, Data Structures and Class Design
    • VCL
    • FMX
    • RTL and Delphi Object Pascal
    • Databases
    • Network, Cloud and Web
    • Windows API
    • Cross-platform
    • Delphi IDE and APIs
    • General Help
    • Delphi Third-Party
  • C++Builder Questions and Answers
    • General Help
  • General Discussions
    • Embarcadero Lounge
    • Tips / Blogs / Tutorials / Videos
    • Job Opportunities / Coder for Hire
    • I made this
  • Software Development
    • Project Planning and -Management
    • Software Testing and Quality Assurance
  • Community
    • Community Management

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Delphi-Version

Found 1 result

  1. @rturas

    Disable all controls on panel

    Hello, I want to disable all the controls that are on the specific panel (buttons, edits, etc.) while i read data from server. For that reason i use: TPanel.Enabled := False And reenable it after reading is finished. If i click on any disabled button while panel is disabled, its event is fired after the panel is reanabled. Is it normal behavior, or am i doing something wrong? My code looks like that: procedure TfrmPanel.FormShow(Sender: TObject); begin fTCPClient := TIdTCPClient.Create; fTCPClient.Host := IP; fTCPClient.Port := Port; try fTCPClient.Connect; except on E: Exception do //Handle exception end; end; procedure TfrmPanel.btnWriteASCII_ShrtClick(Sender: TObject); var myStr: string; i: Integer; begin pnl3.Enabled := False; myStr := ''; try if fTCPClient.Connected then begin fTCPClient.IOHandler.WriteLn('set OutputType=ASCII_SHORT'); if fTCPClient.IOHandler.InputBufferIsEmpty then begin for i := 0 to 1 do myStr := myStr + fTCPClient.IOHandler.WaitFor(Char($0A), True, False, IndyTextEncoding_ASCII, 5000); end; end; finally begin mmo1.Lines.Add(myStr); pnl3.Enabled := True; end; end; end;
×