Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Formatting pushbutton text

 
   Database Help (Home) -> Paradox RSS
Next:  open "cursors" on the server  
Author Message
Malcolm

External


Since: Aug 17, 2008
Posts: 3



(Msg. 1) Posted: Sun Aug 17, 2008 10:53 am
Post subject: Formatting pushbutton text
Archived from groups: comp>databases>paradox (more info?)

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

 >> Stay informed about: Formatting pushbutton text 
Back to top
Login to vote
Egbert Babst1

External


Since: Aug 29, 2003
Posts: 36



(Msg. 2) Posted: Sun Aug 17, 2008 4:48 pm
Post subject: Re: Formatting pushbutton text [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

>
> 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

 >> Stay informed about: Formatting pushbutton text 
Back to top
Login to vote
Robert Molyneux

External


Since: Jun 02, 2008
Posts: 13



(Msg. 3) Posted: Mon Aug 18, 2008 7:21 am
Post subject: Re: Formatting pushbutton text [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.
 >> Stay informed about: Formatting pushbutton text 
Back to top
Login to vote
Malcolm

External


Since: Aug 17, 2008
Posts: 3



(Msg. 4) Posted: Mon Aug 18, 2008 7:15 pm
Post subject: Re: Formatting pushbutton text [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Egbert

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

Malcolm



X-No-Archive: yes
In article , 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
>
>>
>> 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
 >> Stay informed about: Formatting pushbutton text 
Back to top
Login to vote
Günter

External


Since: Aug 19, 2008
Posts: 2



(Msg. 5) Posted: Tue Aug 19, 2008 12:49 pm
Post subject: Re: Formatting pushbutton text [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.
>
 >> Stay informed about: Formatting pushbutton text 
Back to top
Login to vote
Malcolm

External


Since: Aug 17, 2008
Posts: 3



(Msg. 6) Posted: Tue Aug 19, 2008 4:28 pm
Post subject: Re: Formatting pushbutton text [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks very much, Günter

I'll try it out.

Malcolm


X-No-Archive: yes
In article , 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
 >> Stay informed about: Formatting pushbutton text 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
write to paradox via web - I have a client that uses software developed in delphi. It uses paradox database files. Can these be written to from the web? I am familiar with php/mysql...is there a similar capability with delphi/paradox?

which program? - Hi to all, I'm sorry 'cause I'm not sure this is the correct ng...so my apologies in advance if I'm in the wrong place. My customer show me a floppy disk with old files (about 1998-1999) and told me that there are her accounting data to back life. With...

forcing lck files location - Is there method to force lck files location. I create query on fly with Delphi but there is a problem with lock files. It tries to create it to system32 folder but because user does not have rights to that folder , creating query fails. So, how can I..

Network performance and hardware issues - Hi! Our clients have run our Paradox based apps in small network configurations with only about 10-15 runtime clients at max. Recently we have had inquiries from a bigger company that wants to run our app in an network of over 100 clients, is this..

I can't to open table(s) on InterBase's server - I have a computer with OS WindowsXP Professional version 2002 with SP2 and I have next problem with Paradox 10 v.11.0.0.302. I can't to open a table(s) on InterBase's server, but I can to open a local table(s). Dialog window of Database Login for..
   Database Help (Home) -> Paradox All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]