by dlinder on Tue Jan 31, 2006 2:05 am
I'm missing something very obvious here, but I just can't see it.
I was trying to hide the push buttons using a the draw.rect function, and it wasn't doing anything.
Just as a test, I tried to draw a rectangle over the whole screen in the onload and ondraw handlers. It didn't do anything.
I copied code I found on the board. It did nothing.
Below is the code that I found on the board and modified.
Below that is code from the board.
Why doesn't this work?
handler frmVehicle.onopen() {
Draw draw;
draw.attachForm(frmVehicle);
draw.begin;
draw.fg(255);
draw.rect(clrFG, 0, 0, 160, 160, 0);
draw.end;
}
handler mainForm.onopen() {
Draw draw;
draw.attachForm(this);
draw.begin();
draw.fg(255);
draw.rect(clrFG, 0, 0, 160, 160, 0);
draw.end();
}