From: [email protected]
To: [email protected]
Subject: RE: [e-users] Scroller in an inwin object
Date: Wed, 2 Apr 2014 00:15:50 +0200




Great, it works good.
Still one problem:
- when using minimal or minimal_vertical style, only the button is displayed.
I played around with several options, but didn't get an y results!
I must be missing something.

Here is the code of interest:
   inwin = elm_win_inwin_add(parent);
   elm_object_style_set(inwin, "default");   /* style: default, minimal, 
minimal_vertical */
   evas_object_show(inwin);

   snprintf(buf, sizeof(buf), "%s/figures/%s", DATA_DIR, ei->anchor_info->name);
   
   box = elm_box_add(parent);
   evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
   elm_win_inwin_content_set(inwin, box);
   evas_object_show(box);
  
   sc = elm_scroller_add(parent);
   evas_object_size_hint_weight_set(sc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(sc, EVAS_HINT_EXPAND, EVAS_HINT_FILL);
   elm_box_pack_end(box,sc);
   evas_object_show(sc);

   if(!(o = elm_image_add(parent))) return ;
   elm_image_resizable_set(o, EINA_FALSE, EINA_FALSE);
   elm_image_aspect_fixed_set(o, EINA_TRUE);
   evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(sc, EVAS_HINT_FILL, EVAS_HINT_FILL);
   evas_object_show(o);
   elm_object_content_set(sc, o);
   
   o = elm_button_add(parent);
   elm_object_text_set(o, "Close");
   elm_box_pack_end(box,o);
   evas_object_show(o);
   evas_object_smart_callback_add(o, "clicked", inwin_destroy_cb, inwin);

Any ideas...
Thanks

Olivier

> Date: Tue, 1 Apr 2014 16:40:41 +0900
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Subject: Re: [e-users] Scroller in an inwin object
> 
> On Tue, 1 Apr 2014 05:16:46 +0200 Olivier Nougarede <[email protected]>
> said:
> 
> > I have an entry object with some anchors.
> > When activating those anchors, an inwin object is created.
> > This inwin is made off an elm_image and an elm_button.
> > As images are of different sizes, can i make the inwin scrollable?
> 
> put scroller in inwin, put image + button in scroller? better tho to have
> button  out of scroller and image in scroller... so box in inwin, scroller at
> top of box, button at bottom, image in scroller.
> 
> -- 
> ------------- Codito, ergo sum - "I code, therefore I am" --------------
> The Rasterman (Carsten Haitzler)    [email protected]
> 
                                                                                
  
------------------------------------------------------------------------------
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to