Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #4242 > unrolled thread
| Started by | "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> |
|---|---|
| First post | 2012-10-09 10:15 +0200 |
| Last post | 2012-10-12 13:10 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Calendar control using bbrowser and brushes with multiple colors "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2012-10-09 10:15 +0200
Re: Calendar control using bbrowser and brushes with multiple colors "Paul D B" <polleke@NOMORESPAMhnt.be> - 2012-10-09 15:19 +0200
Re: Calendar control using bbrowser and brushes with multiple colors "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2012-10-12 13:10 +0200
| From | "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> |
|---|---|
| Date | 2012-10-09 10:15 +0200 |
| Subject | Calendar control using bbrowser and brushes with multiple colors |
| Message-ID | <k50me9$lel$1@dont-email.me> |
Just to share some examples what is possible: - I had to make a dialog with two months of calendars displayed. - Each day should display a state to visualize in a calendar to plan quality control visits to customer sites and to show possible conflicts with performed visits and open visits. I have made a type of calendar control as a subform with bbrowser. Unfortunately I could not attach an example. So if someone wants to have one I can send it directly to him/her. There are many possible states, for example allowed day of visit but with possible conflicts because of other open visits. So I had not enough colors. It is so the first time that I used some bitmap images (8 to 8) with two different colors e.g. green and orange or green and white. The VO brush object has the nice undocumented feature that you can use a bitmap object instead of a color to get the backgrounds as in the attached image. obrush := CreateInstance(#brush, CreateInstance(#bmpbrushgreenorange)) Using the hatchstyles kHatchStyle as described in the documentation do not produce nice results instead, at least when not drawing multiple backgrounds one over another. Arne Ortlinghaus ACS Data Systems
[toc] | [next] | [standalone]
| From | "Paul D B" <polleke@NOMORESPAMhnt.be> |
|---|---|
| Date | 2012-10-09 15:19 +0200 |
| Message-ID | <50742473$0$3113$ba620e4c@news.skynet.be> |
| In reply to | #4242 |
Hi Arne, sorry I don't follow you here. Using the color class you got 255x255x255= 16,8 million colors. ( x 2 because you can play with background and foreground combinations) Paul "Arne Ortlinghaus" schreef in bericht news:k50me9$lel$1@dont-email.me... There are many possible states, for example allowed day of visit but with possible conflicts because of other open visits. So I had not enough colors. It is so the first time that I used some bitmap images (8 to 8) with two different colors e.g. green and orange or green and white. The VO brush object has the nice undocumented feature that you can use a bitmap object instead of a color to get the backgrounds as in the attached image. obrush := CreateInstance(#brush, CreateInstance(#bmpbrushgreenorange))
[toc] | [prev] | [next] | [standalone]
| From | "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> |
|---|---|
| Date | 2012-10-12 13:10 +0200 |
| Message-ID | <k58trv$7e8$1@dont-email.me> |
| In reply to | #4245 |
Hi Paul, yes, there are enough possible colors. But the users do not always see the differences. With the own drawn bitmaps it is much easier to see an overlay of a green and an orange state for example putting both colors into the bitmap as a type of grid. The user sees immediately that these two states interfere. Arne "Paul D B" <polleke@NOMORESPAMhnt.be> schrieb im Newsbeitrag news:50742473$0$3113$ba620e4c@news.skynet.be... > > Hi Arne, sorry I don't follow you here. Using the color class you got > 255x255x255= 16,8 million colors. > ( x 2 because you can play with background and foreground combinations) > > Paul > > "Arne Ortlinghaus" schreef in bericht news:k50me9$lel$1@dont-email.me... > > > There are many possible states, for example allowed day of visit but with > possible conflicts because of other open visits. So I had not enough > colors. > It is so the first time that I used some bitmap images (8 to 8) with two > different colors e.g. green and orange or green and white. > The VO brush object has the nice undocumented feature that you can use a > bitmap object instead of a color to get the backgrounds as in the attached > image. > obrush := CreateInstance(#brush, CreateInstance(#bmpbrushgreenorange)) >
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web