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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by katenka5

  1. katenka5

    Label flickers when contents change

    Here's part of the code: Private Sub gametime_Timer() Dim hour1 As String, min1 As String, sec1 As String sec = sec + 1 If sec >= 60 Then sec = 0 min = min + 1 End If If min >= 60 Then min = 0 hour = hour + 1 End If If hour >= 24 Then...
  2. katenka5

    Label flickers when contents change

    There is a timer, the label caption changes every second and shows the seconds elapsed. The second label shows the count of certain keyboard strokes (arrow keys).
  3. katenka5

    Label flickers when contents change

    "it" was what was suggested in the third reply. At this point "it" is everything what was suggested before. I tried refresh, I tried doevents and Lock Window update. The labels still flicker.
  4. katenka5

    Label flickers when contents change

    I tried it and it did not work. It made the program load for about 15 minutes, but nothing has changed.
  5. katenka5

    Label flickers when contents change

    I have two labels where contents change during run-time. Caption changes on one depending on the actions and on the other one I have the timer. When both of them change their captions they flicker, how do I get rid of that? I tried to make them transparent or non-transparent, play with different...
  6. katenka5

    Saving colors in binary files

    How do you save a color in a binary file? Do you assing special values to R, G and B, or you can actually save a hexadecimal color value as string and then use it, if so, then how do you convert it back?
  7. katenka5

    NullPointerException help needed

    I am getting a NullPointerException error and I cannot see where it is. It points to line 19 but I can't find what's wrong. import java.awt.*; import java.lang.Object; public class Algorithm { public static void main (String args[]) { int deletedLines = 0; Label...
  8. katenka5

    NullPointerException help

    I am getting a NullPointerException error and I cannot see where it is. It points to line 19 but I can't find what's wrong. import java.awt.*; import java.lang.Object; public class Algorithm { public static void main (String args[]) { int deletedLines = 0; Label place[][]...
  9. katenka5

    Window resizing

    This is how I create it: Create (NULL,"Lines",WS_OVERLAPPEDWINDOW,CRect(100,100,480,540));
  10. katenka5

    Window resizing

    What is the shortest way to make the window non-resizable? The function I found takes about 3 pages long that is why I thought about that kind of a cheater way to resize the window back when the user tried to change the size.
  11. katenka5

    Window resizing

    I want my window to return to its original size if the user tried to resize it. afx_msg void CWind::OnSize(UINT,int x,int y) { }
  12. katenka5

    Detecting which button was clicked

    Can you show a code example to the second part?
  13. katenka5

    Detecting which button was clicked

    I have a number of buttons which are stored in a two dimensional array. How do I make the program to know what button I clicked on? Something like mouseClicked event in Java.
  14. katenka5

    Fixed window size?

    How do I make a window (system window) with a fixed size so users will not be able to resize it?
  15. katenka5

    Help with Game 15 needed

    I made a game of 15 which works just fine with mouse clicks. I want it to respond to keyboard clicks such as left, right, up and down keys. How do add that feature to this code? I tried KeyDown, KeyUp, KeyPress and they just won't reaspond. I tried it on both the actual form and the button...

Part and Inventory Search

Back
Top