ExamineKeyboard() & ScintillaGadget

Just starting out? Need help? Post your questions and find answers here.
soerenkj
User
User
Posts: 95
Joined: Mon Jun 14, 2004 10:19 pm

ExamineKeyboard() & ScintillaGadget

Post by soerenkj »

On Windows this code works fine but on OSX I am not able to input text in the Scintilla gadget - unless I remove the call to ExamineKeyboard().

Code: Select all

Procedure ScintillaCallBack(Gadget, *n.SCNotification)
 
EndProcedure

OpenWindow(0, 0, 0, 600, 500, "OSX Bug?")

InitSprite()
InitKeyboard()
OpenWindowedScreen(WindowID(0), 0, 0, 1, 1)

InitScintilla()
ScintillaGadget(0, 0, 0, WindowWidth(0), WindowHeight(0), @ScintillaCallBack())

Repeat
  Repeat
    event = WindowEvent()
    If event = #PB_Event_CloseWindow
      End
    EndIf
  Until event = 0
 
  FlipBuffers()
  ExamineKeyboard()
ForEver
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ExamineKeyboard() & ScintillaGadget

Post by Fred »

ExamineKeyboard is for game screen only, you shouldn't use it in regular applications.
Post Reply