dbTalk Databases Forums  

Formatting pushbutton text

comp.databases.paradox comp.databases.paradox


Discuss Formatting pushbutton text in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Malcolm
 
Posts: n/a

Default Formatting pushbutton text - 08-17-2008 , 04:53 AM







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   
Egbert Babst
 
Posts: n/a

Default Re: Formatting pushbutton text - 08-17-2008 , 09:48 AM






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" <Malcolm (AT) indaal (DOT) demon.co.uk> schrieb im Newsbeitrag
news:fUULc05$T$pIFwAO (AT) indaal (DOT) demon.co.uk...
Quote:
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   
Egbert Babst
 
Posts: n/a

Default Re: Formatting pushbutton text - 08-17-2008 , 09:48 AM



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" <Malcolm (AT) indaal (DOT) demon.co.uk> schrieb im Newsbeitrag
news:fUULc05$T$pIFwAO (AT) indaal (DOT) demon.co.uk...
Quote:
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
  #4  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Formatting pushbutton text - 08-17-2008 , 09:48 AM



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" <Malcolm (AT) indaal (DOT) demon.co.uk> schrieb im Newsbeitrag
news:fUULc05$T$pIFwAO (AT) indaal (DOT) demon.co.uk...
Quote:
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
  #5  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Formatting pushbutton text - 08-17-2008 , 09:48 AM



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" <Malcolm (AT) indaal (DOT) demon.co.uk> schrieb im Newsbeitrag
news:fUULc05$T$pIFwAO (AT) indaal (DOT) demon.co.uk...
Quote:
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
  #6  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Formatting pushbutton text - 08-17-2008 , 09:48 AM



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" <Malcolm (AT) indaal (DOT) demon.co.uk> schrieb im Newsbeitrag
news:fUULc05$T$pIFwAO (AT) indaal (DOT) demon.co.uk...
Quote:
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
  #7  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Formatting pushbutton text - 08-17-2008 , 09:48 AM



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" <Malcolm (AT) indaal (DOT) demon.co.uk> schrieb im Newsbeitrag
news:fUULc05$T$pIFwAO (AT) indaal (DOT) demon.co.uk...
Quote:
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
  #8  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Formatting pushbutton text - 08-17-2008 , 09:48 AM



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" <Malcolm (AT) indaal (DOT) demon.co.uk> schrieb im Newsbeitrag
news:fUULc05$T$pIFwAO (AT) indaal (DOT) demon.co.uk...
Quote:
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
  #9  
Old   
Robert Molyneux
 
Posts: n/a

Default Re: Formatting pushbutton text - 08-17-2008 , 04:21 PM



Malcolm wrote:
Quote:
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
  #10  
Old   
Robert Molyneux
 
Posts: n/a

Default Re: Formatting pushbutton text - 08-17-2008 , 04:21 PM



Malcolm wrote:
Quote:
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
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.