![]() ![]()
#Resize image in purebasic windows#save Mouse coordinates in relation to Windows If MausOver(DmausX,DmausY,WindowX(0)+WindowWidth(0)-20,WindowY(0)+WindowHeight(0)-20,WindowWidth(0),WindowHeight(0)) SendMessage_(WindowID(0), #WM_NCLBUTTONDOWN, #HTCAPTION, 0) ResizeGadget(#Gadget_exit,WindowWidth(0)-31,#PB_Ignore,#PB_Ignore,#PB_Ignore) ResizeGadget(#SizeMe,WindowWidth(0)-25,WindowHeight(0)-25,#PB_Ignore,#PB_Ignore) ResizeGadget(#Infobar,#PB_Ignore,#PB_Ignore,WindowWidth(0)-33,#PB_Ignore) ResizeGadget(#two_Mice_gfx,WindowWidth(0)-240,WindowHeight(0)-224,#PB_Ignore,#PB_Ignore) WindowsBind(0,DmausX-BackupMausX,DmausY-BackupMausY,400,300) ResizeWindow(0, DmausX-BackupMausX, DmausY-BackupMausY, #PB_Ignore, #PB_Ignore ) ![]() ![]() ImageGadget(#SizeMe, 575, 375, 25, 25, CatchImage(#Image_SizeMe, ?Image_SizeMe)) SetGadgetColor(#Infobar, #PB_Gadget_FrontColor, RGB(248, 248, 248)) TEXT Color SetGadgetColor(#Infobar, #PB_Gadget_BackColor, RGB(214, 137, 137)) TEXT Background Color SetGadgetFont(#Infobar, LoadFont(#Infobar_Font, "Microsoft Sans Serif", 10, #PB_Font_HighQuality)) TextGadget(#Infobar,WindowWidth(0)-599, 1, 567, 30, " Close Window via Popup with Timer",#SS_CENTERIMAGE) OldGadgetList = UseGadgetList(WindowID(0)) OpenWindow(0,(GetSystemMetrics_(#SM_CXSCREEN)-1)/1,(GetSystemMetrics_(#SM_CYSCREEN)-1)/1, 600, 400, "",#PB_Window_BorderLess|#PB_Window_ScreenCentered|#WS_VISIBLE|#PB_Window_Invisible) #AW_CENTER = $10 Makes the window appear To collapse inward If AW_HIDE is used Or expand outward If the AW_HIDE is not used. ResizeWindow(id,#PB_Ignore,#PB_Ignore, w,h)ĭefine event.i,DmausX.i,DmausY.i,BackupMausX.i,BackupMausY.i,Drag.i,Resize.i If Mx>x And Mxy And Mymx And hmy And wmx And h>my SetGadgetColor(#InfoText, #PB_Gadget_FrontColor, RGB(218, 93, 93)) TEXT COLORĮndtimer=AddDate(Date(),#PB_Date_Second,3.0) choose seconds SetGadgetColor(#InfoText, #PB_Gadget_BackColor, RGB(28, 28, 28)) Background COLOR SetGadgetFont(#InfoText, LoadFont(#InfoText_Font, "Microsoft Sans Serif", 16, #PB_Font_HighQuality)) TextGadget(#InfoText, 1, 1, 378, 98,"program is closing in 3 seconds",#SS_CENTERIMAGE|#SS_CENTER) x y lenght height If OpenWindow(1, 732, 301, 380, 100, "", #PB_Window_WindowCentered|#PB_Window_BorderLess| #PB_Window_Invisible) #Resize image in purebasic code#This code contains quite some ideas that are interesting for Beginners on Pure-Basic. I actually have 2 project HDC and AutoMen, and both are fully in active development. no possibilty to keep original audio (like AC3 from DVD) GUI doesn't let you set/remember default mode (always CRF while I'd want 2 pass as default) no ETA/progress percentage shown on x264 console no (custom) x264 profiles (OK just 1 command line option), also after closing the program the custom x264 command line is forgotten So you will never see in this gui these : Users should see it as way to encode file with x264. Never more isn't aimed as fully features x264/audio/dvd/whatelse gui. Someone could accept it as a simple gui for x264 (as it want to be), or can see the another gui without the top features #Resize image in purebasic update#I want create something that will no need update for x264 changing Nothing more or less (btw i can read stdout/in. I code for fun (not my profession) i and like to build something around x264/ffmpegsource/avs2yuv. #Resize image in purebasic professional#Dont' warry Atak, since i am not a professional developer i don't get it as personal attack ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |