Results 1 to 2 of 2

Thread: cross platform?

  1. #1

    cross platform?

    With compiling agains mono it should be possible to compile once and use on osx, linux and windows even using the standards form classes in .net. But i a application i want to use drag and drop of panels for that i have the following c# code. But is that also useable on osx and linux?

    Code:
    using System;
    using System.Windows.Forms;
    
    public class MovablePanel : Panel
    {
      const int WM_LBUTTONDOWN = 0x201;
      const int WM_NCLBUTTONDOWN = 0xA1;
      readonly IntPtr HTCAPTION = (IntPtr)2;
    
      protected override void WndProc(ref Message m)
      {
        if (m.Msg == WM_LBUTTONDOWN)
        {
          m.Msg = WM_NCLBUTTONDOWN;
          m.WParam = HTCAPTION;
        }
        base.WndProc(ref m);
      }
    }
    Or should i investigate in silverlight/moonlight?
    http://3das.noeska.com - create adventure games without programming

  2. #2

    Re: cross platform?

    Found the following tutorial on cross platform drag&drop:
    http://zetcode.com/tutorials/monowin...rial/dragdrop/
    http://3das.noeska.com - create adventure games without programming

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •