Page 1 of 1

Making resizable info/help box?

Unread postPosted: Tue Apr 30, 2019 1:04 pm
by atnreg
(I changed the topic as I was wrong, that behaviour has not worked, I used different method earlier but the new subject tells more about what I am looking for. Please skip this and next message to see the new question and discussion)

Hi!

It was very useful when the GuiMessageBox could be made resizable, that way even larger lists and other content was possible to show properly.
But since some recent version (not sure which one) that does not work anymore :o

Earlier that worked fine and the messagebox was even user-resizable but now even the resize function does nothing IF the style is set. Without set_style() it works, though is not user-resizable.

How can I do the same with current version? :)
-use set_style()
-resize the messagebox in code
-make the messagebox user-resizable

And what is GuiMessageBox.set_list() and how to use it?

Thanks :)

Code: Select all
   
app=ix.application
clarisse_window = app.get_event_window()
box = ix.api.GuiMessageBox(app, 0, 0, "msgbox",  "blah blah")
box.set_resizable(True) # not working at all anymore
box.resize(50,50,700,600) # only works without set_style()
#box.set_style(ix.api.AppDialog.STYLE_OK) # uncoment this and resize does not work anymore
box.show()

Re: GuiMessageBox.set_resizable does not work anymore :o

Unread postPosted: Thu May 02, 2019 8:19 am
by bvaldes
Hi,

I tried on all version from 3.0 to 4.0 SP2 and that have never been possible to resize the window if a style is applied.
Are you sure that the code you provide us already worked on an old version of Clarisse.

Sorry for the inconvenience.
best regards

Re: Making resizable info/help box?

Unread postPosted: Thu May 02, 2019 10:23 am
by atnreg
Sorry, you are right, I made the mistake because in my code the behaviour worked earlier BUT at that time I used inspect() :oops:

But anyway, it would be useful if the messagebox could be resizable so is there any way to do it? I tried to base it on GuiWindow but even that does not help.

What I am reaching for is resizable dialog box with at least some buttons with custom texts that shows some lists, help or other longer text but where the text is not editable but still readable (not like disabled) :)

I know it can be done with Gui stuff but I would hope for easier approach :mrgreen:

Any ideas?

Thank you!

Antti

Re: Making resizable info/help box?

Unread postPosted: Thu May 02, 2019 1:38 pm
by bvaldes
Hi,

From what I've understood, styles edit some settings of the window. That's why it's not possible to resize a window with style.
You will have to create your own custom window.

Regards

Re: Making resizable info/help box?

Unread postPosted: Thu May 02, 2019 2:32 pm
by atnreg
Hmm...you mean with Gui controls or some other way :)

Re: Making resizable info/help box?

Unread postPosted: Fri May 03, 2019 7:54 am
by bvaldes
Hi,

I mean with a simple GUI window. Add a button and a label should not be difficult for you.

regards

Re: Making resizable info/help box?

Unread postPosted: Sun May 05, 2019 12:47 pm
by atnreg
Ok, thanks, I will check that later, now I'm playing with particles :D