Questions:
- Any options I missed?
- Should right-clicking pop up a menu with "Preferences" and "Exit" pop up or should I make double-right-clicking bring up the config window?
- Buttons will get stuck in the down state if you hold it down and move off the window. NOT FIXABLE
- The item pointer matrix is extremly sensitive, please let me know of any problems
- *-- Oct 9th 2005 --*
- W00T! : Released Alpha 3
- Added:Space opens/closes the strip
- Fixed:INI spaces bug
- Fixed:Inefficent stuff (saving loop, loading loop)
- Added:New INI system
- Fixed:The button-deleting loop in Dlg_DeleteStuff() didn't run properly
- Fixed:Cfg_DeleteButton() Didn't actually delete buttons :/
- Fixed:Allocated buffers were 1 char too short (took 2 hours to get this one! >.<)
- Change:Condensed Code
- Fixed:Button changes presist on cancel
- Fixed:Icon didn't redraw on false-click
*-- Oct 8th 2005 --* - Remove:Icon caching (always on now)
- Added:Item system started
- Added:Shift-click button to enter extra args on the fly
- Added:Ctrl-click button to supress defined args for a program
- Change:Old skins put in skin pack
*-- Oct 7th 2005 --* - Fixed:Made the OK button on the config dialog the default button
- Change:Config dialog changed to suit skin system
- Change:New skin system finished
- Change:Re-ordered resource IDs to be more logical
- Added:Config files can now be loaded on the command line
*-- Oct 6th 2005 --* - Change:Rewrote the file searches to use the true KS dir as ./
- Change:New skin system started
- Added:Item parser started
- Drop:Linked list item system, strips limited to 128 buttons
*-- Oct 5th 2005 --* - W00T! : Alpha 2 released!
- Fixed:If you were running dual monitors, the open/close animation would be funky
- Fixed:If you had your taskbar on the top or right, the strip would get stuck behind the taskbar
- Added:Finished INI reading and config dialog
- Added:Y offset value
- Added:User skins with skin.bmp
- Change:Config dialog re-arrangment
- Drop:User sounds
*-- Oct 4th 2005 --* - Fixed:Sometimes sounds didn't play
- Added:Username-based ini files. (a'la ZDoom) (kwikstrip-username.ini)
- Change:Procedures broken up into seperate functions and exported to other files
- Added:INI writing finished
Code: Select all
void Dlg_LeftDown(HWND dlg,int pos){
vr.hover = ((pos+(vr.btnsz/2))/vr.btnsz)-1;
// Draw the down state
if(vr.hover!=-1){ // Handle regular buttons
BitBlt(buf,(BTN_SIZE/2)+(BTN_SIZE*vr.hover),0,BTN_SIZE,BTN_SIZE,gfx,GFX_BTN+GFX_DWN,0,SRCCOPY);
DrawIconEx(buf,((BTN_SIZE/2)+(BTN_SIZE*vr.hover))+3,3,itm[vr.hover]->icn,32,32,0,NULL,DI_NORMAL);
}else{ // Handle the open button
// Display the right button depending on the strip state
if(vr.open){BitBlt(buf,0,0,BTN_SIZE/2,BTN_SIZE,gfx,GFX_CLS+GFX_DWN,0,SRCCOPY);}
else{BitBlt(buf,0,0,BTN_SIZE/2,BTN_SIZE,gfx,GFX_OPN+GFX_DWN,0,SRCCOPY);}
}
if(vr.sound){PlaySound(MAKEINTRESOURCE(SND_CLICK),GetModuleHandle(NULL),SND_RESOURCE);}
SendMessage(dlg,WM_PAINT,0,0);
}
- 765 lines of code over 5 files
- 3 .c (21.1KB)
- 1 .h (3.2KB)
- 1 .rc (3.79KB)
- 5 resource files (6.35KB)