Results 1 to 7 of 7

Thread: SetGUI Parent.. Possible?

  1. #1
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default SetGUI Parent.. Possible?

    K I'll make this short and simple and easy to understand.. My question is that can Simba set GUI parents..

    In c++ it would be the equivalent of:

    Code:
    #include <Windows.h>
    #include <iostream>
    
    #define REPEAT do{
    #define UNTIL( condition ) }while(!(condition));
    #define _WIN32_WINNT 0x0500
    
    int main()
    {
    HWND console = GetConsoleWindow();
    
    HWND Smart;
    REPEAT
            Smart = FindWindow("SunAwtFrame", "Public SMARTv6.6 - SMART Minimizing Autoing Resource Thing - By BenLand100");
    UNTIL(Smart != 0);
                                if(Smart != 0)
                                {
                                       SetParent(console, Smart);
                                }
    return 0;
    }
    What the above does is it will set smart as the parent to the console window.. now u can do this with GUI's aswell (SmartChat was an example that I helped make).. You get the handle to the GUI and then set Smart as the parent and the co-ordinates of where the GUI will be place on the parent window..

    Can Simba do this?? You make a form in simba, get the handle.. and set the parent to the form as smart? This will allow for clickable GUI's and progress reports directly on smart itself..

    Possible? Or No? :c If no, whats stopping it and is there anything we can do to make it possible?
    I am Ggzz..
    Hackintosher

  2. #2
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    Well for reports on SMART, you can paint on smart. Idk about the forms though, but why do those need to be on SMART?

  3. #3
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by TomTuff View Post
    Well for reports on SMART, you can paint on smart. Idk about the forms though, but why do those need to be on SMART?
    Im guessing to be like rsbot and rsbuddy with interactive paint on the screen.

  4. #4
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by MylesMadness View Post
    Im guessing to be like rsbot and rsbuddy with interactive paint on the screen.
    This^ That was the words I were looking for.. Interactive paint.. Can that be done though with using forms?
    I am Ggzz..
    Hackintosher

  5. #5
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, but since Simba is cross platform it requires a lot more work..
    Verrekte Koekwous

  6. #6
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by mastaraymond View Post
    Yes, but since Simba is cross platform it requires a lot more work..
    What about implementing this java side inside smart then?
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  7. #7
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Sounds like it is possible, at least on Windows. But why would you want to do this? Do SMART and the form to control it really have to be attached?



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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