LKP Posted January 21 Share Posted January 21 Hi, everyone Short disclaimer: Spoiler Sory for bad code, I am a newbie Sory for bad english. Please tell, if anything is unclear I know everything I've done is pointless, it is for fun and learning. One day I was a little bored and decided to redraw default windows MsgBox button with labels, after that I redraw the button in the pressed state and got a little caried away, so I ended up with a whole responsive Gui that consists of nothing but labels. This Gui reacts user clicks, redraws buttons when cursor hovers them, redraws buttons when corresponding numpud key is pressed (even when cursor hovers any button, but not when LMB is down) and what is most important it looks fun. You can use RMB to move window, ESC to exit. However I couldnt fix all the flickering/glitches mistakes. So wonder if anyone skilled enough could spend a moment and read the code to give me some clues. (some SendMessage-DllStruct-thing, would be great, but I am looking for a simple solutions too) I added cooments to every important line of code so that you didnt have to puzzle out my code style, but please tell me if anything is still unclear. There are two files attached: RainbowCalcGui_glitchy.au3 - the main one RainbowCalcGui_flickery.au3 - the second one as flicker example. In this file I just commented out $WS_CLIPCHILDREN and every _WinAPI_RedrawWindow() Short Postscript Spoiler I did a lot of googling. If you will just post a link to another post or help file, it wont probably help, sense I've already seen that and couldn't apply or understand. RainbowCalcGui_flickery.au3 RainbowCalcGui_glitchy.au3 Link to comment Share on other sites More sharing options...
Nine Posted January 21 Share Posted January 21 I did not dig much but there is a bug (few times) that needs to be fixed. Case Not $sCurrHover = '' Not applies only to $sCurrHover and not to the whole $sCurrHover = ''. You would need to do : Case Not ($sCurrHover = '') or better : Case $sCurrHover <> '' or just : Case $sCurrHover “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
LKP Posted January 22 Author Share Posted January 22 Thank You, Nine. I'm glad to receive any comments on my code, weather you dig deep or not. ☺ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now