|
Read the guidelines[^]
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
step 1: do some research so that you atleast have some idea of it
step 2: write alot of code
step 3: profit!
|
|
|
|
|
Hello Guys,
I was wondering, is it possible to rotate controls like text boxes or buttons in a specific dialog, or even rotating the whole dialog? What I am trying to do is making a windows mobile application, that has a button, when you press this button, the whole dialog - with its contents - should rotate by 90 degrees, or in other words become in landscape view, the problem is, I don't want to rotate the whole OS, I know that I can change the orientation of the device, but that will be very slow and won't be a good solution.
I have found some samples here in there that rotate a label or picture box, but not more complex controls or a whole dialog, I followed the steps to rotate a label or picture box to rotate a button or text box, but they didn't work out, and I don't know why.
Thank you in advance and I appreciate any suggestions.
|
|
|
|
|
lemonade_81 wrote: I followed the steps to rotate a label or picture box to rotate a button or text box, but they didn't work out
Why? Can you tell us a bit more about your attempts?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
OK Pallini, there was a number of possible ways to do that, the simplest is making your own control, by inheriting from the control's own class, such as from CEdit, and writing your own OnPaint function, also I tried to make a dll with a custom window procedure, and in the WM_PAINT message, I wrote the code that will paint the control rotated, but also it gave unexpected results. This dll attempt was the most successful one, I was trying on a button, the button was rotated, but its background was not, I don't know what is happening exactly, but the gray texture disappears and a white background appears on its place, but the gray texture's side is appearing on the edge of the white background, which means that the button was rotated !!
|
|
|
|
|
Did you see this![^]
On another note, did you change the property of the controls to owner drawn?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
yes I saw this sample, as you can see it only rotates the dialog, and not the controls, but I didn't play with it yet, you know to try to modify the code to make it rotate the dialog and the controls, do you think something like that is possible?
|
|
|
|
|
I haven't tried such a thing before. but it should be possible!
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Hello _AnShUmAn_
I have been trying for the past two days to figure out how to make the controls rotate with the dialog, but I wasn't able to do so, do you have any ideas dude
|
|
|
|
|
Hi All
I am using the library function GetShortPathName to get the (windows)path name without spaces. Unfortunately this function is not working when I am compiling my output for x64 system
The function is returning some garbage values. If it is a library function, I guess it uses C Run-Time Libraries (CRT), then why would it be different from 32 bit libraries.
please note that my hard drive has NTFS and I can also see the short path name when I use the command dir /x .
please help
|
|
|
|
|
Ranojay wrote: If it is a library function, I guess it uses C Run-Time Libraries (CRT), then why would it be different from 32 bit libraries.
Well, it doesn't use the CRT, actually - it's part of the OS and the CRT is layered on top of it.
Have you thought of checking the return code? MSDN states this:
If the function succeeds, the return value is the length, in TCHARs, of the string that is copied to lpszShortPath, not including the terminating null character.
If the lpszShortPath buffer is too small to contain the path, the return value is the size of the buffer, in TCHARs, that is required to hold the path. Therefore, if the return value is greater than cchBuffer, call the function again with a buffer that is large enough to hold the path.
If the function fails for any other reason, the return value is zero (0). To get extended error information, call GetLastError.
Check the return value and (if it's zero), GetLastError, then repost.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi All,
I have to develop XML Parser using C++ on linux platform.
Its urgent!
If you have a source code to develop XML Parser using C++ for linux platform.
Please kindly request to help me.....
Thanks in advance...
|
|
|
|
|
savitha87k wrote: If you have a source code to develop XML Parser using C++ for linux platform.
I don't, but I know a man who does[^]...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
Thanks for quick response..
Could you please give me that person details..
so that i can able to contact...
Thanks..
|
|
|
|
|
What about a career in project management?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
So follow the link provided by Stuart.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
thanks..
but so many links in examples..
could u pls guide me...
|
|
|
|
|
I think the very first sentence is enough to guide you:
Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), it is free software available under the MIT License.
Goto the download page, download and try to use it.
Good luck.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
thanks a lot..
I downloaded that file..
But confusion is how to run that code...
|
|
|
|
|
Probably there are some examples...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Look at the link I gave you - it's an open-source XML parser written in C/C++ that you can use instead of developing one yourself.
One of the important skills to learn as a developer is that you want to (re)use other people's software whenever it's of suitable quality.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi all,
As i used timxml Parser.. this one is good but its in console mode..
I need XML parser and i have run thru GUI. Is there any GUI specific XML parser,...
Pls request to help me...
As it urgent requirement for me...
Thanks in advance for any help...
|
|
|
|
|
The XML parser library has no bearing on whether your application is GUI or console - that's up to you. Use the TinyXML code and integrate it into your GUI application - that's your job, not the library's.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
I have use GUI feature in my project...
So, pls help me...
Is there any other XML parser with GUI mode...
GUI like: Editor page in that read xml file, parse and generate tree structure dor that code..
After that i wil use that in another application as input.
Pls provide me links and suggestions...
Thanks...
|
|
|
|
|