hi

i have form which contains gadget. gadget is in fnav resource

NAVIGATION      ID ListForm
                        INITIALSTATE ObjectFocus
                        INITIALOBJECTID ListFilterField
                        JUMPOBJECTID ListSalesorgPopTrigger
                        BOTTOMLEFTOBJECTID ListDowndownGraphicButton
NAVIGATIONMAP
        ROW     ListSalesorgPopTrigger ListEditGraphicButton 
ListNewGraphicButton
ListNoteGraphicButton ListNoteROGraphicButton ListOkGraphicButton
ListBackGraphicButton
        ROW             ListTerritoryPopTrigger
        ROW             ListFilterField ListFilterPopTrigger ListFilterButton 
ListSubstringCheckbox
        ROW             ListZoznamList FORCEINTERACTION
END

in form i react on focus events:

case frmObjectFocusTakeEvent:
        if(gadgetID==eventP->data.frmObjectFocusTake.objectID)
        {
                idx=FrmGetObjectIndex(frmP,gadgetID);
                FrmGetObjectBounds(frmP,idx,&r);
                                        
FrmGlueNavDrawFocusRing(frmP,gadgetID,frmNavFocusRingNoExtraInfo,&r,frmNavFocusRingStyleSquare,false);
        }               
        break;


now this works strangely, on row i have field, gadget,button and checkbox.

initially field is focused
if i move from field to gadget using 5way left then focus ring is drawn on
gadget which is correct
when i press 'left' again focus ring disappears, should be on button but its not
visible. however button reacts on 'center'
when i press 'left' again focus ring appears on checkbox
now when i press 'right' focus ring on button is drawn correctly

so it seems i do something wrong, because navigation from gadget to something
else doesn't draw focus....

i tried to react also on frmObjectFocusLostEvent, but it didn't do any
difference (i tried to do nothing, i tried to remove focus ring, all the same)

if i disable handling of frmObjectFocusTakeEvent then of course no focus ring is
drawn on gadget but next button works.

also i noticed that my form never gets frmObjectFocusTakeEvent when gadget is
getting focused, but FrmDispatchEvent returns true as it is handled. so i had to
 process this event for gadget manually before FrmDispatchEvent is called. is it
normal or does it already mean some problem?

and finally, when i press 'left' then next control is focused immediately. if i
press 'right' it takes visible delay before focus ring appears...also doesn't
seem normal to me

all was tested on centro debug simulator

any idea what i am doing wrong?

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to