bug fixes by Baldur

This commit is contained in:
ocoursiere
2003-06-18 19:03:03 +00:00
parent e13e60e6a7
commit eb7fc19587
2 changed files with 17 additions and 4 deletions

View File

@@ -30,10 +30,12 @@
#include <beobj.h> #include <beobj.h>
#if defined(__cplusplus) #if defined(__cplusplus)
extern "C" { extern "C" {
#endif #endif
#if defined(__cplusplus) #if defined(__cplusplus)
} }
#endif #endif
@@ -267,12 +269,23 @@ BPTextView::BPTextView(TPasObject PasObject, BMessage *data)
BPasObject(PasObject) BPasObject(PasObject)
{ {
} }
void BPTextView::Pulse(void) void BPTextView::Pulse(void)
{ {
Pulse_hookCall();
BTextView::Pulse(); BTextView::Pulse();
} }
void BPTextView::KeyDown(const char *bytes, int32 numBytes)
{
KeyDown_hookCall(bytes,numBytes);
BTextView::KeyDown(bytes,numBytes);
}
void BPTextView::MessageReceived(BMessage *message) void BPTextView::MessageReceived(BMessage *message)
{ {
@@ -296,11 +309,13 @@ void BPTextView::AttachedToWindow(void)
void BPTextView::AllAttached(void) void BPTextView::AllAttached(void)
{ {
//AllAttached_hookCall();
BTextView::AllAttached(); BTextView::AllAttached();
} }
void BPTextView::AllDetached(void) void BPTextView::AllDetached(void)
{ {
//AllDetached_hookCall();
BTextView::AllDetached(); BTextView::AllDetached();
} }
@@ -310,14 +325,11 @@ void BPTextView::WindowActivated(bool active)
BTextView::WindowActivated(active); BTextView::WindowActivated(active);
} }
void BPTextView::KeyDown(const char *bytes, int32 numBytes)
{
BTextView::KeyDown(bytes, numBytes);
}
void BPTextView::FrameResized(float width, float height) void BPTextView::FrameResized(float width, float height)
{ {
FrameResized_hookCall(width, height);
BTextView::FrameResized(width, height); BTextView::FrameResized(width, height);
} }

View File

@@ -383,6 +383,7 @@ end;
procedure TTextView.KeyDown(bytes : PChar; numBytes : integer); procedure TTextView.KeyDown(bytes : PChar; numBytes : integer);
begin begin
//writeln('keydown textview');
//BTextView_KeyDown(CPlusObject, bytes, numBytes); //BTextView_KeyDown(CPlusObject, bytes, numBytes);
end; end;