Solved

GUI code

Posted on 2004-08-17
12
5,191 Views
Last Modified: 2013-12-26

anyone know where i can get some 'C' code for user interface primitives.
For example, source code to a text entry field.
The less dependancies the code has the better. I dont want to rely on
MFC, OpenGL etc, the puresr the C code the better.


0
Comment
Question by:apakian
  • 5
  • 5
  • 2
12 Comments
 
LVL 17

Expert Comment

by:davebytes
ID: 11827760
Look at sourceforge.net... ;)

Best cross-platform one is likely:
http://wxwindows.org/

-d
0
 

Author Comment

by:apakian
ID: 11838064

the wwindows package is C++ , im looking for 'C' only
0
 
LVL 17

Expert Comment

by:davebytes
ID: 11838207
0
 

Author Comment

by:apakian
ID: 11838550

too big, something that has the standard gui controls , and the code that calculates area in the controls
that trigger things, waits for keypresses etc,, but not so big that it is a complete library,, i need
the most primitive level code..
0
 
LVL 17

Expert Comment

by:davebytes
ID: 11841994
Take one of the above, strip out the pieces you don't need.

I'm highly doubtful you will find something that will fit your needs directly.  Any project on the net generally tries to fill being a complete GUI library -- though something like microwindows or picogui tries to fit on small footprint boxes and might thus be a better starting point.

To write really basic GUI pieces yourself wouldn't be that difficult -- static text, basic button, checkbox, radio group, scroll bar and list, maybe pop-up menu or drop-down menu, and editable text (the most difficult of them all!).  keyboard and mouse handling are pretty simple.  But, it's not hard, just would take some time to build it all from the ground up.  Would be a better learning experience.

Otherwise, try micro or pico and strip out what you don't need.

-d
0
 
LVL 3

Expert Comment

by:str_ek
ID: 11968711
tell us what is it for, what's it's destined enviroment, cos i dont realy get the general idea...

if you're up to ground-zero level there is always a direct api of enviroment .. functional ( i mean based on functins rather than objects - what you want plain c ) winapi's great... i personaly prefer it to mfc
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:apakian
ID: 12124510

hi, sorry for being away from this:

What I am looking for is the low-level c logic for gui components..
for example snippets of code, that will calculate the width/height of the thumb tack of a scroll bar, depending on how many items
are in it. Snippets that will handling the mouse controling of a window being dragged etc.. Probably more geared towards
an embedded system in 'C'
0
 
LVL 17

Expert Comment

by:davebytes
ID: 12124964
apakian - have you looked at the other link farms, and the couple of specific further toolkits, I gave a month ago?

-d
0
 
LVL 3

Accepted Solution

by:
str_ek earned 100 total points
ID: 12125030
oh...

in that case there is one thing you may want to see...

it's the direct x ut (dxut) framework in it's newest edition ( included in dxsdk summer update 2004!!!) ... on of it's component is completly re-implemeted common controls like buttons, combobox, checkbox etc to work as an interactive elements of dx rendered context.... it has a _flat_ api, so you get the very idea flat as well :) regardles to some object oriented aspects of it's renderer it's worth looking at!!!

truly i hope it's enough cos i'm about to dig it as well ;)

just take a look at the customui example, and then simply dig the included dxut sources !
0
 

Author Comment

by:apakian
ID: 12125213

I have to add basic gui functionality in under 8k ( hard i know )
the biggest problem i'm having is text input, and selecting with mouse etc etc...
0
 
LVL 17

Assisted Solution

by:davebytes
davebytes earned 100 total points
ID: 12143050
Oh SHEESH.  NOW you throw in a requirement like that?

The best of the systems I've already provided (pico and micro) are likely in the 100-300K range -- though, if you stripped it down of everything you didn't need, I'm sure you could get under 100K.

I'm done here.  You're looking for a custom system, or a commercial system someone has produced, and not something already open-source created... ;)

-d
0
 

Author Comment

by:apakian
ID: 12144041

ok, i'll increase and split.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now