www.digitalmars.com         C & C++   DMDScript  

c++.stlsoft - font sequence

reply "Pablo Aguilar" <paguilarg hotmail.com> writes:
And... have you thought about doing a font enumeration sequence? It could
come in handy while doing a font name selector (which I happen to be
currently doing)... something that might allow writting the following:

font_sequences fonts;
std::for_each(fonts.begin(), fonts.end(),
listbox_add_inserter(aList_handle));

What do you think?
Apr 20 2004
parent reply "Matthew" <matthew.hat stlsoft.dot.org> writes:
My first reaction is that I'd done one. Let me see if it's in STLSoft, or
just in some of my old Synesis code ...


... I misremembered. Fonts cannot be enumerated in STL fashion because
they're callback objects. (See my article "Adapting Callback Enumeration
APIs to the Input Iterator Concept", CUJ, Feb 2004.)

The only way to do it as an STL sequence is to enumerate into a container -
list / vector - and then provide that.

However, they do fit into the Range concept, which will be making an
appearance in STLSoft (and DTL) sometime soon, though probably not 1.7.1,
since it's do damnably late!!

:)


"Pablo Aguilar" <paguilarg hotmail.com> wrote in message
news:c63ue6$hnd$1 digitaldaemon.com...
 And... have you thought about doing a font enumeration sequence? It could
 come in handy while doing a font name selector (which I happen to be
 currently doing)... something that might allow writting the following:

 font_sequences fonts;
 std::for_each(fonts.begin(), fonts.end(),
 listbox_add_inserter(aList_handle));

 What do you think?
Apr 20 2004
parent reply "Pablo Aguilar" <paguilarg hotmail.com> writes:
 My first reaction is that I'd done one. Let me see if it's in STLSoft, or
 just in some of my old Synesis code ...


 ... I misremembered. Fonts cannot be enumerated in STL fashion because
 they're callback objects. (See my article "Adapting Callback Enumeration
 APIs to the Input Iterator Concept", CUJ, Feb 2004.)
Interesting, I didn't really think about it at first, I just thought it'd be cool to have 'em... but I guess you're right... And I'd love to read the article, but my subscription seems to have expired, and I don't see any 2004 articles on the web page... Also, I still can't get to your web page! It's been going on for 2 or 3 weeks now, maybe it's 'cuz around here, everyone's got the same ISP and that ISP has trouble with your web site, I don't know...
 The only way to do it as an STL sequence is to enumerate into a
container -
 list / vector - and then provide that.

 However, they do fit into the Range concept, which will be making an
 appearance in STLSoft (and DTL) sometime soon, though probably not 1.7.1,
 since it's do damnably late!!

 :)
Looking forward to it...
Apr 20 2004
next sibling parent "Matthew" <matthew.hat stlsoft.dot.org> writes:
"Pablo Aguilar" <paguilarg hotmail.com> wrote in message
news:c6419t$mll$1 digitaldaemon.com...
 My first reaction is that I'd done one. Let me see if it's in STLSoft,
or
 just in some of my old Synesis code ...


 ... I misremembered. Fonts cannot be enumerated in STL fashion because
 they're callback objects. (See my article "Adapting Callback Enumeration
 APIs to the Input Iterator Concept", CUJ, Feb 2004.)
Interesting, I didn't really think about it at first, I just thought it'd
be
 cool to have 'em... but I guess you're right...
I can see we're going to get on well. ;)
 And I'd love to read the article, but my subscription seems to have
expired,
 and I don't see any 2004 articles on the web page...
Sadly that article is not accessible via the web. But the information will be covered in detail in my next book - "Extended STL" - due out next year. He he. <G>
 Also, I still can't get to your web page!
Damn!
 It's been going on for 2 or 3 weeks now, maybe it's 'cuz around here,
 everyone's got the same ISP and that ISP has trouble with your web site, I
 don't know...
Maybe. It seems fine here. I'm thinking about changing though, as I get about 300 spam emails a day at the moment, and the ISP, though they're very reasonable in cost, don't provide any filtering.
 The only way to do it as an STL sequence is to enumerate into a
container -
 list / vector - and then provide that.

 However, they do fit into the Range concept, which will be making an
 appearance in STLSoft (and DTL) sometime soon, though probably not
1.7.1,
 since it's do damnably late!!

 :)
Looking forward to it...
:) I think it'll be 2-3 months before the Ranges get into STLSoft. Maybe 1.8.1 ...
Apr 20 2004
prev sibling parent reply Matthew Wilson <matthew synesis.com.au> writes:
 Interesting, I didn't really think about it at first, I just thought it'd be
 cool to have 'em... but I guess you're right...
 And I'd love to read the article, but my subscription seems to have expired,
 and I don't see any 2004 articles on the web page...
 Also, I still can't get to your web page!
 It's been going on for 2 or 3 weeks now, maybe it's 'cuz around here,
 everyone's got the same ISP and that ISP has trouble with your web site, I
 don't know...
Someone else recently reported that. If you can be bothered, it'd be good if you surf into http://phpwebhosting.com and report the problem. Hopefully, if enough people - of those who are experiencing it - report it something may get done. Cheers Matthew
May 16 2004
parent reply "Pablo Aguilar" <paguilarg hotmail.com> writes:
Will do...

What happens here is I try stlsoft.org, get redirected to synesis and then I
never get any response...

 Interesting, I didn't really think about it at first, I just thought
it'd be
 cool to have 'em... but I guess you're right...
 And I'd love to read the article, but my subscription seems to have
expired,
 and I don't see any 2004 articles on the web page...
 Also, I still can't get to your web page!
 It's been going on for 2 or 3 weeks now, maybe it's 'cuz around here,
 everyone's got the same ISP and that ISP has trouble with your web site,
I
 don't know...
Someone else recently reported that. If you can be bothered, it'd be good if you surf into http://phpwebhosting.com and report the problem. Hopefully, if enough people - of those who are experiencing it - report it something may get done. Cheers Matthew
May 17 2004
parent "Matthew" <matthew.hat stlsoft.dot.org> writes:
 Will do...
Thanks
 What happens here is I try stlsoft.org, get redirected to synesis and then I
 never get any response...
That's very annoying. The good news is that STLSoft 1.7.1 is _very nearly ready_, and the stlsoft.digitalmars.com site will be updated accordingly.
 Interesting, I didn't really think about it at first, I just thought
it'd be
 cool to have 'em... but I guess you're right...
 And I'd love to read the article, but my subscription seems to have
expired,
 and I don't see any 2004 articles on the web page...
 Also, I still can't get to your web page!
 It's been going on for 2 or 3 weeks now, maybe it's 'cuz around here,
 everyone's got the same ISP and that ISP has trouble with your web site,
I
 don't know...
Someone else recently reported that. If you can be bothered, it'd be good if you surf into http://phpwebhosting.com and report the problem. Hopefully, if enough people - of those who are experiencing it - report it something may get done. Cheers Matthew
May 17 2004