| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
|
| 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 |
|
#2
|
| 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" 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 |
|
#3
|
| 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. |
|
#4
|
| 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 >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" >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 |
|
#5
|
| 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. > |
|
#6
|
| Thanks very much, Günter I'll try it out. Malcolm X-No-Archive: yes In article <48aaa555$1@pnews.thedbcommunity.com>, Günter >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 |
![]() |
| Thread Tools | |
| Display Modes | |