472,971 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,971 software developers and data experts.

Making a ListBox of CheckBoxes ???

http://archive.dojotoolkit.org/night...structure.html

I would like to completely understand how GUI controls such as this
one are constructed. In the ideal case I would like to see all of the
source code for a complete working example of a ListBox of CheckBoxes.

Aug 4 '08 #1
8 5979
On 4 Aug, 14:43, PeteOlcott <PeteOlc...@gmail.comwrote:
*http://archive.dojotoolkit.org/night...x/grid/tests/t....

I would like to completely understand how GUI controls such as this
one are constructed. In the ideal case I would like to see all of the
source code for a complete working example of a ListBox of CheckBoxes.
So feel free to view the source and work through the programming
steps.

I don't understand why you othered to tell us this?
Aug 4 '08 #2
On Aug 4, 8:58*am, Captain Paralytic <paul_laut...@yahoo.comwrote:
On 4 Aug, 14:43, PeteOlcott <PeteOlc...@gmail.comwrote:
*http://archive.dojotoolkit.org/night...x/grid/tests/t...
I would like to completely understand how GUI controls such as this
one are constructed. In the ideal case I would like to see all of the
source code for a complete working example of a ListBox of CheckBoxes.

So feel free to view the source and work through the programming
steps.

I don't understand why you othered to tell us this?
(1) I don't know how to find the source for things such as:
dojo.require("dojox.grid._Grid");
dojo.require("dojo.parser");

(2) It was explained to me that this source is very likely convolulted
with many other levels of include files, most aspects of which are not
directly relevant to the simple task of including CheckBoxes in a
ListBox.
Aug 4 '08 #3
On Aug 4, 4:35 pm, PeteOlcott wrote:
On Aug 4, 8:58 am, Captain Paralytic wrote:
>On 4 Aug, 14:43, PeteOlcott wrote:
<snip>
>>I would like to completely understand how GUI controls such
as this one are constructed. In the ideal case I would like
to see all of the source code for a complete working example
of a ListBox of CheckBoxes.
>So feel free to view the source and work through the
programming steps.
>I don't understand why you othered to tell us this?

(1) I don't know how to find the source for things such as:
dojo.require("dojox.grid._Grid");
dojo.require("dojo.parser");
Understanding what those methods do would probably provide sufficient
information. Other options include clearing your browser's cache,
downloading the page and then looking at what is in the cache (it
should then be everything associated with the page including all JS
files), or using a web debugging proxy (such as Charles or Fiddler) to
record the HTTP traffic associated with the loading of the web page.

<URL: http:///www.xk72.com/charles >
(2) It was explained to me that this source is very likely
convolulted with many other levels of include files,
Absolutely. Even if you knew what you were looking for tracing the
details of that specific application through the code for something as
massive as dojo would be troublesome.
most aspects of which are not directly relevant to the
simple task of including CheckBoxes in a ListBox.
That is assuming the task is simple. It is certainly sounds relative
simple in comparison to what the URL you referred to must be getting
up to but as most references to 'ListBox' in the context of HTML web
page mean the various forms of the HTML SELECT element, and it is
impossible to put an <INPUT type="checkbox"element inside a SELECT
element, the implied requirement is impossible. In reality you mean
that you want some sort of outcome in which checkboxes are presented
in some specific way, and possibly an associated behaviour from those
checkboxes, but you might have to explain more before standing a
chance of getting any closer to that outcome.
Aug 4 '08 #4
PeteOlcott wrote:
On Aug 4, 8:58 am, Captain Paralytic <paul_laut...@yahoo.comwrote:
>On 4 Aug, 14:43, PeteOlcott <PeteOlc...@gmail.comwrote:
>> http://archive.dojotoolkit.org/night...x/grid/tests/t...
I would like to completely understand how GUI controls such as this
one are constructed. In the ideal case I would like to see all of the
source code for a complete working example of a ListBox of CheckBoxes.
So feel free to view the source and work through the programming
steps.

I don't understand why you othered to tell us this?

(1) I don't know how to find the source for things such as:
dojo.require("dojox.grid._Grid");
dojo.require("dojo.parser");
Poor darling. That does not bode well for your being successful in this
matter. Start with reading this newsgroup and its FAQ, learning (about)
the underlying programming language(s) and how to debug them:

<http://jibbering.com/faq/>
(2) It was explained to me that this source is very likely convolulted
with many other levels of include files, most aspects of which are not
directly relevant to the simple task of including CheckBoxes in a
ListBox.
Comment the "include files" out, from bottom to top. If what you want to
achieve still works as supposed (without and error message), they are
unnecessary in the tested environment. (That's simple, isn't it?)

Still, one really wonders what exactly you are asking for here -- others
debugging your cluelessly copy-pasted junk code for free so that they
eventually may be able to explain to you, in words that your limited
experience allows you to understand, how it works (or does not work)?

<http://www.catb.org/~esr/faqs/smart-questions.html>

