I am not sure if it is the RTL or if it is Windows but when I run the example in a text virtual machine (Win-Vista) I see the same symptoms.
I tried a few different images and a PNG file seems to be the cleanest but still has weirdness. See image:
I stumbled across this ButtonTileClass, its a really nice one.
Is there a chance to have a demo being an .APP - for dumbos like me?
Or maybe another topic, like “How to make and run a Clarion-project being a non-APP”, to solve that once and for all times.
UPDATE:
I downloaded all these .CLW and .CWPROJ and all other stuff one by one, but when I tried to open the .SLN or the .CWPROJ, I got “This is not a valid Clarion Projectwhatever-file” error.
I do a mistake, apparently. Hence my favor of .APP…
Good idea! Perhaps also as part of that a series on using git too
The problem with apps is backwards compatibility so, like you say, better to solve the root problem. I will try to get something started tonight.
I will update here as I add more. Of course if anyone else wishes to contribute please do! I recommend using the docs category for now. If we get a bunch of these and it makes sense then we can look at creating a more specific category.
Probably need to set the link and dll attributes in the class properly. I was lazy and hard coded them because I was using it in a single exe. Submit a PR to the github repo if you can!
It’s the latest release of C10 12799. I have those defined. If got another class which I wrote for auto completing with the same defines and that is working without problem.
The other strange thing I found is that your classes are not showing up in the ABC Class Viewer. I did move it to the Clarion10\accessory\libsrc\win folder.
It’s this last one that seems to be most relevant, and should be fixed by including the !ABCIncludeFile
Exporting CLASSes
Exporting CLASS declarations requires a special form of export definition.
You must create two export definitions for the CLASS itself. The first begins with VMT$ followed by the name of the CLASS as the entryname. The second begins with TYPE$ followed by the name of the CLASS as the entryname. These are followed by an export definition for each method in the CLASS to export whose pwords must begin with the name of the CLASS as the first parameter.
Adding the !ABCIncludeFile seemed to do the trick.
I wasn’t trying to export the class anyway.
If refactored your ButtonTile to TileButton just to put them together alphabetically.
I’ve put a template together for it as well, just to make the implementation smoother. The template uses the button’s background property as the Tile background.
You are welcome to have a look here and merge back to your Github if you are happy with the changes.
Hello, could someone upload an example of the use of the class using an .app with CLarion 11? I compiled the project and it works fine, but I want to test the class in an app, I never worked with classes and I want to learn, if someone could give me a hand I would be very grateful!
In that case you can manually call TileManager.WindowComponent.Reset(1) when windows event is
resizing, I think the equate for resizing is 561 and/or 1023. After that, the buttons/tiles is resized according to
resizer…
For example, if you declate it like; tiles TileManager, then in embed of TakeWindowEvent, on 5001, right after parrent call use something like this:
case event()
of 1023 orof 561
tiles.WindowComponent.Reset(1)
END