Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: KNMn
  • Order by date
  1. KNMn

    Cancel Button - Mysterious loss of Event

    I solved the problem of the cancel button with the following code. Visible = true; SetFocus(); Close(); I have since discovered similar behavour on another form which has no buttons. (In this case I am overloading the Hide() function. I tried adding Visible=true and SetFocus(), similar to...
  2. KNMn

    Cancel Button - Mysterious loss of Event

    I tried setting Cancel to false also, but no help. I suspect you are onto something though because the other buttons on the form work OK, even when the Cancel function doesn't! I've tried playing with the tabstop number also, and then even adding another button to the form with its on-click...
  3. KNMn

    Cancel Button - Mysterious loss of Event

    I tried your suggestion of using Close(), but am still experiencing the same behaviour. The close event seems to be being directed away from my event handler. void __fastcall TmodemConnectDlg::CancelBtnClick(TObject *Sender) { // SetFocus(); // Update(); // Hide(); // Update()...
  4. KNMn

    Comport - Opening port when not called Com1, Com2 etc

    Thanks for that James. Its given me some clues for investigation. Thanks! I wonder if I can perhaps use RAS to enumerate the ports, and determine the port names to then use in the old CreateFile() function!?
  5. KNMn

    Comport - Opening port when not called Com1, Com2 etc

    I am using the windows CreateFile() function to open and communicate to modems via a comport, but have come across some modems (especially internal modems) which present their port as a custom name in place of the usual Com1, Com2.. etc, as viewed in Hyperterminal. LPCTSTR lpFileName...
  6. KNMn

    Cancel Button - Mysterious loss of Event

    In certain circumstances within the application which I wrote in C++ Builder 4/5, a dialog cannot be closed by pressing its cancel button. Generally I just click the Cancel button or press escape (ie I have the "Cancel" property of the button set to true) to close the dialog. The event handler...

Part and Inventory Search

Back
Top