<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>fmx &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/fmx/</link>
	<description>Feed of posts on WordPress.com tagged "fmx"</description>
	<pubDate>Tue, 21 May 2013 08:23:24 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Freestyle MX Series goes extra-large this year]]></title>
<link>http://actionsportsconnection.wordpress.com/2013/01/15/freestyle-mx-series-goes-extra-large-this-year/</link>
<pubDate>Wed, 16 Jan 2013 02:02:09 +0000</pubDate>
<dc:creator>actionsportsconnection</dc:creator>
<guid>http://actionsportsconnection.wordpress.com/2013/01/15/freestyle-mx-series-goes-extra-large-this-year/</guid>
<description><![CDATA[Courtesy of FIM NEWS Since 2001, NIGHT of the JUMPS has been the benchmark of freestyle motocross. I]]></description>
<content:encoded><![CDATA[<p>Courtesy of FIM NEWS</p>
<p>Since 2001, NIGHT of the JUMPS has been the benchmark of freestyle motocross. In 2013, the longest-established and biggest international FMX series is set to enter the XXL bracket. Not only will the FIM Freestyle MX World Championship and FMX European Championship be contested within the framework of the forthcoming world tour, but the calendar will also extend to three continents and take in more capital cities than ever before.</p>
<p>As usual, the curtain-raiser to the thirteenth NIGHT of the JUMPS season will be rounds one and two of the Freestyle MX European Championship contested in the Austrian city of Linz (18th/19th January).</p>
<p>Lithuania makes its debut as host country on 2nd March, staging the opening round of the FIM Freestyle MX World Championship in the context of the first ever NIGHT of the JUMPS in Kaunas.</p>
<p>Just one week later, o2 World in Berlin is the venue for the two German Grand Prix competitions; this promises to be the most spectacular NIGHT of the JUMPS of all time, as Red Bull rider Petr Pilat intends to perform the first tandem backflip in World Championship history.</p>
<p>The freestyle elite hardly have time to draw breath before running up against each other a fortnight later in Gdansk. So after missing out in 2012, Poland is back on the World Championship calendar.</p>
<p>On 27th April, the third round of the Freestyle MX European Championship will be fought out in Munich. As the title chase moves into a decisive phase, all the star riders will be going for victory in the Bavarian capital. Just one week later (3rd/4th May), they will be battling for world championship points once again as the show moves on to Basel in Switzerland.</p>
<p>The FMX European Championship reaches its conclusion on 24th/25th May, when the FMX athletes gather at the o2 arena in Hamburg for the crowning of the 2013 champion.</p>
<p>On 14th/15th June, rounds 7 and 8 of the World Championship will be contested in Russia, the third time that the country has hosted the competition. The summer break in 2013 will be much shorter than usual, because an extra round of the World Championship has been slotted in to coincide with football’s Confederations Cup in Brazil. So this year’s ‘summer hols’ for the FMX pros will be only six weeks long.</p>
<p>The NIGHT of the JUMPS backroom staff won’t be getting much of a break, though. Instead, they will be working hard to transport all the equipment from South America to Asia, because that is where the second half of the season commences. There will be no fewer than four World Championship rounds contested in China – on the weekends of 17th/18th and 24th/25th August. NIGHT of the JUMPs will be making its debut in the Chinese capital city of Beijing. One week later, rounds 12 and 13 of the World Championship will be held, also in China.</p>
<p>And three weeks after that (14th September), another capital city features on the calendar. This time, it is Kiev in the Ukraine, where the FMX riders compete for vital World Championship points. Six weeks later (26th October), they return to Riga for the seventh time.</p>
<p>As in previous years, the gigantic season finale of the FIM Freestyle MX World Championship will be held in Bulgaria’s capital, Sofia (14th December).</p>
<p>So that fans around the world can follow events in the 2013 season and keep tabs on their favourite riders, NIGHT of the JUMPS has also upgraded media coverage. In addition to the upgraded website, a new YouTube channel went online in October 2012 (www.youtube.com/user/NIGHToftheJUMPscom); in addition to presenting the highlights and Top 3 jumps from every round, it also shows fascinating and entertaining video clips about the series.</p>
<p>All World Championship competitions will be transmitted live or recorded on the internet as a free stream at <a href="http://www.nightofthejumps.com" rel="nofollow">http://www.nightofthejumps.com</a>. Furthermore, the whole concept behind the globally popular 26-minute round-up has been completely updated: from 2013, it will be 52 minutes in length and available in more than 142 countries around the world as a free TV broadcast.</p>
<p>But that’s not all. To guarantee the fans a fixed time slot and avoid broadcasting in the middle of the night to countries and continents in different the time zones, NIGHT of the JUMPS is about to conclude an agreement with Motors TV to show the one-hour round-up on the Wednesday after each event.</p>
<p>Communication NIGHToftheJUMPs &#8211; <a href="http://www.NIGHToftheJUMPs.com" target="_blank">www.NIGHToftheJUMPs.com </a>-</p>
<hr />
]]></content:encoded>
</item>
<item>
<title><![CDATA[Tom Pages - Fmx Pro Rider]]></title>
<link>http://ezaharom.wordpress.com/2013/01/14/tom-pages-fmx-pro-rider/</link>
<pubDate>Mon, 14 Jan 2013 13:31:23 +0000</pubDate>
<dc:creator>ezaharom</dc:creator>
<guid>http://ezaharom.wordpress.com/2013/01/14/tom-pages-fmx-pro-rider/</guid>
<description><![CDATA[]]></description>
<content:encoded><![CDATA[<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/uvpAXtDeOFo?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Fixing a TForm.BorderIcons bug in FMX/OS X]]></title>
<link>http://delphihaven.wordpress.com/2013/01/13/fixing-tform-bordericons-bug-in-fmxos-x/</link>
<pubDate>Sun, 13 Jan 2013 17:37:56 +0000</pubDate>
<dc:creator>Chris Rolliston</dc:creator>
<guid>http://delphihaven.wordpress.com/2013/01/13/fixing-tform-bordericons-bug-in-fmxos-x/</guid>
<description><![CDATA[If you try removing biMaximize from a FireMonkey form&#8217;s BorderIcons property, you&#8217;ll fin]]></description>
<content:encoded><![CDATA[<p>If you try removing biMaximize from a FireMonkey form&#8217;s BorderIcons property, you&#8217;ll find the &#8216;maximise&#8217; (zoom) button on OS X (i.e., the green &#8216;traffic light&#8217;) resolutely staying both visible and enabled. The reason for the bug is the following code in FMX.Platform.Mac.pas, and it exists in both XE2 and XE3:</p>
<pre class="brush: delphi; title: ; notranslate" title="">
        if TBorderIcon.biMaximize in AForm.BorderIcons then
          Style := Style or NSWindowZoomButton;              
</pre>
<p>The problem here is that NSWindowZoomButton is not a valid member of a Cocoa window style &#8216;set&#8217;, a fact the compiler wasn&#8217;t able to pick up given Objective-C does not have strongly typed sets like Pascal. Further, you cannot in fact hide or disable the zoom button via the window style &#8211; instead, you get a reference to the actual button and hide or disable it &#8216;directly&#8217;.</p>
<p>As Apple&#8217;s UI guidelines say to disable an unwanted zoom button rather than hide it, that&#8217;s what we&#8217;ll do for our fix. So, having taken a copy of FMX.Platform.Mac.pas (or if you&#8217;ve been following this blog before, with your latest version of it open), head to TCocoaPlatform.CreateWindow. Next, comment out the lines quoted above (i.e. &#8216;if TBorderIcon&#8230;&#8217;). Then, immediately after the NSWin.initWithContentRect call, add the following:</p>
<pre class="brush: delphi; title: ; notranslate" title="">
    if (Style and not NSResizableWindowMask &#60;&#62; 0) and
      not (TBorderIcon.biMaximize in AForm.BorderIcons) then
    begin
      NSWin.standardWindowButton(NSWindowZoomButton).setEnabled(False);
      NSWin.standardWindowButton(NSWindowZoomButton).setTarget(nil);
    end;
</pre>
<p>Setting the &#8216;target&#8217; to nil is necessary, otherwise the Enabled property will get automatically re-enabled &#8211; roughly, you can think of the button as having had an action assigned to it when created, and setting the Target to nil as like setting the Action property to nil again.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Vurb Platinum - New Years Dreamland]]></title>
<link>http://sttarz.wordpress.com/2013/01/12/vurb-platinum-new-years-dreamland/</link>
<pubDate>Sat, 12 Jan 2013 10:32:59 +0000</pubDate>
<dc:creator>sttarz</dc:creator>
<guid>http://sttarz.wordpress.com/2013/01/12/vurb-platinum-new-years-dreamland/</guid>
<description><![CDATA[]]></description>
<content:encoded><![CDATA[<p><code><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/CEzd4cAwh0I?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[FMX tip: 'labels' with selectable text]]></title>
<link>http://delphihaven.wordpress.com/2013/01/06/fmx-tip-labels-with-selectable-text/</link>
<pubDate>Sun, 06 Jan 2013 15:06:13 +0000</pubDate>
<dc:creator>Chris Rolliston</dc:creator>
<guid>http://delphihaven.wordpress.com/2013/01/06/fmx-tip-labels-with-selectable-text/</guid>
<description><![CDATA[Say you are designing a form in FireMonkey, and wish to use a read-only edit box. No problem: stick]]></description>
<content:encoded><![CDATA[<p>Say you are designing a form in FireMonkey, and wish to use a read-only edit box. No problem: stick a TEdit on the form and set its ReadOnly property to False. However, doing this doesn&#8217;t give any visual indication the edit box&#8217;s contents can&#8217;t be changed. Moreover, what if you&#8217;re using a TEdit rather than a TLabel simply to allow users to copy the text, if they really want to, in which case the edit box should completely blend into the form background and not even have a border? A common example of this is the version number text shown in an application&#8217;s &#8216;about&#8217; box, for example the Delphi IDE&#8217;s or Firefox&#8217;s.</p>
<p>In the VCL removing a TEdit&#8217;s background is no problem &#8211; set its ParentColor property to True, and its BorderStyle property to bsNone. Neither the Color, ParentColor not BorderStyle properties exist on the FMX TEdit however, since all these attributes are controlled by its style.</p>
<p>So, one&#8217;s first thought might be to create a custom style for the edit box. To do that, right click on the TEdit in the form designer, then choose Edit Custom Style&#8230; from the popup menu. Once the style editor is showing, head to the structure view, open up the control hierarchy, select the item labelled &#8216;background&#8217;, then click the little &#8216;delete&#8217; button (top left). Choose &#8216;Apply and Close&#8217;, and both the edit box&#8217;s white background and its thin border should be gone. Great!</p>
<p><a href="http://delphihaven.files.wordpress.com/2013/01/custom-tedit-style-with-default-main-style-active.png"><img class="aligncenter size-full wp-image-2775" alt="Custom TEdit style with default main style active" src="http://delphihaven.files.wordpress.com/2013/01/custom-tedit-style-with-default-main-style-active.png?w=450&#038;h=110" width="450" height="110" /></a></p>
<p>Alas, but there&#8217;s a problem &#8211; if you change the global style, the edit box&#8217;s custom style won&#8217;t be updated accordingly. E.g., here&#8217;s what happens when the &#8216;dark&#8217; style is loaded:</p>
<p><a href="http://delphihaven.files.wordpress.com/2013/01/custom-tedit-style-with-different-main-style-active.png"><img class="aligncenter size-full wp-image-2776" alt="Custom TEdit style with different main style active" src="http://delphihaven.files.wordpress.com/2013/01/custom-tedit-style-with-different-main-style-active.png?w=450&#038;h=110" width="450" height="110" /></a></p>
<p>The problem here is that custom styles set up at design time involve merely &#8216;copy and paste &#8220;inheritance&#8221;&#8216; from whatever style is used by the IDE at the time. Change the main style for an application later, and any custom style won&#8217;t have its underpinings updated accordingly.</p>
<p>While this inherent limitation of the FMX styling system is bad enough in the present scenario, it is even worse for things like customising a list box item&#8217;s style, since the default platform styles differ (as you might expect) on details like highlight colours &#8211; just try running XE3&#8242;s CustomListBox demo on OS X to see this in action. Another pain point is the XE3 platform styles relying on their own bitmaps, one per platform &#8211; since no care was taken for each control to refer to the same part of the main bitmap when running on Windows and OS X, customising a control&#8217;s style at design time can lead to <a href="https://forums.embarcadero.com/thread.jspa?threadID=81494&#38;tstart=0">half of it disappearing</a> when the program is run on a Mac!</p>
<p>What we need to do, then, is <em>not</em> use a custom style, but correct the default style for a read-only edit box at runtime, specifically by manipulating things in a handler for the control&#8217;s OnApplyStyleLookup event. Learning what to modify exactly means delving into the source and the stock style files, preferably more than one in the case of the latter. To take the TEdit case, for example, while all the standard styles define its background by a control with a style element name of &#8216;background&#8217;, the control type depends upon the style. In the case of the &#8216;platform&#8217; styles it is a TSubImage, which references part of one big platform-specific bitmap. In the case of the additional, vector-only styles however (like &#8216;dark&#8217;), a TRectangle is used. Given that, removing the background must be done in a way that is neutral between both primitive control types (i.e., TSubImage and TRectange). In fact, it&#8217;s a good idea to make the code as generic as possible, since it&#8217;s perfectly possible Embarcadero will change the internals once more in XE4 or whatever.</p>
<p>Anyhow, to cut to the chase, this is what I&#8217;ve come up with -</p>
<pre class="brush: delphi; title: ; notranslate" title="">
procedure TForm2.LabelEditApplyStyleLookup(Sender: TObject);
var
  Obj: TFmxObject;
begin
  Obj := (Sender as TCustomEdit).FindStyleResource('background');
  if Obj is TControl then TControl(Obj).Opacity := 0;
end;
</pre>
<p>Why make the background control transparent rather than just delete it? Ultimately, because I&#8217;m not keen on just randomly deleting internal objects. Further, talk of automatic reference counting (ARC) being introduced (see <a href="http://blogs.embarcadero.com/jtembarcadero/2012/08/20/xe3-and-beyond/">here</a>) makes me nervous simple Free calls on FMX objects (*) will even be possible in the future given the inherent conflict between reference counting and the TComponent ownership pattern that FMX currently employs.</p>
<h6>(*) And no, I&#8217;m not predicting ARC will be forced (or even introduced at all) for Win32/Win64 projects. I&#8217;m purely talking about FMX, on mobile and possibly desktop too given much of the framework will presumably cross compile between mobile and desktop platforms.</h6>
]]></content:encoded>
</item>
<item>
<title><![CDATA[FMX tip: buttons with images that still have nicely-aligned captions]]></title>
<link>http://delphihaven.wordpress.com/2013/01/05/fmx-tip-buttons-with-images-that-still-have-nicely-aligned-captions/</link>
<pubDate>Sat, 05 Jan 2013 17:13:29 +0000</pubDate>
<dc:creator>Chris Rolliston</dc:creator>
<guid>http://delphihaven.wordpress.com/2013/01/05/fmx-tip-buttons-with-images-that-still-have-nicely-aligned-captions/</guid>
<description><![CDATA[Unlike its VCL equivalent, the FireMonkey TSpeedButton has no Glyph property; similarly, TButton doe]]></description>
<content:encoded><![CDATA[<p>Unlike its VCL equivalent, the FireMonkey TSpeedButton has no Glyph property; similarly, TButton doesn&#8217;t have the image properties added to the VCL version in D2009, and in FMX, there&#8217;s no TBitBtn class to boot. The reason for this is that in principle, there is no need for class-specific image properties:</p>
<ol>
<li>Add a TImage to the design surface.</li>
<li>Using the structure view (top left of the IDE), reparent the image to the desired button by dragging and dropping with the mouse. (It doesn&#8217;t matter whether the button is a TButton, which takes the keyboard focus, or a TSpeedButton which doesn&#8217;t.)</li>
<li>Select the image and use the object inspector to set its HitTest property to False. This prevents it from receiving mouse clicks.</li>
</ol>
<p>This approach works fine if the button doesn&#8217;t have a caption, but when it does, an issue arises concerning alignment: the text will remain centred in the button regardless of whether the image is aligned to a certain side, so that if the image is relatively large, text will appear partly on it, and partly on the normal background:</p>
<p><a href="http://delphihaven.files.wordpress.com/2013/01/poorly-aligned-button-captions.png"><img class="aligncenter size-full wp-image-2769" alt="Poorly aligned button captions" src="http://delphihaven.files.wordpress.com/2013/01/poorly-aligned-button-captions.png?w=182&#038;h=199" width="182" height="199" /></a></p>
<p>If the button images are either left-aligned (as in this example) or right-aligned, you could manually fix up the alignment by prepending or appending spaces to the button&#8217;s Text property as appropriate, however this won&#8217;t work for top- or bottom-aligned images, and moreover, causes hassles if the button&#8217;s text comes from an assigned action. So, what would make for a more principled fix?</p>
<p>Well, internally, a button&#8217;s text is part of its style, which like the style for any other control is composed of more primitive FMX controls. The text, then, comes from a TText control, which is placed inside a layout control of some sort that also contains a TSubImage or TRectangle that defines the button background and border.</p>
<p>Given that, one way to fix the text alignment issue might be to reparent our TImage to the parent of the TText at runtime. If that sounds a bit hacky, that&#8217;s because it is, and worse, the changes made to control style handling in XE3 blogged about by Eugene Kryukov (EMBT) <a href="http://blogs.embarcadero.com/ekryukov/2012/10/03/styles-performance-in-xe3/">here</a> make it precarious to boot. Happily however, there&#8217;s a better way: when the button&#8217;s style is loaded (or reloaded), adjust the internal TText&#8217;s Padding property so that it no longer overlaps the image.</p>
<p>To do this generically for a number of buttons on a form, select them all in the designer (they can be a mixture of TButton and TSpeedButton controls if you want), click to the Events tab of the Object Inspector, type <code>ButtonApplyStyleLookup</code> next to OnApplyStyleLookup, and press Enter. This will create a shared event handler for the buttons&#8217; OnApplyStyleLookup event. In the code editor, add the following for its implementation:</p>
<pre class="brush: delphi; title: ; notranslate" title="">
procedure TForm1.ButtonApplyStyleLookup(Sender: TObject);
var
  Button: TCustomButton;
  Control: TControl;
  TextObj: TFmxObject;
begin
  Button := (Sender as TCustomButton);
  for Control in Button.Controls do
    if Control is TImage then
    begin
      TextObj := Button.FindStyleResource('text');
      if TextObj is TText then
        case Control.Align of
          TAlignLayout.alLeft:
            TText(TextObj).Padding.Left := Control.Width;
          TAlignLayout.alTop:
            TText(TextObj).Padding.Top := Control.Height;
          TAlignLayout.alRight:
            TText(TextObj).Padding.Right := Control.Width;
          TAlignLayout.alBottom:
            TText(TextObj).Padding.Bottom := Control.Height;
        end;
      Break;
    end;
end;
</pre>
<p>What we do here is cycle through the button&#8217;s controls looking for the TImage; when we find it, we then look for the TText style resource and adjust its Padding accordingly. Here&#8217;s the result:</p>
<p><a href="http://delphihaven.files.wordpress.com/2013/01/nicely-aligned-button-captions.png"><img class="aligncenter size-full wp-image-2770" alt="Nicely aligned button captions" src="http://delphihaven.files.wordpress.com/2013/01/nicely-aligned-button-captions.png?w=187&#038;h=205" width="187" height="205" /></a></p>
<p>PS &#8211; if having read this far you&#8217;d still prefer a button class with a dedicated Bitmap property, check out Mike Sutton&#8217;s custom TSpeedButton descendant <a href="http://monkeystyler.com/blog/entry/my-first-firemonkey-custom-control-tbitmapspeedbutton">here</a>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Say You’re a College Student …]]></title>
<link>http://creo.ptc.com/2013/01/04/say-youre-a-college-student/</link>
<pubDate>Fri, 04 Jan 2013 05:20:10 +0000</pubDate>
<dc:creator>Geoff Hedges</dc:creator>
<guid>http://creo.ptc.com/2013/01/04/say-youre-a-college-student/</guid>
<description><![CDATA[Say you’re a college student, just starting out. You get involved in an extracurricular engineering]]></description>
<content:encoded><![CDATA[<p>Say you’re a college student, just starting out. You get involved in an extracurricular engineering competition to build a <a href="http://en.wikipedia.org/wiki/Formula_racing">Formula-like racecar</a>. The idea is that, hypothetically, you’re building something for the weekend autocross amateur. It needs to be manufacturable, safe, fuel efficient, and durable. It’s an intriguing challenge, with lots of opportunities for problem solving and creativity.</p>
<p>Then,  reality sets in.</p>
<p>You find out that a part you planned to purchase doesn’t exist in your size, a stress test shows the design needs to be more robust and a few ounces lighter, or the nose cone just kind of looks funny. You find yourself going back to your design again and again as the deadline nears.</p>
<p>But try to change anything quickly in the CAD system, and you may find the model tree fights you. Even trivial modifications can be a headache.</p>
<p>You’re not the first student with this problem. That’s why we introduced the PTC Creo Flexible Modeling Extension (FMX). In short, it frees you from the constraints of traditional parametric modeling, so that you can make changes quickly and get your finished entry to the track before your competition begins.</p>
<p>The clip below was made just for students like hypothetical you entering the SAE Collegiate Design Competitions (one of which is exactly the race car challenge I described above). The video shows how you can make those last-minute changes in PTC Creo Parametric by switching on FMX.</p>
<p>And one more thing. When I said you’re the reason we introduced FMX? That wasn’t exactly the whole picture. We did it for professional engineers everywhere. It may start in university, but we all accommodate late changes, some of them dramatic, all through our design process, all through our careers.</p>
<p>Welcome to our world.</p>
<p>PTC is very proud to support you and all of tomorrow’s engineers through <a href="http://en.wikipedia.org/wiki/STEM_fields">STEM</a> programs like the <a href="http://students.sae.org/competitions/">SAE Collegiate</a> competitions.</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/360b4W-WAXw?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Barcelona X games - can't wait]]></title>
<link>http://marzeontheedge.com/2012/12/21/barcelona-x-games-cant-wait/</link>
<pubDate>Fri, 21 Dec 2012 10:56:27 +0000</pubDate>
<dc:creator>Marze</dc:creator>
<guid>http://marzeontheedge.com/2012/12/21/barcelona-x-games-cant-wait/</guid>
<description><![CDATA[The video say if I&#8217;m ready, and of course I am! Less than 6 month to the event of the 2013 in]]></description>
<content:encoded><![CDATA[<p>The video say if I&#8217;m ready, and of course I am! Less than 6 month to the event of the 2013 in Barcelona, The X Games! My hometown starts to prepare itself for the Olympics of the extreme sports! I will be there!<br />
<a href="http://www.xgamesbarcelona.com/es/home.html">Here you have the homepage of the event</a> and you can find tickets <a href="http://www.ticketmaster.es/nav/landings/es/deportes/entradas-x-games-barcelona/entradas.html">here</a></p>
<p>Is just a promo video, but I&#8217;m super excited!</p>
<p>Enjoy the vid!</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/5tracaNHMMc?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
]]></content:encoded>
</item>
<item>
<title><![CDATA[FMX OnCloseQuery and OnClose woes on OS X - fixing QC 111362 (+ another bug)]]></title>
<link>http://delphihaven.wordpress.com/2012/12/16/fmx-onclosequery-and-onclose-woes-on-os-x/</link>
<pubDate>Sun, 16 Dec 2012 21:36:07 +0000</pubDate>
<dc:creator>Chris Rolliston</dc:creator>
<guid>http://delphihaven.wordpress.com/2012/12/16/fmx-onclosequery-and-onclose-woes-on-os-x/</guid>
<description><![CDATA[If you&#8217;ve attempted to use FireMonkey to write an application targeting OS X, you may well hav]]></description>
<content:encoded><![CDATA[<p>If you&#8217;ve attempted to use FireMonkey to write an application targeting OS X, you may well have come across CloseQuery bugs &#8211; for me it&#8217;s generally been any dialog shown by a form&#8217;s OnCloseQuery handler having a tendancy to show twice, though you can also get the opposite problem, of the OnCloseQuery handler not being shown at all. <a href="http://qc.embarcadero.com/wc/qcmain.aspx?d=111362">QC 111362</a> (not by me) provides a clear test case of both: in the first instance, the user answering &#8216;yes&#8217; to the save changes prompt leads to the prompt showing again, and in the second, assigning the ModalResult property of a button leads to OnCloseQuery not being raised at all when the button is clicked.</p>
<p>Having been bugging me for a while, I finally decided to investigate the problems properly. First up was the showing-twice issue. At first I thought it must be dialog-related, but it wasn&#8217;t:</p>
<ul>
<li>As in the VCL, the FMX TForm has CloseQuery and Close methods, with the implementation of the latter calling the former. (Unlike in the VCL, FMX does not abstract out calling the OnClose event into a DoClose method. Instead, it is called directly inside Close. But I digress)</li>
<li>At the platform-specific level, FMX.Platform.pas calls CloseQuery in response to the windowShouldClose: message, which is good, and Close in response to windowWillClose:&#8230; which is bad. Why? Because as its name implies, by the time windowWillClose: is sent, the window <em>is closing</em>, not asking whether it should close. When the user clicks the red traffic light, the message order is therefore windowShouldClose:, and if that returns True, windowWillClose:. When OnCloseQuery has been handled without setting CanClose to False, this means it gets called a second time. Doh!</li>
<li>Instead of calling Close, the windowWillClose: handler should just invoke any assigned OnClose handler, if that. If a DoClose method had existed, perhaps the author would have at least thought whether Close rather DoClose is really appropriate&#8230;</li>
</ul>
<p>Now, I say that windowWillClose: should call OnClose &#8216;if that&#8217; because OnClose itself acts as a &#8216;are you really, really sure you want the form to close?&#8217; event. This is because if a handler sets the Action var parameter to TCloseAction.caNone, in principle, the form should not now close:</p>
<pre class="brush: delphi; title: ; notranslate" title="">
procedure TForm2.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  if MessageDlg('Are you SURE you want the form to close?',
    TMsgDlgType.mtConfirmation, mbYesNo) &#60;&#62; mrYes then
    Action := TCloseAction.caNone;
end;
</pre>
<p>Predictably enough though, such code doesn&#8217;t work when targeting OS X, assuming Close is called because of the user attempting to close the form rather than the form being closed programmatically. More exactly, setting Action to anything beyond the default (caHide) doesn&#8217;t have any affect, because Cocoa has already decided what will happen. To make even OnClose work correctly, then, almost the entire logic needs to be placed in the windowShouldClose: handler, and the windowWillClose: handler left relatively bare.</p>
<p>As for the bug of OnCloseQuery not being raised at all, the problem there is specific to a modal form being closed due to its ModalResult property being set, either directly or via a button. Looking at the source, the CloseModal call inside TPlatformCocoa.ShowWindowModal looked suspicious, and sure enough, it was the problem:</p>
<ul>
<li>As before, the FMX TForm mimics its VCL forebear in having a CloseModal method. In the VCL (and FMX/Windows), this is is called inside the modal message loop once a change in the form&#8217;s ModalResult property has been detected. CloseModal itself then calls CloseQuery to give the client code the chance to cancel the closure; if CloseQuery returns False, the ModalResult property is reset to mrNone (0). Back in the modal message loop, the ModalResult property is then checked a second time to allow any reset to take effect.</li>
<li>The author of TPlatformCocoa.ShowWindowModal misunderstood the purpose of CloseModal, apparently assuming it is some sort of notification method rather than a &#8216;last chance to cancel&#8217; one. As such, CloseModal is called in the wrong place (too late), and ModalResult not rechecked.</li>
</ul>
<p>Here&#8217;s how to fix these various bugs:</p>
<ul>
<li>Take a copy of FMX.Platform.Mac.pas, and put it in your application&#8217;s main source directory (you can also explicitly add it to the project if you want).</li>
<li>Open the copy and head to the TFMXWindow.windowShouldClose method implementation. Change it look like this:</li>
</ul>
<pre class="brush: delphi; title: ; notranslate" title="">
function TFMXWindow.windowShouldClose(Sender: Pointer): Boolean;
var
  Action: TCloseAction;                                  //!!!CCR
begin
  Result := False;
  if Application = nil then
    Exit;
  if Application.Terminated then
    Exit;
  try
    Result := Wnd.CloseQuery;
    if Result and Assigned(Wnd.OnClose) then             //!!!CCR
    begin                                                //!!!CCR
      Action := TCloseAction.caHide;                     //!!!CCR
      Wnd.OnClose(Wnd, Action);                          //!!!CCR
      if Action = TCloseAction.caMinimize then           //!!!CCR
      begin                                              //!!!CCR
        Result := False;                                 //!!!CCR
        Wnd.WindowState := TWindowState.wsMinimized;     //!!!CCR
      end                                                //!!!CCR
      else                                               //!!!CCR
        if (Application &#60;&#62; nil) and                      //!!!CCR
           (Wnd = Application.MainForm) then             //!!!CCR
          Result := (Action in [TCloseAction.caHide,     //!!!CCR
            TCloseAction.caFree])                        //!!!CCR
        else                                             //!!!CCR
        begin                                            //!!!CCR
          Result := (Action = TCloseAction.caHide);      //!!!CCR
          if Action = TCloseAction.caFree then Wnd.Release;
        end;                                             //!!!CCR
    end;
  except
    Application.HandleException(Self);
  end;
end;
</pre>
<p>The next method down is probably TFMXWindow.windowWillClose; in it, <strong>delete everything</strong>, before adding the following in its place:</p>
<pre class="brush: delphi; title: ; notranslate" title="">
procedure TFMXWindow.windowWillClose(
  notification: NSNotification);
begin
  if (Application &#60;&#62; nil) and (Application.MainForm = Wnd) then
    Application.Terminate;
end;
</pre>
<p>The addition preserves the &#8216;main form&#8217; semantics we implicitly remove by not calling Close (which would otherwise enforce them).</p>
<p>The revised windowShouldClose and windowWillClose methods fix the double shows and OnClose not working properly; to fix the no-shows, head next to the implementation of TPlatformCocoa.ShowWindowModal. Find the call the AForm.CloseModal, and comment it out (it&#8217;s in the wrong place). Finally, find the check for AForm.ModalResult not being 0, and amend the code to look like this:</p>
<pre class="brush: delphi; title: ; notranslate" title="">
          if AForm.ModalResult &#60;&#62; 0 then
          begin
            AForm.CloseModal;                     //!!!CCR
            if AForm.ModalResult &#60;&#62; 0 then        //!!!CCR
            begin                                 //!!!CCR
              NSApp.stopModal;
              Continue;
            end;                                  //!!!CCR
          end;
</pre>
<p>To take effect, you may need to disable debug DCUs to ensure the revised unit gets picked up (Project&#124;Options, Delphi Compiler &#62; Compiling, uncheck &#8216;Use debug DCUs&#8217; &#8211; you&#8217;ll only need to do this for the OS X debug configuration).</p>
<p>As a final point, please keep in mind I do not encourage invoking event handlers directly, as the code above does &#8211; the fact the FMX source doesn&#8217;t bother with dedicated event-calling methods half the time says nothing about the validity of such practice. The only reason I do it above is because I wish to avoid interface changes, and therfore, DCU incompatibilities.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Red Bull FMX Riders and drifting at the Oman Motor Show]]></title>
<link>http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/</link>
<pubDate>Sat, 15 Dec 2012 16:25:54 +0000</pubDate>
<dc:creator>therogueandpeasantslave</dc:creator>
<guid>http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/</guid>
<description><![CDATA[One thing for sure, Red Bull knows how to put on a show. They&#8217;re on the cutting edge for bring]]></description>
<content:encoded><![CDATA[<p>One thing for sure, <a title="Red Bull" href="http://www.redbullmea.com/cs/Satellite/en_MEA/Red-Bull-Home-English/001242746107149" target="_blank">Red Bull</a> knows how to put on a show. They&#8217;re on the cutting edge for bringing extreme sports to us here in Oman. And after having photographed the <a title="red bull cliff diving" href="http://therogueandpeasantslave.wordpress.com/2012/09/28/43/" target="_blank">cliff divers</a> back in September, I was excited to be invited to yet another Red Bull event. We got there for the 6:00 PM show, but everything was on hold while they waited for the wind to die down. The riders were up at the top of the dirt landing mound throwing handfuls of dirt in the air checking the severity of the winds that just sort of blew up out of nowhere.</p>
<p><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/dsc_0012/" rel="attachment wp-att-379"><img class="alignnone size-full wp-image-379" alt="DSC_0012" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc_0012.jpg?w=645&#038;h=428" width="645" height="428" /></a></p>
<p>Thankfully, the delay didn&#8217;t last long. By about 7:00 they were open for business. Red Bull graciously gave us access to shoot from several amazing vantage points &#8211; nothing like the smell of 2-stroke fuel and a bit of mud on the knees! I&#8217;ll just let the pictures tell the story.</p>
<p><a href="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7520-edit.jpg"><img class="size-full wp-image" id="i-332" alt="Image" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7520-edit.jpg?w=580" /></a></p>
<p style="text-align:center;"><em>Nick De Wit and Fredrik Berggren talk before the show</em></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7629.jpg"><img class="size-full wp-image" id="i-335" alt="Image" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7629.jpg?w=580" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7821.jpg"><img class="size-full wp-image" id="i-337" alt="Image" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7821.jpg?w=580" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7528.jpg"><img class="size-full wp-image" id="i-340" alt="Image" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7528.jpg?w=580" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7749.jpg"><img class="size-full wp-image" id="i-342" alt="Image" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7749.jpg?w=580" /></a></p>
<p style="text-align:left;"> <a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7759/" rel="attachment wp-att-346"><img class="alignnone size-full wp-image-346" alt="_DSC7759" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7759.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7803/" rel="attachment wp-att-370"><img class="alignnone size-full wp-image-370" alt="_DSC7803" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7803.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/dsc_0030/" rel="attachment wp-att-382"><img class="alignnone size-full wp-image-382" alt="DSC_0030" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc_0030.jpg?w=645&#038;h=971" width="645" height="971" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7723-edit/" rel="attachment wp-att-359"><img class="alignnone size-full wp-image-359" alt="_DSC7723-Edit" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7723-edit.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7775/" rel="attachment wp-att-369"><img class="alignnone size-full wp-image-369" alt="_DSC7775" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7775.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7730-edit/" rel="attachment wp-att-363"><img class="alignnone size-full wp-image-363" alt="_DSC7730-Edit" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7730-edit.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7728-edit/" rel="attachment wp-att-362"><img class="alignnone size-full wp-image-362" alt="_DSC7728-Edit" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7728-edit.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7704/" rel="attachment wp-att-358"><img class="alignnone size-full wp-image-358" alt="_DSC7704" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7704.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7614/" rel="attachment wp-att-344"><img class="alignnone size-full wp-image-344" alt="_DSC7614" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7614.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7827/" rel="attachment wp-att-373"><img class="alignnone size-full wp-image-373" alt="_DSC7827" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7827.jpg?w=645&#038;h=516" width="645" height="516" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/dsc_0057/" rel="attachment wp-att-385"><img class="alignnone size-full wp-image-385" alt="DSC_0057" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc_0057.jpg?w=645&#038;h=428" width="645" height="428" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/dsc_0080/" rel="attachment wp-att-386"><img class="alignnone size-full wp-image-386" alt="DSC_0080" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc_0080.jpg?w=645&#038;h=428" width="645" height="428" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/dsc_0052/" rel="attachment wp-att-383"><img class="alignnone size-full wp-image-383" alt="DSC_0052" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc_0052.jpg?w=645&#038;h=428" width="645" height="428" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7542/" rel="attachment wp-att-350"><img class="alignnone size-full wp-image-350" alt="_DSC7542" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7542.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:center;"><em>Chris Fisher from Merge 104.8 interviewing the riders</em></p>
<p style="text-align:left;">I also had the chance briefly to make it over to the drifting exhibition (not a Red Bull event). If you&#8217;re not familiar with the sport, here is the definition from the Formula Drift Asia website:</p>
<p style="text-align:left;"><em>Drifting is a high-skill, high-powered motorsport that calls for drivers to control a 200 to 600hp car while it slides sideways at high speed through a marked course. It is similar to rally racing, but is done on a closed course and judged on execution and style rather than who finishes the course fastest. Drifting takes all the thrilling moments of traditional motorsports and packs it together into non-stop competition.</em></p>
<p style="text-align:left;">These shots will give you an idea.</p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7897/" rel="attachment wp-att-378"><img class="alignnone size-full wp-image-378" alt="_DSC7897" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7897.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7892/" rel="attachment wp-att-376"><img class="alignnone size-full wp-image-376" alt="_DSC7892" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7892.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7894/" rel="attachment wp-att-377"><img class="alignnone size-full wp-image-377" alt="_DSC7894" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7894.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7882/" rel="attachment wp-att-374"><img class="alignnone size-full wp-image-374" alt="_DSC7882" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7882.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7883/" rel="attachment wp-att-375"><img class="alignnone size-full wp-image-375" alt="_DSC7883" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7883.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;">The crowd was enthusiastic and used lots of creative ways to get a view of the action.</p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7929/" rel="attachment wp-att-398"><img class="alignnone size-full wp-image-398" alt="_DSC7929" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7929.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7927-2/" rel="attachment wp-att-396"><img class="alignnone size-full wp-image-396" alt="_DSC7927" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc79271.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7841/" rel="attachment wp-att-401"><img class="alignnone size-full wp-image-401" alt="_DSC7841" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7841.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7490/" rel="attachment wp-att-402"><img class="alignnone size-full wp-image-402" alt="_DSC7490" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7490.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7834/" rel="attachment wp-att-400"><img class="alignnone size-full wp-image-400" alt="_DSC7834" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc7834.jpg?w=645&#038;h=429" width="645" height="429" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7671-2/" rel="attachment wp-att-390"><img class="alignnone size-full wp-image-390" alt="_DSC7671" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc76711.jpg?w=645&#038;h=968" width="645" height="968" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/dsc_0085/" rel="attachment wp-att-387"><img class="alignnone size-full wp-image-387" alt="DSC_0085" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc_0085.jpg?w=645&#038;h=971" width="645" height="971" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/dsc_0095/" rel="attachment wp-att-389"><img class="alignnone size-full wp-image-389" alt="DSC_0095" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc_0095.jpg?w=645&#038;h=428" width="645" height="428" /></a></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/dsc_0091/" rel="attachment wp-att-388"><img class="alignnone size-full wp-image-388" alt="DSC_0091" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc_0091.jpg?w=645&#038;h=971" width="645" height="971" /></a></p>
<p style="text-align:center;"><em>The spookiest </em></p>
<p style="text-align:left;"><a href="http://therogueandpeasantslave.wordpress.com/2012/12/15/red-bull-fmx-riders-and-drifting-at-the-oman-motor-show/_dsc7673-2/" rel="attachment wp-att-391"><img class="alignnone size-full wp-image-391" alt="_DSC7673" src="http://therogueandpeasantslave.files.wordpress.com/2012/12/dsc76731.jpg?w=645&#038;h=968" width="645" height="968" /></a></p>
<p style="text-align:center;"><em>Sometimes you gotta climb to get your shwarma</em></p>
<p style="text-align:left;">I&#8217;m thankful to Red Bull for being gracious hosts. Lots of fun. For more coverage of the event, check out <a title="Andy in Oman" href="andyinoman.com" target="_blank">Andy in Oman&#8217;s blog</a>. He&#8217;s posted some cool video including a clip from a Go Pro attached to the helmet of one of the riders.</p>
<p style="text-align:left;">Peace, love, and fumes.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[FMX Diary with Nick De Wit]]></title>
<link>http://oakleydispatch.wordpress.com/2012/12/13/fmx-diary-with-nick-de-wit/</link>
<pubDate>Thu, 13 Dec 2012 13:16:20 +0000</pubDate>
<dc:creator>oakleyintern</dc:creator>
<guid>http://oakleydispatch.wordpress.com/2012/12/13/fmx-diary-with-nick-de-wit/</guid>
<description><![CDATA[Nick De Wit, Oakley&#8217;s own mad-cap FMX rider, provides us with another view into the life of a]]></description>
<content:encoded><![CDATA[<p>Nick De Wit, Oakley&#8217;s own mad-cap FMX rider, provides us with another view into the life of a professional madman. He&#8217;s been a busy man lately, going as far as Oman to get his thrills &#8211; but we&#8217;ll let the man himself give you the full details.</p>
<p><!--more--></p>
<p>&#8220;Hi Everyone</p>
<div>
<p>&#160;</p>
</div>
<div>
<p>WOW. Its the end of the year already and I’m sure you are all getting ready to enjoy the festive season.</p>
</div>
<div>
<p>The last 2 months have been really crazy and what a way to end off the year.</p>
</div>
<div>
<p>&#160;</p>
</div>
<div>
<p>November began with a little training in SA and then it all started. Stop one(22Nov) was in Dammam in Saudi Arabia. It was a quick in and out. We got there on the Wednesday morning. did the show for about 2000 screaming Saudi’s on Thursday night and then got a flight at 2am on Friday morning back to SA (23 Nov). (Stop 1)</p>
</div>
<div>
<p>&#160;</p>
</div>
<div>
<p>26 Nov I was off to Dubai for the rehearsal of a show I was doing at SkyDive Dubai for the parachuting world championships. (Stop 2) I was in Dubai for 2 days and then flew back to Saudi (Riyadh) for stop 3 (29 Nov) of my middle east tour. Unfortunately due to a freak of nature rain storm our show had to be canceled. Who would have thought. Rain in the desert.</p>
</div>
<div>
<p>I flew back to Dubai (30 Nov) for some more rehearsals and then our shows started. (1-8 Dec) 8 Days of shows for the crowds that loved what we had to offer. We were part of a bigger show where we had to time some jumps with some MTB jumpers and some free jumpers who were jumping from a 35m platform into a giant airbag. It was really spectacular and we had an awesome time in Dubai. I also got to do some Skydiving of my own and that was one of the craziest feelings ever. Thanks guys.</p>
</div>
<div>
<p>On the 9 December I was back on a plane and off to Muscat in Oman for a Red Bull event. (Stop4) Red Bull is supporting the Oman motor show and FMX is one of the attractions for the event. So far i have ridden 2 of the 4 days and had a great response.</p>
</div>
<div>
<p>I get home from Oman on the 16 December and then back to Saudi on the 18 Dec for my final stop of the year (Stop5).</p>
</div>
<div>
<p>&#160;</p>
</div>
<div>
<p>2012 has been a good year for me and I have to thanks all my sponsors and all the people that have made, and are making it possible for me to do what I do. Without you guys and girls it would be impossible for me to keep it up. You are all amazing and hope you all have an awesome festive season and come back for another great year, 2013.</p>
</div>
<div>
<p>&#160;</p>
</div>
<div>
<p>Thanks again for all the support and chat again soon.&#8221;</p>
</div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Dragging an FMX list box item to a grid without superfluous highlighting]]></title>
<link>http://delphihaven.wordpress.com/2012/12/12/dragging-an-fmx-list-box-item-to-a-grid-without-superfluous-highlighting/</link>
<pubDate>Wed, 12 Dec 2012 07:49:38 +0000</pubDate>
<dc:creator>Chris Rolliston</dc:creator>
<guid>http://delphihaven.wordpress.com/2012/12/12/dragging-an-fmx-list-box-item-to-a-grid-without-superfluous-highlighting/</guid>
<description><![CDATA[This a somewhat specific problem, but anyhow, I have an FireMonkey application I&#8217;m writing in]]></description>
<content:encoded><![CDATA[<p>This a somewhat specific problem, but anyhow, I have an FireMonkey application I&#8217;m writing in which I was wanting to be able to drag a list box item to a grid. Now, the FMX TListBox has an AutoDrag property to allow its items to be dragged, and FMX controls &#8211; like VCL ones &#8211; have OnDragOver and OnDragDrop events in which the former allows you to say whether the control will accept a dragged object and the latter allows the control to actually accept it. While a TListBox&#8217;s AutoDrag property is geared to allowing the user to reorder its items internally, setting it to True allows the user to drag an item outside the list box as well.</p>
<p>All in all then, the core functionality I required was implemented by the framework. However, by default, the behaviour wasn&#8217;t quite what I wanted:</p>
<ul>
<li>While making it no effort to have a list box item draggable outside its parent was great, I didn&#8217;t want the accompanying reordering visuals when the dragged item was still within the list box bounds.</li>
<li>Most FMX controls visually indicate that they will accept an object being dragged over them regardless of any OnDragOver handler being set. So, if the form has a list box, a grid and a panel, and a list box item is being dragged, all three controls, together with the remaining list box items, will appear to accept the item as the item is dragged over it. (In the list box&#8217;s case, the entire list box is highlighted if you aren&#8217;t hovering over a specific item.)</li>
<li>In the case of a grid, each column header will indicate acceptance individually as well. Worse, they also support dragging and dropping between themselves to reorder <em>and</em> dragging to somewhere outside the grid <em>with no obvious way to turn either ability off!</em> Speaking for myself, this means I find it pretty easy to reorder the columns of a FMX grid without intending to. Moreover, the fact you can drag a grid header outside the grid is just confusing:</li>
</ul>
<p><img class="aligncenter size-full wp-image-2686" alt="Panel drag highlight" src="http://delphihaven.files.wordpress.com/2012/12/panel-drag-highlight.png?w=327&#038;h=276" width="327" height="276" /></p>
<p>In looking to fix these issues, the first thing I discovered was that the annoying visual acceptance effect is controlled by the EnableDragHighlight property, as introduced with public visibility (and a default setting of True!) in TControl, and subsequently published by most descendants. This property has zero connection to the OnDragOver event, which means that regardless of what you do in an OnDragOver handler, or indeed whether you have a handler for that event at all, by default, a control will visually indicate it accepts anything and everything being dragged over it. Nonetheless, if you have a number of controls that will never accept a dragged object, the easy fix is just to select them all at design time and toggle their EnableDragHighlight property to False. In my case that meant selecting everything on the form, deselecting the popup menus (which don&#8217;t have an EnableDragHighlight property), toggling the property in the Object Inspector, then individually putting the property back on a case-by-case basis.</p>
<p>This was also the fix for removing the reordering visuals from the list box, since TListBoxItem is one of the TControl descendants that publish EnableDragHighlight. In principle, you should still need to remove the actual reordering if an internal drag and drop happens accidentally. However, due to an oversight in the FMX source, the actual reordering doesn&#8217;t happen &#8211; the items are repositioned in the internal list of child objects, but their positions on screen are not switched similarly. Assuming that bug will one day be fixed though, the way to prevent any reordering is to handle the list box&#8217;s OnDragChange event and set the Allow parameter to False:</p>
<pre class="brush: delphi; title: ; notranslate" title="">
procedure TForm1.ListBox1DragChange(SourceItem,
  DestItem: TListBoxItem; var Allow: Boolean);
begin
  Allow := False;
end;
</pre>
<p>So, that left the grid headers&#8230; oh, and the listbox itself, since while setting EnableDragHighlight to False in the Object Inspector worked for individual list box items, it stubbornly wasn&#8217;t for their parent control:</p>
<p><img class="aligncenter size-full wp-image-2685" alt="List box drag highlight" src="http://delphihaven.files.wordpress.com/2012/12/list-box-drag-highlight.png?w=331&#038;h=277" width="331" height="277" /></p>
<p>Looking at the source, the reason stemmed from the AutoDrag property setter forceably setting EnableDragHighlight to True. Why? Who knows, but anyhow, where EnableDragHighlight is published by an ancestor class, TScrollBox, AllowDrag is published by TCustomListBox. Ergo, the persisted value of AllowDrag will be read back in after the persisted value of EnableDragHighlight, causing the former to override the latter. The fix is therefore to set the list box&#8217;s EnableDragHighlight property to False at runtime in (say) the form&#8217;s OnCreate handler:</p>
<pre class="brush: delphi; title: ; notranslate" title="">
procedure TForm1.FormCreate(Sender: TObject);
begin
  ListBox1.EnableDragHighlight := False;
end;
</pre>
<p>This just left getting rid of the grid column headers&#8217; default draggability. Since a FMX grid&#8217;s header is defined by its style, the place to tweak the settings of it is in a handler for the grid&#8217;s OnApplyStyleLookup event. In terms of what needed to be done there, initially I thought of EnableDragHighlight again, but that wouldn&#8217;t solve the problem of the header items being themselves draggable. I then realised that the columns themselves were child controls of the grid just as much as the header, and <em>they</em> didn&#8217;t have independent draggability (so to speak). The reason for that, it became clear, was because their HitTest properties are set to False by the grid. So, the fix for the header was just to set both the header and its own child control&#8217;s HitTest properties to False likewise:</p>
<pre class="brush: delphi; title: ; notranslate" title="">
procedure TForm1.Grid1ApplyStyleLookup(Sender: TObject);
var
  StyleObj: TFmxObject;
  ChildObj: TControl;
begin
  StyleObj := (Sender as TCustomGrid).FindStyleResource('header');
  if StyleObj is THeader then
  begin
    THeader(StyleObj).HitTest := False;
    for ChildObj in THeader(StyleObj).Controls do
      ChildObj.HitTest := False;
  end;
end;
</pre>
<p>This of course means the user cannot click on a header item. If you want to have that, assign the header items&#8217; OnClick handlers as desired, set their DragMode properties to TDragMode.dmManual, and their EnableDragHighlight properties to False:</p>
<pre class="brush: delphi; title: ; notranslate" title="">
procedure TForm1.Grid1ApplyStyleLookup(Sender: TObject);
var
  StyleObj: TFmxObject;
  ChildObj: TControl;
begin
  StyleObj := (Sender as TCustomGrid).FindStyleResource('header');
  if StyleObj is THeader then
  begin
    THeader(StyleObj).HitTest := False;
    for ChildObj in THeader(StyleObj).Controls do
    begin
      ChildObj.DragMode := TDragMode.dmManual;
      ChildObj.EnableDragHighlight := False;
      if ChildObj is THeaderItem then
        THeaderItem(ChildObj).OnClick := MyHeaderItemClick;
    end;
  end;
end;
</pre>
<p>(As an aside, you will frequently find the FMX source doing an Assigned check before using the &#8216;is&#8217; operator &#8211; if the above code were written by an FMX author or maintainer, you would therefore expect to see &#8216;if Assigned(StyleObj) and (StyleObj is THeader) then&#8217; rather than just &#8216;if StyleObj is THeader then&#8217;. This is completely unnecessary however, since the &#8216;is&#8217; operator checks for nil itself.)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[New Category: OffRoad #1 (the nicest mx/sx/enduro bikes of the net)]]></title>
<link>http://sttarz.wordpress.com/2012/12/09/new-category-offroad-1-the-nicest-mxsxenduro-bikes-of-the-net/</link>
<pubDate>Sun, 09 Dec 2012 17:06:37 +0000</pubDate>
<dc:creator>sttarz</dc:creator>
<guid>http://sttarz.wordpress.com/2012/12/09/new-category-offroad-1-the-nicest-mxsxenduro-bikes-of-the-net/</guid>
<description><![CDATA[]]></description>
<content:encoded><![CDATA[<p><a href="http://sttarz.wordpress.com/2012/12/09/new-category-offroad-1-the-nicest-mxsxenduro-bikes-of-the-net/1-2/#main" rel="attachment wp-att-1229"><img src="http://sttarz.files.wordpress.com/2012/12/1-2.jpg?w=640&#038;h=447" alt="1.2" width="640" height="447" class="alignnone size-medium wp-image-1229" /></a></p>
<p><a href="http://sttarz.wordpress.com/2012/12/09/new-category-offroad-1-the-nicest-mxsxenduro-bikes-of-the-net/attachment/1/#main" rel="attachment wp-att-1230"><img src="http://sttarz.files.wordpress.com/2012/12/1.jpg?w=640&#038;h=426" alt="1" width="640" height="426" class="alignnone size-medium wp-image-1230" /></a></p>
<p><a href="http://sttarz.wordpress.com/2012/12/09/new-category-offroad-1-the-nicest-mxsxenduro-bikes-of-the-net/0002dyb4/#main" rel="attachment wp-att-1231"><img src="http://sttarz.files.wordpress.com/2012/12/0002dyb4.jpg?w=640&#038;h=480" alt="0002dyb4" width="640" height="480" class="alignnone size-medium wp-image-1231" /></a></p>
<p><a href="http://sttarz.wordpress.com/2012/12/09/new-category-offroad-1-the-nicest-mxsxenduro-bikes-of-the-net/attachment/2/#main" rel="attachment wp-att-1232"><img src="http://sttarz.files.wordpress.com/2012/12/2.jpg?w=626&#038;h=480" alt="2" width="626" height="480" class="alignnone size-medium wp-image-1232" /></a></p>
<p><a href="http://sttarz.wordpress.com/2012/12/09/new-category-offroad-1-the-nicest-mxsxenduro-bikes-of-the-net/2-dungey-bike-1/#main" rel="attachment wp-att-1233"><img src="http://sttarz.files.wordpress.com/2012/12/2-dungey-bike-1.jpg?w=640&#038;h=426" alt="2-dungey-bike-1" width="640" height="426" class="alignnone size-medium wp-image-1233" /></a></p>
<p><a href="http://sttarz.wordpress.com/2012/12/09/new-category-offroad-1-the-nicest-mxsxenduro-bikes-of-the-net/attachment/4/#main" rel="attachment wp-att-1234"><img src="http://sttarz.files.wordpress.com/2012/12/4.jpg?w=640&#038;h=426" alt="4" width="640" height="426" class="alignnone size-medium wp-image-1234" /></a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Do Parametric and Direct Modeling Mix? (Part 2)  ]]></title>
<link>http://creo.ptc.com/2012/11/28/do-parametric-and-direct-modeling-mix-part-2/</link>
<pubDate>Wed, 28 Nov 2012 13:23:37 +0000</pubDate>
<dc:creator>Geoff Hedges</dc:creator>
<guid>http://creo.ptc.com/2012/11/28/do-parametric-and-direct-modeling-mix-part-2/</guid>
<description><![CDATA[Can you truly get the best of both parametric and direct modeling in one place? Part 1 of this serie]]></description>
<content:encoded><![CDATA[<p>Can you truly get the best of both parametric and direct modeling in one place? <a href="http://creo.ptc.com/2012/11/08/do-parametric-and-direct-modeling-mix-part-1/">Part 1</a> of this series detailed how PTC Creo Parametric with the Creo Flexible Modeling Extension blends both approaches to modeling in one environment, with a common data model.</p>
<p>We talked about how PTC Creo Flexible Modeling Extension can lead to less duplication, better preservation of design intent, and a flatter learning curve as you make the most of both parametric and direct modeling for your project.</p>
<p>Use the PTC Creo Flexible Modeling Extension when you want to:</p>
<ol>
<li>Explore more ideas during concept design.</li>
<li>Drive late-stage design changes.</li>
<li>Re-use legacy 3D design data.</li>
<li>Collaborate on a multi-CAD design.</li>
<li>Improve CAE &#38; FEA workflow.</li>
<li>Improve manufacturing workflow.</li>
</ol>
<p>Part 1 of this article explored the first three of these use cases. Here is how you might use the PTC Creo Flexible Modeling Extension for collaboration, CAE &#38; FEA workflow, and manufacturing workflow:</p>
<p><b>4. Collaborate on a Multi-CAD Design</b></p>
<p>The study “Working with Multi-CAD? Overcome the Engineering Collaboration Bottleneck” found that 82% of best-in-class product development firms use three or more CAD formats in their design process, and 42% use five or more.  Why? 52% report that supply chain/partners or customers used a variety of CAD tools, and 45% say they need all those CAD tools to deal with legacy data used for new designs.</p>
<p>Design collaboration on multi-CAD data presents two substantial challenges. CAD tools are often incompatible, and 3rd party CAD models are difficult to modify and incorporate when imported. If a model can&#8217;t be imported, it needs to be recreated &#8212; a painful and time-consuming process.</p>
<p>With the PTC Creo Flexible Modeling Extension, users can use 3rd party CAD files, regardless of source. Now you can add parametric design intent to imported data, so you can easily incorporate and edit CAD data from other systems.</p>
<p>See how PTC Creo supports the fast and easy collaboration on multi-CAD data, so that you don’t have to worry about original design intent:</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/TThStFxqYTA?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p><b>5. Improve CAE &#38; FEA Workflow</b></p>
<p>Product development demands frequent analysis of the digital prototype as the design evolves. Often, the digital prototype is simplified and de-featured for analysis. With the Creo Flexible Modeling Extension, anyone on the team can remove blends, small holes, faces, features, and other irrelevant geometry. You can even chop off geometry unrelated to the simulation or split models according to symmetry.</p>
<p>PTC Creo can automate simplification and de-featuring work, saving time and repetition during the analysis cycle so teams can freely and frequently update and validate designs with no redundant effort. With PTC Creo, you have the tools to prepare models for analysis without relying on the design engineer, and without requiring a parametric CAD expert. Easily simplify geometry like chamfers and rounds using direct modeling. Then you can run an analysis on the model with these design changes in any simulation environment, or seamlessly into PTC Creo Simulate.</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/iLL4XlQV6do?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p><b>6.  Improve Manufacturing Workflow</b></p>
<p>Obviously, manufacturing the design is important. Yet, often, the fully detailed model doesn’t reflect the different manufacturing representations required for production machining.  For example, the first stage of manufacturing the product may be the purchase of a blank part – such as a piece of metal used to form or machine further mechanical operations. Manufacturing engineers may well want to reflect the part through key stages like milling or drilling.</p>
<p>PTC Creo can automate this work, saving time and repetition during the manufacturing stage. With Creo, you have the tools to create a blank by removing features- without relying on specialists to do the work. Easily remove geometry like holes, or raise machined surfaces to create the blank or manufactured stage. Then you can easily create a manufacturing routine with these design changes in any manufacturing environment or seamlessly with PTC Creo manufacturing software.</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/gSLzSu_M0h0?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p>If you’d like to see what PTC Creo Parametric can do for you, try it free. <a href="http://www.ptc.com/product/creo/free-trial/download.htm">Just download the 30-day trial.</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[The Athlete Machine - Red Bull Kluge]]></title>
<link>http://sttarz.wordpress.com/2012/11/23/the-athlete-machine-red-bull-kluge/</link>
<pubDate>Fri, 23 Nov 2012 19:46:17 +0000</pubDate>
<dc:creator>sttarz</dc:creator>
<guid>http://sttarz.wordpress.com/2012/11/23/the-athlete-machine-red-bull-kluge/</guid>
<description><![CDATA[]]></description>
<content:encoded><![CDATA[<p><code><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/M0jmSsQ5ptw?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Jolene Van Vugt backflip]]></title>
<link>http://highheavenblog.wordpress.com/2012/11/19/jolene-van-vugt-backflip/</link>
<pubDate>Mon, 19 Nov 2012 15:11:22 +0000</pubDate>
<dc:creator>highheavenblog</dc:creator>
<guid>http://highheavenblog.wordpress.com/2012/11/19/jolene-van-vugt-backflip/</guid>
<description><![CDATA[Highlights from the Nitro Cirkus Live premiere show of the European tour in Stockholm last night!]]></description>
<content:encoded><![CDATA[<p><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/_k0GZSEnurE?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p>Highlights from the Nitro Cirkus Live premiere show of the European tour in Stockholm last night!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[The Athlete Machine - Red Bull Kluge ]]></title>
<link>http://marzeontheedge.com/2012/11/15/the-athlete-machine-red-bull-kluge/</link>
<pubDate>Thu, 15 Nov 2012 20:22:48 +0000</pubDate>
<dc:creator>Marze</dc:creator>
<guid>http://marzeontheedge.com/2012/11/15/the-athlete-machine-red-bull-kluge/</guid>
<description><![CDATA[If you, like me, are a lover of the Incredible Machine, you cannot miss this video. Red Bull at his]]></description>
<content:encoded><![CDATA[<p>If you, like me, are a lover of the Incredible Machine, you cannot miss this video. Red Bull at his maximum creativity has create the Kluge, The athlete machine! A mix of skate, bike trial, BMX,  FMX, trucks, cars,  parachuting, running, etc. in an Incredible Machine Style!<br />
Let&#8217;s have a look!</p>
<p>Enjoy<br />
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/M0jmSsQ5ptw?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[From the Our Space engine room……]]></title>
<link>http://blog.tepapa.govt.nz/2012/11/13/from-the-our-space-engine-room/</link>
<pubDate>Mon, 12 Nov 2012 20:46:07 +0000</pubDate>
<dc:creator>Te Papa</dc:creator>
<guid>http://blog.tepapa.govt.nz/2012/11/13/from-the-our-space-engine-room/</guid>
<description><![CDATA[Scrolling through the thousands of images you have sent us over the past few years there are certain]]></description>
<content:encoded><![CDATA[Scrolling through the thousands of images you have sent us over the past few years there are certain]]></content:encoded>
</item>
<item>
<title><![CDATA[Quick FMX tip - TBitmap.CopyFromBitmap is not synonymous with TBitmap.Assign]]></title>
<link>http://delphihaven.wordpress.com/2012/11/08/quick-fmx-tip-tbitmap-copyfrombitmap-is-not-synonymous-with-tbitmap-assign/</link>
<pubDate>Thu, 08 Nov 2012 19:34:09 +0000</pubDate>
<dc:creator>Chris Rolliston</dc:creator>
<guid>http://delphihaven.wordpress.com/2012/11/08/quick-fmx-tip-tbitmap-copyfrombitmap-is-not-synonymous-with-tbitmap-assign/</guid>
<description><![CDATA[Quick FireMonkey tip &#8211; if you are calling the CopyFromBitmap method of TBitmap and wondering w]]></description>
<content:encoded><![CDATA[<p>Quick FireMonkey tip &#8211; if you are calling the CopyFromBitmap method of TBitmap and wondering why it isn&#8217;t working (cf. the first issue reported <a href="http://qc.embarcadero.com/wc/qcmain.aspx?d=109802">here</a>), it&#8217;s probably because you are attempting to write to an empty bitmap. In other words, like the CopyRect method in the VCL, CopyFromBitmap does not resize the destination bitmap, so the latter needs to be big enough beforehand if you want all the source pixels to be copied over. Nonetheless, if you want to resize the destination bitmap as well, just call Assign rather than CopyFromBitmap:</p>
<pre class="brush: delphi; title: ; notranslate" title="">
DestImage.Bitmap.Assign(SourceBitmap);
</pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Not MTB, not Enduro, not DH, but DAMN COOL!!]]></title>
<link>http://mtbtrailtales.wordpress.com/2012/11/08/not-mtb-not-enduro-not-dh-but-damn-cool/</link>
<pubDate>Thu, 08 Nov 2012 15:48:14 +0000</pubDate>
<dc:creator>mtbtrailtales</dc:creator>
<guid>http://mtbtrailtales.wordpress.com/2012/11/08/not-mtb-not-enduro-not-dh-but-damn-cool/</guid>
<description><![CDATA[You know what? Some people are probably going to whine about this, but who cares? It&#8217;s not got]]></description>
<content:encoded><![CDATA[<p>You know what? Some people are probably going to whine about this, but who cares? It&#8217;s not got mountain bikes, downhill, enduro or even countryside in it! You know what, despite having none of the above (or safety gear either!), this is just damn good fun and great to watch.</p>
<p>Check out some totally irresponsible, very dangerous, almost certainly illegal downtown MX riding action with outrageous wheelies all over the shop in freeway traffic. </p>
<p>Love it!</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='560' height='315' src='http://www.youtube.com/embed/qNnrCKi4-js?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Do Parametric and Direct Modeling Mix? (Part 1)]]></title>
<link>http://creo.ptc.com/2012/11/08/do-parametric-and-direct-modeling-mix-part-1/</link>
<pubDate>Thu, 08 Nov 2012 15:24:50 +0000</pubDate>
<dc:creator>Geoff Hedges</dc:creator>
<guid>http://creo.ptc.com/2012/11/08/do-parametric-and-direct-modeling-mix-part-1/</guid>
<description><![CDATA[During product design, teams are often forced to compromise when it comes to using CAD software. Mos]]></description>
<content:encoded><![CDATA[<p>During product design, teams are often forced to compromise when it comes to using CAD software. Most users are limited to one 3D modeling paradigm – either parametric or direct – for all jobs. Recently, however, vendors have begun to offer CAD tools that they say provide both paradigms.</p>
<p>Unfortunately, these tools typically require you to switch between two different modes and sometimes even two different model representations, never truly combining the strengths of both modeling paradigms in one product design or model.</p>
<p>If you’ve tried to work in one of these environments, you might have concluded that the two work in parallel, but don’t truly integrate with one another.</p>
<p>PTC Creo changes all that. Designers can choose the right modeling approach for the design, all in one environment, with a common data model. The <a href="http://www.ptc.com/product/creo/flexible-modeling-extension/">PTC Creo Flexible Modeling Extension</a> adds direct modeling or editing of parametric designs to the familiar PTC Creo Parametric environment.</p>
<p>PTC Creo Flexible Modeling Extension offers many unique advantages as you work in one seamless tool:</p>
<ul>
<li>One common data model is maintained, tracking and synchronizing changes made using either a parametric or direct modeling approach. The system never requires you to duplicate design data or design changes.</li>
<li>Design intent can be protected and preserved in one model.</li>
<li>One common user interface means fast ramp up. You’ll never have to switch between modes only to find limited capabilities in one mode versus another.</li>
<li>Design changes made using a direct modeling approach can be incorporated by revising the parametric design intent.</li>
</ul>
<p>Those advantages help throughout the product design process. Use the PTC Creo Flexible Modeling Extension when you want to:</p>
<ol>
<li>Explore more ideas during concept design.</li>
<li>Drive late-stage design changes.</li>
<li>Re-use legacy 3D design data.</li>
<li>Collaborate on a multi-CAD design.</li>
<li>Improve CAE &#38; FEA workflow.</li>
<li>Improve manufacturing workflow.</li>
</ol>
<p>In part 1 of this article, I’ll look at the first three of these:</p>
<p><strong>1.  Concept Design</strong></p>
<p>During concept design, you want to convey a visual representation of product ideas or concepts, create as many design concepts as possible, and evaluate ideas to find the concept that best captures specified criteria and aesthetic requirements.  By combining modeling paradigms, you can build on existing designs or create new ones, with speed, flexibility, and ease of use.</p>
<p>See how PTC Creo supports the quick creation and ideation of geometry from existing parametric designs, so that you don’t have to worry about original design intent. But at the same time, it tracks and keeps all your changes in sync with the parametric model.</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/6KBbYkDRH5A?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p><strong>2.  Late-Stage Design Changes</strong></p>
<p>Accommodating late-stage design changes supports design innovation, but those changes are often   radical and unexpected. And typically, they need to be rapidly implemented.</p>
<p>By enabling direct editing of parametric models, you can implement late changes quickly and avoid any design intent that limits those changes.  Again, because those changes are made using a direct editing approach, they are tracked and kept in synch with the parametric model.</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/Wlw0PwAcuBQ?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p><strong>3. Legacy CAD Data</strong></p>
<p>Many companies keep 3D data authored on outdated software. Unfortunately, traditional CAD solutions do easily make changes to non-native CAD data, with 3D CAD data often treated as “dumb.” That makes legacy data  difficult to maintain, edit, and repurpose.</p>
<p>With direct modeling, you can use legacy data in new product revisions and even new product. You can repurpose and modify it easily, while combining it with other models created in a parametric or direct modeling approach.</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/TThStFxqYTA?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p>Watch this space for the second part of this article, when I’ll explore multi-CAD design, CAE &#38; FEA workflow, and manufacturing workflow.</p>
<p>In the meantime, you can try the parametric and direct modeling in PTC Creo Parametric now. <a href="http://www.ptc.com/product/creo/free-trial/download.htm">Just download the 30-day trial</a>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[FMX tip - default style lookup names]]></title>
<link>http://delphihaven.wordpress.com/2012/11/08/fmx-tip-default-style-lookup-names/</link>
<pubDate>Thu, 08 Nov 2012 01:54:36 +0000</pubDate>
<dc:creator>Chris Rolliston</dc:creator>
<guid>http://delphihaven.wordpress.com/2012/11/08/fmx-tip-default-style-lookup-names/</guid>
<description><![CDATA[This one was driving me up the wall &#8211; I&#8217;m working on (or rather trying to work on) a Fir]]></description>
<content:encoded><![CDATA[<p>This one was driving me up the wall &#8211; I&#8217;m working on (or rather trying to work on) a FireMonkey application, one form in which loads a tree view dynamically. Since each node concerns a certain sort of data object, I wrote a small custom descendant of TTreeViewItem to add a property of the relevant type and a couple of helper methods. So far so good. After that I did a bit of refactoring, separating out the descendant into a custom base class and two child classes, and adding bits and bobs. Following this I reran the program&#8230; and found the tree view text had disappeared. Argh!!! Progressively commenting out the new code got me nowhere, until tracing back my step of splitting out the custom descendant into three got me the answer &#8211; the now-grandchildren of TTreeViewItem were style-less!</p>
<p>If you check out the FMX source, you&#8217;ll see that the default style lookup for an object is its class name, minus the leading &#8216;T&#8217; and with a &#8216;style&#8217; prefix. This can be customised if you wish &#8211; in the form designer, it&#8217;s the StyleLookup property that gets set when you choose &#8216;Custom Style&#8217; from the designer&#8217;s popup menu. If you customise it with the name of a style element that is not part of the active style (e.g., you used the &#8216;Custom Style&#8217; command in the designer, only to delete the generated style book afterwards), then the default lookup based on the class name is used; and if <em>that</em> doesn&#8217;t name a valid style element, then the default style lookup for the <em>parent</em> class is used. If that still results in failure, then the control is just left style-less, and therefore empty at runtime unless the appearance is hardcoded (which is bad form for a FMX control). In my view, if you&#8217;re going to start walking up the class hierarchy for a valid style lookup, then you might as well continue to walk until you find one. In fact, more strongly, it surely breaks basic OOP principles for the act of merely splitting out a base class from a class to have the effect of altering (and in this case, breaking) its behaviour.</p>
<p>Regardless, my next step was to assign the StyleLookup property to &#8216;treeviewitemstyle&#8217; in my custom base class&#8217; constructor. This fixed the original problem of text not appearing&#8230; but caused a new issue of check boxes showing even though the tree view&#8217;s ShowCheckboxes property remained False! Tracing into the code, I found assigning the StyleLookup property causes a control to actually load its style right there and then; in my custom class&#8217; case, this meant the style was being loaded before the control&#8217;s parentage had been established, which was undoubtedly too early (while the default value of the ShowCheckboxes property is False, the default visibility of the check box element of a tree view item style is True). Nonetheless, the fix was easy: assign not the StyleLookup property, but the FStyleLookup protected field:</p>
<pre class="brush: delphi; title: ; notranslate" title="">
type
  TMyNodeBase = class(TTreeViewItem)
  public
    constructor Create(const AOwner: TComponent; const AData: TDataObject); reintroduce;
  end;

  TMyRedNode = class(TMyNodeBase)
  //...
  end;

  TMyBlueNode = class(TMyNodeBase)
  //...
  end;

constructor TMyNodeBase.Create(const AOwner: TComponent; const AData: TDataObject);
begin
  inherited Create(AOwner);
  FStyleLookup := 'treeviewitemstyle'; //prevent descendants being style-less
  FData := AData;
end;
</pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Three Dimensional FireMonkey Component Design ]]></title>
<link>http://members.adug.org.au/2012/11/05/three-dimensional-firemonkey-component-design/</link>
<pubDate>Mon, 05 Nov 2012 11:51:04 +0000</pubDate>
<dc:creator>Roger</dc:creator>
<guid>http://members.adug.org.au/2012/11/05/three-dimensional-firemonkey-component-design/</guid>
<description><![CDATA[FireMonkey provides access to three dimensional object creation and manipulation. While it is fun to]]></description>
<content:encoded><![CDATA[FireMonkey provides access to three dimensional object creation and manipulation. While it is fun to]]></content:encoded>
</item>

</channel>
</rss>
