You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any possibility of receiving support for the Eto GUI elements?
Currently, we are employing a workaround to use a transparent Eto.Form by utilizing a WPF hack with styling, as shown below:
Eto.Style.Add<Eto.Forms.Panel>("transparent-form", control =>{varwpfwnd=(System.Windows.Window)control.ControlObject;wpfwnd.AllowsTransparency=true;wpfwnd.Background=swm.Brushes.Transparent;wpfwnd.Topmost=true;wpfwnd.ShowActivated=false;wpfwnd.WindowStyle=sw.WindowStyle.None;});
Since it's currently not possible to create a moduless form that can be attached to the viewport window at the moment, we are employing a convoluted way to hook the form to the viewport window.
[DllImport("user32.dll",SetLastError=true)]publicstaticexternIntPtrSetParent(IntPtrhWndChild,IntPtrhWndNewParent);//hWndChild is created by the NativeHandle Property from each Control//hWndNewParent is the active viewport window, found using the NativeHandle of the Rhino Application:[DllImport("user32")][return:MarshalAs(UnmanagedType.Bool)]privatestaticexternboolEnumChildWindows(IntPtrwindow,EnumedWindowcallback,ArrayListlParam);
Is there a better way to accomplish this? The current method lacks stability since the functionality is not integrated into the Eto library.
The text was updated successfully, but these errors were encountered:
Hi @cwensley
I have initiated a discussion in the forum here:
https://discourse.mcneel.com/t/custom-ui-elements-with-eto-forms/162955/21
Is there any possibility of receiving support for the Eto GUI elements?
Currently, we are employing a workaround to use a transparent Eto.Form by utilizing a WPF hack with styling, as shown below:
Since it's currently not possible to create a moduless form that can be attached to the viewport window at the moment, we are employing a convoluted way to hook the form to the viewport window.
Is there a better way to accomplish this? The current method lacks stability since the functionality is not integrated into the Eto library.
The text was updated successfully, but these errors were encountered: