Re: [perl-win32-gui-users] WG: flickering static-DC

2009-03-13 Thread Raphael Stoeckli
'}{'mem_object'} -> Line(10,$i,250,$i);} > for (my $i = 10;$i < 280; $i+=24) # Create x-grid > {$DC{'dc'}{'mem_object'} -> Line($i,10,$i,260);} > > $DC{'dc'}{'mem_object'} -> SelectObject($DC{'pen'}); > $DC{'

[perl-win32-gui-users] WG: flickering static-DC

2009-03-13 Thread Raphael Stoeckli
= 10;$i < 280; $i+=24) # Create x-grid {$DC{'dc'}{'mem_object'} -> Line($i,10,$i,260);} $DC{'dc'}{'mem_object'} -> SelectObject($DC{'pen'}); $DC{'dc'}{'mem_object'} -> BeginPath(); $DC{'dc'}{'mem_objec

Re: [perl-win32-gui-users] flickering static-DC

2009-03-10 Thread Raphael Stoeckli
many plotting statements for drawing lines, polygons, points, etc Raphael Stoeckli wrote: > > Hi @ all > > I try to plot a static DC-Object (means: the graphic is calculated > uniquely > at runtime, depending of several parameters, and does not change while > displaying the

Re: [perl-win32-gui-users] flickering static-DC

2009-03-09 Thread Raphael Stoeckli
{'dc'}{'object'} -> Validate(); # seems to be no need for this (in that > case?) > } > - > > Flickering is reduced to the times, when an other window moves over the > DC-window, (or the DC-window is resizing). But in my case

Re: [perl-win32-gui-users] flickering static-DC

2009-03-09 Thread Raphael Stoeckli
g). But in my case that's not very annoying. What I'm not getting at the moment is the thing with Validate() of the DC (seems nothing to do), or if there is a more efficient way to draw the DC. Nevertheless I hope, I can help other people with the example above. Greetings, Raphael

[perl-win32-gui-users] flickering static-DC

2009-03-08 Thread Raphael Stoeckli
Hi @ all I try to plot a static DC-Object (means: the graphic is calculated uniquely at runtime, depending of several parameters, and does not change while displaying the window) in a window. The problem is that this object continuously needs to be redrawn, because it vanishes during moving the wi

Re: [perl-win32-gui-users] SOLUTION --> Newlines disappearing inrichedit(unicode-content)

2008-11-08 Thread Raphael Stoeckli
lines (\par\r\n) return $rtf_prolog . $input[0] . '}'; # Returns the string as RTF } So if you want so get the text of the field, use: $SAVE = &GetText($window,'richedit_field'); And to set it back, use: $window -> richdit_field -> Text(SetText($SAVE)); Regards, Raphael

Re: [perl-win32-gui-users] SOLUTION --> Newlines disappearing in richedit(unicode-content)

2008-11-06 Thread Raphael Stoeckli
anks to all. Regards, Raphael On Wed 05/11/08 22:49 , "Octavian Rasnita" [EMAIL PROTECTED] sent: > If I remember well, you need to use > \par > in the RTF document for specifying a new line. > > Find and read the RTF specifications. It will help you to do more other > t

[perl-win32-gui-users] Newlines disappearing in richedit (unicode-content)

2008-11-05 Thread Raphael Stoeckli
Hi @ all I’m working on an program, that can handle Unicode-text in richedit-fields. The fields sets and gets the text using some modifications of the richedit-field. These mods are also from this mailinglist. The problem is, that Newlines (\r\n) in strings (whether if it’s ASCII or Unicode) s