Forum Replies Created
-
AuthorPosts
-
Did you check line with error by debugger?
Thanks for concatenating all related parts here!
Note: “New Preferences().Get(…” – you needn’t to use New here because Get is a function not a method and it can be accessed by class name not an instance.
Syntax in my first post is correct.
There was raspbian target, I don’t know what happened with it.
It’s for the parser.
In other langs:
* decimal number is an Integer, and L-suffix means Long: 100L
* floating number is a Double, and F-suffix means Float: 3.14f
Is it works:
Const TriggerBit:ULong=$200000000
I’ve added the issue, will fix later.
Or I can accept pull request with fix.
To check memory access violation error you can run your game in debug mode: menu Build — Debug.
Or you know the line with error but don’t understand why?
Hm. What about allowing to drop Docs tab near the tabs with code? So that it will occupy whole height. And you can goto it by (shift+)ctrl+tab.
Naming depends on what that component will do.
I don’t understand what do you want to achieve here. Kind of container? But we already have DockingView as a good container.
Try to add in constructor of CustomView:
Monkey1Layout="fill"And possibly right there:
dockingView.Layout=”fill”
2k18 is here!
In your case UpdateModel () and UpdateView () can became monstrous.
And also you can to subscribe on these events many times, I don’t know is it good.
And any small change for view or model entails full updating because you grab/set all changes in two single functions.
Look at DockingView, it’s one of powerful views.
You can use it to split any area by parts.
Then assign that dock as window.ContentView.
Monkey12345678910Local dock:=New DockingViewLocal canvas:=New LabelLocal uiDock:=New DockingViewLocal uiEdit:=New TextFieldLocal uiButton:=New Button( "Run" )uiDock.AddView( uiEdit,"top" )uiDock.AddView( uiButton,"top" )dock.AddView( uiDock,"right" )dock.ContentView=canvaswindow.ContentView=dockCanvas is label here, but you should to make own class that extends View (inner window class as a variant) and to delegate drawing to it.
For testing bounds you can set backgroundcolor property of your view via view.Style.BackgroundColor=…
And look at docs of view.Layout property, Layout=”fill” is good to have when view became contentView.
Files chooser is native window, therefore it renders as it can.
Did you try to run ted2go as admin and then open windows/fonts?
I thinks you always should to copy fonts into ide/assets dir to have relative path. Or even change theme to use your font.
1. Usually ViewModel has links to model and view of concrete types, where the types are interface types.
2. View and model are classes, not plain data, so you should work with objects, not a plain properties like Text.
Model is like data provider, we ask it “get me a text” and it give it to us.
View is displayable element, that can notify ViewModel about events like text changing or mouse click, and ViewModel decides what to do.
Also VM may listen signals / changes of Model and update View.
Monkey123456789101112131415161718192021Class TextModel Implements ITextModelMethod GetText:String ()....EndEndClass TextView Extends mojox.TextView Implements ITextView'Signals like OnClickedMethod SetText(t:String)Text=tEnd'And getter...EndClass TextViewModelField model:ITextModelField view:ITextViewMethod New (model,view)' subscribes to needed model and view signalsEndEndView is the only but it can be complex like DockingView with parents – and it always provide us needed methods via its interface. We just call method and view updates itself in proper way.
VM can contains many models to get / put data.
You never assing view to model or vice versa.. as I saw in your code.
-
AuthorPosts