|
Thank you for your reply..
But can I know complete syntax for creating radio buttons
|
|
|
|
|
What do you need,excatly?
|
|
|
|
|
Hii everybody,
I want a program of how to create radio buttons when a button is clicked.
|
|
|
|
|
shailaja016 wrote: I want a program of how to create radio buttons
Create them like you would any other window control...CreateWindow("BUTTON", "Label", BS_RADIOBUTTON, ...) .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
another possibility is to create them with the Resource editor in programming time, assigning a member variable of type Control to have access to them and then make them visible invisible with the button click.
Example:
//OnButtonClick
myRadioButton->ShowWindow (TRUE);
And afterwards can you know which is selected with:
if (myRadioButton->GetCheck ())
//Do whatever you want if selected
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
Or You can use of CButton::Create.
|
|
|
|
|
hi,
i have created a syntax colorising editor by usung "Scintillawnd" class and "Scilexer.dll" from the procrdure you have given .
But i want to use it for some other language(ATLAS) ,for that which procedure i have to fallow?
can i modify one of existing lexer (corresponding "*.c" file) to work according to my language synatax ? after modifying the one of existing lexer (corresponding "*.c" file) how i can include it to my project.?
or
i have to create a new lexer? if have to create which procedure i have to fallow?
please give me the solution ....i am unable to understand the procedure given in the scintilla documents .
thats why i am placing my doubt here...please help me..please...
|
|
|
|
|
mirraa wrote: i have to create a new lexer? if have to create which procedure i have to fallow?
This is all well explained in the documentation that comes with the source code of Scintilla. Basically, it is better to duplicate one existing language lexer, at best the one that best matches your new language, rename-it and include it in the project.
|
|
|
|
|
How can I Input different language text from a Dialog based application.
Showing "?????" as input characters.
Do building it with UNICODE prepproessor solve this problem?
Also, getting weird characters if I am reading from a file.
Using _wfopen which is the function to open a unicode file and reading the contents using fread function.
The file has some other language characters.
|
|
|
|
|
Suneet.03 wrote: How can I Input different language text from a Dialog based application.
Has that character set been installed on the target machine?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Set the language in
Control Panel -> Regional and language option -> Advanced.
Also in Language Tab specify Text services and language in order to have a particular language keyboard.
also #define UNICODE and _UNICODE
Save file in Unicode format.
|
|
|
|
|
|
I am working on Word object. My problem is to move the cursor position to word endings. For that i try Moveright ,Endkey ,move .... like in vc++
please help me if any one know this.
Thanks in advance
|
|
|
|
|
Viknaraj R wrote: i have to create a new lexer? if have to create which procedure i have to fallow?
Which language ? Word Macro ?
|
|
|
|
|
|
Lord Kixdemp wrote: Hey, is it possible to make a 2D game (transparent sprites, sound, keyboard input, etc.) with just C and the Windows API? Like, no C++ and no MFC.
Yes.
Lord Kixdemp wrote: I looked for tutorials, but I don't know if I should use GDI or not.
GDI is rather slow but maybe enough for simple games. You have to use either DirectX library or OpenGL one to make professional looking ones.
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.
|
|
|
|
|
Yay, thanks!
Windows Calculator told me I will die at 28.
|
|
|
|
|
Lord Kixdemp wrote: ith just C and the Windows API?
You could even do it in VB, if you want.
Lord Kixdemp wrote: I should use GDI
Is GDI really in C ?
Lord Kixdemp wrote: 16-bit Windows
Are you living under a rock ?
Lord Kixdemp wrote: Windows Calculator told me I will die at 28
I have seen weird sigs in my life, this one beats them all, I guess.
|
|
|
|
|
Rage wrote: Is GDI really in C ?
Why not?
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.
|
|
|
|
|
That was a question, I assumed it was written in C++.
|
|
|
|
|
Rage wrote: That was a question, I assumed it was written in C++.
It doesn't matter, the OP wants to use C, not libraries written in C.
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.
|
|
|
|
|
And how do you link a library written in C++ with a C program
|
|
|
|
|
Rage wrote: And how do you link a library written in C++ with a C program
You don't need a big effort : GDI (note GDI , maybe your're talking about GDI+ ) exports C-style API.
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.
|
|
|
|
|
Rage wrote: Are you living under a rock ?
Yes, sadly... I've liked old computer stuff ever since I visited that thrift store when I was 14.
Windows Calculator told me I will die at 28.
|
|
|
|
|
Currently I have constucted a DLL in VC++ 6.0 in which does not uses MFC.
I have chosen Win32 Dynamic Link Library template from new project dialog box.
Now, only one function is exported from the DLL. In that function I am bringing up an Dialog Box using DialogBoxParam() function. Dialog resource is stored in the DLL itself.
DialogBoxParam(hInstance, MAKEINTRESOURCE(IDD_DOCONVERTDIALOGBOX), <br />
NULL, DoConvert_DlgProc, (LPARAM)(&pDlg));
I have also added a dialog box with ID 'DOCONVERTDIALOGBOX' in the resource of this DLL project.
* DialogBoxParam() returns -1.
* GetLastError() returns 1814 (ERROR_RESOURCE_NAME_NOT_FOUND)
I think if I add AFX_MANAGE_STATE(AfxGetStaticModuleState());
then it will take the resource from DLL. But AFX_MANAGE_STATE is MFC related.
And I am not using any MFC related function nor my DLL project is using MFC.
So how can I load the dialog resource from DLL.
Thanks in advance.
|
|
|
|