Re: blueButtonPressedEvent

Reinout Heeck <[email protected]> Thu, 17 Oct 2024 12:02:45 +0200
Newsgroups gmane.comp.lang.smalltalk.vwnc
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------cCjGaI9Y1HndRcILgYP0GDlo
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

You could try creating your own subclass of 
ApplicationStandardSystemController that handles bluebuttonpresses 
differently.

Bluebuttonpresses dispatch through ScheduledWindow >> 
blueButtonEventDispatcher which uses ScheduledWindow >> controller

| controller
|    "Answer the receiver's controller."
|
|    controller == nil
|        ifTrue: [self controller: ApplicationStandardSystemController new].
|    ^controller


The surrounding code looks like you can stick your 
ApplicationStandardSystemController subclass into your window anytime 
before someone can click in it...


-Reinout


On 17/10/2024 09:05, K. Breith wrote:
>
> Hi !
>
> In an application thze blueButtonPressedEvent: is always handled by 
> the ApplicxationStandardSystemController,
> resulting in a menu.
> How can I pass the event to the component the mouse is actually above ?
>
> Karl
>
> -- 
> Karl Breith
> [email protected]
--------------cCjGaI9Y1HndRcILgYP0GDlo
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>You could try creating your own subclass of
      ApplicationStandardSystemController that handles bluebuttonpresses
      differently.</p>
    <p>Bluebuttonpresses dispatch through ScheduledWindow &gt;&gt;
      blueButtonEventDispatcher which uses ScheduledWindow &gt;&gt;
      controller</p>
    <p>| controller<br>
      |    "Answer the receiver's controller."<br>
      |<br>
      |    controller == nil<br>
      |        ifTrue: [self controller:
      ApplicationStandardSystemController new].<br>
      |    ^controller<br>
    </p>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">The surrounding code looks like you can
      stick your ApplicationStandardSystemController subclass into your
      window anytime before someone can click in it...</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">-Reinout<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 17/10/2024 09:05, K. Breith wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:[email protected]">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <br>
      Hi !<br>
      <br>
      In an application thze blueButtonPressedEvent: is always handled
      by the ApplicxationStandardSystemController,<br>
      resulting in a menu.<br>
      How can I pass the event to the component the mouse is actually
      above ?<br>
      <br>
      Karl<br>
      <br>
      <div class="moz-signature">-- <br>
        <font face="Arial">Karl Breith<br>
          <a class="moz-txt-link-abbreviated moz-txt-link-freetext"
            href="mailto:[email protected]"
            moz-do-not-send="true">[email protected]</a></font></div>
    </blockquote>
  </body>
</html>

--------------cCjGaI9Y1HndRcILgYP0GDlo--