Page 1 of 1
ControlsGadget()
Posted: Wed Dec 23, 2015 6:12 pm
by mestnyi
Another example on canvas.
I would like you to check it on different operating systems
http://purebasic.info/phpBB3ex/viewtopi ... ead#p81949
Re: ControlsGadget()
Posted: Wed Dec 23, 2015 6:47 pm
by bbanelli
[18:46:55] [ERROR] Line: 478
[18:46:55] [ERROR] WaitWindowEvent(): WindowEvent() and WaitWindowEvent() can not be called from a 'binded' event callback.
[18:47:01] Execution continued.
[18:47:01] [ERROR] Line: 771
[18:47:01] [ERROR] Invalid memory access. (read error at address

Re: ControlsGadget()
Posted: Thu Dec 24, 2015 8:14 am
by mestnyi
Now you try, you will not work?
Re: ControlsGadget()
Posted: Thu Dec 24, 2015 2:28 pm
by blueb
Works well on:
PureBasic 5.41 LTS (x86) on Windows 10
Nice work... hopefully this will be the start of a Drag'N'Drop Visual Designer tool

Re: ControlsGadget()
Posted: Mon Dec 28, 2015 10:03 am
by Kwai chang caine

Works very well and is very nice on W7 with PB v5.23
Blueb wrote:hopefully this will be the start of a Drag'N'Drop Visual Designer tool
Yeeeeess !!! i hope too.
They are several open source IDE, but nothing fully coding for visual designer
So for the moment, already a great thanks for sharing this, and PropertiesGadget() code

Re: ControlsGadget()
Posted: Mon Dec 28, 2015 11:05 am
by Kurzer
Hello mestnyi, this works great and looks good with Windows XP SP3 / 32 Bit.
But please mention in your first post that your code leaves over some files in PureBasics theme directory (or clean up the theme directory after unpacking and reading the BMP files).
btw: I would also be very happy if you plan to program a good substitute for the current Formdesigner.

Re: ControlsGadget()
Posted: Mon Dec 28, 2015 10:22 pm
by Wolfram
Thanks! Works on OSX too.
Re: ControlsGadget()
Posted: Tue Dec 29, 2015 12:53 am
by Andre
While this code seems to be a nice piece of code too, I couldn't test...
Get a 'PB Linker Error' using PB5.41b1 on MacOS 10.6.8 with following message
Undefined symbols:
"_CCCryptorCreateWithMode", referenced from:
_aes_ctr_init in libpbarchive.a(archive_cryptor.o)
"_CCKeyDerivationPBKDF", referenced from:
_pbkdf2_sha1 in libpbarchive.a(archive_cryptor.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
Any ideas?
@Wolfram: which PB and MacOS versions do you use?
Re: ControlsGadget()
Posted: Tue Dec 29, 2015 12:12 pm
by Wolfram
Hello Andre,
I tested it on OSX 10.7.5, PB 5.31 x86 and PB 5.41b1 x86.
Re: ControlsGadget()
Posted: Tue Dec 29, 2015 4:06 pm
by Keya
Andre wrote:Undefined symbols:
"_CCCryptorCreateWithMode", referenced from:
_aes_ctr_init in libpbarchive.a(archive_cryptor.o)
"_CCKeyDerivationPBKDF", referenced from:
_pbkdf2_sha1 in libpbarchive.a(archive_cryptor.o)
It would be great if PB exported an interface to the PBKDF2 function! because there currently isnt a KDF for PB according to google, and if libpbarchive already has one ...

Re: ControlsGadget()
Posted: Sat Jan 16, 2016 6:29 pm
by mestnyi
I'm glad that it works.
that your code leaves over some files in PureBasics theme directory
Well, I'll do
But if I could get the icons from an archive without extracting it.
How it is implemented in purebasiŃ
Re: ControlsGadget()
Posted: Sat Jan 16, 2016 8:33 pm
by mestnyi
Updated first post code
When you change the window size changes the size of the content
Re: ControlsGadget()
Posted: Mon Jan 18, 2016 7:49 am
by Kukulkan
Hello,
being curious I just tried it on my PB 5.24 LTS on Kubuntu (32 Bit). It does not resize the canvas initially. It does a resize only if I manually resize. I also cant use the scrollbar to scroll the controls list. It always moves the whole window. Thus, scrolling the list only works using mouse-wheel or clicking the scrollbar arrows.
Kukulkan
Re: ControlsGadget()
Posted: Mon Jan 18, 2016 4:51 pm
by mestnyi
It does not resize the canvas initially
This is due to different behavior in various systems
when you create a window in the windows occurs resize event as in Linux not.
look now
It always moves the whole window
it does not quite understand
Re: ControlsGadget()
Posted: Mon Jan 25, 2016 7:35 am
by mestnyi
Added screenshot and updated the code.
But please mention in your first post that your code leaves over some files in PureBasics theme directory (or clean up the theme directory after unpacking and reading the BMP files).
Now Untraceable
So I think I can not upload a file, I leave the link