List Info

Thread: Re: More MAC questions




Re: More MAC questions
country flaguser name
United States
2007-07-20 20:12:38

Julian:

Attached is a tar file with an example. If you click in the window
there should be a wxMessageBox announcing a button down in a general
mouse event (always shows), a wxMessageBox announcing a button up in a
general mouse event (does not show), and a wxMessageBox announcing a
wxFrame LeftUp event (does not show). If you take out the button down
logic, then no wxMessageBoxes ever appear. It works as expected under
windows. (you need to comment out the Button Down wxMessageBox to see
the other boxes in Windows. I do the same thing on the Mac)

Puzzled,
Ralph Pass

Julian Smart wrote:
>
> Hi Ralph,
>
> Sorry, I deduced wrongly that you were trying to intercept a button-up
> from a wxButton control.
>
>; Ralph Pass wrote:
> > Julian:
> >
>; > Perhaps I am missing something here, like the definition of a
> predefined
> > control.
> >
>; > Is a wxFrame a predefined control? a wxBitmap?
> >
>; A wxBitmap is not a control, and wxFrame wasn't a control in the sense I
> was meaning - something that presents a higher-level command event to
> the application.
> > What I have is a bitmap that I am presenting. It is tied to the real
>; > world and my program knows this connection. When I click on a point I
> > want to have the program present information derived from tying the
> > mouse click point to the real world, and then getting the information
> > for that real world point.
> >
>; I can't think why there should be a problem getting a mouse up event if
> you've defined a handler for it and an event table entry... but then
>; it's hard to say without seeing code.
>
> Regards,
>
>; Julian
>
>

__._,_.___
.

__,_._,___
  
Re: More MAC questions
country flaguser name
United Kingdom
2007-07-21 06:00:13

Hi,

I don't know why this is; perhaps you can put a breakpoint in the Mac
code that processes button up events: see src/mac/carbon/toplevel.cpp.
However some implementations have trouble with intercepting events for
(and drawing on) frames, so usually having at least one window in the
frame client area is recommended. If things still didn't work properly
with that window, then I'd be concerned.

Regards,

Julian

Ralph Pass wrote:
> Julian:
>
> Attached is a tar file with an example. If you click in the window
> there should be a wxMessageBox announcing a button down in a general
> mouse event (always shows), a wxMessageBox announcing a button up in a
> general mouse event (does not show), and a wxMessageBox announcing a
> wxFrame LeftUp event (does not show). If you take out the button down
> logic, then no wxMessageBoxes ever appear. It works as expected under
> windows. (you need to comment out the Button Down wxMessageBox to see
> the other boxes in Windows. I do the same thing on the Mac)
>;
>
> Puzzled,
> Ralph Pass
>;
>
>
> Julian Smart wrote:
>
>>; Hi Ralph,
>>
>> Sorry, I deduced wrongly that you were trying to intercept a button-up
>> from a wxButton control.
>>
>> Ralph Pass wrote:
>>
>>;> Julian:
>>>;
>>;> Perhaps I am missing something here, like the definition of a
>>;>
>>; predefined
>>
>>;> control.
>>>
>>> Is a wxFrame a predefined control? a wxBitmap?
>>>
>>>
>>; A wxBitmap is not a control, and wxFrame wasn't a control in the sense I
>> was meaning - something that presents a higher-level command event to
>> the application.
>>
>>;> What I have is a bitmap that I am presenting. It is tied to the real
>;>> world and my program knows this connection. When I click on a point I
>>> want to have the program present information derived from tying the
>>> mouse click point to the real world, and then getting the information
>>;> for that real world point.
>>>
>>>
>>; I can't think why there should be a problem getting a mouse up event if
>> you've defined a handler for it and an event table entry... but then
>;> it's hard to say without seeing code.
>>
>> Regards,
>>
>> Julian
>>
>>
>>;
>
>
>
> Yahoo! Groups Links
>
>
>
>;

--
Julian Smart, Anthemion Software Ltd.
28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
www.anthemion.co.uk | +44 (0)131 229 5306
Tools for writers: www.writerscafe.co.uk
wxWidgets RAD: www.anthemion.co.uk/dialogblocks

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )