Announcement

Collapse
No announcement yet.

RR Development

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • RR Development

    Hi Guino,

    I have just re-installed VB (after several years of being away from VB programming) and downloaded the RR source...

    I have a few questions however about how I should go about developing it... I wonder if you have some time to guide fellow contributors...

    I realize that it would only be intelligent to write stuff as extra .BAS modules, but I'm a bit in the dark about the skin implementation... I also dont know where I would tap into skin commands to load my module, and how I would go about adding a browser control and make it skinnable...

    I saw that frmSkin had a bunch of controls like images and such, should I add the webbrowser element to that? Then how would I define a skin "control" for that?

    I'm sorry if this is obvious to all VB programmers but I just never had skinning apps experience in VB, but once I get the jist I'm usually a quick-to-understand guy... if you can just provide an example or a small tutorial on writing extensions.
    Roy

    2005 Range Rover 4.4
    Any ideas for putting a PC in this? :)

  • #2
    I'm trying to understand what you want to do with a browser control.. if all you want is to make a way to check specific web pages (for weather, news, traffic etc) , then you should probably just make a stand alone application that you'd call from within RR (by pressing a button etc -- Dynamic commands can do that even without changing RR's code). You also have the option to simply use your app in the Launch menu.

    How it works: Basically anything a user does in RR gets channelled through this "EXEC" function in RR. all screens are copies of frmSkin with added objects as needed, they are updated at a rate of 10 times per second (labels once a second) and that's it. I would strongly recommend not to add anything heavy like a browser control into frmSkin.. you can most definitely create a separate form for that (if needed) and then just control it from the other forms (that's what I did with the form that controls Speech, Media Player Classic and the one that holds MonkeyTalk to integrate with MM).

    The least amount of stuff on frmSkin the better, the only things that should go there are things that might be used enough to appear on EVERY screen.

    You can most definitely copy portions of RR's code to make your "browser" control app skinnable. And you could most definitely have normal controls in RR skins while running your separate application embbeded..
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

    Comment


    • #3
      Nice write up guino. How are you wanting people to submit changes/upgrades to the code at this time?

      For example, if RoyN/anyone creates something that is really usefull and functional and wants to submitt it to you how do you want it?
      VIA MII 10000 - 512MB Ram - Dual 2.5" drives, Xenarc 700TSV, Panasonic CW-8132-B, Opus 150, Audigy 2 NX, PowerMate, IOADR1610 10 Relay card

      Comment


      • #4
        well... really, just send me the code -- hopefully with marked changes, I'll merge it in the latest source.. the only real requirement I impose is that it won't bring in any absurd memory/install requirements and won't be performance intensive when not used..

        This doesn't mean you can't add whatever you want (even beyond my specs) to the code.. if you make it separate enough you can always get the latest source and add it to your own use.. I believe that mostly everything that is memory or performance intensive should be used as a separate app embbeded, that way who doesn't use it, won't suffer from any performance losses...
        Ride Runner RR's Myspace

        "Being happy is not about having what you want, it's about wanting what you have."
        "The best things in life are always free - but that doesn't mean money can't buy you good things."

        Comment


        • #5
          Okay, I whipped up a really simple browser app in between classes today...

          Features:
          - Should be fully embeddable (window title is "BrowserForRoadRunner" (no ""), browser area resizes automatically)
          - Configurable startpage through browser.ini file in same directory as EXE
          - Unlimited favorites (+ favorites management, add/remove)
          - Regular browsing (back, fwd, stop, reload)

          Missing features
          - Skinning (yeah this is actually kinda complex from what I've seen... havent had much time to fool around though)
          - Improving naming of favorites with a more OSK friendly field instead of that ugly inputbox...
          - surely there will be other slight improvements that I cant think about now...


          I'm posting the source here so if someone has some time to make this compatible with Guino's skin structure that might help me to see more clearly and understand how to do that more easily... I could then go into developing more ciomplex plugins/companions to RR...

          I actually just threw this together to get back into VB programming...


          EDIT: I just updated the file to Browser1b.zip, which now allows the executable to be called with a command line argument. This should be a number, indicating a favorite link to be loaded on startup. This would (at least in theory) allow you to have a "weather" button, or "traffic" button, and so on...

          call the exe "BrowserForRoadRunner.exe 1" would load up the first fav, argument 2, would be for the second and so forth...


          HERE IS THE LATEST FILE: http://www.mp3car.com/vbulletin/show...0&postcount=19
          Roy

          2005 Range Rover 4.4
          Any ideas for putting a PC in this? :)

          Comment


          • #6
            I'm almost ashamed! hehehe

            I used to be pretty good at VB but now I just suck! hehehe

            Here is a screen shot, I know its ugly...
            Attached Files
            Roy

            2005 Range Rover 4.4
            Any ideas for putting a PC in this? :)

            Comment


            • #7
              Now embedded.....

              Showing traffic around Sao Paulo highways in Brazil!
              Attached Files
              Roy

              2005 Range Rover 4.4
              Any ideas for putting a PC in this? :)

              Comment


              • #8
                If you provide the Empty/On/Off/Down images for the browser, I can make your app skinnable with RR's skins styles.. You probably should add a Up/Down, PgUp/PgDown button in your images though.
                Ride Runner RR's Myspace

                "Being happy is not about having what you want, it's about wanting what you have."
                "The best things in life are always free - but that doesn't mean money can't buy you good things."

                Comment


                • #9
                  ok!

                  I'm going to work on it!

                  I have been trying to get the scrolling to have larger style, but it isnt that easy... so far I havent found a way of directly ccontrolling the webbrowser's scrolling...

                  I am also planning to be able to store the scroll point of a favorite, so we can go back to weather/traffic images scrolled to a particular point (Like you see on my screenshot, the browser was scrolled down a bit to adjust the image for best fit...
                  Roy

                  2005 Range Rover 4.4
                  Any ideas for putting a PC in this? :)

                  Comment


                  • #10
                    Guino, I'm downloading the PSDs from febs site, to try and modify some screens to use as my browser (since I suck at graphics)... however I only get the _ON and _DOWN images in every zip I get.... These are the PSDs...

                    do you knwo where I can get the _OFF?
                    Roy

                    2005 Range Rover 4.4
                    Any ideas for putting a PC in this? :)

                    Comment


                    • #11
                      PS: I have looked at the layers in them... Is there a way to remove the glow???
                      Roy

                      2005 Range Rover 4.4
                      Any ideas for putting a PC in this? :)

                      Comment


                      • #12
                        Nice and clean browser for RR. I've get it running in RR and it's much touch screen friendly. I've only got one problem. I can't figure out how to get it embedded, and that would be great.

                        BTW tnx for developing new stuff to RR it can't be the meaning Guino
                        have to do all the work, so tnx again.
                        Via Epia M1000
                        512MB RAM
                        120MB IBM Hard drive
                        Netgear MA111
                        Lilliput 8" Touchscreen

                        http://www.clarre.com/carcomputer.htm

                        Comment


                        • #13
                          Why are you having trouble?

                          This is what you should do (you might not need to do all of these if you already have some external apps):
                          - Configure your launch directory from within RRConfig
                          - Add a directory names "Browser" or something...
                          - create a file called Browser.ini *same name as the directory*
                          [GENERAL]
                          PATH = g:\vbs\browser1\browserforroadrunner.exe
                          TryEmbeddedTimeOut = 5
                          WindowSearchString=browserforroadrunner
                          Then it should embed... I am going to update it soon with a larger favorites area, and trying to get some better scrolling mechanism, although it isnt easy...

                          I am also preparing skins for Guino to make it skinnable as he said...
                          Roy

                          2005 Range Rover 4.4
                          Any ideas for putting a PC in this? :)

                          Comment


                          • #14
                            edit the above .ini for your path where u put the exe and ini
                            Roy

                            2005 Range Rover 4.4
                            Any ideas for putting a PC in this? :)

                            Comment


                            • #15
                              Yes now it's working. Stupid me I have put in the .exe after
                              WindowSearchString=browserforroadrunner
                              So tnx and sorry to disturb you.
                              Via Epia M1000
                              512MB RAM
                              120MB IBM Hard drive
                              Netgear MA111
                              Lilliput 8" Touchscreen

                              http://www.clarre.com/carcomputer.htm

                              Comment

                              Working...
                              X