Most Popular PHP-GTK Recipes

Below are the most viewed PHP-GTK2 recipes on this website since January 01, 2007. Some of them might interest you too!

  1. How to selectively display rows in GtkTreeView with GtkTreeModelFilter - Part 2? (11054 pageviews)
  2. How to add a total row to the end of GtkTreeView - Part 1? (5383 pageviews)
  3. How to display and hide a background process? (4082 pageviews)
    You have set up a process in the background. When F3 is pressed, you would like to view the progress of the background process. Press F3 again, the background process is hidden again, as shown below.

  4. How to get image size? (3696 pageviews)
    You have set up a simple drag-and-drop image viewer in "How to create a simple drag and drop image viewer". Now you would like to get the image size (e.g. maybe for further processing of the image, such as shrinking, rotating, image enhancement, etc.)

  5. How to set the background color of GtkEntry? (3655 pageviews)
    You want to change the background color, set the font and also the font color of a GtkEntry.

  6. How to install php gtk2 on windows? (3655 pageviews)
    Thanks to Elizabeth Smith. After much anticipation, you can now have windows builds for PHP and PHP-GTK2, both latest releases and eventually snapshost as well!

  7. How to add numbering in front of selected text in GtkTextView? (3475 pageviews)
    You want to add auto numbering in front of highlighted text in a GtkTextView. Key methods used: GtkTextbuffer::get_selection_bounds(), GtkTextiter::get_line(), GtkTextiter::set_line(), GtkTextbuffer::insert().

  8. How to display a popup alert for required fields - Part 1? (3397 pageviews)
  9. How to add mnemonic to GtkButton? (3366 pageviews)
    In the previous article, we added mnemonics, or keyboard accelerators, to GtkLabels. In this example, we will add mnemonics to GtkButtons.

  10. How to gray out an entry field? (3166 pageviews)
    Suppose you would like to gray out some of the entry fields to make them inactive.

  11. How to set a button as default action when user press Enter? (3026 pageviews)
  12. How to have Enter move to next field in form - Part 1? (2896 pageviews)
    In php-gtk2, suppose you have set up a form. Try enter something in a field and press Enter. We would expect the cursor to move to the next field. But nothing happens! You can only move to the next field by pressing the Tab key. Supppose you would like the Enter key to behave similar to the Tab key, that is, when you press Enter, the cursor will automatically move to the next field.

  13. How to add mnemonic to GtkLabel? (2893 pageviews)
    Sometimes it's small user interface elements here and there that make users feels "more at home" with your applications. In this example, we will show you how to add mnemonic, or keyboard accelerator, to GtkLabel. An application of this is to enable users to jump between entry fields by pressing the underlined mnemonics such as Alt-N, Alt-D, etc.

  14. How to display a tree structure from array? (2851 pageviews)
  15. How to scale an image? (2835 pageviews)
    You have set up a simple drag-and-drop image viewer in "How to create a simple drag and drop image viewer". Now you would like to scale the image.

  16. How to launch external app in winxp without the flashing of cmd window? (2791 pageviews)
  17. How to display progress bar while processing long task - Part 1? (2669 pageviews)
  18. How to rotate an image? (2637 pageviews)
    You have set up a simple drag-and-drop image viewer in "How to create a simple drag and drop image viewer". Now you would like to rotate the image.

  19. How to display directory tree using GtkTreeView - Part 2 - add folder icon? (2628 pageviews)
  20. How to allow only numbers in GtkEntry - Part 2? (2517 pageviews)
    You would like to ensure that only numbers, i.e. 0 to 9, are allowed to be entered in a GtkEntry field - Part 2. This example uses event 'key-press-event'.

  21. How to display and process grouped radio buttons? (2456 pageviews)
  22. How to display progress bar while processing long task - Part 2 using_idle_add? (2438 pageviews)
  23. How to run multiple applications in multiple windows - Part 1? (2334 pageviews)
  24. How to create a simple drag and drop image viewer? (2330 pageviews)
  25. How to display a popup dialog to prompt for data? (2324 pageviews)
  26. How to display a 2D array in GtkTreeView - Part 1? (2270 pageviews)
  27. How to set the background color of GtkLabel? (2266 pageviews)
  28. How to display a 2D array in GtkTreeView - Part 5 - get user selection? (2243 pageviews)
  29. How to setup a dialog box - Part 5 - get text entry? (2221 pageviews)
    The GtkDialog constructor example in the offical PHP-GTK2 documentation shows only how to get a yes/no response using a dialog box. Suppose you would like to get inputs from user using textentry in a dialog box.

  30. How to set the background color of GtkButton? (2145 pageviews)

Search This Site

Google
Web This Site

Search PHP-GTK2 Manual

Full-text search on php-gtk2 manual

Members Login

Username:
Password:
Key:
What is this?
  Forget Password?