Page 1 of 2

Popobject class missing

Posted: Sun Aug 05, 2018 8:13 pm
by r-tea
Is there a significant reason the core MUI Popobject class isn't implemented in MUIRoyale?

Re: Popobject class missing

Posted: Mon Aug 06, 2018 10:50 pm
by airsoftsoftwair
Well, most attributes of that class cannot really be easily represented in XML or script. That's why MUI Royale supports only the higher level pop classes. What do you want to do with Popobject?

Re: Popobject class missing

Posted: Tue Aug 07, 2018 8:21 pm
by r-tea
Need to convert my program written in AmigaE: http://aminet.net/package/util/wb/Hexaco_1.1
There is, so called, popup list that contains html named colours.
And here is the part of E code, I need to convert:

Code: Select all

	Child, pop_lv:=PopobjectObject,
		MUIA_CycleChain, 1,
		MUIA_Popstring_String, str_htmlname:=StringObject,
								MUIA_Frame, MUIV_Frame_String,
								MUIA_String_MaxLen, 26,
								MUIA_String_Accept,'abcdefghijklmnopqrstuvwyzABCDEFGHIJKLMNOPQRSTUVWYZ',
								MUIA_String_Contents, 'black',
								MUIA_CycleChain, 1,
							   End,
		MUIA_Popstring_Button, pop_bt:=PopButton(MUII_PopUp),
		MUIA_Popobject_StrObjHook, open_popuplistHook,
		MUIA_Popobject_ObjStrHook, close_popuplistHook,
		MUIA_Popobject_Object, lv_htmlnames:=ListviewObject,
									MUIA_Listview_List, ListObject,
															InputListFrame,
															MUIA_List_SourceArray, lst_names,
														End,
							   End,
	End,
Eventually I can stay at simple MUI listview.

Re: Popobject class missing

Posted: Tue Aug 07, 2018 8:41 pm
by r-tea
Okay, never mind :oops: I can see Popstring object in MUIRoyale guide. Dump my previous post.

Edit:
I meant Poplist.
A brand new question was just born. As Poplist creates a String gadget by itself, then how to pass typical String attributes (accept, maxlen, etc.) to it?

Re: Popobject class missing

Posted: Tue Aug 07, 2018 11:00 pm
by airsoftsoftwair
r-tea wrote:
Tue Aug 07, 2018 8:41 pm
A brand new question was just born. As Poplist creates a String gadget by itself, then how to pass typical String attributes (accept, maxlen, etc.) to it?
Currently not possible but could be added easily if you need them.

Re: Popobject class missing

Posted: Wed Aug 08, 2018 8:41 pm
by r-tea
@ airsoftsoftwair
Yes, please :) I think others may be interested in it as well, because String gadget created by Poplist is almost out of control as for now.

Re: Popobject class missing

Posted: Wed Aug 08, 2018 10:30 pm
by airsoftsoftwair
Yes, you're right. This should've been available from the very start. I'll add it.

Re: Popobject class missing

Posted: Wed Aug 08, 2018 11:18 pm
by r-tea
Then new version is on its way! :D

Re: Popobject class missing

Posted: Thu Aug 09, 2018 6:13 pm
by airsoftsoftwair
Well, don't hold your breath :)

Re: Popobject class missing

Posted: Mon Jan 07, 2019 12:05 am
by r-tea
airsoftsoftwair wrote:
Thu Aug 09, 2018 6:13 pm
Well, don't hold your breath :)
Hope the new 2019 year will bring us the missing Popobject class.