comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: PropertySheet Widget Question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: PropertySheet Widget Question [message #36372 is a reply to message #36371] Mon, 15 September 2003 12:06 Go to previous messageGo to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Fri, 12 Sep 2003 07:47:56 -0700, David Fanning wrote:

> David Fanning writes:
>
>> I want to set the font type. I have three choices: Hershey, Hardware,
>> and True-Type. I've used an enumerated property:
>>
>> self->RegisterProperty, 'FONT', 9, NAME="Font Type", $
>> ENUMLIST=['Hershey', 'Hardware', 'True-Type']
>>
>> But on the property sheet, the list shows up blank initially. The three
>> choices are there. And it works correctly, but I just don't see the
>> initial selection. I see the initial selection appears on iTools
>> enumerated lists, so I know it is possible. But two hours of looking
>> hasn't been of much help. Does anyone know how to do this?
>
> I ask questions on this newsgroup so infrequently that it seems a shame
> to answer my own question, but there you go...
>
> Thanks to the guys at RSI, who appear to get to work even before I do,
> I've figured out what my problem was. It's the ol' Hershey font is -1
> instead of the normal 0 for the default case problem. If the initial
> value of an ENUMLIST property is -1, then it doesn't put anything into
> its "default value" space initially.
>
> Now I've got it all sorted out and the property widget works like a
> champ. I'll be working on a training program today, though, to get all
> my users used to using FONT=0 if they want a Hershey font. :^)

Without having taken the time to look into it, I was wondering if you can
use properties and property sheets essentially for any object widget,
independent of the iTools functionality. I.e., can you just INHERIT from
a suitable property parent class, and get all the functionality for free?

JD
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: IDL java bridge
Next Topic: Simple 3D Visualisation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 08:14:36 PDT 2025

Total time taken to generate the page: 0.24318 seconds