gettingstarted
[Top] [All Lists]

show-hide controls and shifting other controls down-up

To: realbasic-nug at lists dot realsoftware dot com
Subject: show-hide controls and shifting other controls down-up
From: Koen van Hees <koen at verspeelt dot com>
Date: Thu, 27 Jul 2006 16:39:37 +0200
Cc:
Delivered-to: listarchive at realsoftware dot com
Delivered-to: gettingstarted at lists dot realsoftware dot com
Resent-date: Thu, 27 Jul 2006 19:54:09 +0200
Resent-from: Koen van Hees <koen at verspeelt dot com>
Resent-message-id: <f1eac66524febe2b98723f21ecaeb80e at verspeelt dot com>
Resent-to: gettingstarted at lists dot realsoftware dot com
Hello,

I've painted myself in a corner.

Here's the situation in brief:
I've got 6 identical ContainerControls embedded in a Canvas that show or hide controls when a user clicks a DisclosureTriangle.
Like this:
 |> container 1
 |> container 2
 |> container 3
....
They show or hide their controls by changing their Canvas.Height.
---
  if DisclosureTriangleArtDetail.Value= False then
    CanvasArtDetail.Height = 20
  Else
    CanvasArtDetail.height = 500
  end if
---

And... of course, when I "show" for instance container 1, it overlaps all the other containers.

I've spend the last couple of days trying to make a method that changes all the containers' Top values whenever something happens, but I keep struggling with two problems: 1) what is an appropriate trigger for such a method? I get errors when I try to trigger the method from within the container's DisclosureTriangle (which makes sense I guess); 2) more to the point, how can I get a method that does predictable things in all possible cases - and for any number of containers, because now it's 6, but it could become 7...

Some details, maybe relevant:
- the containers themselves are embedded in the canvas of another container (container with tabpanel cloned by user action contains container with the 6 showhide containers). This container extravaganza because I want to be able to clone these containers at runtime as well, based on user action. - right now, all containers are placed in the IDE, not by code, but are cloned at runtime based on user action (creating a new tab creates the containers).

I imagine that this must be a very common problem, with a well-known "simple" (as in simple when you know it) solution, but I've looked wide and far to no avail. BTW, very new to programming and RB, so maybe I'm not looking in the right places.

Cheers,

Koen van Hees
Les Allées de St. Genis
299 Allée Diderot
01630 St Genis Pouilly
France
tel: +33 (0)4 50 42 08 78

_______________________________________________
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>


From  Thu 27 Jul 2006 14:59:27 EDT
Return-Path: <gettingstarted-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id 69AA58C0970; Thu, 27 Jul 2006 11:59:52 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on realxserve.local
X-Spam-Level:
X-Spam-Status: No, score=-1.6 required=4.5 tests=AWL,BAYES_00,NO_REAL_NAME
        autolearn=no version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
        by xmail.realsoftware.com (Postfix) with ESMTP id 3D0418C0969;
        Thu, 27 Jul 2006 11:59:50 -0700 (PDT)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id BC53913D02B9; Thu, 27 Jul 2006 13:59:40 -0500 (CDT)
X-Original-To: gettingstarted at lists dot realsoftware dot com
Delivered-To: gettingstarted at lists dot realsoftware dot com
Received: from imo-d21.mx.aol.com (imo-d21.mx.aol.com [205.188.144.207])
        by lists.realsoftware.com (Postfix) with ESMTP id D000613D02A9
        for <gettingstarted at lists dot realsoftware dot com>;
        Thu, 27 Jul 2006 13:59:31 -0500 (CDT)
Received: from GAmoore at aol dot com
        by imo-d21.mx.aol.com (mail_out_v38_r7.6.) id w.360.9292e58 (14467)
        for <gettingstarted at lists dot realsoftware dot com>;
        Thu, 27 Jul 2006 14:59:28 -0400 (EDT)
From: GAmoore at aol dot com
Message-ID: <360 dot 9292e58 dot 31fa670f at aol dot com>
Date: Thu, 27 Jul 2006 14:59:27 EDT
To: gettingstarted at lists dot realsoftware dot com
MIME-Version: 1.0
X-Mailer: Thunderbird - Mac OS X sub 310
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.2
Subject: popup hierachy
X-BeenThere: gettingstarted at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Sender: gettingstarted-bounces at lists dot realsoftware dot com
Errors-To: gettingstarted-bounces at lists dot realsoftware dot com

I have made hierarchical contextual menus before by appending submenus.
However, is there a way to do this with a standard popup menu? Instead of just
adding rows to popup control on a window, I want to add rows and add submenus.
However there is no APPEND for popup controls. Any ideas?
_______________________________________________
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>
  • show-hide controls and shifting other controls down-up, Koen van Hees <=