Tests with OpenDCL 4.1.0.7 Alpha

Started by velasquez · 2007-09-18 18:24 UTC · 12 replies · SMF topic #54

Working with OpenDCL 4.1.0.7 Alpha found the problems below: 
 
1 - alert on the function dcl_TextBox_SetFilter 
2 - GraphicButton stopped to work with files of icons  "*.ico" 
3 - dcl_Control_SetFontSize in this working different in Control of Label 
 
Were these problems already mentioned? 
 
I posted images to show this

[attachment deleted by admin]
author=velasquez link=topic=54.msg236#msg236 date=1190139855 wrote:
1 - alert on the function dcl_TextBox_SetFilter 
2 - GraphicButton stopped to work with files of icons  "*.ico" 
3 - dcl_Control_SetFontSize in this working different in Control of Label 


1) This feature is not yet implemented. Can you describe how you are using it?

2) Try setting both the Pressed and Unpressed picture properties for those buttons. Those properties were switched before Alpha 7, and Alpha 7 corrected this.

3) SetFontSize changed in an earlier alpha to correct inconsistencies in its implementation for different controls. Try changing the sign of your font size (i.e. if you are setting a positive value, change it to negative) and let me know whether that solves the problem.
1) I am using dcl_TextBox_SetFilter in OnInitialize

(defun c:JoyLoop_JoyMainLoop_OnInitialize (/)
;;;
  (Dcl_Form_Center JoyLoop_JoyMainLoop)
;;;
  (Dcl_BlockView_DisplayBlock JoyLoop_JoyMainLoop_JoyBlockIso "JoyIso")
;;;
;;;Testing Alpha 7 
;;;Not this working
  (dcl_TextBox_SetFilter JoyLoop_JoyMainLoop_TextBox10 ".0123456789")
)


2) The property PressedPicture accepted the icon file. 
The property Picture not accepts the icon file. 
Is it this what you wanted to explain? 

3) I changed the value of SetFontSize for negative. 
This worked. 
To get FontSize 28 I needed to use (dcl_Control_SetFontSize JoyLoop_JoyMainLoop_Label12 -22). 
Does this difference exist?

[attachment deleted by admin]
author=velasquez link=topic=54.msg238#msg238 date=1190222262 wrote:
  (dcl_TextBox_SetFilter JoyLoop_JoyMainLoop_TextBox10 ".0123456789")


This filter is almost identical to the filter for "Numeric" style. Until filters are implemented, you could change your text box style to "Numeric".
 

author=velasquez link=topic=54.msg238#msg238 date=1190222262 wrote:
2) The property PressedPicture accepted the icon file. 
The property Picture not accepts the icon file. 
Is it this what you wanted to explain?


Can you email the .odcl file to me so I can have a look?


author=velasquez link=topic=54.msg238#msg238 date=1190222262 wrote:
To get FontSize 28 I needed to use (dcl_Control_SetFontSize JoyLoop_JoyMainLoop_Label12 -22). 


Setting font size to -22 means that you want the characters to be 22 pixels tall. A size of +28 means 28 "points", which means the size in pixels will change depending on your screen resolution.
Ok Owen
I will send for you the files .odcl and .lsp 
Thanks
author=velasquez link=topic=54.msg240#msg240 date=1190230161 wrote:
I will send for you the files .odcl and .lsp 


After researching this some more, I found that the "PressedPicture" is not the picture that displays when the button is pressed. Instead, it is the picture that displays when the mouse is over the button. Therefore, I have switched the picture properties back to the way they were before Alpha 7, and renamed the "PressedPicture" property to "MouseOverPicture" to make this more clear.

Seeing the pictures, I'm reminded ;

With the rework to controls,
Can the text in textbox controls be justified vertically ( particularly to center ) ?
Why the property DropDownHeight of ComboBox doesn't work more? 
That is a bug or she will be removed of this control?
author=owenwengerd link=topic=54.msg241#msg241 date=1190232598 wrote:
[quote author=velasquez link=topic=54.msg240#msg240 date=1190230161]
I will send for you the files .odcl and .lsp 


After researching this some more, I found that the "PressedPicture" is not the picture that displays when the button is pressed. Instead, it is the picture that displays when the mouse is over the button. Therefore, I have switched the picture properties back to the way they were before Alpha 7, and renamed the "PressedPicture" property to "MouseOverPicture" to make this more clear.

Owen, Is this related ??
https://sourceforge.net/tracker/index.php?func=detail&aid=1798572&group_id=187950&atid=923363
Can you clarify your intent ? ie will the default pictures display as per previous versions.
author=owenwengerd link=topic=54.msg239#msg239 date=1190226339 wrote:

[quote author=velasquez link=topic=54.msg238#msg238 date=1190222262]
To get FontSize 28 I needed to use (dcl_Control_SetFontSize JoyLoop_JoyMainLoop_Label12 -22). 


Setting font size to -22 means that you want the characters to be 22 pixels tall. A size of +28 means 28 "points", which means the size in pixels will change depending on your screen resolution.


Reminder :
The Help for dcl_Control_SetFontSize will need to be updated ;
currently reads "This is a hidden property that can not be set directly."
author=velasquez link=topic=54.msg243#msg243 date=1190294659 wrote:
Why the property DropDownHeight of ComboBox doesn't work more? 
That is a bug or she will be removed of this control?


That is a bug. I should be fixed in Alpha 8. :)
author=Kerry Brown link=topic=54.msg245#msg245 date=1190342669 wrote:
The Help for dcl_Control_SetFontSize will need to be updated ;


Done...
author=owenwengerd link=topic=54.msg247#msg247 date=1190354621 wrote:
[quote author=Kerry Brown link=topic=54.msg245#msg245 date=1190342669]
The Help for dcl_Control_SetFontSize will need to be updated ;


Done...


Thanks Owen !