SOLVED own Properties not changeable ...

Post

Posted
Rating:
#1 (In Topic #1062)
Avatar
Enthusiast
PJBlack is in the usergroup ‘Enthusiast’
may one can try if it is my problem or if i doing some thing wrong …

create a class with name "Form"

Code (gambas)

  1. ' Gambas class file
  2.  
  3.  
  4. Public Const _Group As String = "Form"
  5. Public Const _Family As String = "Form"
  6.  
  7. Public Const _DrawWith As String = "Form"
  8. Public Const _Properties As String = "*,FormStyle,FormStyle1,FormStyle2,FormStyle3"
  9.  
  10. '----- Properties
  11.  
  12. Property FormStyle As Byte Use $FormStyle
  13. Property FormStyle1 As Integer Use $FormStyle1
  14. Property FormStyle2 As String Use $FormStyle2
  15. Property FormStyle3 As Boolean Use $FormStyle3
  16.  

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

thanks
Micha
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
 You on dev branch?
A bug got fixed recently in ide custom property editing.
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Enthusiast
PJBlack is in the usergroup ‘Enthusiast’
 yes im on 3.18.99
 
and i know that this WAS fixed and working … but now it happened again
Online now: No Back to the top

Post

Posted
Rating:
#4
Guru
BruceSteers is in the usergroup ‘Guru’
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

Code (gambas)

  1.  
  2. ' Gambas class file
  3.  
  4.  
  5. Public Const _Properties As String = "*,FormStyle,FormStyle1,FormStyle2,FormStyle3"
  6.  
  7. '----- Properties
  8.  
  9. Property FormStyle As Byte Use $FormStyle
  10. Property FormStyle1 As Integer Use $FormStyle1
  11. Property FormStyle2 As String Use $FormStyle2
  12. Property FormStyle3 As Boolean Use $FormStyle3
  13.  
  14.  
  15.  

:)
Online now: No Back to the top

Post

Posted
Rating:
#5
Avatar
Enthusiast
PJBlack is in the usergroup ‘Enthusiast’
 bruce … i love you will you marrie me ???

works perfectly !!! thanks a lot !!!
Online now: No Back to the top

Post

Posted
Rating:
#6
Avatar
Regular
thatbruce is in the usergroup ‘Regular’
the mind boggles

Online now: No Back to the top
1 guest and 0 members have just viewed this.