Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages
Started by Rusty
Wed, 16 Apr 2003 15:01
fsStayOnTop and Debugging
Author: Rusty
Date: Wed, 16 Apr 2003 15:01
Date: Wed, 16 Apr 2003 15:01
7 lines
1060 bytes
1060 bytes
Greetings: Is there any way to make forms that have the FormStyle, fsStayOnTop, disappear when you encounter a breakpoint, exceptions, etc.? All the Best, Rusty
Re: fsStayOnTop and Debugging
Author: Nico Bendlin
Date: Wed, 16 Apr 2003 15:26
Date: Wed, 16 Apr 2003 15:26
30 lines
1808 bytes
1808 bytes
Rusty wrote:
> Is there any way to make forms that have the FormStyle, fsStayOnTop,
> disappear when you encounter a breakpoint, exceptions, etc.?
Don't know, but while debugging you may consider
to not using fsStayOnTop while developing/debug.
Some snippet:
{$IFDEF WIN32} // only on Windows
{$IFOPT D+} // if compiled with debug informations
// not available in Windows 95a/b
function IsDebuggerPresent: BOOL; stdcall;
external kernel32 name 'IsDebuggerPresent';
{$ENDIF}
{$ENDIF}
procedure TForm1.CreateParams(var Params: TCreateParams); // override;
begin
inherited CreateParams(Params);
{$IFDEF WIN32}
{$IFOPT D+}
if IsDebuggerPresent() then
begin
Params.ExStyle := Params.ExStyle and not WS_EX_TOPMOST;
if (FormStyle = fsStayOnTop) then
FormStyle := fsNormal;
end;
{$ENDIF}
{$ENDIF}
end;
Re: fsStayOnTop and Debugging
Author: Torsten Franz (TeamBeer)
Date: Thu, 17 Apr 2003 11:46
Date: Thu, 17 Apr 2003 11:46
15 lines
1376 bytes
1376 bytes
Rusty wrote: > Greetings: > > Is there any way to make forms that have the FormStyle, fsStayOnTop, > disappear when you encounter a breakpoint, exceptions, etc.? > > All the Best, > Rusty Try to click on the minimize button of that form (try multiple times). In my case the form will be minimized and you can see the complete debug window HTH Torsten
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads