SOLVED own Properties not changeable ...

Post your Gambas programming questions here.
Post Reply
User avatar
PJBlack
Posts: 188
Joined: Tuesday 9th June 2020 10:26pm
Location: Florstadt, Hessen, Germany

SOLVED own Properties not changeable ...

Post 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
Last edited by PJBlack on Friday 30th June 2023 8:50am, edited 1 time in total.
User avatar
BruceSteers
Posts: 1580
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: owm Properties not changeable ...

Post by BruceSteers »

You on dev branch?
A bug got fixed recently in ide custom property editing.
If at first you don't succeed , try doing something differently.
BruceS
User avatar
PJBlack
Posts: 188
Joined: Tuesday 9th June 2020 10:26pm
Location: Florstadt, Hessen, Germany

Re: owm Properties not changeable ...

Post by PJBlack »

yes im on 3.18.99

and i know that this WAS fixed and working ... but now it happened again
User avatar
BruceSteers
Posts: 1580
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: owm Properties not changeable ...

Post 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




:)
If at first you don't succeed , try doing something differently.
BruceS
User avatar
PJBlack
Posts: 188
Joined: Tuesday 9th June 2020 10:26pm
Location: Florstadt, Hessen, Germany

Re: owm Properties not changeable ...

Post by PJBlack »

bruce ... i love you will you marrie me ???

works perfectly !!! thanks a lot !!!
User avatar
thatbruce
Posts: 168
Joined: Saturday 4th September 2021 11:29pm

Re: SOLVED own Properties not changeable ...

Post by thatbruce »

the mind boggles
Have you ever noticed that software is never advertised using the adjective "spreadable".
Post Reply