Hello,
it seems that setting sayfont in DC_GetOptDefault() does not effect the font in checkboxes, see attached screenshot. Is this a but or can I set the font with another setting ?
regards
Rudolf
Default getoptions saysize for checkbox
Default getoptions saysize for checkbox
- Attachments
-
- 2016-05-15_10h33_03.png (7.44 KiB) Viewed 13475 times
Re: Default getoptions saysize for checkbox
The SAYFONT clause only affects objects of @ .. DCSAY or @ .. DCSAY .. GET.
The eXpress train is coming - and it has more cars.
Re: Default getoptions saysize for checkbox
Hello Roger,
would be great if this setting effects all dialog elements. Its also strange that checkboxes are always some pixels too low positioned.
regards
Rudolf
would be great if this setting effects all dialog elements. Its also strange that checkboxes are always some pixels too low positioned.
regards
Rudolf
Re: Default getoptions saysize for checkbox
Oh no, please don't add this. It would destroy existing GUI layouts.would be great if this setting effects all dialog elements.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: Default getoptions saysize for checkbox
I would not do that to you Tom.Oh no, please don't add this. It would destroy existing GUI layouts.
The eXpress train is coming - and it has more cars.
Re: Default getoptions saysize for checkbox
It might be great for you, but it would cause a nightmare for me. Am I right Tom?would be great if this setting effects all dialog elements. Its also strange that checkboxes are always some pixels too low positioned.
If you want to control it with the SAYFONT try this:
@ .. DCCHECKBOX myCheckBox PROMPT ''
@ DCGUI_ROW, DCGUI_COL + 10 DCSAY 'This is my Checkbox Prompt' SAYSIZE 0
The eXpress train is coming - and it has more cars.
Re: Default getoptions saysize for checkbox
Hello Roger,
thank you, this is a solution for me
regards
Rudolf
thank you, this is a solution for me
regards
Rudolf
Re: Default getoptions saysize for checkbox
Remember a WHEN-clause must be added to both, the box and the static in that situation. Otherwise, only the box would be disabled, which is hard to recognize.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: Default getoptions saysize for checkbox
You also need to respond to mouse clicks on the say. See below.
Code: Select all
#INCLUDE "dcdialog.CH"
#INCLUDE "appevent.CH"
FUNCTION Main()
LOCAL GetList[0], lCheck := .f., oCheck
@ 0,0 DCCHECKBOX lCheck PROMPT '' OBJECT oCheck
@ DCGUI_ROW, DCGUI_COL DCSAY 'This is a checkbox' SAYSIZE 0 SAYBOTTOM ;
EVAL {|o|o:lbUp := {|a,b,o|oCheck:setData(!oCheck:getData())}}
DCREAD GUI FIT ADDBUTTONS TITLE 'Checkbox with SAY'
RETURN nil
* ---------
PROC appsys ; RETURN
The eXpress train is coming - and it has more cars.