Search found 7 matches

by amigojapan
Wed Aug 24, 2022 3:14 am
Forum: eC Language
Topic: I have an eC/ecere question
Replies: 2
Views: 2140

Re: I have an eC/ecere question

I can answer my own question now! after double clicking the edit box, the following method appeared, and it worked as wanted! bool NotifyModified(EditBox editBox) { printf("notify modified called!"); return true; } inside the edit box scope that is... just double click the edit box and it ...
by amigojapan
Wed Aug 24, 2022 2:54 am
Forum: eC Language
Topic: I have an eC/ecere question
Replies: 2
Views: 2140

I have an eC/ecere question

hi, I want to call a function every time a key is released inside an edit box.
any idea of how this can be done?
example code welcome!



thanks in advanced,
amigojapan
by amigojapan
Wed Aug 24, 2022 2:51 am
Forum: Linux
Topic: debian derivative ecere install script
Replies: 2
Views: 2874

Re: debian derivative ecere install script

I see
by amigojapan
Tue Aug 23, 2022 10:11 pm
Forum: eC Language
Topic: how to read a file
Replies: 0
Views: 1006

how to read a file

File f = FileOpen("3dplJSlib.js", read); if(f) { uint64 maxSize = f.GetSize(); //byte * buffer = new byte[maxSize + 1]; char * buffer = new byte[maxSize + 1]; f.Read(buffer, 1, maxSize); buffer[maxSize] = 0; puts(buffer); delete f; }
by amigojapan
Sat Jul 30, 2022 5:07 am
Forum: Linux
Topic: debian derivative ecere install script
Replies: 2
Views: 2874

debian derivative ecere install script

I made the following ecere install script that shoudl work for debian derivatives , specifically my machine is linux mint cinnamon... #!/bin/bash apt install -y debhelper dh-exec dpkg-dev libasound2-dev libffi-dev libfontconfig1-dev libfreetype6-dev libgif-dev libgl1-mesa-dev libgl1-mesa-glx libjpeg...
by amigojapan
Sat Jul 30, 2022 4:59 am
Forum: C/C++
Topic: simple example of how to embed C in ecere
Replies: 1
Views: 3056

Re: simple example of how to embed C in ecere

my bad, I had gotten something confused, turns out all you need to do to run C is add a c file to the project, you do this by going to the project view and clickign add file from the context menu. then those files can just call C functions... easier than I thought!
by amigojapan
Fri Jul 29, 2022 8:05 am
Forum: C/C++
Topic: simple example of how to embed C in ecere
Replies: 1
Views: 3056

simple example of how to embed C in ecere

import "ecere" class Form1 : Window { caption = $"Form1"; background = formColor; borderStyle = sizable; hasMaximize = true; hasMinimize = true; hasClose = true; clientSize = { 320, 304 }; //*** How to call a C function form ecere extern int myFunction(int val) { //C code in her...