Now this is great ! Tested it - works like a breeze.
Deeply appreciated !
Ludo
Search found 33 matches
- Fri Feb 12, 2016 8:10 am
- Forum: Coding Questions
- Topic: Binding a "class gadget" to a "class procedure"
- Replies: 4
- Views: 1382
- Thu Feb 11, 2016 7:03 pm
- Forum: Coding Questions
- Topic: Binding a "class gadget" to a "class procedure"
- Replies: 4
- Views: 1382
Binding a "class gadget" to a "class procedure"
Hi,
I'm trying to do some "class-style-program" (the one with vtables), where I want to bind a gadget inside a class to a procedure inside that class.
However, I can't get this to work.
I have a workaround that does what I want, but I don't understand why the BindGadgetEvent() does not and I ...
I'm trying to do some "class-style-program" (the one with vtables), where I want to bind a gadget inside a class to a procedure inside that class.
However, I can't get this to work.
I have a workaround that does what I want, but I don't understand why the BindGadgetEvent() does not and I ...
- Mon Feb 09, 2015 1:41 pm
- Forum: General Discussion
- Topic: PureBasic Docs- Ideas/Help needed for a "We start" chapter!?
- Replies: 122
- Views: 336144
Re: PureBasic Docs- Ideas/Help needed for a "We start" chapt
@Andre - feel free to use if of any use.
http://www.purebasic.fr/english/viewtop ... =7&t=61599
Ludo
http://www.purebasic.fr/english/viewtop ... =7&t=61599
Ludo
- Sat Feb 07, 2015 7:58 pm
- Forum: General Discussion
- Topic: Windowed DLL GUI (+bug ?)
- Replies: 0
- Views: 2518
Windowed DLL GUI (+bug ?)
****************************************************************
*** updated with object oriented examples (vtables)
*** added a simple DLL-validation
****************************************************************
Initially, I tried to make an application that was able to run DLLs with GUi ...
*** updated with object oriented examples (vtables)
*** added a simple DLL-validation
****************************************************************
Initially, I tried to make an application that was able to run DLLs with GUi ...
- Thu Feb 05, 2015 2:34 pm
- Forum: Coding Questions
- Topic: Direct funtion call works - CALLFUNCTION() does not
- Replies: 14
- Views: 5664
Re: Direct funtion call works - CALLFUNCTION() does not
Hi Luis,
The containers in the main, and rest of the GUI in the DLLs was done deliberately : in my thinking, that meant that whatever the DLLs do, all additional GUI-elements created would be isolated from the rest (and indeed they are, but only a little bit too much :mrgreen: ) : the containers ...
The containers in the main, and rest of the GUI in the DLLs was done deliberately : in my thinking, that meant that whatever the DLLs do, all additional GUI-elements created would be isolated from the rest (and indeed they are, but only a little bit too much :mrgreen: ) : the containers ...
- Thu Feb 05, 2015 12:11 pm
- Forum: Coding Questions
- Topic: Direct funtion call works - CALLFUNCTION() does not
- Replies: 14
- Views: 5664
Re: Direct funtion call works - CALLFUNCTION() does not
When setting a windowscallback, I see do see messages flying around. It's "only"
a matter of understanding the contents of the lparams en wparams.
So I might get somewhere after the study ...

