Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Newbie needs help with Xlib / X11 programming,dunno who to ask,but you :( Post 302351807 by megane16v on Wednesday 9th of September 2009 03:41:54 PM
Old 09-09-2009
Newbie needs help with Xlib / X11 programming,dunno who to ask,but you :(

Hi,I'm new here and to Unix also. I'm totall newbie.
Here is what I have to do:

-Basics of programming user interface with Xlib library
-Xlib
-Client/Server model of X-Windows system
-Example of "Hello world" with button which changes text ,so that when u click displays another message.(example must contain functional makefile)

Damn guys,i don't even have idea where to start. I installed Ubuntu,X11 libraries,and I don't know where to start? How do I make that program? Smilie

Last edited by megane16v; 09-09-2009 at 05:08 PM..
 

10 More Discussions You Might Find Interesting

1. Programming

programming question from a newbie, please help

Hi Everyone, I really hope I could get some insight from a few of you, I've been searching the net for various resources, and this board seems to be the friendliest and most helpful by far. I work for a medical research company and we use sun 4 and we have different studies that have their... (1 Reply)
Discussion started by: milenky
1 Replies

2. UNIX for Dummies Questions & Answers

Programming Newbie Chick

OK, so I'm trying to finish my last individual assignment for this course, and it's the first time I've visited a forum (I've actually understood UNIX up to this point). I am having trouble with this one. I have to write a program that prompts the user to type their first name and stores it in a... (3 Replies)
Discussion started by: metalgoddess21
3 Replies

3. UNIX for Dummies Questions & Answers

Good source of X11 programming info?

Is there a good book or something on practical programming in X11? I have the O'Reilly X window system book set. They don't seem to cover the nuances very well (at least for me). So far the only thing I find on the web is the text from these books. Specifically, I'm looking for optimization... (2 Replies)
Discussion started by: willil
2 Replies

4. Shell Programming and Scripting

perl newbie . &&..programming newbie (question 2)

Hello everyone, I am having to do a lot of perl scripting these days and I am learning a lot. I have this problem I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files.. there is folder1\folder2\*.gz and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies

5. Shell Programming and Scripting

perl newbie . &&..programming newbie

Hi, I am new to programming and also to perl..But i know 'perl' can come to my rescue, But I am stuck at many places and need help..any small help is much appreciated... below is the description of what i intend to acheive with my script. I have a files named in this format... (13 Replies)
Discussion started by: xytiz
13 Replies

6. Programming

Xlib programming - Emulating left click press/released

Hi, Lately my university asked me to develop an application to be installed on some computers for the disabled. I've developed a head tracking software (it moves the cursor on the screen following your head's movements using a webcam), and it works greatly so far except for a missing feature.... (2 Replies)
Discussion started by: BlackLight
2 Replies

7. Shell Programming and Scripting

Programming newbie -help!!

Hi I am trying to learn shell script and i ran into an issue. I am trying to read a file with few directories and tar them up. I used a while loop but i end up overwriting tar file with only the last directory in the file being tared . cat test.txt | ( while read line do tar -czPf... (8 Replies)
Discussion started by: SPR
8 Replies

8. Solaris

Restacking x11/Xlib Window

I have a full screen top level window (application) on Solaris 10. We have a minimal window manager (DTWM), because of the critical nature of the app. On top of the first application, we have another application with a top level window, that covers the upper left area of the first application. Now,... (0 Replies)
Discussion started by: JenniferKuiper
0 Replies

9. Programming

Low level X11 programming

How to use X11 without Xlib not XCB? How draw window directly on low level? I must use anyway window manager like Motif? I have ridden that X11 has server-client architecture, client send via TCP/IP to port 6000 request for primitives and get replies. Where is detailed description of it? In X11... (0 Replies)
Discussion started by: AndrzejB
0 Replies

10. Programming

MOTIF programming and X11 client !

Hi there , i am interesting in MOTIF programming. One question : Is it right that in Motif GUI programming the actions are automaticly transformed and networked to other clients over the internet without network programming necessary ? Are the commands automatic transformed by the X11... (4 Replies)
Discussion started by: Zabo
4 Replies
asclock(1x)															       asclock(1x)

NAME
asclock - the AfterStep clock SYNOPSIS
asclock [ -help] [-12 | -24] [-shape] [-position [+|-]x[+|-]y] [-exe program] [-theme dir] [-led color] [-noblink] [-dock] [-version] DESCRIPTION
The asclock is a clock written to emulate the date/time application on the NEXTSTEP(tm) operating system. asclock supports multiple lan- guages, military and AM/PM time formats, program execution, and the shape extension to X-Windows. CONFIGURATION OPTIONS
-help prints the usage message: usage: asclock [-options ...] where options include: -12 12 hour format -24 24 hour format -exe <program> program to start on click -led <color> color of the led -position [+|-]x[+|-]y position of asclock -shape without groundplate -theme <dir> theme directory -noblink don't blink -dock without window decorations -version show version information -12 or -24 sets the desired time format to either twelve hour with AM/PM ( -12 ) or military time ( -24 ). If no option is given military time is used. -shape turn on shaped window support for asclock. When this is turned on the asclock windows will only appear to be the led and date pad. By default shaped windows are turned off and the clock will appear on a 64 pixel by 64 pixel base. -led <color> specifies the color of the led. To find out what colors are available, try showrgb(1) (part of X11). -position [+|-]x[+|-]y specifies the starting position of asclock. The [+|-] works like the standard X-Windows x/y geometry option. -exe <program> specifies the application to start when the pointer is activated over asclock. To invoke applications with parameters, you have to set quotes around the command. See example below... -noblink specifies if asclock should blink. -theme <dir> specifies the theme to used. A theme consists of a directory containing 8 xpms and a position file called 'config'. Read the Themes section. -dock tells the window manager not to put window decorations arround asclock, useful for docking with Window Maker. Note that in several window managers this causes asclock to ignore the position specified with -position (if present). INVOCATION
asclock can be called from one of many ways. The most common invocation is the command line: [user@host] ~% asclock -12 -exe 'xlock -mode hop' & Another way to call asclock is from the window manager: *Wharf - - MaxSwallow "asclock" asclock -theme shape -12& This line, when placed in the .steprc file in the users home directory will cause asclock to use the shape extensions so that it will be a button on the Wharf(1) button bar under the afterstep(1) window manager. THEMES
A theme consists of a directory containing 8 xpms and a position file called 'config'. All tiles within the same xpm must have the same width or height, except the colon which has half the width of the other digits. The pixmaps are called: clock.xpm, date.xpm, led.xpm, month.xpm, weekday.xpm, hour.xpm, minute.xpm, second.xpm. For a full description of the format, take a look at README.THEMES. BUGS
we don't have bugs :) COPYRIGHTS
Copyright 1996, Beat Christen <bchriste@iiic.ethz.ch>. No guarantees or warranties or anything are provided or implied in any way whatso- ever. Use this program at your own risk. Permission to use this program for any purpose is given, as long as the copyright is kept intact. AUTHORS
Beat Christen <bchriste@iiic.ethz.ch> -- application Dan Weeks <dan@mango.sfasu.edu> -- man page 3rd Berkeley Distribution 23 July 1996 asclock(1x)
All times are GMT -4. The time now is 02:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy