On Fri, 28 Aug 2026 20:32:15 +0200 Pierre Couderc <[email protected]> said:
> > On 8/27/26 17:39, Carsten Haitzler wrote: > > On Thu, 27 Aug 2026 13:54:32 +0200 Pierre Couderc <[email protected]> said: > > > > scroller tests? some put tables in scrollers with buttons... > > > > > No I have done many trials, but I do not siccess to have all my > progressbars with the sale size... use a table. tables align rows/columns. plenty of table examples in elm test. if you put the progress bar int he same column and set them to weight 1, align -1 (fill) horizontally... then that column will expand in the table. if any item in that column does not expand the column will not expand as one item in a row stops it. > > // Bloc : recrée les rangées à partir de local_tasks > for (auto &m : local_tasks) > { > Evas_Object *row = elm_box_add(task_box); > elm_box_horizontal_set(row, EINA_TRUE); > evas_object_size_hint_weight_set(row, EVAS_HINT_EXPAND, 0.0); > evas_object_size_hint_align_set(row, EVAS_HINT_FILL, 0.0); > elm_box_pack_end(task_box, row); > evas_object_show(row); > // Bloc : boîte fixe pour le nom > Evas_Object *name_box = elm_box_add(row); > evas_object_size_hint_min_set(name_box, 200, 24); > evas_object_size_hint_max_set(name_box, 200, 24); > evas_object_size_hint_weight_set(name_box, 0.0, 0.0); > evas_object_size_hint_align_set(name_box, 0.0, 0.5); > elm_box_pack_end(row, name_box); > evas_object_show(name_box); > Evas_Object *lbl_name = elm_label_add(name_box); > elm_object_text_set(lbl_name, m.name.c_str()); > evas_object_size_hint_weight_set(lbl_name, EVAS_HINT_EXPAND, > EVAS_HINT_EXPAND); > evas_object_size_hint_align_set(lbl_name, EVAS_HINT_FILL, > EVAS_HINT_FILL); > elm_box_pack_end(name_box, lbl_name); > evas_object_show(lbl_name); > // Bloc : barre de progression variable > Evas_Object *bar = elm_progressbar_add(row); > elm_progressbar_horizontal_set(bar, EINA_TRUE); > evas_object_size_hint_weight_set(bar, EVAS_HINT_EXPAND, > EVAS_HINT_EXPAND); > evas_object_size_hint_align_set(bar, EVAS_HINT_FILL, > EVAS_HINT_FILL); > elm_progressbar_value_set(bar, m.pc / 100.0); > elm_box_pack_end(row, bar); > evas_object_show(bar); > } > } > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- Carsten Haitzler - [email protected] _______________________________________________ enlightenment-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-users
