Isotropix Forums

Making resizable info/help box?

Clarisse Scripting related topics

Making resizable info/help box?

Unread postby atnreg » Tue Apr 30, 2019 1:04 pm

(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()
Last edited by atnreg on Thu May 02, 2019 10:31 am, edited 2 times in total.
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA GTX 1080ti,Win10
Clarisse 4.0SP3,Blender2.80,Fusion360,ZBrush,Onyx,Houdini,SubstPnt...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 502
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland

Re: GuiMessageBox.set_resizable does not work anymore :o

Unread postby bvaldes » Thu May 02, 2019 8:19 am

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
Benoit VALDES
Isotropix
Clarisse QA
User avatar
bvaldes
 
Posts: 384
Joined: Mon Sep 26, 2016 10:44 am

Re: Making resizable info/help box?

Unread postby atnreg » Thu May 02, 2019 10:23 am

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
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA GTX 1080ti,Win10
Clarisse 4.0SP3,Blender2.80,Fusion360,ZBrush,Onyx,Houdini,SubstPnt...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 502
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland

Re: Making resizable info/help box?

Unread postby bvaldes » Thu May 02, 2019 1:38 pm

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
Benoit VALDES
Isotropix
Clarisse QA
User avatar
bvaldes
 
Posts: 384
Joined: Mon Sep 26, 2016 10:44 am

Re: Making resizable info/help box?

Unread postby atnreg » Thu May 02, 2019 2:32 pm

Hmm...you mean with Gui controls or some other way :)
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA GTX 1080ti,Win10
Clarisse 4.0SP3,Blender2.80,Fusion360,ZBrush,Onyx,Houdini,SubstPnt...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 502
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland

Re: Making resizable info/help box?

Unread postby bvaldes » Fri May 03, 2019 7:54 am

Hi,

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

regards
Benoit VALDES
Isotropix
Clarisse QA
User avatar
bvaldes
 
Posts: 384
Joined: Mon Sep 26, 2016 10:44 am

Re: Making resizable info/help box?

Unread postby atnreg » Sun May 05, 2019 12:47 pm

Ok, thanks, I will check that later, now I'm playing with particles :D
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA GTX 1080ti,Win10
Clarisse 4.0SP3,Blender2.80,Fusion360,ZBrush,Onyx,Houdini,SubstPnt...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 502
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland


Return to Scripting