PDA

View Full Version : Reports of Wierdness



theguywiththefunnyhair
May 28th, 2007, 04:25 AM
This may be helpful or it may not be... either way you will need to follow carefully to understand.

When using NRD, if you put a state on a button with a hidden default img the image for the button in the NRD tree will turn into that of a folder.

If you then copy this button with a folder icon and paste it the icon for the pasted element will be back to that of a button and wont change.

If you group a few of these buttons that look like folders and pasted (altered) versions that look like buttons together on a Loop and give them states that depend on Lua you will get some weird results as far as dynamic changes to the states are concerned.

The weirdness will be corrected if you focus off NR and then back on (redraw page).

I think somewhere in this behaviour is an indicator of a problem that should be corrected.

Hope that helped,

Dan

theguywiththefunnyhair
May 28th, 2007, 04:54 AM
Unlikely it will help actually, turns out that was not the source of my refresh problem, the problem may have more to do with the state rule of the parent frame.

I guess I just blamed the little changing icon because it was easy to pick on. ;)

The wierdness was only apparent while the parent had a state rule showing by default and hiding on rule match and the children were the opposite.

Changing the parent state to hidden by default (matching the others) solved my issue.

theguywiththefunnyhair
May 28th, 2007, 05:33 AM
And still it gets more confusing.

More of the same but this time i cant find a way to make it work as expected.

theguywiththefunnyhair
May 29th, 2007, 12:45 AM
Is there a way to force a GAC list to be repainted without re-requesting it?

theguywiththefunnyhair
May 29th, 2007, 04:02 AM
I was playing around trying to refresh a GAC list without re-requesting the data (like just a repaint), i thought i might just hide the frame it's in then show it again.
I planned to use the element object functions but couldn't get it to work so i copied part of it into simple test .ccf to try to isolate the problem.
After removing a few frames NR started to show some ultra weirdness when displaying the ccf.

On my system the bottom right hand corner of NR becomes completely transparent, so it displays whats on the desktop behind NR when this .ccf is loaded.

Can someone have a look at this to see if you are getting the same result? Also does anyone actually see the button disappear when its says it does in NRD's Lua consol? I see it when i focus off NR then back on.

Thanks

Dan

Ben S
May 31st, 2007, 05:25 PM
It's something about that -18 in the frame. That is -very- odd. Setting the -18 to 0 for x makes it appear properly.

theguywiththefunnyhair
May 31st, 2007, 07:04 PM
Hey Ben,

The transparent frame thing is not an ongoing issue for me, its just a one off.

The biggest problem i have is getting states based on Lua to work as Lua vars change. Thats what this ccf was intended to demo. If you click once on the hide button nothing happens, but then if you focus off NR then back on the button (button1) is gone.

I am trying to design a .ccf that uses this method to hide frames extensively and so far i'm just getting frustrated.

Is there something that i'm doing wrong here?

Thanks

Dan

btw. if you change the -18 to -118 you see a bigger hole in the frame.