Page 1 of 1

SOLVED own Properties not changeable ...

Posted: Friday 30th June 2023 8:11am
by PJBlack
may one can try if it is my problem or if i doing some thing wrong ...

create a class with name "Form"

' Gambas class file

Export

Public Const _Group As String = "Form"
Public Const _Family As String = "Form"

Public Const _DrawWith As String = "Form"
Public Const _Properties As String = "*,FormStyle,FormStyle1,FormStyle2,FormStyle3"

'----- Properties

Property FormStyle As Byte Use $FormStyle
Property FormStyle1 As Integer Use $FormStyle1
Property FormStyle2 As String Use $FormStyle2
Property FormStyle3 As Boolean Use $FormStyle3


now go to the form editor and try to change the values ...

thanks
Micha

Re: owm Properties not changeable ...

Posted: Friday 30th June 2023 8:34am
by BruceSteers
You on dev branch?
A bug got fixed recently in ide custom property editing.

Re: owm Properties not changeable ...

Posted: Friday 30th June 2023 8:38am
by PJBlack
yes im on 3.18.99

and i know that this WAS fixed and working ... but now it happened again

Re: owm Properties not changeable ...

Posted: Friday 30th June 2023 8:43am
by BruceSteers
It is because of the _DrawWith constant. remove it and it works.

to be fair you do not need the _Group or _Family consts either as it is an auto-inherited class that will inherit those properties from the Super Form.Class


' Gambas class file

Export
Create Static

Public Const _Properties As String = "*,FormStyle,FormStyle1,FormStyle2,FormStyle3"
 
'----- Properties
 
Property FormStyle As Byte Use $FormStyle
Property FormStyle1 As Integer Use $FormStyle1
Property FormStyle2 As String Use $FormStyle2
Property FormStyle3 As Boolean Use $FormStyle3




:)

Re: owm Properties not changeable ...

Posted: Friday 30th June 2023 8:49am
by PJBlack
bruce ... i love you will you marrie me ???

works perfectly !!! thanks a lot !!!

Re: SOLVED own Properties not changeable ...

Posted: Friday 30th June 2023 2:17pm
by thatbruce
the mind boggles