Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

MGUI View Editing?

For general discussion related FlowStone

MGUI View Editing?

Postby Drnkhobo » Sat Nov 17, 2012 2:16 pm

Hey all, ive been designing a nice menu system I want to implement in a proj
that basically pops out when u rclick on a certain part of the gui.

My question is , can you dynamically re size mgui's?
So when u rclick, another module's gui resizes form 0,0 to 15,15 or whatever.

Can this be done? I searched the SM forums with no luck.
I checked in the docs and didnt find anything other than changing it by manually
resizing the mgui. Anyone done this or anything similar?

I know i can switch gui's on/off so maybe I just need to mess around with that?
EDIT: Managed to get it by delaying gui switches, but still not the best.
peace
Drnkhobo
 
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: MGUI View Editing?

Postby Drnkhobo » Sat Nov 17, 2012 7:22 pm

I managed to move the MGUI left and right (in/out) of the view area.
Not a total fix but it will do, was as easy as changing the MGUI's XY
Drnkhobo
 
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: MGUI View Editing?

Postby trogluddite » Sun Nov 18, 2012 10:36 am

Hi there,
The answer is kind of yes and no!
The MGUI size of each module is totally decided by the size of the module as you see it in the editing window - so in that sense, once you have exported your plugin, view sizes will remain fixed.
However, there's nothing to stop you making a module panel bigger than you really need it to be, and then only drawing on part of it. This could be used to give the appearance of a resizable window.

You will need to be careful with your active mouse areas when you do this, though - if you have one 'window' layered on top of another, you can sometimes still edit controls that are hidden beneath the top window. That's because mouse events get eaten up by an active control, but parts of the panel with no active control will allow the mouse events to "fall through" into modules that are underneath.
You can get around this by putting "dummy" mouse handlers in the module that use the entire area of the 'floating window' - you don't have to program them to actually do anything, they're just there to "soak up" the mouse events so that your top window has "focus".
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK


Return to General

Who is online

Users browsing this forum: Google [Bot] and 93 guests