Login
`
Templates, Tools and Utilities
|
||
Icetips Article
Back to article list
Search Articles
Add Comment
Printer friendly
Direct link
Clarion in general: Popup menu font styles 1 2003-03-13 -- Carl Barnes Newsgroups: sv.clarion.documentation
Editor's note: Please note that some of the code below is not formatted correctly (i.e. the quoted
code)
>Notice the problems with Font:Size if it gets too large.
>
>test program
> map
> end
> code
> Popup('NonBold|' & |
> '[' & PROP:FontColor & '(' & color:Blue &')' & PROP:FontStyle & '('
> & FONT:Bold &')]This should be blue and bold|' & |
> '[' & PROP:FontColor & '(' & color:Blue &')]This should be blue|' &
>|
> '[' & PROP:FontSize & '(' & 14 &')]Is this 14 point?|' & |
> '[' & PROP:FontStyle & '(' & FONT:Underline &')]Should be Underlined|' & |
> '[' & PROP:FontStyle & '(' & FONT:Italic &')]Should be Italic|' & |
> '[' & PROP:FontStyle & '(' & FONT:BOLD &')]Should be Bold|' & |
> '[' & prop:Icon & '(~change.ico)]' & 'Should have an icon|' & |
> '[' & prop:Icon & '(~change.ico)' & prop:FontStyle & '('& FONT:Bold
> &')]Should be bold with an icon #1|' & |
> '[' & prop:FontStyle & '('& FONT:Bold &')' & prop:Icon &
> '(~change.ico)]Should be bold with an icon #2|' & |
> 'NonBold')
>I started to play around, see the program below.
>I haven't figured out how to have 2 special attributes work at once (testing in EA3)
>BTW, notice that the bolded line is indented, I assume there are leading
>spaces and the bold DLU's cover more pixels.
To have multiple items put commas between the close paren ) and the next PROP:
or between Props
e.g. [31763(700),31762(16711680)]This should be blue and bold
or
'[' & PROP:FontColor & '(' & color:Blue & |
'),' & | !<<< comma here
PROP:FontStyle & '(' & FONT:Bold &')]This should be blue and bold|' & |
Use Prop:Left and Prop:LeftOffset() to control Left Margin.
The easy way to do this is with the CWA Popup WYSIWYG Designer. Although ABC
only supports Prop:Icon
Today is November 21, 2024, 10:06 am This article has been viewed 35225 times. Google search has resulted in 6 hits on this article since January 25, 2004.
|
|