B4J Question B4J - Desktop

T201016

Active Member
Licensed User
Longtime User
Hello,
I post it as a curiosity and a puzzle at the same time ...

in my standard class module (see view: ScreenS1.png) there are e.g. procedures
such as "setMinimizeIcon(Title as string)" for example.

ScreenS1.png


Can someone tell me why I can't see this procedure (and others too),
when I write the code (see view: ScreenS2.png)

ScreenS2.png


Can it matter what version of B4J the class file was physically created in?
i.e. created in an older version, and used in a newer, currently working, i.e. v9.80.
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
Can someone tell me why I can't see this procedure (and others too),
because the start with "set"
if a sub starts with set and receives a single parameter it will be converted to a field. say

setIcon
would be
icon =

I think you can circunvent the IDE with upper case S.

BTW it is the same for get, if you do not write the get then the field will be write only if you do write the get but not the set it will be a read only
 
Upvote 0

T201016

Active Member
Licensed User
Longtime User
because the start with "set"
if a sub starts with set and receives a single parameter it will be converted to a field. say

setIcon
would be
icon =

I think you can circunvent the IDE with upper case S.

BTW it is the same for get, if you do not write the get then the field will be write only if you do write the get but not the set it will be a read only
Thanks for the suggestion, but by the way it limits the way of describing function names :(
 
Upvote 0

AnandGupta

Expert
Licensed User
Longtime User
Thanks for the suggestion, but by the way it limits the way of describing function names :(
Yes. I agree. but B4X class are so designed I think. We will have to keep that in mind.
 
Upvote 0

T201016

Active Member
Licensed User
Longtime User
B4X:
#Region TitleBar CustomView 1
    TitleBarCV1.SetIcon(Main.ImageIcon)
    TitleBarCV1.SetTitle(SharedCode.AppName)
    TitleBarCV1.SetResizeWindow.MaxWindowWidth  = 600
    TitleBarCV1.SetResizeWindow.MaxWindowHeight = 600
#End Region

There was a small correction in lines 2 and 3 of the code after changing "set/Set" or "get/Get"
for what was before see my post #4.
 
Last edited:
Upvote 0
Top