Popobject class missing

Discuss GUI programming with the MUI Royale plugin here
User avatar
r-tea
Posts: 131
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Popobject class missing

Post by r-tea »

Is there a significant reason the core MUI Popobject class isn't implemented in MUIRoyale?

User avatar
airsoftsoftwair
Posts: 4323
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Popobject class missing

Post 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?

User avatar
r-tea
Posts: 131
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: Popobject class missing

Post 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.

User avatar
r-tea
Posts: 131
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: Popobject class missing

Post 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?

User avatar
airsoftsoftwair
Posts: 4323
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Popobject class missing

Post 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.

User avatar
r-tea
Posts: 131
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: Popobject class missing

Post 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.

User avatar
airsoftsoftwair
Posts: 4323
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Popobject class missing

Post by airsoftsoftwair »

Yes, you're right. This should've been available from the very start. I'll add it.

User avatar
r-tea
Posts: 131
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: Popobject class missing

Post by r-tea »

Then new version is on its way! :D

User avatar
airsoftsoftwair
Posts: 4323
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Popobject class missing

Post by airsoftsoftwair »

Well, don't hold your breath :)

User avatar
r-tea
Posts: 131
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: Popobject class missing

Post 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.

Post Reply