Hi.
I'm using CommonFileDialog and QuadraticLook in my application. CommonFileDialog worked fine while I was using Taharez, but with Quadratic I can't move into another folder by selecting it from the list.
The thing is that folder selection occurs on a doubleclick and this event is never executed (so I'm guessing the problem is something involving the doubleclick).
I'd appreciate it if anyone had any idea on why this is happening with Quadratic look and not Taharez (can a look disable doubleclick or something like that?).
Thanks in advance.
[SOLVED] QuadraticLook and CommonFileDialog
Moderators: CEGUI MVP, CEGUI Team
[SOLVED] QuadraticLook and CommonFileDialog
Last edited by mrzli777 on Sun Feb 03, 2008 18:16, edited 1 time in total.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: QuadraticLook and CommonFileDialog
mrzli777 wrote:(can a look disable doubleclick or something like that?).
No, that should not be possible.
Can you post, or have a look in the CEGUI.log for errors - I would guess that some required element that exists in TaharezLook is missing in QuadraticLook.
I changed my program so it moves into folder by a single click and this works, but the original problem (doubleclick) remains. Log is a bit lengthy so I cut the unimportant part, but it's still quite long:
--Log was here but I cut it because it was long and useless for this problem.--
--Log was here but I cut it because it was long and useless for this problem.--
Last edited by mrzli777 on Sun Feb 03, 2008 17:49, edited 2 times in total.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
There's nothing useful in that log part. Though I was just thinking about it, and I believe I know what the issue is.
Somewhere in the looknfeel for the quadratic look the window skins probably set the "WantsMultiClickEvents" property to false - I know I said that you can't disable double-clicks in a skin, which goes to show I have no idea what I'm on about half the time. Sorry for getting this wrong, but it was my first day!
Anyway, if you find and remove that property setting from the skin it should work. (Just search the skin file for "WantsMultiClickEvents" and you should be able to work out what to delete or comment out).
Edit:
Another option is to re-set the property to true in the layout / code for the dialog.
CE
There's nothing useful in that log part. Though I was just thinking about it, and I believe I know what the issue is.
Somewhere in the looknfeel for the quadratic look the window skins probably set the "WantsMultiClickEvents" property to false - I know I said that you can't disable double-clicks in a skin, which goes to show I have no idea what I'm on about half the time. Sorry for getting this wrong, but it was my first day!

Anyway, if you find and remove that property setting from the skin it should work. (Just search the skin file for "WantsMultiClickEvents" and you should be able to work out what to delete or comment out).
Edit:
Another option is to re-set the property to true in the layout / code for the dialog.
CE
Somewhere in the looknfeel for the quadratic look the window skins probably set the "WantsMultiClickEvents" property to false
That was it. Changed from "False" to "True" in "QuadraticLook/Listbox" and it works like a charm. Thanks.
I know I said that you can't disable double-clicks in a skin, which goes to show I have no idea what I'm on about half the time. Sorry for getting this wrong, but it was my first day!
I'll forgive you this time, but don't let it happen again.

No, really, thanks for the info. CEGUI is a big project and I guess you don't do it all alone (sourceforge says 15 developers), so it would be really strange if you knew everything. I forget what my code does in 2 days if it's more than 500 lines. That's probably because I'm etremely skilled with design and very diligent when it comes to commenting.

[quote="mrzli777]I forget what my code does in 2 days if it's more than 500 lines. That's probably because I'm etremely skilled with design and very diligent when it comes to commenting.
[/quote]
At work I sometimes come across code that has been written more than 10 years ago and it's quite difficult to read at times. There's no comment and the variables are meaningless: l_i, l_ii, lPrice, lTotPrice, lPriceTot.
Or sometimes two programs were merged quickly. You read the code and figure out what the variable dQty does only to come across a line such as dQte = dQty and from now on the variable dQty is used differently. Miss that single assign and you've misunderstood the second part of the program. To clarify, I'm working in a bilingual environment where qty means quantity in english and qte also means quantity but in french. Fun fun fun.
But on the other hand Cegui is very well written; there are nearly as many comments as code and the variable and function names are quite clear. Very good job.

At work I sometimes come across code that has been written more than 10 years ago and it's quite difficult to read at times. There's no comment and the variables are meaningless: l_i, l_ii, lPrice, lTotPrice, lPriceTot.
Or sometimes two programs were merged quickly. You read the code and figure out what the variable dQty does only to come across a line such as dQte = dQty and from now on the variable dQty is used differently. Miss that single assign and you've misunderstood the second part of the program. To clarify, I'm working in a bilingual environment where qty means quantity in english and qte also means quantity but in french. Fun fun fun.
But on the other hand Cegui is very well written; there are nearly as many comments as code and the variable and function names are quite clear. Very good job.
But on the other hand Cegui is very well written; there are nearly as many comments as code and the variable and function names are quite clear. Very good job.
I agree. Same goes for OGRE. Wonder how long it took to complete just the design part for CEGUI? Is there some sort of design/technical document for CEGUI available online?
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hehe Yeah, you're right, someone did think about those things, though nothing much was written down or formally specified.
Oh.

You might consider CEGUI as my experiment as to what happens without BDUF, which is what I had kind of been a fan of previously.
Not a fan of BDUF any more?
I'm just the opposite. Now triing to design before coding (as much as possible), unlike before.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
mrzli777 wrote:Not a fan of BDUF any more?
No, not really. It's not particularly flexible enough - by the time you've finished designing the thing, everyone's stopped caring

Obviously some parts of systems need to be designed or modelled, though IMO you're better off just doing enough to solve the problem at hand to enable progress to continue.
As you might be able to tell, personally I've become much more interested in agile design and development processes. Things like TDD are definitely the way forward - CEGUI would have been light-years ahead of what it is now had it used such an approach.
All just my opinion of course

CE.
Who is online
Users browsing this forum: No registered users and 23 guests