Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Sedai
  • Content: Threads
  • Order by date
  1. Sedai

    xterm

    im running a X-Server on my WinXP machine im trying to start an xterm by telnetting to a UNIX station from it i type xterm -display 111.111.111.111:0.0 & but i dont get a window on my screen i tried to run the process in the foreground and yup, ot locks; what could be the reason ? the machine...
  2. Sedai

    synchronized block syntax

    i need to synchronize a method, but actually only part of it needs to be locked, so i wanted to use {} synchornization instead of freezing the whole method. I thought that the syntax was the following: synchronized { //code } but it doesnt compile. apparently, there needs to be something in...
  3. Sedai

    textArea

    Is it possible to .append("blabla") differently coloured text to a textArea? For example to .append() one line of blue texts and another line of green. Thanks. Avendeval
  4. Sedai

    custom events and listening to them

    I've created a custom event alert = new WindowEvent(parent, AWTEvent.RESERVED_ID_MAX+1); if obj is a reference to the object that i want to receive the event and i type obj.dispatchEvent(alert) is that sending the event to obj? If it does, how can I detect that event. I tried...
  5. Sedai

    converting milliseconds into hours:minutes:seconds

    I have a long that repepresensd milliseconds. How can I convert it into a hours:minutes:seconds format? Avendeval
  6. Sedai

    trasferring files over sockets

    hi! How can i transfer a file over a socket? I thought it would be pretty straightforward, but I couldn't think of any way. The FileInputStream class cannot be wrapped around a socket, quite naturally, the way a DataInputStream can. Any help would be greatly appreciated. Avendeval
  7. Sedai

    creating a pup-up menu

    Hi! I was wondering how one can create a pop-up menu that appears at right mouse button click. I already know how to create the standard File, Edit Help, etc. kind of menus. Any help would be greatly appreciated. Thanks. Avendeval
  8. Sedai

    a Dialog in an Applet

    I wanted to create a small modal window and found out about the Dialog class. However, I need to call the dialog from within an applet. Is that possible - I kept getting some errors. Actually what I need to do this is check the input a user has typed into a TextField, and if it's invalid some...
  9. Sedai

    friend classes and variable access

    I'm new to JAVA. Is there an equivalent to C/C++ friend classes where you can declare a certain class a friend of another, so that he has access even to its private data members? I know about protected (same in C++) but that's not the same. I need acces from an 'unrelated' class. Thanks a lot...
  10. Sedai

    how to use Canvas - newbie question

    Hi Guys! I'm very new to JAVA. I got the following assignment: I need to load an image and then through a set of menus (I've done these already) I can choose to scale the image 25%, 50%, etc. I was told I could do this with a Canvas. However, I haven't been able to figure out how to use it and...
  11. Sedai

    What I draw ith pDC disappears if the window is covered and...

    What I draw ith pDC disappears if the window is covered and then is redrawn. What do I need to to do keep what I draw more 'permanent'. Modify the ON_PAINT function? thanks. Avendeval
  12. Sedai

    Hi! I was wondering if anyone kn

    Hi! I was wondering if anyone knows good strategies for making a plot 'resize' so that the figure that I'm drawing (a polygon) is as big as possible for the fixed availalbe drawing area (ratio is preserved). As I don't know many of the functions of the CDC class, I'm looking them up now, but...
  13. Sedai

    Urgent! - Plotting/Drawing question

    My app consists of one main dialog box. One of the controls in the dialog is a Picture one, but I've given it a Rectangle type. Is it possible to draw only inside this area using the CDC *pDC; pDC = GetDC(); CPen bluepen; bluepen.CreatePen(PS_SOLID, 1, RGB(0,0,255)); etc... As a...
  14. Sedai

    how can I add items (strings) to a list control?

    how can I add items (strings) to a list control? Using SetDlgItemText(ID,"xxx"); doesn't work. any suggestions. i just need some direction, no need to write long code. thanks. Avendeval
  15. Sedai

    2.00 ISNT == to 2.00 and I've no idea why....

    i have double variable that is assigned the value of a function. I cerr the variable with 20 precision and it gives 2.000000000000... then I compare it with another variable that is equal to 2.00 and the if statement x==y doesnt execute. insted the else statement executes. just to test, in the...
  16. Sedai

    can I change the background color of a List box control?

    I don't like the default(?) white background color of the list box control. Is there a way to change it? Preferrably, to make it the same color as the color of the dialog box. (I'd like to achive the same effect as when you make an edit box control read-only). Thanks. Avendeval
  17. Sedai

    nothing prints after the first page when using CSS

    I'm using a css file that sets some special relative positioning. After I applied the style to a several-page long text and tried printing nothing shows after the first page. I'm pretty sure it's because of this realtive position that I'm using (it's something like -7). Could that be the reason...
  18. Sedai

    How can I start drawing in a Window called by DoModal()

    I have a main dialog window. By pressing a button, I open a nother window with DoModal(); Then I use CDC *pDC; pDC = GetDC(); CPen blackpen; blackpen.CreatePen(PS_SOLID, 1, RGB(0,0,0)); pDC->SelectObject(&blackpen); pDC->MoveTo(100,100); pDC->LineTo(250, 350); However, the above starts...
  19. Sedai

    Pressing a button invokes a window

    I don't know much about Win32 programming, I've just started using MFC. A newbie question: I've created a resource, a dialog box. My app actually consists of one dialog box with a couple of buttons. When I click one of them, I need the other dialog box to appear. How does one do that? Thanks...
  20. Sedai

    can I add a property/bool member variable/flag to a control item

    can I do that? I need to add a flag (bool value) to all my edit box controls. Is that possible? If yes, how can I do it? Thanks. Avendeval

Part and Inventory Search

Back
Top