flat assembler
Message board for the users of flat assembler.
  
|  Index
      > Windows > WINAMP GUI | 
| Author | 
 | 
| vid 29 Mar 2009, 12:37 Quote: Any tutorial about gui programming using fasm? GUI programming in FASM is basically same as GUI programming in C. So you can (have to, in fact) look for C GUI programming tutorials. | |||
|  29 Mar 2009, 12:37 | 
 | 
| DOS386 30 Mar 2009, 01:29 Luka wrote: trying to create an mp3 player using fasm Don't miss the free audio codecs Vorbis, FLAC and WAVPACK  | |||
|  30 Mar 2009, 01:29 | 
 | 
| ManOfSteel 30 Mar 2009, 08:33 I don't remember where I got this from.
 It's a CD player and it's in MASM but it may still be useful. 
 | |||||||||||
|  30 Mar 2009, 08:33 | 
 | 
| frech 30 Mar 2009, 16:26 If you mean a skin, I think you should look at all the functions regarding the creation of regions with winapi. They use bmp, as far as I know (very little, at this moment, as they are not in one of my projects at the moment), with one colour set as transparent. | |||
|  30 Mar 2009, 16:26 | 
 | 
| revolution 30 Mar 2009, 16:44 Skinning a window is quite easy, and there is no need to try and understand winamp sources when there are a number of demos and tuts available on the web. | |||
|  30 Mar 2009, 16:44 | 
 | 
| Luka 12 Apr 2009, 09:41 Quote: 
 u mean forgers-win32-tutorial.zip? | |||
|  12 Apr 2009, 09:41 | 
 | 
| pal 12 Apr 2009, 10:51 Look into GDI+. | |||
|  12 Apr 2009, 10:51 | 
 | 
| Luka 12 Apr 2009, 13:51 | |||
|  12 Apr 2009, 13:51 | 
 | 
| KingDemon 13 Apr 2009, 08:47   Ok, here's my idea (ignoring the fact that you just found the CreateDialog function and seem pretty satisfied about it =)) ) : * create a popup window (or dialog if you want) without any decorations * create some bitmaps: - one hotspot bitmap used to identify hot spots (clickable areas) inside your UI; - one appearance bitmap containing default images for each area you defined in the hotspot bitmap plus the background of your skin (this would also be a hotspot with say clor #000000 in the hotspot bitmap - in case you want to make it draggable); - add bitmaps for the following states of the clickable areas: focused (if you also use keyboard navigation), hovered, pressed, disabled etc.; these are the basic states of a button control, but you can add as many as you wish - you can also add multiple images for just one state to create an animated effect (e.g., when hovering the mouse, "fade to green" effect - which would be created by multiple bitmaps with different shades of green) * implement mouse (and keyboard) actions - use the hotspot bitmap to hit-test for an area then perform an action based on the color in that area and the state of the mouse buttons / position of the mouse etc. This way you could allow for easy editing of skins (no INI files, no configuration of any kind - just bitmaps). I would not use regions unless I were writing for win 95  !? While I did say "bitmaps", I'd probably go with transparent PNGs loaded and drawn via GDI+ (there are GDI+ APIs you can use for this) and I'd use a per-pixel alpha-blended layered window. If you don't understand anything I just said, start googling!  | |||
|  13 Apr 2009, 08:47 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.