equal
deleted
inserted
replaced
244 } |
244 } |
245 else if ( aFieldStyle == EPopupAdaptiveSearchWindow ) |
245 else if ( aFieldStyle == EPopupAdaptiveSearchWindow ) |
246 { |
246 { |
247 aFieldStyle = EPopupWindow; |
247 aFieldStyle = EPopupWindow; |
248 } |
248 } |
249 iColumnFlag = 0xFFFFFFFF; |
249 |
250 switch ( aFieldStyle ) |
250 switch ( aFieldStyle ) |
251 { |
251 { |
252 case EFixed: |
252 case EFixed: |
253 bitmapId = EMbmAvkonQgn_indi_find_glass; |
253 bitmapId = EMbmAvkonQgn_indi_find_glass; |
254 bitmapMaskId = EMbmAvkonQgn_indi_find_glass_mask; |
254 bitmapMaskId = EMbmAvkonQgn_indi_find_glass_mask; |
302 SetContainerWindowL( aParent ); // This is now non-window owning control |
302 SetContainerWindowL( aParent ); // This is now non-window owning control |
303 break; |
303 break; |
304 case EAdaptiveSearch: |
304 case EAdaptiveSearch: |
305 bitmapId = EMbmAvkonQgn_indi_find_glass; |
305 bitmapId = EMbmAvkonQgn_indi_find_glass; |
306 bitmapMaskId = EMbmAvkonQgn_indi_find_glass_mask; |
306 bitmapMaskId = EMbmAvkonQgn_indi_find_glass_mask; |
307 SetContainerWindowL( aParent ); |
307 SetContainerWindowL( aParent ); |
|
308 iColumnFlag = 0xFFFFFFFF; |
308 if( AknLayoutUtils::PenEnabled() ) |
309 if( AknLayoutUtils::PenEnabled() ) |
309 { |
310 { |
310 iAdaptiveSearch = CAknAdaptiveSearch::NewL( aTextLimit, aFieldStyle ); |
311 iAdaptiveSearch = CAknAdaptiveSearch::NewL( aTextLimit, aFieldStyle ); |
311 iAdaptiveSearch->SetSearchField( this ); |
312 iAdaptiveSearch->SetSearchField( this ); |
312 if ( ASEnabled ) |
313 if ( ASEnabled ) |
320 break; |
321 break; |
321 case EAdaptive: |
322 case EAdaptive: |
322 bitmapId = EMbmAvkonQgn_indi_find_glass; |
323 bitmapId = EMbmAvkonQgn_indi_find_glass; |
323 bitmapMaskId = EMbmAvkonQgn_indi_find_glass_mask; |
324 bitmapMaskId = EMbmAvkonQgn_indi_find_glass_mask; |
324 CreateWindowL( &aParent ); |
325 CreateWindowL( &aParent ); |
|
326 iColumnFlag = 0xFFFFFFFF; |
325 if( AknLayoutUtils::PenEnabled() ) |
327 if( AknLayoutUtils::PenEnabled() ) |
326 { |
328 { |
327 iAdaptiveSearch = CAknAdaptiveSearch::NewL( aTextLimit, aFieldStyle ); |
329 iAdaptiveSearch = CAknAdaptiveSearch::NewL( aTextLimit, aFieldStyle ); |
328 iAdaptiveSearch->SetSearchField( this ); |
330 iAdaptiveSearch->SetSearchField( this ); |
329 if ( ASEnabled ) |
331 if ( ASEnabled ) |
338 case EPopupAdaptiveSearch: |
340 case EPopupAdaptiveSearch: |
339 bitmapId = EMbmAvkonQgn_indi_find_glass; |
341 bitmapId = EMbmAvkonQgn_indi_find_glass; |
340 bitmapMaskId = EMbmAvkonQgn_indi_find_glass_mask; |
342 bitmapMaskId = EMbmAvkonQgn_indi_find_glass_mask; |
341 flags |= CAknInputFrame::EPopupLayout; |
343 flags |= CAknInputFrame::EPopupLayout; |
342 CreateWindowL(); |
344 CreateWindowL(); |
|
345 iColumnFlag = 0xFFFFFFFF; |
343 iIsPopup = ETrue; |
346 iIsPopup = ETrue; |
344 if( AknLayoutUtils::PenEnabled() ) |
347 if( AknLayoutUtils::PenEnabled() ) |
345 { |
348 { |
346 iAdaptiveSearch = CAknAdaptiveSearch::NewL( aTextLimit, aFieldStyle ); |
349 iAdaptiveSearch = CAknAdaptiveSearch::NewL( aTextLimit, aFieldStyle ); |
347 iAdaptiveSearch->SetSearchField( this ); |
350 iAdaptiveSearch->SetSearchField( this ); |
371 } |
374 } |
372 |
375 |
373 flags |= CAknInputFrame::EPopupWindowLayout; |
376 flags |= CAknInputFrame::EPopupWindowLayout; |
374 flags |= CAknInputFrame::EFixedFindWithoutLine; |
377 flags |= CAknInputFrame::EFixedFindWithoutLine; |
375 SetContainerWindowL( aParent ); |
378 SetContainerWindowL( aParent ); |
|
379 iColumnFlag = 0xFFFFFFFF; |
376 if( AknLayoutUtils::PenEnabled() ) |
380 if( AknLayoutUtils::PenEnabled() ) |
377 { |
381 { |
378 iAdaptiveSearch = CAknAdaptiveSearch::NewL( aTextLimit, aFieldStyle ); |
382 iAdaptiveSearch = CAknAdaptiveSearch::NewL( aTextLimit, aFieldStyle ); |
379 iAdaptiveSearch->SetSearchField( this ); |
383 iAdaptiveSearch->SetSearchField( this ); |
380 if ( ASEnabled ) |
384 if ( ASEnabled ) |