Share this post

Link to post

Share on other sites

wurmz 1

wurmz 1

Okay, I toyed with it some more and I've integrated something I found on the forum so ping's will look like Windows Pings.

I ditched the original graphic and now I'm trying to have the If statement create a graphic, but it doesn't seem to work. The pings go through without errors, it would seem that you can't create a graphic in a function or an if statement, is that correct?

Share this post

Link to post

Share on other sites

Xandy 380

Xandy 380

You can create a control within a function, but things are going to get weird if you do not free the control before creating it again.

Same with the case of using an If.

The idea is create, use, free. I often free with the guidelete($hgui) and not per control. You don't want to create 2 or more controls in the same place, passing back control handles to the same variable. You'd be losing handles, maybe memory, and it's just an ugly idea.

You can change the background color of a graphic with guictrlsetbkcolor($hgraphic, 0x00ff00) I think let me test it all.