BTW, please use test newsgroups for test postings, not this newsgroup.
As for your posting problem, Usenet is simply _not_ a multi-user Internet
chat. It can take a while before your article shows up even at your own
news server. And Google Groups maintains but a Usenet server with only a
Web interface, so this takes even longer and client-side caching may also
interfere.
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Aug 4 '08 #5
On Aug 4, 10:55*am, Henry <rcornf...@raindrop.co.ukwrote:
On Aug 4, 4:35 pm, PeteOlcott wrote:


On Aug 4, 8:58 am, Captain Paralytic wrote:
On 4 Aug, 14:43, PeteOlcott wrote:
<snip>
>I would like to completely understand how GUI controls such
as this one are constructed. In the ideal case I would like
to see all of the source code for a complete working example
of a ListBox of CheckBoxes.
So feel free to view the source and work through the
programming steps.
I don't understand why you othered to tell us this?
(1) I don't know how to find the source for things such as:
*dojo.require("dojox.grid._Grid");
*dojo.require("dojo.parser");

Understanding what those methods do would probably provide sufficient
information. Other options include clearing your browser's cache,
downloading the page and then looking at what is in the cache (it
should then be everything associated with the page including all JS
files), or using a web debugging proxy (such as Charles or Fiddler) to
record the HTTP traffic associated with the loading of the web page.

<URL: http:///www.xk72.com/charles>
(2) It was explained to me that this source is very likely
convolulted with many other levels of include files,

Absolutely. Even if you knew what you were looking for tracing the
details of that specific application through the code for something as
massive as dojo would be troublesome.
most aspects of which are not directly relevant to the
simple task of including CheckBoxes in a ListBox.

That is assuming the task is simple. It is certainly sounds relative
simple in comparison to what the URL you referred to must be getting
up to but as most references to 'ListBox' in the context of HTML web
page mean the various forms of the HTML SELECT element, and it is
impossible to put an <INPUT type="checkbox"element inside a SELECT
element, the implied requirement is impossible. In reality you mean
that you want some sort of outcome in which checkboxes are presented
in some specific way, and possibly an associated behaviour from those
checkboxes, but you might have to explain more before standing a
chance of getting any closer to that outcome.- Hide quoted text -

- Show quoted text -
The example that I provided shows (from the user's point of view)
CheckBoxes inside a ListBox. It may be the case that there is no such
thing as CheckBoxes inside of ListBoxes within HTML, JavaScript or any
combination of these two. Some how some way (at least from the user's
point of view) CheckBoxes were placed inside of a ListBox. I want to
understand the details about how this was done.

I am guessing that this was done by taking a native HTML CheckBox, and
placing it inside a manually created ListBox. I need to know whether
or not this guess is correct, and the other underlying details of the
mechanisms involved.

Aug 4 '08 #6
On Aug 4, 5:15 pm, PeteOlcott wrote:
On Aug 4, 10:55 am, Henry wrote:
<snip>
>... , but you might have to explain more before standing a
chance of getting any closer to that outcome.

The example that I provided shows (from the user's point
of view) CheckBoxes inside a ListBox.
If you say the word "ListBox" to a user you will very likely get a
blank look in response.
It may be the case that there is no such thing as
CheckBoxes inside of ListBoxes within HTML,
There is no such thing as a checkbox inside a SELECT element, and
SELECT elements are commonly vaguely labelled "ListBox" by HTML
authors who don't know the terminology of HTML.
JavaScript or any combination of these two. Some how some
way (at least from the user's point of view) CheckBoxes
were placed inside of a ListBox.
The checkboxes look like they are placed inside an element with
scrolling overflow (a sized element with CSS overflow:scroll' or
overflow:auto; (probably the latter)). They may have been placed
inside an element with hidden overflow and some fake scrollbars
provided to control the scrolling, or any of any number of similar
alternatives.
I want to understand
the details about how this was done.

I am guessing that this was done by taking a native HTML CheckBox,
and placing it inside a manually created ListBox.
Maybe if "manually created ListBox" had meaning.
I need to know whether or not this guess is correct, and the
other underlying details of the mechanisms involved.
Well there is way more mechanism involved in that example than has any
relevance to what you are talking about. At its simples what you are
describing is something like:-

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
</head>
<body>

<div style="overflow:auto;width:6em;height:10em;">
<table>
<tr><td>A:</td><td><input type="checkbox"></td></tr>
<tr><td>B:</td><td><input type="checkbox"></td></tr>
<tr><td>C:</td><td><input type="checkbox"></td></tr>
<tr><td>D:</td><td><input type="checkbox"></td></tr>
<tr><td>E:</td><td><input type="checkbox"></td></tr>
<tr><td>F:</td><td><input type="checkbox"></td></tr>
<tr><td>G:</td><td><input type="checkbox"></td></tr>
<tr><td>H:</td><td><input type="checkbox"></td></tr>
<tr><td>I:</td><td><input type="checkbox"></td></tr>
<tr><td>J:</td><td><input type="checkbox"></td></tr>
<tr><td>K:</td><td><input type="checkbox"></td></tr>
<tr><td>L:</td><td><input type="checkbox"></td></tr>
</table>
<div>

</body>
</html>

- which does not involve any scripting at all.
Aug 4 '08 #7
On Aug 4, 11:57*am, Henry <rcornf...@raindrop.co.ukwrote:
On Aug 4, 5:15 pm, PeteOlcott wrote:
On Aug 4, 10:55 am, Henry wrote:
<snip>
... , but you might have to explain more before standing a
chance of getting any closer to that outcome.
The example that I provided shows (from the user's point
of view) CheckBoxes inside a ListBox.

If you say the word "ListBox" to a user you will very likely get a
blank look in response.
It may be the case that there is no such thing as
CheckBoxes inside of ListBoxes within HTML,

There is no such thing as a checkbox inside a SELECT element, and
SELECT elements are commonly vaguely labelled "ListBox" by HTML
authors who don't know the terminology of HTML.
JavaScript or any combination of these two. Some how some
way (at least from the user's point of view) CheckBoxes
were placed inside of a ListBox.

The checkboxes look like they are placed inside an element with
scrolling overflow (a sized element with CSS overflow:scroll' or
overflow:auto; (probably the latter)). They may have been placed
inside an element with hidden overflow and some fake scrollbars
provided to control the scrolling, or any of any number of similar
alternatives.
I want to understand
the details about how this was done.
I am guessing that this was done by taking a native HTML CheckBox,
and placing it inside a manually created ListBox.

Maybe if "manually created ListBox" had meaning.
I need to know whether or not this guess is correct, and the
other underlying details of the mechanisms involved.

Well there is way more mechanism involved in that example than has any
relevance to what you are talking about. At its simples what you are
describing is something like:-

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
* *"http://www.w3.org/TR/html4/loose.dtd">
<html>
* * <head>
* * * * <title></title>
* * </head>
* * <body>

<div style="overflow:auto;width:6em;height:10em;">
* * <table>
* * * * <tr><td>A:</td><td><input type="checkbox"></td></tr>
* * * * <tr><td>B:</td><td><input type="checkbox"></td></tr>
* * * * <tr><td>C:</td><td><input type="checkbox"></td></tr>
* * * * <tr><td>D:</td><td><input type="checkbox"></td></tr>
* * * * <tr><td>E:</td><td><input type="checkbox"></td></tr>
* * * * <tr><td>F:</td><td><input type="checkbox"></td></tr>
* * * * <tr><td>G:</td><td><input type="checkbox"></td></tr>
* * * * <tr><td>H:</td><td><input type="checkbox"></td></tr>
* * * * <tr><td>I:</td><td><input type="checkbox"></td></tr>
* * * * <tr><td>J:</td><td><input type="checkbox"></td></tr>
* * * * <tr><td>K:</td><td><input type="checkbox"></td></tr>
* * * * <tr><td>L:</td><td><input type="checkbox"></td></tr>
* * </table>
<div>

* * </body>
</html>

- which does not involve any scripting at all.
Great, that was exactly what I was looking for, thanks.
Aug 4 '08 #8
PeteOlcott wrote:
http://archive.dojotoolkit.org/night...structure.html

I would like to completely understand how GUI controls such as this
one are constructed. In the ideal case I would like to see all of the
source code for a complete working example of a ListBox of CheckBoxes.
The example at the link you posted is not a "ListBox", it is a set of
tables inside DIV elements. Scrolling is controlled by javascript, the
size and position of the elements by CSS.

To explain the script, HTML and CSS to the extent that you "completely
understand" it would likely take several days. To document it would
take longer.

In any case, as a general web solution, you are much better off to put
the data into a table and leave it at that. The linked example is slow,
jerky annoying to use.
--
Rob
Aug 4 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Derrick | last post by:
Hello all; I'm trying to simulate a "scrollable context menu". What I want is to have a listbox fill the entire area of a small form (with no border). Using the designer and property grid, I...
5
by: MS News | last post by:
Hello, how do I get an x-number of check boxes in a listbox is it possible what other contols that have a scrol bar can hold checkboxes inside them thanks
2
by: George Durzi | last post by:
This is more of a design/philosophical question :) I have a page in which the user sets attributes for a project. There are 8 attributes, e.g. Project Type, Country, etc. The number of options...
1
by: Selesti | last post by:
I've created a form dialog box with several checkboxes to determine which offices to include in a sales report. However, I'm getting an "Object doesn't support this property or method" error from MS...
2
by: padhuwork | last post by:
Hi All, Basically for ListBox and ListView controls, its possible to add checkboxes. Instead of a checkbox is it possible to add radio button? Generally, when a user clicks on a checkbox, usually...
1
by: Priya | last post by:
I have to display a checboxlist with someitems when each item in a listbox is selected. I have a listbox with a list of categories and when i click each category from the listbox, the checkbox list...
1
by: ruvi | last post by:
I have a listbox with style property set to 1-Checked. I populate the listbox with records in a recordset. Then I select some of the items in the listbox. Now what I want is- I want to be able...
2
by: Rex the Strange | last post by:
Hi All, Can anyone help me out here, please? I would like to have a listbox where each line item has two checkboxes associated with it. I know that I can use the checklistbox component (which I...
19
by: knlknl | last post by:
MS Access Checkboxes in Listbox Possible? Would like to have display checkboxes in a listbox, so users can click what they want and then when click on Save button selected values of checkboxes will...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.