Little help please.
BlitzPlus Forums/BlitzPlus Programming/Little help please.
| ||
Example: -Created a simple 400x400 window. -Put a progress bar on it -Run some cpu heavy cycles updating the progress bar using the updateprogbar command every 100 ms or so.. Now if I run this using the IDE, everything is fine.. After creating an exe and running it, the following will happen: After clicking on another window on the desktop i cant see the contents of my blitz program window anymore.. it goes all white.. Once it's finished going through my heavy cycles, its comes back, but i cant see the progress bar or anything anymore while it is processing.. Like i said, works fine when ran from the IDE (can go between multiple windows and never loose visibility of anything on the program window)... just when in EXE form.. Any thoughts? |
| ||
Take that back, it happens from time to time when running in the ide as well (just messed with it some more).. Anyone know how to refresh the window so you can see stuff in it again? Thanks |
| ||
Maybe if you posted some code people can then look at it in more detail to find the cause of your problem. |
| ||
this happens to me as well, I beleive it to be a bug in B+ but I cant be sure |
| ||
hmmm, check this out!Global MainProgBar, SecProgBar, MainWindow WinWidth = 400 WinHeight = 100 MainWindow = CreateWindow("testapp",GadgetWidth(Desktop())/2-(WinWidth/2),GadgetHeight(Desktop())/2-(WinHeight/2),WinWidth,WinHeight,0,1+8) MainProgBar = CreateProgBar(3,4,WinWidth-12,20,MainWindow) SecProgBar = CreateProgBar(3,25,WinWidth-12,20,MainWindow) Repeat If KeyDown(1) Then crap=1 x = x + 1 If x > 10000000 Then x=0:myprogress1# = myprogress1#+.01:UpdateProgBar(SecProgBar,MyProgress1#) Until myprogress1#>1 end Run that and switch between different apps.. everything should appear normal. Now commet out the following line ;If KeyDown(1) Then crap=1 And try it again! Now when you switch between apps, nothing comes back!!!! There you go mordax, just put some realworld input in without it doing anything important! |