Popobject class missing

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

Popobject class missing

Post by r-tea » Sun Aug 05, 2018 8:13 pm

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

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

Re: Popobject class missing

Post by airsoftsoftwair » Mon Aug 06, 2018 10:50 pm

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: 80
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: Popobject class missing

Post by r-tea » Tue Aug 07, 2018 8:21 pm

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: 80
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: Popobject class missing

Post by r-tea » Tue Aug 07, 2018 8:41 pm

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: 2668
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Popobject class missing

Post by airsoftsoftwair » Tue Aug 07, 2018 11:00 pm

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: 80
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: Popobject class missing

Post by r-tea » Wed Aug 08, 2018 8:41 pm

@ 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: 2668
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Popobject class missing

Post by airsoftsoftwair » Wed Aug 08, 2018 10:30 pm

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

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

Re: Popobject class missing

Post by r-tea » Wed Aug 08, 2018 11:18 pm

Then new version is on its way! :D

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

Re: Popobject class missing

Post by airsoftsoftwair » Thu Aug 09, 2018 6:13 pm

Well, don't hold your breath :)

Post Reply