Sponsored Content
Top Forums Programming Open source my OIOIC, a completely new object-oriented mechanism for the C. Post 302297813 by fpmurphy on Sunday 15th of March 2009 06:45:33 PM
Old 03-15-2009
All your examples assume Microsoft Visual C. If you want UNIX and GNU/Linux users to use your package, your examples and documentation should not reference Visual C as it is Microsoft Windows-centric.

Furthermore, the source code for your examples contains numerious non-ASCII embedded characters. This will also deter people from trying out your package.
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl + object-oriented programming help

Currently Im trying to write a program that manipulates a class-based object as part of its functionality. However, the perl compiler is complaining that the class's respective package is not returning a true value. I have done the following a) Created a new package containing the body of the... (1 Reply)
Discussion started by: JamesGoh
1 Replies

2. Programming

Open source my WGI, a GUI lib based entirely OIOIC

What WGI? WGI is doing what MFC has done, to encapsulate API, BUT WGI uses OIOIC, instead of C++. to download WGI 1.0.2 source code: Downloads - oic-wgi - Project Hosting on Google Code node WDialog ---> corresponding MFC's CDialog node WMenu ---> corresponding MFC's CMenu node WButton... (0 Replies)
Discussion started by: pervise.zhao
0 Replies

3. Shell Programming and Scripting

How to use JavaScript in Perl Object Oriented

i am new to Perl CGI Object oriented. I want to use some java script in my Perl CGI but i am not able to do that. I am using Submit button then via param() i am getting all field parameters. But i want to validate all fields first then i want to move. But Use of Java script, i don't know (1 Reply)
Discussion started by: Navrattan Bansa
1 Replies

4. UNIX for Dummies Questions & Answers

Cannot open shared object: when starting nrpe

Got this error when starting nrpe Starting nagios-nrpe: nagios-nrpe/usr/sbin/nrpe: error while loading shared libraries: libssl.so.0.9.8: Pls advise ---------- Post updated at 04:05 PM ---------- Previous update was at 04:05 PM ---------- os is Debian lenny ---------- Post updated... (1 Reply)
Discussion started by: lhareigh890
1 Replies

5. UNIX for Beginners Questions & Answers

Csh doesn't source init files completely

I have a strange problem with (t)csh since the latest opensuse/tumbleweed upgrade. csh and tcsh don't source the init files completely. They seem to terminate after sourcing the first nested file. They process the code in /etc/csh.cshrc until they find a command like source... (3 Replies)
Discussion started by: heiko123
3 Replies
ttk_vsapi(n)							 Tk Themed Widget						      ttk_vsapi(n)

__________________________________________________________________________________________________________________________________________________

NAME
ttk_vsapi - Define a Microsoft Visual Styles element SYNOPSIS
ttk::style element create name vsapi className partId ?stateMap? ?options? _________________________________________________________________ DESCRIPTION
The vsapi element factory creates a new element in the current theme whose visual appearance is drawn using the Microsoft Visual Styles API which is reponsible for the themed styles on Windows XP and Vista. This factory permits any of the Visual Styles parts to be declared as ttk elements that can then be included in a style layout to modify the appearance of ttk widgets. className and partId are required parameters and specify the Visual Styles class and part as given in the Microsoft documentation. The stateMap may be provided to map ttk states to Visual Styles API states (see STATE MAP). OPTIONS
Valid options are: -padding padding Specify the element's interior padding. padding is a list of up to four integers specifying the left, top, right and bottom padding quantities respectively. This option may not be mixed with any other options. -margins padding Specifies the elements exterior padding. padding is a list of up to four integers specifying the left, top, right and bottom pad- ding quantities respectively. This option may not be mixed with any other options. -width width Specifies the height for the element. If this option is set then the Visual Styles API will not be queried for the recommended size or the part. If this option is set then -height should also be set. The -width and -height options cannot be mixed with the -padding or -margins options. -height height Specifies the height of the element. See the comments for -width. STATE MAP
The stateMap parameter is a list of ttk states and the corresponding Visual Styles API state value. This permits the element appearence to respond to changes in the widget state such as becoming active or being pressed. The list should be as described for the ttk::style map command but note that the last pair in the list should be the default state and is typically and empty list and 1. Unfortunately all the Visual Styles parts have different state values and these must be looked up either in the Microsoft documentation or more likely in the header files. The original header to use was tmschema.h but in more recent versions of the Windows Development Kit this is vssym32.h. If no stateMap parameter is given there is an implicit default map of {{} 1} EXAMPLE
Create a correctly themed close button by changing the layout of a ttk::button(n). This uses the WINDOW part WP_SMALLCLOSEBUTTON and as documented the states CBS_DISABLED, CBS_HOT, CBS_NORMAL and CBS_PUSHED are mapped from ttk states. ttk::style element create smallclose vsapi WINDOW 19 {disabled 4 pressed 3 active 2 {} 1} ttk::style layout CloseButton {CloseButton.smallclose -sticky news} pack [ttk::button .close -style CloseButton] Change the appearence of a ttk::checkbutton(n) to use the Explorer pin part EBP_HEADERPIN. ttk::style element create pin vsapi EXPLORERBAR 3 { {pressed !selected} 3 {active !selected} 2 {pressed selected} 6 {active selected} 5 {selected} 4 {} 1 } ttk::style layout Explorer.Pin {Explorer.Pin.pin -sticky news} pack [ttk::checkbutton .pin -style Explorer.Pin] SEE ALSO
ttk::intro(n), ttk::widget(n), ttk::style(n), ttk_image(n) KEYWORDS
style, theme, appearance, windows Tk 8.5 ttk_vsapi(n)
All times are GMT -4. The time now is 10:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy