473,774 Members | 2,206 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help with wxWidgets

2 New Member
I create a text label like this, which works fine...
Expand|Select|Wrap|Line Numbers
  1.     $self->{lbl1} = Wx::StaticText->new($panel,
  2.                                     1,
  3.                                     'This is a label',
  4.                                     [30, 50]
  5.                                     );
  6.  
I try to create a slider....
Expand|Select|Wrap|Line Numbers
  1.  
  2. $self->{hsb1} = Wx::Slider->new($panel,
  3.                                 -1,
  4.                                 20,            #default value
  5.                                 0,            #min value
  6.                                 100,              #max value
  7.                                 [-1, -1],
  8.                                 'wxSL_HORIZONTAL',
  9.                                 'wxDefaultValidator',
  10.                                 'Slider'
  11.                                 );
  12.  
..and I get this error:
Expand|Select|Wrap|Line Numbers
  1. variable is not of type Wx::Size at sketch.pl line 31.
  2.  
Line 31 is
Expand|Select|Wrap|Line Numbers
  1. $self->{hsb1} = Wx::Slider->new($panel,
What am I doing wrong on that line?
Dec 18 '07 #1
0 986

Sign in to post your reply or Sign up for a free account.

Similar topics

10
2595
by: Nomen Nescio | last post by:
PLEASE USE WXWIDGETS Please use wxWidgets, the multiplatform C++ class library. It's free, open-source and non-commercial. It's modelled after MFC but it produces code which can be compiled (using conditional compilation) into native code executables with the speed and UI look of the platform for which the compile is targeted. So the Windows executable looks (and is) a real Windows program, the Mac OS X executable looks (and is) a native...
217
9228
by: gyromagnetic | last post by:
The following url points to an article written by Damian Conway entitled "Ten Essential Development Practices": http://www.perl.com/pub/a/2005/07/14/bestpractices.html Althought the article has Perl as a focus, I thought that some of the general points made might be of interest to the Python community. It would certainly be interesting to put together an analogous version of this article that centers on Python. Best Regards,
28
2483
by: Jed | last post by:
Hello to all! I have a couple of projects I intend starting on, and was wondering if someone here could make a suggestion for a good compiler and development environment. My goals are as follows: 1. Develop the project code on XP.
31
3150
by: Martin Jørgensen | last post by:
Hi, I've had a introductory C++ course in the spring and haven't programmed in C++ for a couple of months now (but I have been programmed in C since january). So I decided to do my conversion utility in C++, before I forget everything. But it doesn't compile: ------------
17
1749
by: marks542004 | last post by:
Hi all , I am an old programmer now hobbyist who has used cobol, basic, and RPG . I am new to c++ but have Microsoft Visual Studio 6.0. I have a program in Basic that reads a file , looks for lines containing a specific string , and lists them. I am trying to do the same thing in C in a search for speed with very
2
1782
by: Gilles Ganault | last post by:
Hello I'd like to write a GUI app in Python exclusively for Windows. Apparently, development of PythonWin has stopped a long time ago. Is there another thin wrapper to write apps in Windows? I'd rather not have to ship eg. WxWidgets, GTK+, or QT. Thank you.
4
1651
by: polemon | last post by:
Hi! I'd like to manipulate Images of various types (PNG, JPEG, GIF, BMP, maybe more) with a C++ program. Now I've found the Cimg library, but before diving deeper into that lib, I'd like to have some suggestions on other librarys for image processing. Those libs, don't need to be elaborate or something, resizing and cutting the image into smaler parts would be sufficient. However, I'd like that lib to be able to handle a variety of...
1
3519
by: Marcin Kalicinski | last post by:
I have an application written in C++ that uses wxWidgets for GUI. I use embedded Python for scripting inside of this application. I want to use wxPython to add GUI to my scripts - because my C++ App uses wxWidgets I thought it to be easy. The problem is that wxPython knows nothing about wxApp/wxFrame objects created in my C++ application, and insists (by giving me asserts) that I create another wxApp object for wxPython inside my scripts....
2
1338
by: Ramon F Herrera | last post by:
Hello: My application has three fundamental aspects: (1) It is heavily GUI oriented with palettes, and visual "communication" between the app and the user by graphical means, much like an IDE (but much simpler). (2) It uses some OCR libraries written by a 3rd. party in (Windows- oriented, I am afraid) C++
0
1494
by: papafreebird | last post by:
I'm starting to code using linux codeblocks IDE and GCC compiler to create a wxwidgets gui. I have experience coding gui's in c++ builder 6 with no problems but now that I am trying to code in linux for linux I'm having issues with the syntax. What works in c++ builder doesn't work in codeblocks. the following is a c++ builder script that works for what I want. if (CheckBox14->Checked==true)
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10040
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8939
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.