|
Home > Archive > dBASE Bugs > April 2006 > Editor Format toolbar -- color combobox loses focus
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Editor Format toolbar -- color combobox loses focus
|
|
| Ken Mayer [dBVIPS] 2006-04-04, 8:28 pm |
| When using the editor's format toolbar, the color combobox loses focus
when you select it, before you can select any colors in it ...
To see this, run the following form, tab to the editor control.
Highlight some text. Note that you can set the text to bold, but if you
try to select a color in the combobox it doesn't work.
(This bug and the other I just posted brought to you from demos in a
class I gave today ...)
Ken
/*
EditorExample.wfm
A sample dBL form from
The dBASE Book
by Kenneth J. Mayer.
Program copyright ©2005.
Permission granted for use as a learning tool for dBASE Plus.
Sample from: Chapter 13
Form used for screen shot.
*/
** END HEADER -- do not remove this line
//
// Generated on 03/08/2005
//
parameter bModal
local f
f = new EditorExampleForm()
if (bModal)
f.mdi = false // ensure not MDI
f.readModal()
else
f.open()
endif
class EditorExampleForm of FORM
with (this)
height = 11.0455
left = 54.0
top = 0.0
width = 40.0
text = "Editor and Format Toolbar"
endwith
this.ENTRYFIELD1 = new ENTRYFIELD(this)
with (this.ENTRYFIELD1)
height = 1.0
left = 3.4286
top = 0.4545
width = 20.4286
value = "Tab to Editor"
endwith
this.EDITOR1 = new EDITOR(this)
with (this.EDITOR1)
onGotFocus = class::EDITOR1_ONGOT
FOCUS
onLostFocus = class::EDITOR1_ONLOS
TFOCUS
height = 7.2273
left = 2.7143
top = 1.7273
width = 34.4286
value = "When this editor control gets focus, the form's format
toolbar should appear, when it loses focus (tab or click on another
control with the mouse), then the toolbar should disappear again."
endwith
this.PUSHBUTTON1 = new PUSHBUTTON(this)
with (this.PUSHBUTTON1)
onClick = {; form.close()}
height = 1.0909
left = 13.1429
top = 9.2727
width = 15.2857
text = "Close Form"
endwith
function EDITOR1_onGotFocus
// turn on the formatBar:
form.showFormatBar( true )
return
function EDITOR1_onLostFocus
// turn off the formatBar:
form.showFormatBar( false )
return
endclass
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
| kathy kolosky 2006-04-06, 11:32 am |
| Hi Ken. I submitted this as QAID 5901
Thanks, Kathy
QA
dBI
"Ken Mayer [dBVIPS]" < dbase@_nospam_golden
stag.net> wrote in message
news:LGUsPDDWGHA.416@news-server...
> When using the editor's format toolbar, the color combobox loses focus
> when you select it, before you can select any colors in it ...
>
> To see this, run the following form, tab to the editor control. Highlight
> some text. Note that you can set the text to bold, but if you try to
> select a color in the combobox it doesn't work.
>
> (This bug and the other I just posted brought to you from demos in a class
> I gave today ...)
>
> Ken
>
> /*
> EditorExample.wfm
> A sample dBL form from
> The dBASE Book
> by Kenneth J. Mayer.
> Program copyright ©2005.
> Permission granted for use as a learning tool for dBASE Plus.
>
> Sample from: Chapter 13
> Form used for screen shot.
> */
>
> ** END HEADER -- do not remove this line
> //
> // Generated on 03/08/2005
> //
> parameter bModal
> local f
> f = new EditorExampleForm()
> if (bModal)
> f.mdi = false // ensure not MDI
> f.readModal()
> else
> f.open()
> endif
>
> class EditorExampleForm of FORM
> with (this)
> height = 11.0455
> left = 54.0
> top = 0.0
> width = 40.0
> text = "Editor and Format Toolbar"
> endwith
>
> this.ENTRYFIELD1 = new ENTRYFIELD(this)
> with (this.ENTRYFIELD1)
> height = 1.0
> left = 3.4286
> top = 0.4545
> width = 20.4286
> value = "Tab to Editor"
> endwith
>
> this.EDITOR1 = new EDITOR(this)
> with (this.EDITOR1)
> onGotFocus = class::EDITOR1_ONGOT
FOCUS
> onLostFocus = class::EDITOR1_ONLOS
TFOCUS
> height = 7.2273
> left = 2.7143
> top = 1.7273
> width = 34.4286
> value = "When this editor control gets focus, the form's format
> toolbar should appear, when it loses focus (tab or click on another
> control with the mouse), then the toolbar should disappear again."
> endwith
>
> this.PUSHBUTTON1 = new PUSHBUTTON(this)
> with (this.PUSHBUTTON1)
> onClick = {; form.close()}
> height = 1.0909
> left = 13.1429
> top = 9.2727
> width = 15.2857
> text = "Close Form"
> endwith
>
>
> function EDITOR1_onGotFocus
> // turn on the formatBar:
> form.showFormatBar( true )
> return
>
> function EDITOR1_onLostFocus
> // turn off the formatBar:
> form.showFormatBar( false )
> return
>
> endclass
>
>
> --
> /(Opinions expressed are purely my own, not those of dataBased
> Intelligence, Inc.)/
>
> *Ken Mayer* [dBVIPS]
> /Golden Stag Productions/
> dBASE at goldenstag dot net
> http://www.goldenstag.net/dbase/dBASEBook.htm
> http://www.goldenstag.net/GSP
> http://www.goldenstag.net/dbase
| |
|
|
|
|
|