Hi Kajko
kajko wrote:That implies that before main loop invocation (using ACTIVATE) I still can change all preactivate events on the window, eg. ON INIT.
Yes, understood, but, my opinion is: you don't need this !
kajko wrote:Simple, is it easier this:...
Are you sure that we have only this two options ?
Code: Select all
DEFINE WINDOW wndKomit AT 0, 0 WIDTH w_width HEIGHT w_height ;
WINDOWTYPE CHILD ;
ON INIT OnInitKomit() ;
TITLE " Registar komitenata" ;
FONT "Bodoni" SIZE 9
...
PROC OnInitKomit()
if( <something> )
func1() }
else if( <something> )
func2()
else if( <something> )
func3()
etc....
RETU // OnInitKomit()
Does this case is acceptable for you ?
kajko wrote:... whole point of this discussion is to determine why are they not and how we can overcame this lack in interface.
My opinion is : this isn't a lack.
Eventually, lack or not; HMG is open source project and ALL source code is open. As we all know, "open source" doesn't meas only "everyone can use any way that like"; it means also "everyone can examine, criticize, even participate the code". So, you haven't any difficulty writing and sending necessary code that will eliminate this "lack". Anyway the last decision is to owner of project; after his approval your code will be a reality.
kajko wrote:This is, I believe, just oversight in interface implementation, nothing more, especially if HMG is aiming to introduce 'proper' event driven development (eg. for Windows, Gnome, ...) into harbour.
As I said earlier, I'm not a Win32 expert, so I'm unable to understand what is 'proper event driven development'. In my opinion, HMG is most successful interface between WinAPI and us. And please consider that this opinion consisted after struggles with some other interfaces for dozen of years.
kajko wrote:... That is not possible at the moment as there is no way to replace win proc in HMG.
Why "no way" ? As I said above, write your code, make your test; when satisfied send to forum. That's all.
kajko wrote:Does that mean that &window.control.value := "something" will work ?

No ! Macro substitution is a Harbour feature, not HMG; and
window.control.value is a HMG (semi OOP) notation, no Harbour.
kajko wrote:As I explain in my example in previous post, I do not need to know is there a window or not, either way i need to create it again with, maybe, different parameters.
May be... But knowing the window is defined or not will protect you from "BOOM"
kajko wrote:... if it is not assignable I want to know WHY ? It can be and it does not break anything, just gives me more freedom to express my self and write more productive code.
I can't protest this point of view, moreover I have to appreciate. A programmer must be always investigative, even inquisitive. But have know their limits too. This is reason of my point of view by saying "it's sufficient for me knowing "if it's assignable or not".
kajko wrote:I am sure Bjarne Stroustrup never imagined Boost when he was creating C++, but he was not building solid language on "if it's assignable or not".
Does that mean that in C++ there isn't "assignable" and "not assignable" concepts ?
Regards
--
Esgici