So I might get somewhere after the study ...
- Wed Feb 04, 2015 3:38 pm
- Forum: Coding Questions
- Topic: Direct funtion call works - CALLFUNCTION() does not
- Replies: 14
- Views: 5664
Re: Direct funtion call works - CALLFUNCTION() does not
@Luis - well, it almost works as expected. :?
I expanded the test-code a little bit, to include two instances, and to have more gadgets.
While the button/string gadgets are working as hoped for, the combobox and the canvasgadget are not yielding events in the main window.
Is there an ...
I expanded the test-code a little bit, to include two instances, and to have more gadgets.
While the button/string gadgets are working as hoped for, the combobox and the canvasgadget are not yielding events in the main window.
Is there an ...
- Wed Feb 04, 2015 9:31 am
- Forum: Coding Questions
- Topic: Direct funtion call works - CALLFUNCTION() does not
- Replies: 14
- Views: 5664
Re: Direct funtion call works - CALLFUNCTION() does not
:D
Now, this is exactly what I want it to do. An hey ho, your explanation actually explains it ! 8)
From now on, the working name of my program will be Luis !
Thanks a lot.
Ludo
P.S. : I was aware of the .L thing - but it's like any other bad habbit - but while on 32bit only, it wouldn't ...
Now, this is exactly what I want it to do. An hey ho, your explanation actually explains it ! 8)
From now on, the working name of my program will be Luis !
Thanks a lot.
Ludo
P.S. : I was aware of the .L thing - but it's like any other bad habbit - but while on 32bit only, it wouldn't ...
- Tue Feb 03, 2015 5:23 pm
- Forum: Coding Questions
- Topic: Direct funtion call works - CALLFUNCTION() does not
- Replies: 14
- Views: 5664
Re: Direct funtion call works - CALLFUNCTION() does not
Some further narrowing of what I suppose is the problem ...
The question gets easier : why is the "addcontainer" call not adding to the container, but to the gadgetlist of the mainwindow ?
It should be adding to the container. :?
Is this "fixable" with WinAPI calls - whatever ?
Ludo
test ...
The question gets easier : why is the "addcontainer" call not adding to the container, but to the gadgetlist of the mainwindow ?
It should be adding to the container. :?
Is this "fixable" with WinAPI calls - whatever ?
Ludo
test ...
- Tue Feb 03, 2015 2:49 pm
- Forum: Coding Questions
- Topic: Direct funtion call works - CALLFUNCTION() does not
- Replies: 14
- Views: 5664
Re: Direct funtion call works - CALLFUNCTION() does not
Really something weird. I'm not even sure how to understand the results.
Application builds a couple of windows with some container/gadgets.
The call to the DLL is supposed to add a stringgadget to the windows/container.
It surprises me that the gadgets are added and visual on the screen ...
Application builds a couple of windows with some container/gadgets.
The call to the DLL is supposed to add a stringgadget to the windows/container.
It surprises me that the gadgets are added and visual on the screen ...
- Tue Feb 03, 2015 2:26 pm
- Forum: Coding Questions
- Topic: Direct funtion call works - CALLFUNCTION() does not
- Replies: 14
- Views: 5664
Re: Direct funtion call works - CALLFUNCTION() does not
Indeed Luis - fixed the crash for me too.
But something else is weird. It looks as of the whole thing with Usegadgetlist() / Opengadgetlist() does not work when in DLLs.
I'm one a small test-program right now. Will post when usefull.
But something else is weird. It looks as of the whole thing with Usegadgetlist() / Opengadgetlist() does not work when in DLLs.
I'm one a small test-program right now. Will post when usefull.
- Tue Feb 03, 2015 9:19 am
- Forum: Coding Questions
- Topic: Direct funtion call works - CALLFUNCTION() does not
- Replies: 14
- Views: 5664
Re: Direct funtion call works - CALLFUNCTION() does not
Thanks Luis - moving the UseGadgetList() indeed now shows the first container. I seems like it cannot be assumed that a called DLL knows about "current window".
Nevertheless, the crashing is still there...
It happens after the "freeing" construct (ForEach/Next).
Ludo
Nevertheless, the crashing is still there...

It happens after the "freeing" construct (ForEach/Next).
Ludo
- Mon Feb 02, 2015 5:31 pm
- Forum: Coding Questions
- Topic: Direct funtion call works - CALLFUNCTION() does not
- Replies: 14
- Views: 5664
Direct funtion call works - CALLFUNCTION() does not
Hi,
A weird problem that makes me think of a bug ... Or - lack of knowlegde :oops:
Some background to start with ...
I'm trying to write a program where different functional blocks are run from different external DLLs. Think of it as e.g. an object oriented drafting program.
By definition ...
A weird problem that makes me think of a bug ... Or - lack of knowlegde :oops:
Some background to start with ...
I'm trying to write a program where different functional blocks are run from different external DLLs. Think of it as e.g. an object oriented drafting program.
By definition ...
- Tue May 14, 2013 1:51 pm
- Forum: Coding Questions
- Topic: How to drag & drop rows in ListIcon ?
- Replies: 14
- Views: 5134
Re: How to drag & drop rows in ListIcon ?
@srod - et all
Declare.i DragCallBack(Action)
OpenWindow(0,0,0,480,400,"",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
ListIconGadget(0,20,20,200,300,"Drag from", 195, #PB_ListIcon_FullRowSelect)
ListIconGadget(1,250,20,200,300,"Drag to", 195, #PB_ListIcon_FullRowSelect)
For i = 0 To 99 ...
Declare.i DragCallBack(Action)
OpenWindow(0,0,0,480,400,"",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
ListIconGadget(0,20,20,200,300,"Drag from", 195, #PB_ListIcon_FullRowSelect)
ListIconGadget(1,250,20,200,300,"Drag to", 195, #PB_ListIcon_FullRowSelect)
For i = 0 To 99 ...
- Tue Jan 17, 2012 3:07 pm
- Forum: General Discussion
- Topic: Antivirus and linking ?
- Replies: 7
- Views: 2653
Antivirus and linking ?
Hi,
Not sure if this is a bug or not, anyway - it is utterly annoying :cry:
I'm using F-Secure as an anti-virus on my PC. A good AV-tester, but the heuristics are a bit overactive from time to time, and block a totally innocent program (telnet). I wouldn't abuse PB for writing viri ! :mrgreen ...
Not sure if this is a bug or not, anyway - it is utterly annoying :cry:
I'm using F-Secure as an anti-virus on my PC. A good AV-tester, but the heuristics are a bit overactive from time to time, and block a totally innocent program (telnet). I wouldn't abuse PB for writing viri ! :mrgreen ...