logo       

Re: Change window.frame for Mac and Win 32: msg#02950

lang.realbasic.user

Subject: Re: Change window.frame for Mac and Win 32

Yes I understand now. Unfortunately this what I have already done with one of my windows and was looking for a better way than duplicating the other 10 just to set a silly frame property. Hopefully these windows will not add too much to the project.

It sure would be nice if you could chose a different frame value for different targets.

Thanks,
Drew

On Jan 30, 2004, at 5:15 AM, Thomas Reed wrote:

I know this is probably a very simple answer but after I add the frame property to the new window class how do I set it to a value without using the open event?

I'm not sure I understand. The frame property is already present in the Window class, it wouldn't make sense to add it again. And you *can't* set the value in the Open event, or anywhere else in code. The window's frame can only be set from the Properties window.

I think what Charles was suggesting is that you set up two different windows, one with one frame and one with another. If you choose this approach, you may want to think about subclassing both windows from your own window subclass, so they can share as much code as possible. Unfortunately, you'll still have to have duplicated controls in both windows, along with any code in those controls' events.
--

-Thomas

Personal web page: http://homepage.mac.com/thomasareed/
My shareware: http://www.bitjuggler.com/
REALbasic page: http://www.bitjuggler.com/extra/

There are 10 kinds of people in the world -- those who understand binary
numbers and those who don't.

- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>




- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise