Formatting pushbutton text

This is a discussion on Formatting pushbutton text within the Paradox Database forums in Other Databases category; I've created a button in P9 which, on clicking, produces a series of options for the user using Case, thus: method pushButton(var eventInfo Event) var theForm Form endVar switchMenu case Option 1: this option opens form 1 : theForm.open( option1.fsl ,WinStyleMaximize) case Option 2: this option opens form 2 : theForm.open( option.fsl ,WinStyleMaximize) etc. etc. endSwitchMenu endmethod The text in the resulting menu appears in the default style. Is there any way of formatting it so that, e.g., the words Option1 and Option 2 could be in a different colour, font, etc., from the rest ...

Go Back   Database Forum > Other Databases > Paradox Database

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-17-2008, 06:53 AM
Default Formatting pushbutton text


I've created a button in P9 which, on clicking, produces a series of
options for the user using Case, thus:

method pushButton(var eventInfo Event)
var
theForm Form
endVar

switchMenu
case "Option 1: this option opens form 1" :
theForm.open("option1.fsl",WinStyleMaximize)
case "Option 2: this option opens form 2" :
theForm.open("option.fsl",WinStyleMaximize)
etc.
etc.
endSwitchMenu
endmethod

The text in the resulting menu appears in the default style. Is there
any way of formatting it so that, e.g., the words "Option1" and "Option
2" could be in a different colour, font, etc., from the rest of the
text, e.g. "this option opens form 1"? I've looked through Help and my
Opal book, without success.

Any help gratefully received, as always.

--
Malcolm
Reply With Quote
  #2  
Old 08-17-2008, 11:48 AM
Default Re: Formatting pushbutton text

Malcolm,
as far as I know it is not possible.
However, you could substitue the switch menu by a temorary tableframe (e.g.
on a small, floating dialog form) that looks like a menu, has the same
functionality (mouseClick) and allows you to format the options-text
manually or with code depending on program conditions.
Only an idea...

Egbert

"Malcolm" schrieb im Newsbeitrag
news:fUULc05$T$pIFwAO-at-indaal.demon.co.uk...
>
> I've created a button in P9 which, on clicking, produces a series of
> options for the user using Case, thus:
>
> method pushButton(var eventInfo Event)
> var
> theForm Form
> endVar
>
> switchMenu
> case "Option 1: this option opens form 1" :
> theForm.open("option1.fsl",WinStyleMaximize)
> case "Option 2: this option opens form 2" :
> theForm.open("option.fsl",WinStyleMaximize)
> etc.
> etc.
> endSwitchMenu
> endmethod
>
> The text in the resulting menu appears in the default style. Is there
> any way of formatting it so that, e.g., the words "Option1" and "Option
> 2" could be in a different colour, font, etc., from the rest of the
> text, e.g. "this option opens form 1"? I've looked through Help and my
> Opal book, without success.
>
> Any help gratefully received, as always.
>
> --
> Malcolm


Reply With Quote
  #3  
Old 08-17-2008, 06:21 PM
Default Re: Formatting pushbutton text

Malcolm wrote:
> I've created a button in P9 which, on clicking, produces a series of
> options for the user using Case, thus:
>
> method pushButton(var eventInfo Event)
> var
> theForm Form
> endVar
>
> switchMenu
> case "Option 1: this option opens form 1" :
> theForm.open("option1.fsl",WinStyleMaximize)
> case "Option 2: this option opens form 2" :
> theForm.open("option.fsl",WinStyleMaximize)
> etc.
> etc.
> endSwitchMenu
> endmethod
>
> The text in the resulting menu appears in the default style. Is there
> any way of formatting it so that, e.g., the words "Option1" and "Option
> 2" could be in a different colour, font, etc., from the rest of the
> text, e.g. "this option opens form 1"? I've looked through Help and my
> Opal book, without success.
>
> Any help gratefully received, as always.
>

You could make your own "button" as a graphic icon, and use
icon.mouseclick(). You can make very nice working buttons with overlying
icons (button in, button out) to indicate status.
Reply With Quote
  #4  
Old 08-18-2008, 03:15 PM
Default Re: Formatting pushbutton text


Egbert

Thanks for the information and for that interesting idea to achieve what
I am looking for.

Malcolm



X-No-Archive: yes
In article <48a83a4b$1@pnews.thedbcommunity.com>, Egbert Babst
writes
>Malcolm,
>as far as I know it is not possible.
>However, you could substitue the switch menu by a temorary tableframe
>(e.g. on a small, floating dialog form) that looks like a menu, has the
>same functionality (mouseClick) and allows you to format the
>options-text manually or with code depending on program conditions.
>Only an idea...
>
>Egbert
>
>"Malcolm" schrieb im Newsbeitrag
>news:fUULc05$T$pIFwAO-at-indaal.demon.co.uk...
>>
>> I've created a button in P9 which, on clicking, produces a series of
>> options for the user using Case, thus:
>>
>> method pushButton(var eventInfo Event)
>> var
>> theForm Form
>> endVar
>>
>> switchMenu
>> case "Option 1: this option opens form 1" :
>> theForm.open("option1.fsl",WinStyleMaximize)
>> case "Option 2: this option opens form 2" :
>> theForm.open("option.fsl",WinStyleMaximize)
>> etc.
>> etc.
>> endSwitchMenu
>> endmethod
>>
>> The text in the resulting menu appears in the default style. Is there
>> any way of formatting it so that, e.g., the words "Option1" and "Option
>> 2" could be in a different colour, font, etc., from the rest of the
>> text, e.g. "this option opens form 1"? I've looked through Help and my
>> Opal book, without success.
>>
>> Any help gratefully received, as always.
>>
>> -- Malcolm

>


--
Malcolm
Reply With Quote
  #5  
Old 08-19-2008, 07:49 AM
Default Re: Formatting pushbutton text

Malcom,

if you put the text in a table with
formated memo (F_ger in my case)
this works on form:

scan TC:
if UIO.attach(TC.Objektname) then
UIO.value=TC.F_ger
endif
endscan

so I get underlined and bold strings on buttons,

Günter

Malcolm schrieb:
> I've created a button in P9 which, on clicking, produces a series of
> options for the user using Case, thus:
>
> method pushButton(var eventInfo Event)
> var
> theForm Form
> endVar
>
> switchMenu
> case "Option 1: this option opens form 1" :
> theForm.open("option1.fsl",WinStyleMaximize)
> case "Option 2: this option opens form 2" :
> theForm.open("option.fsl",WinStyleMaximize)
> etc.
> etc.
> endSwitchMenu
> endmethod
>
> The text in the resulting menu appears in the default style. Is there
> any way of formatting it so that, e.g., the words "Option1" and "Option
> 2" could be in a different colour, font, etc., from the rest of the
> text, e.g. "this option opens form 1"? I've looked through Help and my
> Opal book, without success.
>
> Any help gratefully received, as always.
>

Reply With Quote
  #6  
Old 08-19-2008, 12:28 PM
Default Re: Formatting pushbutton text


Thanks very much, Günter

I'll try it out.

Malcolm


X-No-Archive: yes
In article <48aaa555$1@pnews.thedbcommunity.com>, Günter
writes
>Malcom,
>
>if you put the text in a table with
>formated memo (F_ger in my case)
>this works on form:
>
>scan TC:
> if UIO.attach(TC.Objektname) then
> UIO.value=TC.F_ger
> endif
>endscan
>
>so I get underlined and bold strings on buttons,
>
>Günter
>
>Malcolm schrieb:
>> I've created a button in P9 which, on clicking, produces a series of
>> options for the user using Case, thus:
>> method pushButton(var eventInfo Event)
>> var
>> theForm Form
>> endVar
>> switchMenu
>> case "Option 1: this option opens form 1" :
>> theForm.open("option1.fsl",WinStyleMaximize)
>> case "Option 2: this option opens form 2" :
>> theForm.open("option.fsl",WinStyleMaximize)
>> etc.
>> etc.
>> endSwitchMenu
>> endmethod
>> The text in the resulting menu appears in the default style. Is
>>there
>> any way of formatting it so that, e.g., the words "Option1" and "Option
>> 2" could be in a different colour, font, etc., from the rest of the
>> text, e.g. "this option opens form 1"? I've looked through Help and my
>> Opal book, without success.
>> Any help gratefully received, as always.
>>


--
Malcolm
Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 09:29 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.