New topic: 

problem with a composite window having a panel attached

<http://forums.realsoftware.com/viewtopic.php?t=25171>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       aziztnani           Post subject: problem with a composite window 
having a panel attachedPosted: Mon Nov 10, 2008 8:31 pm                        
Joined: Thu Mar 13, 2008 8:50 am
Posts: 4              I have a problem here, seems that it is an RB bug

I'm working on RB 2008R4.2, Mac OS 10.5.5

This problem is easily reproducible, I have 2 windows in the project, the first 
window1 has the composite parameter to true, the second window2 is a panel of 
the first and is opened in the open event of the first (Window2.ShowWithin 
self).

On the first window, I have a button with this action code
  dim f as folderitem
  Dim dlg as OpenDialog
  dlg=New OpenDialog
  
  dlg.Filter="image/jpeg"
  
  f=dlg.ShowModalWithin(self)
  if f<>nil then
  p=f.OpenAsPicture
  Canvas1.Refresh
  end if

p is a picture declared in window1
and canvas1 is a canvas in window1 that displays the picture with this code in 
its paint event

g.DrawPicture p, 0, 0

if you run this example, you'll notice that the picture won't display 
completely, it will be truncated, unless you set the composite parameter of 
window1 to false.

Can anyone help me on this or let anyone from Realsoftware give me a solution 
for this.   
                            Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     

-- 
Over 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to