realbasic-nug
[Top] [All Lists]

Creating a custom control with a resize event

To: realbasic-nug at lists dot realsoftware dot com
Subject: Creating a custom control with a resize event
From: John Ponsano <capnbishop at yahoo dot com>
Date: Fri, 30 Sep 2005 01:54:17 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:Mime-Version:Content-Transfer-Encoding:Message-Id:Content-Type:To:From:Subject:Date:X-Mailer; b=eF5cZ1OuU0DxLJzNTVJ0e58P5GYwmSimc1Q2SfnQwL3iD8MEC+gQO02B6ggJlOn4f5VoRScgz2bqdG2YY6GB/+aerJEFsW8sUrPIk3+hOXME/cSGbUsLtFo4QlEUtK4L6xtGaVHDOx+Ba5FUL5yVBs8flqn7ZuAtT3QrAYKRzl4= ;
I need to create a custom control that is aware if its bounds, or even position, has been changed as soon as it happens.

Specifically this is for an OpenGL viewport. The control needs to know this so that the display can be updated appropriately.

The obvious solution would be to use a subclass of the canvas control and simply respond to the paint event. However the canvas control seems awfully specialized for something like this, and I would like it to look cleaner. Besides I've using a canvas and I have reason to believe that it is causing problems in RB05.

A container control would probably work, but I won't be able to afford the professional version for some time, and it would hinder portability for open sourcing.

The only other option I can figure would be to write a plugin, which I'd rather not.

Other than these three, are there any other options?

Thanks,
    - John

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

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

<Prev in Thread] Current Thread [Next in Thread>
  • Creating a custom control with a resize event, John Ponsano <=