Bug in MUI Floattext?
  • Cocoon
    Cocoon
    ciVic
    Posts: 45 from 2013/6/2
    Hi all,

    I want to create multiple floattexts during runtime on a Scrollgroup/VGroupV, so some of them are not visible. The floattexts that are initially visible are rendered correctly but when I scroll down to the other floattexts the text is not displayed, they are empty. I have to resize the window before the text is rendered.
  • »18.02.14 - 09:07
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 3022 from 2003/3/5
    From: Canada
    Got some example source?
  • »18.02.14 - 10:39
    Profile Visit Website
  • Cocoon
    Cocoon
    ciVic
    Posts: 45 from 2013/6/2
    I create the Scrollgroup with

    Code:

    Child, ScrollgroupObject,
    MUIA_Scrollgroup_Contents, content = VGroupV, VirtualFrame,
    End,
    End,


    and add in a loop this

    Code:

    Object *v = (Object*)HGroup,
    GroupFrameT(date),
    Child, FloattextObject,
    MUIA_Floattext_Text, text,
    End,
    End;


    with this command

    Code:

    DoMethod(content,OM_ADDMEMBER, v);


    This way I add 10 - 20 of (different) v.
  • »18.02.14 - 19:36
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    You should call MUIM_Group_InitChange method on a group before adding objects to it dynamically, then MUIM_Group_ExitChange after they are added.
  • »19.02.14 - 05:19
    Profile Visit Website
  • Cocoon
    Cocoon
    ciVic
    Posts: 45 from 2013/6/2
    I'm sorry, fogot to mention that I call that before the loop starts and after it ends.
  • »19.02.14 - 06:11
    Profile
  • Moderator
    Kronos
    Posts: 2259 from 2003/2/24
    Kinda remember having a similar problem with poppen or coloradjust where a setattrs on hidden wouldnt update the gfx.
    AFAIR there were 2 options either set those attributes at object creation or force a redraw directly after setattrs.
  • »19.02.14 - 11:50
    Profile
  • Cocoon
    Cocoon
    ciVic
    Posts: 45 from 2013/6/2
    I tried that redraw but I assume I did it not correctly. How should I do that? Btw. NFloattext works.
  • »19.02.14 - 11:53
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 3022 from 2003/3/5
    From: Canada
    Quote:

    ciVic wrote:
    I create the Scrollgroup with ...



    OK. I will try to have a look soon.
  • »19.02.14 - 13:09
    Profile Visit Website