Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
2007-05-18, 21:33
(This post was last modified: 2007-05-18, 21:36 by Nuka1195.)
mrz, no that was for Donno
Edit: but about the conflicting controls, can you add some dummy ones in the xml file, with the id you want, then just position and size them as you need them. I do think if there is a way to fix that it should be fixed. In the mean time maybe that will help.
Posts: 105
Joined: Apr 2005
Reputation:
0
mrz
Senior Member
Posts: 105
I could but its a bit tricky. I'm using buttons to show a program calendar and I never know how many programs there will be. I'm currently using the add/delete procedure mentioned above. It works and does not affect anything else (as far as I have noticed).
Another question: <animation .... condition=!Control.HasFocus(90)>Conditional</animation>
It looks as if the condition is true only AFTER control 90 has been focused. Is this right?
Sorry if Im a pain in the ...
Posts: 105
Joined: Apr 2005
Reputation:
0
mrz
Senior Member
Posts: 105
Nuka1195, actually, thinking about it, I could add them in the XML as invisible. I guess empty labels consumes least memory.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
You can't set them <visible>false</false> in the xml, you won't be able to set them visible. So either set them invisible in onInit() or if you can use a visible condition.
Posts: 105
Joined: Apr 2005
Reputation:
0
mrz
Senior Member
Posts: 105
Yap, absolutely.
I thought I could block the IDs by keeping em invisible but unfortunately it looks as if self.addControl() also collides with the IDs used in the XML.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
I guess the rule of maintaining a feature you introduce, does not apply anymore.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
I didn't fix getListItem()?
Your changes though work much better than the way I had it, good job.
About the getListSize(). Wouldn't it be better to keep the methods the same between regular lists and WindowXML lists?
This way you don't have to code specially for WindowXML.