Página 1 de 1

TFolder doubt

Publicado: Mié Dic 07, 2011 5:37 pm
por Roberto
question 1:
the simbol "&" appears when nOrientation is not Top/Bottom. Is it a bug?
question 2:
When we leave a program and return to it, normally, the control who had the focus continue focused, right? But if this control is inside a TFolder then the first control available in TFolder receives the focus! Is it the normal behavior???
this is all, for now.

TFolder doubt

Publicado: Mié Dic 07, 2011 8:35 pm
por jlalin
Roberto,
> the simbol "&" appears when nOrientation is not Top/Bottom.
> Is it a bug?
The TFolder control has some native bugs when the orientation is left/right
and we didn't put much efforts to fix them because it behaves different on
each OS.
> When we leave a program and return to it, normally, the
> control who had the focus continue focused, right? But if
> this control is inside a TFolder then the first control
> available in TFolder receives the focus! Is it the normal
> behavior???
If you need it just check which control has the focus before leaving:
oCtl := AScan( oFolder:aItems[nPage]:aControls, {|o| o:lFocused == .T. } )
And restore it later with oCtl:SetFocus()
Regards,
José Lalí­n

TFolder doubt

Publicado: Mié Dic 07, 2011 9:03 pm
por Roberto
Tks, but where it sould be? OnExit? OnChanging? The problem is if I move to another program (word, for example) and turn back to my xailer application (

TFolder doubt

Publicado: Mié Dic 07, 2011 9:44 pm
por jlalin
Roberto,
I did a test and now I see what you meant... I'm going to check a bit deeper.
Regards,
José Lalí­n