![xojo instr xojo instr](https://nws-informatik.ch/pix/params.jpg)
Now we can use that and replace the pagestop png with our own like this:ĭim s as string = PictureToPNGStringMBS(p,0)Įnd SubI don't know how REAL Software sees this, but I like this dictionary. favicon.ico, the favorite icon which Safari shows next to the URL.pagestop.png, a PNG with forbidden sign.The dictionary has the following keys and values: To look inside, simply write in a app.open eventĮnd SubOnce in the debugger, you can see the content of d. If you are in app.open, the word framework does not autocomplete, but once you wrote it for any reason, it shows "amework as Dictionary" in the status line. But it's not in the current REAL Studio WebApplication class, at least not in REAL Studio 2010r5. On the documentation you see also an icon property. Port does not autocomplete, but it is listed in the documentation, so this is not a hidden thing. A simple print str(app.port) shows the port from the build settings. Your own property hides the one from the framework and suddenly it uses port=0 for the sockets. No error, but suddenly you can't launch your app! Seems like port is a variable already declared by REAL Studio. So have you tried adding a variable "port as integer" to your App object in the Web Edition? Guess what happens? I think this are internal variables, but they look interesting.
![xojo instr xojo instr](https://res.cloudinary.com/practicaldev/image/fetch/s--IcADmjBJ--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/http://cdn.xojo.com/ForumScreenShots/RegExHeading.png)
Today I did some heavy web development with the REAL Studio Web Edition. Else the english page:įunction CreatePage(PageName As String) As WebPageĭim Lang as string = Session.Header("Accept-Language")Įnd FunctionThe second and maybe better way is to change the language in the WebPage open event and switch the labels to show the right texts:Įnd SubThis way you avoid duplicate code.Įxample projects: multilanguageexamples.zip For that we look into the session headers and if the accepted language includes German (de), we show the German page. In the session CreatePage event, we get have pagename being empty for the default page and there we can decide which page should show. We create a web page for English and for German: WebPageGerman and WebPageEnglish. To do so you have two possibilities:įirst is to duplicate code.
Xojo instr free#
Xojo instr how to#
Sessions are shaping up! Want to learn about the new Web Edition or how to get your app in the Mac App Store? There are sessions for that! See the complete session and speaker list here. Whether you earn your living with REAL Studio or just enjoy it as a hobby, the Atlanta Summit is the place to learn more about powerful cross-platform development using REAL Studio, including the new Web Edition. Hosted by The Association of REALbasic Professionals (ARBP) and REAL Software, the REAL Studio Summit 2011 in Atlanta, Georgia is *the* REAL Studio event of the year. The REAL Software Newsletter for January 2011 arrived and there you can read that Geoff Perlman and Thom McGrath are coming: Geoff and Thom on REAL Studio Summit in Atlanta " = 'url("+background.url+")' "ĭownload example project: backgrounds.zip Me.ExecuteJavaScript "document.getElementById('REALContainer')."+_ Apply picture by changing style to the objects in all sessions as we make it a static variableīackground = new WebPicture(p, Picture.FormatJPEG) walk up the folders until we find the file Try it yourself:ĭim folder as folderitem = GetFolderItem("")ĭim file as folderitem = folder.Child("background.png") But there is the parent div with id "REALContainer" and this way we can find it. This is a little bit difficult as the id of this window background div is a random character sequence. Second you need to use javascript in order to apply the image to the right object. The key is to create a WebPicture object, so you have an URL to use for the image.
![xojo instr xojo instr](https://www.mbs-plugins.com/images/world-2010-05-30.jpg)
Xojo instr code#
Here a code snippet to set the background image of a webpage. Add a background pattern/image to a webpage with REAL Studio Web Edition