473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Need help with wxWidgets

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 973

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

Similar topics

10
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...
217
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...
28
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...
31
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...
17
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...
2
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?...
4
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...
1
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++...
2
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...
0
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.