|
|
I want to ask one more thing that i am using this code ... where height is the Font height and startPoint_x and startPoint_y is the point where text is to be display
CsGL.OpenGL.GDITextureFont myGDITextureFont;
Font newFont;
newFont = new System.Drawing.Font("Microsoft Sans Serif", (float)height);
myGDITextureFont = new GDITextureFont(newFont, 'a', 'z');
GL.glTranslatef((float)startPoint_x, (float)startPoint_y, 0);
myGDITextureFont.DrawString(text);
and in this way text displayed but when i click on it it turns into solid bar .... What is the problem with this code ....
|
|
|
|
|
Where are you getting the height from? I don't see it being initialized anywheres.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Actually i am importing and exporting *.DXF files in my application. So, i took the height from that dxf file that is being imported.
Problem with this code is that it can draw text but when you click on it it will turn into solid Bars and nothing text can be visible after clicking .....
|
|
|
|
|
Hello,
Any help would be great! I have tryed the (datagrid.columns[1]. visable = false) the issue is that, using this method shrinks all the rows of data in the data grid view. Even if i set the row height, it seems to make no difference. I need to set which columns are shown in code, and I change the data source for the data grid view as needed. any help would be great.
thanks, J
|
|
|
|
|
try this
DGV.Columns[1].Width = 0;
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Thank you for the help, but that does not work. You can see all the columns with a width of 0, they appear as just lines... you can still expand the columns with a width of 0, to see the data. but thanks.
|
|
|
|
|
set "AllowUserToResizeColumns" property to false
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi
very easy
set colum width is zero.
thanks
|
|
|
|
|
Thank you for the help, but that does not work. You can see all the columns with a width of 0, they appear as just lines... but thanks.
|
|
|
|
|
Hi
Is it in web or windows applciations?
thanks
|
|
|
|
|
|
Hello,
I´m writing a program that runs some gwak scripts.
The problem is that before this process ends, the aplication continues to execute others C# instructions, and obviously it blows the all thing.
My question is how can i delay the execution of the instructions until the process of runing the scripts ends?
|
|
|
|
|
If you're running a script with Process.Start, you can get back the process that was started, and wait for it to end.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
I´m working with a process, but the set of instructions i need to delay are not part of the process, so i tinck that i can do it with a thread.
Tanck you for your help the link was very helpfull.
|
|
|
|
|
I'm trying to render a webpage that I previous navigated to it with an axWebBrowser control, the webpage has some adobe flash animations, that of course delay to load in.
when I render the page and saved as a .png file, there exists white rectangles where the animations are.
How can I solve this issue?
Thanks.
P.S. Excuse some or many writing errors.
|
|
|
|
|
Hi All,
stupid question alert!
I've not used generics much yet and I'm just poking around the net looking at various implementations of Generics and I have a question. Can a generic list hold multiple fields? Somethihing akin to a datatable like, a few strings, an int a couple of bools ... ??
I've not come across any demo's of anything like this. If you need to do this would you create a generic list from a class?
Thanks,
James.
|
|
|
|
|
Jammer wrote: Can a generic list hold multiple fields?
Yes, if you take those fields, and define them all as a struct or class. Then you can build a list of that item
Jammer wrote: If you need to do this would you create a generic list from a class?
*grin* bingo
Generics just means being able to specify a type as a parameter. Lists are probably all most people will use them for, and it is the most obvious use IMO, strongly typed collections.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
its YOU again! Do you sleep???
so for argument sake:
struct fileList
{
string dir, filename, extension, file_category;
int file_size, duration;
bool comp, audio, app;
}
FileList<t> filelist
would end up with a generic list capable of holding 4 strings, 2 ints and 2 bools???
I can't find a single instance of anyone talking about a generic list like this. I had originally decided to work with datatables for this until you put me onto the idea of generics.
|
|
|
|
|
*grin* I sleep, a little.
List<fileList> myList
would give you a list of thise items. Is C# like C++, is public the default modifier in a struct ? I don't think so.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ahhhhhh ... interesting ...
I think i'm going to pop off and write some code ... the fuzziness of what a generic list actually is is clearing a little ... time to put it to the test I think.
I'm must stop this 'too much thinking' before writing code and see what can be done and can't be done!
Still I've just implemented my first proper Exception logging code from my app and that is working really sweet! Thought i'd get that coded early in the lifecycle!
|
|
|
|
|
Yeah, you can't add that soon enough, the sooner you get a written log when you have an error to track down, the better
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
For sure ... i still have some working out to do on the various potential exception types that need handling but i've made a good start, i'm sure its something that will grow with the app as features are added and new exception types are potentially created.
There is a great article on code project about best practice that i'm making my way through. what a great site this is!
back to my structs and generics!
|
|
|
|
|
Hi Christian,
I'm getting a bit confused at the moment (I'm sure you hadn't noticed!)
I'm getting overload errors (just to add to the hilarity, I'm still unsure what overloading is!)
public struct Filelist<br />
{<br />
public string file_name, file_size, file_ext, last_access;<br />
}<br />
<br />
List<filelist> MainFileTable = new List<filelist>();<br />
MainFileTable.Add(@"G:\Jammer\", "2132987", ".WAV", "12/12/2007");</filelist></filelist>
I'm just trying to chuck some test data into the list to see what is going on but as you can see I'm still pretty confused as I thought the .Add() method would simply populate a 'record' in the generic list ...
this isn't the exact structure of the code as is ... here is my code down to the .Add method call.
using System;<br />
using System.IO;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Xml;<br />
<br />
namespace SampleSort.DataLayer<br />
{<br />
public struct Filelist<br />
{<br />
public string file_name, file_size, file_ext, last_access;<br />
}<br />
<br />
public class BuildFileList<br />
{<br />
<br />
<br />
public static void main()<br />
{<br />
List<filelist> MainFileTable = new List<filelist>();<br />
MainFileTable.Add(@"G:\Jammer\", "2132987", ".WAV", "12/12/2007");</filelist></filelist>
<snipped>
|
|
|
|