nanogui: Custom Windows


Previous by date: 27 Jun 2007 17:55:36 +0100 Re: Custom Windows, L. Wayne Johnson
Next by date: 27 Jun 2007 17:55:36 +0100 how to cross compile FreeType font freetype1.3.1, Allen Yang
Previous in thread: 27 Jun 2007 17:55:36 +0100 Re: Custom Windows, L. Wayne Johnson
Next in thread:

Subject: RE: [nanogui] Custom Windows
From: "L. Wayne Johnson" ####@####.####
Date: 27 Jun 2007 17:55:36 +0100
Message-Id: <024f01c7b8db$ecd4b4e0$8d0aa8c0@LOKI>

Windows are fine if the buttons are rectangles but it gets harder to use
windows with different shapes. Using the colored bitmap makes it easy to use
just about any shape for your button.



>> -----Original Message-----
>> From: Demetris Zavorotnichenko ####@####.####
>> Sent: Wednesday, June 27, 2007 9:33 AM
>> To: 'L. Wayne Johnson'
>> Subject: RE: [nanogui] Custom Windows
>> 
>> 
>> I'm making something similar. But since I am having some problems with
>> the
>> Coordinates I am using not just the x.y position of the mouse but for
>> each
>> button I have a window. So if a mouse is on that window then I do what I
>> must.
>> 
>> It's taking though allot of code since I have to load and unload a
>> Sh...load
>> of images :)
>> 
>> -----Original Message-----
>> From: L. Wayne Johnson ####@####.####
>> Sent: Wednesday, June 27, 2007 7:16 PM
>> To: 'Microwindows (Mailing List)'
>> Subject: RE: [nanogui] Custom Windows
>> 
>> 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?
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ####@####.####
>> For additional commands, e-mail: ####@####.####


Previous by date: 27 Jun 2007 17:55:36 +0100 Re: Custom Windows, L. Wayne Johnson
Next by date: 27 Jun 2007 17:55:36 +0100 how to cross compile FreeType font freetype1.3.1, Allen Yang
Previous in thread: 27 Jun 2007 17:55:36 +0100 Re: Custom Windows, L. Wayne Johnson
Next in thread:


Powered by ezmlm-browse 0.20.