Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
157 user(s) are online (139 user(s) are browsing Forums)

Members: 1
Guests: 156

sailor, more...

Support us!

Headlines

 
  Register To Post  

« 1 2 (3)
Re: ReAction, what is missing to make it a good GUI?
Amigans Defender
Amigans Defender


See User information
@afxgroup

Sure but BOOPSI is not "real" OOP so just respecting the fundamentals, ie. manipulating objects via methods, is an improvement in my view.

Go to top
Re: ReAction, what is missing to make it a good GUI?
Just popping in
Just popping in


See User information
@trixie

Quote:

Tags should describe object properties, not invoke function calls - that's what methods are for. So the introduction of the child removing method was the right step, in line with OOP principles.


Uhm...

Quote:

if(LayoutBase->lib_Version>=53)
{
IIntuition->IDoMethod((Object *)mommy, LM_REMOVECHILD, inst->Win, ubrow->buttons[j], TAG_DONE);
}
else // Use fallback function. Note, this function may deadlock
{
IIntuition->RefreshSetGadgetAttrs(mommy, NULL, NULL, LAYOUT_RemoveChild, ubrow->buttons[j], TAG_DONE);
}


I believe LM is for LayoutMethod, so here is used a method which is called on object mommy and take a window and the object to remove (a button).

On MUI you does:

Quote:

DoMethod(group, MUIM_Group_InitChange);
DoMethod(group, OM_REMMEMBER, button);
DoMethod(group, MUIM_Group_ExitChange);


You tell to MUI you are doing a change(s) into a group and then you make your changes, in this case you remove a button from a group with BOOPSI method OM_REMMEMBER.

From programming POV is better the new LM_REMOVECHILD (from this little example code) because system takes care about the state of objects, while in MUI way user have to take care of state of object to change with IntiChange/ExitChange.

Go to top
Re: ReAction, what is missing to make it a good GUI?
Home away from home
Home away from home


See User information
@afxgroup

Quote:

if you want real oop you should have:

mommy.RemoveChild(j)

this should be the right step...



That's no more or less OOP than the intuition call. But it is a more of a C++ thing, with the intuition call any language with a wrapper for IDomethod can make the call with needing updating (just some extra tags values might need adding)

Go to top

  Register To Post
« 1 2 (3)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project