nanogui: Custom Windows


Previous by date: 27 Jun 2007 17:16:21 +0100 Mouse Coordinates Issue, Demetris Zavorotnichenko
Next by date: 27 Jun 2007 17:16:21 +0100 Re: Custom Windows, L. Wayne Johnson
Previous in thread: 27 Jun 2007 17:16:21 +0100 Custom Windows, Demetris Zavorotnichenko
Next in thread: 27 Jun 2007 17:16:21 +0100 Re: Custom Windows, L. Wayne Johnson

Subject: RE: [nanogui] Custom Windows
From: "L. Wayne Johnson" ####@####.####
Date: 27 Jun 2007 17:16:21 +0100
Message-Id: <023001c7b8d6$74f5b3c0$8d0aa8c0@LOKI>

I have done this before on Windows. I did it using several images. I had
images of the buttons up and down that I used to draw the correct state. I
then had a separate bitmap where each button was a different color. When I
saw a mouse down event I would get the mouse x,y and do a get pixel on the
bitmap with the colored buttons. I would then know if/which button had been
clicked on, updated some event flags and caused the appropriate button(s) to
be redrawn in the correct state...

>> -----Original Message-----
>> From: Demetris Zavorotnichenko ####@####.####
>> Sent: Tuesday, June 26, 2007 11:25 PM
>> To: Microwindows (Mailing List)
>> Subject: [nanogui] Custom Windows
>> 
>> Hi guys.
>> 
>> 
>> 
>> I have created a custom template of windows and buttons for my interface
>> and
>> use them as JPEG.
>> 
>> 
>> 
>> What would be the best way to work with this?
>> 
>> 
>> 
>> I want to be able to let's say press on a button (JPEG) and the button
>> would
>> be pressed (by changing the image).
>> 
>> 
>> 
>> So I should create separate windows for each button or just reload the
>> image
>> when an event is taken on a part of the screen in the same window?



Previous by date: 27 Jun 2007 17:16:21 +0100 Mouse Coordinates Issue, Demetris Zavorotnichenko
Next by date: 27 Jun 2007 17:16:21 +0100 Re: Custom Windows, L. Wayne Johnson
Previous in thread: 27 Jun 2007 17:16:21 +0100 Custom Windows, Demetris Zavorotnichenko
Next in thread: 27 Jun 2007 17:16:21 +0100 Re: Custom Windows, L. Wayne Johnson


Powered by ezmlm-browse 0.20.