Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - PushButton leaves traces?

PushButton leaves traces?

Discuss OrbForms Designer and PocketC Architect

Postby mmankows on Wed Aug 11, 2004 3:23 pm

I have problem with PushButton relocation:

This is the code:
handler pbTesting.onselect() {
pbTesting.visible = false;

pbTesting.x = pbTesting.x + 4;
pbTesting.y = pbTesting.y + 4;

pbTesting.visible = true;
}

When button is moved the old lines do not get erased.
What should I do?
mmankows
 
Posts: 9
Joined: Thu Aug 05, 2004 2:25 pm

Postby dewey on Thu Aug 12, 2004 1:44 am

Setting visible to false on a pushbutton does not erase the border of the control - this is either a bug in the OS or a very interesting and hard to explain "feature" of the OS. In the next version of OrbForms, calling UIForm.redraw() would fix this. In the current version, you will need to manually erase the square around the button.
dewey
Site Admin
 
Posts: 749
Joined: Sun Oct 21, 2007 5:12 am

Postby mmankows on Thu Aug 12, 2004 10:36 am

This problem affects only push button. The regular button is fine.

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by dewey</i>
<br />In the current version, you will need to manually erase the square around the button.
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

What is the simplest way to do it?
mmankows
 
Posts: 9
Joined: Thu Aug 05, 2004 2:25 pm

Postby dewey on Thu Aug 12, 2004 12:48 pm

Use Draw.rect to draw a background-colored rectangle 1 pixel larger than the push button on each side.
dewey
Site Admin
 
Posts: 749
Joined: Sun Oct 21, 2007 5:12 am

Postby dlinder on Tue Jan 17, 2006 2:37 am

Any approximate date on the next release?

I can follow the advice to hide the border, but that doesn't seem to leave me a way to erase the rectangle when I want to show the buttons again.

I tried placing a borderless button on top of the push buttons and showing or hiding it, but that doesn't work.
dlinder
 
Posts: 37
Joined: Sun Oct 30, 2005 9:53 pm
Location: USA

Postby dewey on Wed Jan 18, 2006 6:50 am

UIForm.redraw was actually implemented long ago (as this thread is from 2004).
dewey
Site Admin
 
Posts: 749
Joined: Sun Oct 21, 2007 5:12 am

Postby dlinder on Wed Jan 18, 2006 11:42 am

I tried the redraw. It has no effect.

I have coded the following:

pushButton.visible = false;
frmEdit.redraw(0);

It works just the same without the redraw. It simply clears the text.

What am I missing?

Is there something else that needs to be done?
dlinder
 
Posts: 37
Joined: Sun Oct 30, 2005 9:53 pm
Location: USA

Postby nmc on Wed Jan 18, 2006 1:42 pm

try fmrEdit.redraw(0x800) for better effect
nmc
 
Posts: 197
Joined: Tue May 27, 2003 8:42 pm
Location: Germany

Postby dlinder on Thu Jan 19, 2006 11:28 am

I don't understand what the purpose is for the integer parameter. I know the help says it can be checked through the event objects code property, but I have no idea why I'd do that.

I've tried any number of different values in the code parameter and none of them (the 0x800 included), have any effect on removing the border from the push buttons.
dlinder
 
Posts: 37
Joined: Sun Oct 30, 2005 9:53 pm
Location: USA

Postby 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();
}
dlinder
 
Posts: 37
Joined: Sun Oct 30, 2005 9:53 pm
Location: USA

Postby dewey on Tue Jan 31, 2006 5:11 am

Drawing in the onopen handler has no effect, since the form itself has not been drawn yet. When running OrbFormsRT-debug.prc, you will get errors when you attempt to do this.

If you set the visible property to false in the onopen handler, the control should not be drawn in the first place.
dewey
Site Admin
 
Posts: 749
Joined: Sun Oct 21, 2007 5:12 am

Postby dlinder on Tue Jan 31, 2006 11:26 am

The problem was that the draw doesn't work on my emulator.

It works fine on my Palm.

Sorry, and thanks.
dlinder
 
Posts: 37
Joined: Sun Oct 30, 2005 9:53 pm
Location: USA


Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 3 guests

cron