Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » Finding DrawXPButton
Finding DrawXPButton [message #4703] |
Sun, 20 August 2006 21:17  |
jadeite
Messages: 42 Registered: January 2006
|
Member |
|
|
In void Button::Paint(Draw& w)
there is a call to the fct
DrawXPButton(w, sz, t)
I use the "Go to symbol definition" and "Go to definition/declaration" under the Assist menu, but I am not taken to this function.
Where do I find the implementation of DrawXPButton, and how do I find it?
Thanks
|
|
|
Re: Finding DrawXPButton [message #4707 is a reply to message #4703] |
Sun, 20 August 2006 21:33   |
 |
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
jadeite wrote on Sun, 20 August 2006 20:17 | In void Button::Paint(Draw& w)
there is a call to the fct
DrawXPButton(w, sz, t)
I use the "Go to symbol definition" and "Go to definition/declaration" under the Assist menu, but I am not taken to this function.
Where do I find the implementation of DrawXPButton, and how do I find it?
Thanks
|
My tip:
1. Type "DrawXPButton::" then Ctrl_Space and press Enter.
2. Use one of navigation "jumpers" (btw, I've assigned alt_< and alt_> and if I jump to a wrong place, I go back with alt_<arrow)
It works for me.
P.S you can check where it is by selecting inheritance (in this case <global>...,AFAIK)
[Updated on: Sun, 20 August 2006 21:34] Report message to a moderator
|
|
|
|
Re: Finding DrawXPButton [message #4717 is a reply to message #4714] |
Sun, 20 August 2006 22:01   |
jadeite
Messages: 42 Registered: January 2006
|
Member |
|
|
jadeite wrote on Sun, 20 August 2006 15:49 |
fudadmin wrote on Sun, 20 August 2006 15:33 |
My tip:
1. Type "DrawXPButton::" then Ctrl_Space and press Enter.
2. Use one of navigation "jumpers" (btw, I've assigned alt_< and alt_> and if I jump to a wrong place, I go back with alt_<arrow)
It works for me.
P.S you can check where it is by selecting inheritance (in this case <global>...,AFAIK)
|
Sorry, none of those suggestions does anything for me. I'm using release 605. This fct must be hiding somewhere, but I certainly can't find it.
How do I select inheritance? What do I select it under?
Did you actually find this DrawXPButton ghost?
|
Ok, I finally found it in DrawUtil.cpp, in the Draw folder after doing a find in files.
For drawing of controls, when some drawing is sort of OS dependent (XP look in this case), does all of that drawing always occurr in the Draw folder and not in Ctrl... folders? Is there a standard policy on that?
|
|
|
Re: Finding DrawXPButton [message #4722 is a reply to message #4717] |
Sun, 20 August 2006 22:20   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
Assist++ parser is still not perfect. Sometimes it gets confused when there are macros used in source file (and sometimes a bug in parser is showstopper). In such case, Assist++ simply does not know where to look for function.
In such case, I recommend simple "find in files" in "uppsrc" directory....
As for DrawXPButton, that fn is now mostly irrelevant because of chameleon, which on the other hand is not present in 605 release.
(605 is last freeze before accepting huge changes in image processing and chameleon, causing a temporary hell in U++ stability).
Actually, it was not even OS dependent. Linux used that too...
DrawXPButton is a draw utility function capable of drawing several different parts of widgets with XP-ish look, including buttons that look like XP luna buttons.
In current dev version, it is kept more or less for backward compatibility reasons, as all widget part drawing is now domain of chameleon (which can use different ways to do the job, including using XP theming API).
Mirek
[Updated on: Sun, 20 August 2006 22:22] Report message to a moderator
|
|
|
|
|
|
|
Re: Finding DrawXPButton [message #4738 is a reply to message #4733] |
Sun, 20 August 2006 23:19   |
 |
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
luzr wrote on Sun, 20 August 2006 21:58 |
...
One of problems (and reason why we cannot release is as "stable" now) is missing new Image designer...
Current one occasionally crashes. OTOH, we will need completely new one to support alpha channel anyway, so I see little reason to fix it...
Mirek
|
I've noticed that. But it's quite rare and it doesn't "overweights" all other goodies... Btw, layout designer sometimes switches to text only mode and refuses to display layout. My trick then is to delete that file, remove includes, recompile and add again. Quite annoying but rare.
Just guessing - same origins by chance? configs, serialization, factories?
|
|
|
Re: Finding DrawXPButton [message #4739 is a reply to message #4738] |
Sun, 20 August 2006 23:29   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
fudadmin wrote on Sun, 20 August 2006 17:19 |
luzr wrote on Sun, 20 August 2006 21:58 |
...
One of problems (and reason why we cannot release is as "stable" now) is missing new Image designer...
Current one occasionally crashes. OTOH, we will need completely new one to support alpha channel anyway, so I see little reason to fix it...
Mirek
|
I've noticed that. But it's quite rare and it doesn't "overweights" all other goodies... Btw, layout designer sometimes switches to text only mode and refuses to display layout. My trick then is to delete that file, remove includes, recompile and add again. Quite annoying but rare.
Just guessing - same origins by chance? configs, serialization, factories?
|
This happens during debugging (because, in the end, it is regular C++ source and stepping through graphical layout is hard to do 
You should be able to switch it back using "Edit using designer" when out of debug mode.
Mirek
|
|
|
Re: Finding DrawXPButton [message #4740 is a reply to message #4730] |
Sun, 20 August 2006 23:34   |
jadeite
Messages: 42 Registered: January 2006
|
Member |
|
|
fudadmin wrote on Sun, 20 August 2006 16:47 | jadeite, btw, what is the reason for 605 and not the latest r20?
|
Because I have 605; I don't have latest dev release. I think I need to use uvs2(?) for latest dev version, right? I don't have the instructions for using that at hand (Mirek gave them to me a long time ago, but I'm not sure where I put them).
Edit. Oh, I just noticed in other thread I can use svn. I will do that to get latest sources.
[Updated on: Sun, 20 August 2006 23:37] Report message to a moderator
|
|
|
|
Re: Finding DrawXPButton [message #4743 is a reply to message #4741] |
Sun, 20 August 2006 23:49  |
jadeite
Messages: 42 Registered: January 2006
|
Member |
|
|
luzr wrote on Sun, 20 August 2006 17:41 | Nope, Daniel releases full U++ dev complete with installer each week (more or less) (13MB download).
(One of reason is that this way, we can check early everything, including installation package creating process and installation itself. We have now nice GUI program that takes U++ sources and uploads (after 20 minutes of compiling, zipping etc) installation .exe to sf.net 
Means, you have to wait at most 7 days for fixes 
Mirek
|
Oh, so many options. uvs2, svn, SF installers. Weekly installers are nice. You can really keep your download stats high that way.
TortoiseSVN is streaming away as I right, so I'll go with that for now.
[Updated on: Sun, 20 August 2006 23:51] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 25 20:29:54 CEST 2025
Total time taken to generate the page: 0.00749 seconds
|