Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: some more ideas/issues

  1. #11
    Maximum Bitrate Borte's Avatar
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    529
    Quote Originally Posted by detlion1643 View Post
    I took the sample plugin (the .cs code), couldn't download the actual full project. Created a new C# class library and copied the code into add, added the references, and commented out a couple .font, .alignment properties for the buttons/labels since they errored (don't think .font/.alignment would cause issues). Compiled the release build for the .dll, copied it into the skins folder and no button appeared...
    If you click on this link you'll get the whole project:
    http://openmobile.svn.sourceforge.ne...mple/?view=tar
    Unzip it using 7Zip or some other program (NB! You have to unzip twice). Then try to build the FULL project rather than using just the text you copied from the webpage.

    If you have to comment out any of the code then you're missing some references like JustChat said. So try with the full project.


    Quote Originally Posted by detlion1643 View Post
    I also would like to note that there are 4 files in the openmobile folder under my roaming profile, but no debug.txt with the program closed or running. The 4 I have are follows:
    OMData, OMMessages, OMMedia2, and OMSecure. There is a OMSecure-journal when running.
    Could you check if you have a file named OMDebug.dll or !OMDebug.dll in your plugin folder. This is the file that generates the debug logs and is needed for any debug information.
    If not it can be downloaded from here: http://openmobile.sourceforge.net/ma...=fileinfo&id=1

    Quote Originally Posted by detlion1643 View Post
    Not really sure what is going on, but if you need some more info let me know. Not trying to be a pest getting a button to show, but would like to contribute
    No problem in helping out, glad to get more people up to speed.
    Failure is not an option...
    __________________________________________________ ______________________________
    The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

  2. #12
    Variable Bitrate
    Join Date
    Jul 2010
    Posts
    345
    I had to reference openmobile.framework.dll and openmobile.graphics. I just downloaded the project, so will try that after work in a couple hours.

    About the debug, I have !OMDebug.dll but it's located at openMobile\Tools\!OMDebug.dll

  3. #13
    Raw Wave
    Auto Apps:loading...
    justchat_1's Avatar
    Join Date
    Jul 2008
    Location
    Boston, Ma or NY,NY
    Posts
    2,359
    Quote Originally Posted by detlion1643 View Post
    About the debug, I have !OMDebug.dll but it's located at openMobile\Tools\!OMDebug.dll
    drag that into the plugins folder and you'll have a debug log

    You also could have selected it during installation or from the plugin configuration dialog in the start menu to have it automatically installed.

  4. #14
    Variable Bitrate
    Join Date
    Jul 2010
    Posts
    345
    Well, The real project compiled (never heard of debug-fast, must be a c# thing?), added to skins, and the button appears in the list for the main menu ... Not sure what was going on before, I will try to re-create it in vb.net to see if that works and report back. It should work, but the previous tests didn't work, maybe I was returning nothing on a function/sub where nothing would cause it not to load? The debug log also never reported anything being unloaded/unsuccessful, completely skipping anything having to do with the previous non-working .dll's...

  5. #15
    Maximum Bitrate Borte's Avatar
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    529
    Good to hear that it worked out for you.
    Failure is not an option...
    __________________________________________________ ______________________________
    The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

  6. #16
    Variable Bitrate
    Join Date
    Jul 2010
    Posts
    345
    I just realized that I need to figure out which screen I am working with. If I set a button and a textbox on the panel, and set this:

    button1.onclick+=neweventhandler(button1_click);
    private void button1_click(OMControl sender, int screen)
    {
    ///normally I would just use textbox1.text="string here";
    }

    But, on testing it displays on the wrong screen. I can't seem to figure out how to tell the plugin to use the screen in which sent it and to display it to that screen?

  7. #17
    Raw Wave
    Auto Apps:loading...
    justchat_1's Avatar
    Join Date
    Jul 2008
    Location
    Boston, Ma or NY,NY
    Posts
    2,359
    Quote Originally Posted by detlion1643 View Post
    I just realized that I need to figure out which screen I am working with. If I set a button and a textbox on the panel, and set this:

    button1.onclick+=neweventhandler(button1_click);
    private void button1_click(OMControl sender, int screen)
    {
    ///normally I would just use textbox1.text="string here";
    }

    But, on testing it displays on the wrong screen. I can't seem to figure out how to tell the plugin to use the screen in which sent it and to display it to that screen?
    Theres a few examples in the sample but basically:
    Code:
    //Method 1
    ((OMTextBox)manager[screen]["textbox name"]).Text="string here";
    
    //Method 2
    ((OMTextBox)sender.Parent["textbox name"]).Text="string here";
    
    //Method 3 (or if changing multiple properties of the control)
    OMTextBox theControl=(OMTextBox)sender.Parent["textbox name"];
    theControl.Text="string here";
    theControl.BackgroundColor=Color.Blue;
    
    //For the basics you don't even need casting
    sender.Parent["textbox name"].Width=25;
    
    //And if you need to change the calling control you can just use the sender object
    ((OMButton)sender).Text="I was clicked";

  8. #18
    Newbie
    Join Date
    Jan 2011
    Location
    Italy
    Posts
    26
    Quote Originally Posted by Borte View Post
    Good to hear that it worked out for you.
    Ehm.. sorry to rise up again and bother you with this thing but I cannot see the SamplePlugin in the setting list.
    i've succeeded to compile it with VC# xp 2010 and tried to put the dll in plugin folder first and then in skin folder, but nothing to do.
    Even in the debug.txt there is no trace of the plugin sample.

    Same thing for an other plug in - WebBrowser. Where I'm wrong?

  9. #19
    Maximum Bitrate Borte's Avatar
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    529
    Quote Originally Posted by martin_p View Post
    Ehm.. sorry to rise up again and bother you with this thing but I cannot see the SamplePlugin in the setting list.
    i've succeeded to compile it with VC# xp 2010 and tried to put the dll in plugin folder first and then in skin folder, but nothing to do.
    Even in the debug.txt there is no trace of the plugin sample.

    Same thing for an other plug in - WebBrowser. Where I'm wrong?
    What version of OM where you compiling against?
    Did you import the whole project or just the single files?
    What references where you using when compiling?

    I haven't tried to compile it on the version you're using but if the code was imported just fine (the whole project) then it should be ok.

    Edit:
    Re read your post and realized I might have answer the wrong question; You can see the plugin in OM but not in the settings? Right?

    Can you open the settings plugin at all? Does anything happen when you press the settings button?

    Have you changed anything in the settings code that might cause your plugin to crash and unload while trying to load the settings?
    Failure is not an option...
    __________________________________________________ ______________________________
    The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

  10. #20
    Newbie
    Join Date
    Jan 2011
    Location
    Italy
    Posts
    26
    Quote Originally Posted by Borte View Post
    What version of OM where you compiling against?
    Did you import the whole project or just the single files?
    What references where you using when compiling?

    I haven't tried to compile it on the version you're using but if the code was imported just fine (the whole project) then it should be ok.
    OM version 0.8 downloaded few days ago.
    I downloaded every single file including assembly.cs and the project file from sourceforge and put in the same folder strucutre, when I saved VC# 2010 created for me a new solution file. I had the OM's dll references not linked so I re-added from the program folder. Then I compiled but as I told, OM does not see the plug in.

Page 2 of 3 FirstFirst 123 LastLast

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
  •