Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

On the Internet, nobody knows you're a dog. -- Cartoon caption


devel / comp.lang.clipper.visual-objects / Can anyone tell me why the code below doesn't work?

SubjectAuthor
* Can anyone tell me why the code below doesn't work?David Linda
+- Re: Can anyone tell me why the code below doesn't work?JohnMartens
+- Re: Can anyone tell me why the code below doesn't work?datas...@gmail.com
+- Re: Can anyone tell me why the code below doesn't work?dlzc
`- Re: Can anyone tell me why the code below doesn't work?Jamal

1
Can anyone tell me why the code below doesn't work?

<1f2106f3-2ce2-458b-b22f-70e12b0f34afn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1207&group=comp.lang.clipper.visual-objects#1207

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a0c:ca01:0:b0:4c8:1ded:b016 with SMTP id c1-20020a0cca01000000b004c81dedb016mr3133631qvk.40.1671127279972;
Thu, 15 Dec 2022 10:01:19 -0800 (PST)
X-Received: by 2002:a0d:f207:0:b0:3c3:ed97:3ea3 with SMTP id
b7-20020a0df207000000b003c3ed973ea3mr2449850ywf.198.1671127279752; Thu, 15
Dec 2022 10:01:19 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Thu, 15 Dec 2022 10:01:19 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=2601:8b:8402:5ab0:489d:bd03:60fa:ab59;
posting-account=sU18rAoAAABkmMxWPcRa-aD_FCz6Y1Ix
NNTP-Posting-Host: 2601:8b:8402:5ab0:489d:bd03:60fa:ab59
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1f2106f3-2ce2-458b-b22f-70e12b0f34afn@googlegroups.com>
Subject: Can anyone tell me why the code below doesn't work?
From: dlinda2011@gmail.com (David Linda)
Injection-Date: Thu, 15 Dec 2022 18:01:19 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1377
 by: David Linda - Thu, 15 Dec 2022 18:01 UTC

I placed the code below in the activate event of a datawindow and I could see no listbox. Then I put the code in the click event of a pushbutton and still no listbox.

local oDim := Dimension {0,0,200,200}
local oList := ListBox{self, 99, Point{10,10},oDim}

oList:Show(SHOWNORMAL)

Thanks,

Dsvid

Re: Can anyone tell me why the code below doesn't work?

<0e1b58a1-28a1-db66-2c31-9211f5886877@tennishulp.info>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1208&group=comp.lang.clipper.visual-objects#1208

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: martens@tennishulp.info (JohnMartens)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Can anyone tell me why the code below doesn't work?
Date: Thu, 15 Dec 2022 20:11:22 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <0e1b58a1-28a1-db66-2c31-9211f5886877@tennishulp.info>
References: <1f2106f3-2ce2-458b-b22f-70e12b0f34afn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="5e3d552096e8f35a19b20bba80695437";
logging-data="3316843"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/QaMsHNOxsP04JhbvCvDTeLmgVZwnMTt4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.0
Cancel-Lock: sha1:LVrsB5Df23FhAxAORQ5wDbyra3M=
Content-Language: nl
In-Reply-To: <1f2106f3-2ce2-458b-b22f-70e12b0f34afn@googlegroups.com>
 by: JohnMartens - Thu, 15 Dec 2022 19:11 UTC

I've got no idea why it did not work.

Is it possible to put the listview on the data window with the Window
designer, hide is in the postinit and show() it in the case of the event ?

John

Op 15-12-2022 om 19:01 schreef David Linda:
> I placed the code below in the activate event of a datawindow and I could see no listbox. Then I put the code in the click event of a pushbutton and still no listbox.
>
> local oDim := Dimension {0,0,200,200}
> local oList := ListBox{self, 99, Point{10,10},oDim}
>
> oList:Show(SHOWNORMAL)
>
> Thanks,
>
> Dsvid
>
>

Re: Can anyone tell me why the code below doesn't work?

<ceff6f3c-3ed6-4c8f-b0f9-26a8c4b8ccd9n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1209&group=comp.lang.clipper.visual-objects#1209

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ac8:7382:0:b0:3a8:2e9f:6ae9 with SMTP id t2-20020ac87382000000b003a82e9f6ae9mr178861qtp.293.1671134673575;
Thu, 15 Dec 2022 12:04:33 -0800 (PST)
X-Received: by 2002:a81:83d6:0:b0:40c:9a15:591e with SMTP id
t205-20020a8183d6000000b0040c9a15591emr3175487ywf.117.1671134673386; Thu, 15
Dec 2022 12:04:33 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Thu, 15 Dec 2022 12:04:33 -0800 (PST)
In-Reply-To: <1f2106f3-2ce2-458b-b22f-70e12b0f34afn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=212.5.201.66; posting-account=HfTUEAoAAADKxHQhCpm-taIGfNtFhfLz
NNTP-Posting-Host: 212.5.201.66
References: <1f2106f3-2ce2-458b-b22f-70e12b0f34afn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ceff6f3c-3ed6-4c8f-b0f9-26a8c4b8ccd9n@googlegroups.com>
Subject: Re: Can anyone tell me why the code below doesn't work?
From: datasoftbj@gmail.com (datas...@gmail.com)
Injection-Date: Thu, 15 Dec 2022 20:04:33 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1757
 by: datas...@gmail.com - Thu, 15 Dec 2022 20:04 UTC

try
local oDim := Dimension {200,200}

J.S

Dňa štvrtok 15. decembra 2022 o 19:01:20 UTC+1 používateľ dlind...@gmail.com napísal:
> I placed the code below in the activate event of a datawindow and I could see no listbox. Then I put the code in the click event of a pushbutton and still no listbox.
>
> local oDim := Dimension {0,0,200,200}
> local oList := ListBox{self, 99, Point{10,10},oDim}
>
> oList:Show(SHOWNORMAL)
>
> Thanks,
>
> Dsvid

Re: Can anyone tell me why the code below doesn't work?

<2ee16d00-9ca1-4d83-88cf-ba1ce824cc7en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1210&group=comp.lang.clipper.visual-objects#1210

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:678:b0:6ff:cbda:a128 with SMTP id a24-20020a05620a067800b006ffcbdaa128mr452081qkh.697.1671207255419;
Fri, 16 Dec 2022 08:14:15 -0800 (PST)
X-Received: by 2002:a81:4b05:0:b0:38d:e8f4:c8ba with SMTP id
y5-20020a814b05000000b0038de8f4c8bamr27512878ywa.159.1671207255267; Fri, 16
Dec 2022 08:14:15 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Fri, 16 Dec 2022 08:14:14 -0800 (PST)
In-Reply-To: <1f2106f3-2ce2-458b-b22f-70e12b0f34afn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=68.107.209.13; posting-account=7bF0GwoAAABMFHX6V4fON4-1F6LFJ834
NNTP-Posting-Host: 68.107.209.13
References: <1f2106f3-2ce2-458b-b22f-70e12b0f34afn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2ee16d00-9ca1-4d83-88cf-ba1ce824cc7en@googlegroups.com>
Subject: Re: Can anyone tell me why the code below doesn't work?
From: dlzc1@cox.net (dlzc)
Injection-Date: Fri, 16 Dec 2022 16:14:15 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1668
 by: dlzc - Fri, 16 Dec 2022 16:14 UTC

On Thursday, December 15, 2022 at 11:01:20 AM UTC-7, dlind...@gmail.com wrote:
> I placed the code below in the activate event of a datawindow
> and I could see no listbox. Then I put the code in the click event
> of a pushbutton and still no listbox.
>
> local oDim := Dimension {0,0,200,200}

Illegal index, don't believe you can have "0" as an array index. {1,1,200,200} might work, or at least not throw an error.

> local oList := ListBox{self, 99, Point{10,10},oDim}
>
> oList:Show(SHOWNORMAL)

Re: Can anyone tell me why the code below doesn't work?

<tnim59$1d4d$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1211&group=comp.lang.clipper.visual-objects#1211

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!aioe.org!usMzckGswq/a27BPojtwGg.user.46.165.242.75.POSTED!not-for-mail
From: nospam@example.com (Jamal)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: Can anyone tell me why the code below doesn't work?
Date: Fri, 16 Dec 2022 15:58:17 -0500
Organization: Aioe.org NNTP Server
Message-ID: <tnim59$1d4d$1@gioia.aioe.org>
References: <1f2106f3-2ce2-458b-b22f-70e12b0f34afn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="46221"; posting-host="usMzckGswq/a27BPojtwGg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Jamal - Fri, 16 Dec 2022 20:58 UTC

David,

The problem is that you are not using the Dimension class correctly.
This class has only 2 arguments, not 4. Your passing 0 for nWidth and
nHeight for the first two arguments, effectively making the ListBox
control invisible:

Here is the class definition
Dimension{[<nWidth>], [<nHeight>]}

So, change your code to:

local oDim := Dimension {200,200}
local oList := ListBox{self, 99, Point{10,10}, oDim}

oList:Show(SHOWNORMAL)

IMPORTANT: you are declaring a local oList variable. This should be a
PROTECT oList as ListBox at the window class level so can access it
later on.

Jamal

On 12/15/2022 1:01 PM, David Linda wrote:
> I placed the code below in the activate event of a datawindow and I could see no listbox. Then I put the code in the click event of a pushbutton and still no listbox.
>
> local oDim := Dimension {0,0,200,200}
> local oList := ListBox{self, 99, Point{10,10},oDim}
>
> oList:Show(SHOWNORMAL)
>
> Thanks,
>
> Dsvid
>
>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor