Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Help needed to program an array ctrl.
Help needed to program an array ctrl. [message #28337] Sun, 29 August 2010 18:34 Go to previous message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
Hi,

I need some help in programming an array control. The objective is:

1.- to manage a list of objects; each object is actually a struct called Layer. Each layer has the following variables:

a) A String for its name;
b) A bool for determining whether the layer is on/off;
c) A bool for determining whether the layer is current layer;
d) A bool for determining whether the layer is lock/unlock;
e) A Color for its colour.


2.- From the visual/functional point of view these are the requisites in the array control:

a) The String it is just an editor; no special feature;
b) Layer on/off: it has to be represented by an image of a bulb, which status on/off is depicted by the bulb with/without light. The selection of the bulb’s status is made by clicking on it.
c) Selection of current layer: I think that this should be a Switch ctrl. Evidently, only one layer can be the current.
d) lock/unlock: similar to b) but with a different image(s).
e) Colour: I have found that ColorPusher ctrl suits this feature well.


3.- All the layers will be stored in a Vector.


So, having said that, how to tackle the matter? I am requesting help for the array ctrl’s information in the manual is a bit confusing (at least to a newcomer like me). I would really appreciate some help/hints.

Many thanks,

Javier
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Several options: what to use?
Next Topic: Problems in growing up from newbie
Goto Forum:
  


Current Time: Wed May 15 14:10:21 CEST 2024

Total time taken to generate the page: 0.02582 seconds