Custom_RSS and Control.HasFocus(id)
#1
Hi,

I can't get Control.HasFocus(id) to work within a Custom_RSS i've created. This applies to 'animation effect' and 'visible'.

Conditions like 'Window.IsActive', 'Window.IsVisible', 'Skin.HasSetting' all work ok.

By design, bug, or me missing something?

Cheers Wink

[EDIT:] on Frodo by the way...
Reply
#2
Control.HasFocus(id) works only for controls in the same window. As the Custom_RSS is just an overlay without any focus at all, Control.HasFocus(id) is always false.
Image
Reply
#3
Hey 'Black,

Thought as much.

Cheers
Reply
#4
You could do this if the control is a button:

PHP Code:
<control id="1">
    [...]
    <
onfocus>SetProperty(HasFocus1,1,Home)</onfocus>
    <
onunfocus>ClearProperty(HasFocus1,Home)</onunfocus>
</
control

Then check for !IsEmpty(Window(Home).Property(HasFocus1)) in the Custom_RSS.
Image
Reply
#5
(2013-08-02, 10:31)`Black Wrote: You could do this if the control is a button:

PHP Code:
<control id="1">
    [...]
    <
onfocus>SetProperty(HasFocus1,1,Home)</onfocus>
    <
onunfocus>ClearProperty(HasFocus1,Home)</onunfocus>
</
control

Then check for !IsEmpty(Window(Home).Property(HasFocus1)) in the Custom_RSS.

Thanks! Wink 'HasFocus...,...,Home' and '(Window(Home).Property(HasFocus...)' is what I've been looking for, but man could I not remember or find it.

Cheers
Reply

Logout Mark Read Team Forum Stats Members Help
Custom_RSS and Control.HasFocus(id)0