🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual.misc
Article #421

Control creation

#421
From: Lukas Casar
Date: Tue, 16 Sep 1997 00:00
28 lines
2204 bytes
Hello everyone, I've got serious problems in control creation...

1) How to write to runtime-read-only properties of control I'm using as
the base of my new control.
   I need to create my own control based on standard ListView. ListView
has for example 'HideSelection' property, which is read-only in runtime.
But when I'm creating own control based on ListView, this ListView is in
'runtime' mode while my new control is in design-time in VB development
environment. It means that I can't change this property of ListView in
design-time of my new control, because that ListView in already in
runtime mode. How to solve this ?

2) Problem with PropBag (Property Bag). I need to define own properties
for each column in original ListView (BO property bounding and other new
features). In fact this requires to store a collection or an array to
the PropBag. But when I tried to use collection, it displayed 'System
error - Such interface not supported' message after WriteProperties. So
I tried to use an array, but I wasn't able to read it then by
ReadProperties, because it isn't possible to write something like
MyArray=PropBag.ReadProperties("MyArray") - you can't assign a array by
"=".

Thanks for any advice
   Lukas Casar


PS: Please reply to casar@integia.cz, I don't read news often...
Technical Details
Message-ID: <341E897E.3749@integia.cz>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c949,56c43aebb403b64c
X-Google-Attributes: gid10c949,public
X-Google-Thread: 113d8f,56c43aebb403b64c
X-Google-Attributes: gid113d8f,public
X-Google-Thread: 10b213,56c43aebb403b64c
X-Google-Attributes: gid10b213,public
X-Google-Thread: 110e3b,56c43aebb403b64c
X-Google-Attributes: gid110e3b,public
X-Google-Thread: 108062,56c43aebb403b64c
X-Google-Attributes: gid108062,public
X-Google-Thread: f645d,56c43aebb403b64c
X-Google-Attributes: gidf645d,public
From: Lukas Casar <casar@integia.cz>
Subject: Control creation
Date: 1997/09/16
Message-ID: <341E897E.3749@integia.cz>
X-Deja-AN: 272952503
Organization: Integia s.r.o.
Newsgroups: comp.lang.basic.visual.misc,comp.lang.basic.misc,comp.lang.basic.visual,cz.comp.lang.basic.visual,microsoft.public.vb.controls,microsoft.public.vb.controls.creation