Draw program

tsteward

Well-Known Member
Licensed User
Longtime User
Bug

Open image.
Select rectangle tool
Select solid Infill - not outline only
Select arc tool
Select the 6th arc icon
click on image and release
click elsewhere on image and CRASH
 

tsteward

Well-Known Member
Licensed User
Longtime User
No hurry thats fine. The undo feature will really be the cream on top.:)
 

agraham

Expert
Licensed User
Longtime User
not accept more input / clicks until current fill routine completes?
Unless you are using the Threading library and using a separate thread all calls to just about all libraries will run to completion without the possibility of being interrupted and both Flood and Fill can be called successively with the same parameters without a problem so I don't understand the mechanism that might cause this problem. Any harder info on the conditions that cause this?
 

klaus

Expert
Licensed User
Longtime User
Hi badkarma,
Thank's for testing the program.

If you "Check for unassigned / unused variables" (mine is on by default)
Normaly I had also "Check for unassigned / unused variables" on by default. But, probably I tested one time without it and forgot to set it back to on.
You get error compiling program line 179... mdldraw.returnto never used
Has been fixed.


Also if you select the fill tool and click really fast in areas near each other (which I do sometimes when I'm filling), sometimes the program hangs (then crashes out B4P), sometimes I get an array error as follows:
I was trying your problem on my device but hadn't any problem.
After your second post I tried it, on the desktop, as you describe it and get also problems.

I found what the problem is or at least one of the reasons. When you click several times very fast, both colors, the fillcolor and the targetcolor are the same and that brings trouble. I have fixed it in checking that bouth colors are different.

The updated version will be posted quite soon.

Best regards.
 
Last edited:

tsteward

Well-Known Member
Licensed User
Longtime User
:sign0060:
That Cool.

Found one very minor problem.
Open program
draw rectangle
place some text
Click undo - WORKS removes text
Click undo - WORKS removes rectangle
Click undo - Puts text back - Undo should have been disabled
 

tsteward

Well-Known Member
Licensed User
Longtime User
Sorry another small prob.

Run program
Click on text icon
Click on New icon

Text color panels etc are still visible.
 

tsteward

Well-Known Member
Licensed User
Longtime User
Continually clicking the button "btnDrawImageDelete" causes crash
 

tsteward

Well-Known Member
Licensed User
Longtime User
Your welcome,
Another prob I just came across.

Run program which opens rose.jpg by default then Open a smaller image 200x200.

You can still see the previous image around the new image. Need to clear old image when loading a new one.
 

tsteward

Well-Known Member
Licensed User
Longtime User
Another one.
Copy part of an image
Choose paste
Drag to required position
Click a different tool and the pasted image disappears
 

klaus

Expert
Licensed User
Longtime User
Hi tsteward,

Image smaller than the max screen dimensions on the form will be fixed.

Copy / paste: when you drag a pasted image part you must click once more inside the draged part to make it definitive. If you click outsides the draged part it removes the pasted part, the same if you click on another function, it aborts the past process.

That's how I thought the function, I just looked at MS Paint and the behaviour is different. After draging, clicking outsides the pasted and draged part makes it defivitive, and clicking inside allows to drag it somewhere else. I will modify the function that way.

Best regards.
 

tsteward

Well-Known Member
Licensed User
Longtime User
Probably should put some error checking for things like too many polygon clicks. I would not expect anyone to make 20 points but it would be better if it just completed the polygon rather than crash.
 

klaus

Expert
Licensed User
Longtime User
There are two new versions in the first post.

Version 0.97 has only the Draw module english version (for tsteward).
Version 1.0 has other modules About, FileChooser, Setup and is multilanguage.

I'll be absent from the forum the next two weeks, I'll be travelling. And NO computer!

Best regards.
 
Last edited:

tsteward

Well-Known Member
Licensed User
Longtime User
There are two new versions in the first post.

Version 0.97 has only the Draw module english version (for tsteward).
Version 1.0 has other modules About, FileChooser, Setup and is multilanguage.

I'll be absent from the forum the next two weeks, I'll be travelling. And NO computer!

Best regards.

Gosh I feel special, Thanks
I hope your trip is enjoyable, Travel safe my friend.
 
Top