importing constants

2007-11-04 Thread Octavian Rasnita
Hi, In the very few WxPerl tutorials I found, I've seen the following example of importing Wx constants: use Wx qw( wxDefaultPosition wxDefaultSize wxDefaultPosition wxDefaultSize # ); Can you tell me if there is a mistake, or what's the reason of

compiling Wx with an MS compiler

2007-11-22 Thread Octavian Rasnita
Hi, Can Alien::wxWidgets and WxPerl be compiled using an MS compiler (like VC6 or VC8)? I think that doing so, it won't be necessary to include so many dlls in the binary executable because they could be present on the target computers. I've tried compiling/installing Alien::wxWidgets with

event

2007-12-01 Thread Octavian Rasnita
Hello, I have a multiline text field with a text in it, and I want to allow the users to double click a word and an event should be fired in that moment, and then I want to be able to get the word that was clicked in the event handler. When the word is double-clicked, it is highlighted

Finding the char position

2008-01-03 Thread Octavian Rasnita
Hello and I wish you a happy new year! If I click in a multi line text control with the mouse, how can I find at which position I have clicked on? I've read about the text control object methods, but I couldn't find how to do that. Thank you. Octavian

wxChoice

2008-01-05 Thread Octavian Rasnita
Hi, Please tell me where can I found more information about the methods that can be used for using a wxChoice widget. I've seen that in the chm wxWidgets reference there are very few methods described in the page about wxChoice. And I want to know how can I get the text of the selected item,

Multiline text controls indices

2008-01-08 Thread Octavian Rasnita
Hi, I want to make a TextCtrl widget and when I double click with the mouse somewhere in the text it should get the whole word that was clicked. I've done the following in the OnWidget_Click event handler: my $text = $self-GetValue(); my ($result, $x, $y) =

beep

2008-01-10 Thread Octavian Rasnita
Hi, Does WxPerl have a method for making a default beep? I need something like Win32::GUI::MessageBeep that can be used in a Win32::GUI application. Thank you. Octavian

Style

2008-01-27 Thread Octavian Rasnita
Hi, Is it possible to change the foreground/background of some words from a text from a TextCtrl control without re-writing the whole text? I am thinking to change the background of the words which I move the mouse cursor over, but if I would need to re-write the whole text, I think the

more info regarding running an WxPerl executable

2008-02-02 Thread Octavian Rasnita
Hi, I've discovered something very strange. If I run the WxPerl executable created with PDK, no files are extracted in the temp directory. But if I right-click the file, chose Properties, and from the compatibility tab I chose Win 95 or 98/Millenium, after running the executable again, 10

using a progress bar with POE::Loop::Wx

2008-02-09 Thread Octavian Rasnita
Hi, I want to use a ProgressDialog to show the progress of a file download and database update. The progress works well, however the ProgressDialog window is very unresponsive because the program uses a single thread. Is it possible to use POE::Loop::Wx for making the dialog window more

Re: using a progress bar with POE::Loop::Wx

2008-02-10 Thread Octavian Rasnita
Ok, thanks. I've finally used Wx::SafeYield($Window); in the loop, and now the window is just a little bit more responsive. Octavian - Original Message - From: Mike Schroeder To: Octavian Rasnita ; wxperl-users@perl.org Sent: Sunday, February 10, 2008 6:34 PM Subject: Re

wxToolBar

2008-02-22 Thread Octavian Rasnita
Hi, I've read the following in the chm docs of WxPerl: wxToolBar::InsertTool wxPerl note: This method is not implemented in wxPerl But I've finally seen that it is available in WxPerl so I have an older chm file. Is there a newer one that's updated? Thanks. Octavian

Re: wxToolBar:InsertTool - don't use, it's buggy

2008-02-22 Thread Octavian Rasnita
From: Daniel [EMAIL PROTECTED] Hi, I don't know if there's a newer documentation, but I know there is a bug in wxToolBar::InsertTool. If you insert a tool, the toolbar changes its size to the width of the tools. That means, it has no longer the width of the window and that doesn't look

Wx::Sound solved

2008-02-26 Thread Octavian Rasnita
Hi, Sorry for my previous message. I've forgotten to add a -new in order to write: Wx::Sound-new(file.wav)-Play(); Octavian

printing a text in the status bar for menu items that have submenus

2008-03-08 Thread Octavian Rasnita
Hi, I am trying to print a text in the status bar for each menu item, including the menu items that have submenus, but for those items I can't do it. For the common menu items (button, radio or checkboxes), the text is printed well in the status bar. I have tried something like: #define the

Re: printing a text in the status bar for menu items that havesubmenus

2008-03-09 Thread Octavian Rasnita
From: bungsuputra linan [EMAIL PROTECTED] Hi Octavian Rasnita, I am not sure whether you have tried this, but it works fine in my script. I mean the text is printed in the status bar for menus with submenus. I hope I get what you meant in your previous email correctly. self-{OptionsMenu

PAR

2008-03-19 Thread Octavian Rasnita
Hi, Is it possible to use PAR under Windows to create a .par file with a program that uses WxPerl that can be ran under Linux? Thanks. Octavian

wxTextAttr

2008-03-20 Thread Octavian Rasnita
Hi, I want to create a readonly multiline rich text control that has the wxTE_PROCESS_ENTER style, so I've tried to use Wx::TextCtrl with the wxTE_RICH2 style. I need to make some format settings in the control, like the font, the color, background-color, boldness and other things like that

PDK

2008-03-21 Thread Octavian Rasnita
Hi, Is it possible to exclude the dll files which are needed by WxPerl to run in a PDK - generated executable? (And put them separately in the same dir with the executable) Thanks. Octavian

Re: PDK

2008-03-21 Thread Octavian Rasnita
it helps. Regards, bungsu On Fri, 2008-03-21 at 13:48 +0200, Octavian Rasnita wrote: Hi, Is it possible to exclude the dll files which are needed by WxPerl to run in a PDK - generated executable? (And put them separately in the same dir with the executable) Thanks. Octavian

Re: wxTextAttr

2008-03-21 Thread Octavian Rasnita
- Original Message - From: Mattia Barbon [EMAIL PROTECTED] To: Octavian Rasnita [EMAIL PROTECTED] Cc: wxperl-users@perl.org Sent: Friday, March 21, 2008 7:15 PM Subject: Re: wxTextAttr Octavian Rasnita wrote: Hi Octavian, I want to create a readonly multiline rich text control

superscripts - was PDK

2008-03-21 Thread Octavian Rasnita
Hi Mattia and all, I've finally found how to set the font and its attributes in a rich TextCtrl. The single thing I couldn't find how to do, is to set superscripts and subscripts (those small letters up or down the line of text). If you know how to do this, or at least if you know that it

superscript/subscript

2008-03-25 Thread Octavian Rasnita
Hi, I've asked on another list regarding the use of superscripts and subscripts in a rich text TextCtrl widget, and here below is the answer I received. I've also tried doing: use Wx qw(wxTEXT_ATTR_EFFECT_SUBSCRIPT); but it gave an error telling that this constant isn't exported by the Wx

Re: superscript/subscript

2008-03-25 Thread Octavian Rasnita
in Wx::TextAttr. Can I do with other methods what that subroutine is doing in order to create a subscript style? Thank you. Octavian - Original Message - From: Mark Dootson [EMAIL PROTECTED] To: Octavian Rasnita [EMAIL PROTECTED] Cc: wxperl-users@perl.org Sent: Tuesday, March 25, 2008

Re: superscript/subscript

2008-03-25 Thread Octavian Rasnita
Ok, thank you. I will wait until then. But what exactly is Wx::TextAttrEx? A kind of extension of Wx::TextAttr that can be used wherever Wx::TextAttr is used? Thanks. Octavian - Original Message - From: Mark Dootson [EMAIL PROTECTED] To: Octavian Rasnita [EMAIL PROTECTED] Cc

Re: superscript/subscript

2008-03-26 Thread Octavian Rasnita
with some styles of wxRichTextAttr? Thank you. Octavian - Original Message - From: Mattia Barbon [EMAIL PROTECTED] To: Octavian Rasnita [EMAIL PROTECTED] Cc: Mark Dootson [EMAIL PROTECTED]; wxperl-users@perl.org Sent: Wednesday, March 26, 2008 12:19 AM Subject: Re: superscript/subscript

Re: Stopping WxMenu from trying to be smart

2008-04-14 Thread Octavian Rasnita
Hi Mark, Thank you for your samples. They help me also. But I want to ask, if we use Locale, shouldn't we use Ctrl as usually, then the module would need to translate it to another string, based on the language chosen (maybe from a configuration file)? I've seen that Strg is hard coded in the

WxPerl threads

2008-04-20 Thread Octavian Rasnita
Hi, I've read http://search.cpan.org/~mbarbon/Wx-0.82/lib/Wx/Thread.pod and I've started to create a test program (that I enclosed below), but as the POD docs from the URL above doesn't include a working example, I don't understand how to make it really work. I've seen in the POD: sub done

event generated when closing the window

2008-07-23 Thread Octavian Rasnita
Hi, How can I handle the event generated when I close the window with alt+F4? The app uses threads and I want to kill the threads when I close the window and do other cleaning jobs. Thank you. Octavian

Wx::ActiveX

2008-07-24 Thread Octavian Rasnita
Hi, I have 2 questions regarding the use of ActiveX under WxPerl. I've seen that Wx::ActiveX is much more developed than Win32::GUI::AxWindow. With Win32::GUI::AxWindow it was possible to display a page created by the program, and not only to view a remote URL or external file. Is this

Re: Padre 0.02 released

2008-07-28 Thread Octavian Rasnita
Hi, See my answers below. thanks for your time and detailed report. You're welcome. And, congratulations for your work. 6. In the Edit menu, you should add the hotkeys for Undo, redo... because at least Control+Z works, but this is not visible from the menu. I am using EVT_MENU(

Re: Padre 0.02 released

2008-07-29 Thread Octavian Rasnita
at 12:36 PM, Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, I use Win XP Pro SP3, Active Perl 5.8.8. Here is my feedback: 1. I think you should specify that the program requires Wx::Perl::ProcessStream After perl Makefile.pl it didn't tell me that I don't have that module installed

The methods of $event

2008-07-29 Thread Octavian Rasnita
Hi, I've seen that an event handler always receives a $event as a second parameter and that this event can be used to do many methods, depending on the event that triggered that event handler. Where can I find all the methods which I can use for each event type? (Please just tell me where to

Re: Wx::MediaCtrl

2008-07-31 Thread Octavian Rasnita
From: Huub Peters [EMAIL PROTECTED] What platform? - On Windows using the ppm's from wxperl.co.uk it should work out of the box (using MediaPlayer). Sorry for the dumb question. Yes I use Windows and now it works. I've tried to use Wx::MediaCtrl instead of use Wx::Media. Octavian

Default column size

2008-08-02 Thread Octavian Rasnita
Hi, I am trying to create a ListView in report mode, and I want the columns to have a width that can hold the biggest string from each column. I have read that by default this happends when I use the -1 width, but all the columns are created smaller than that and the text from each column is

Setting the Ok and Cancel key defaults

2008-08-06 Thread Octavian Rasnita
Hi, I have 2 buttons on a Wx::Dialog window, and I want one of them to be pressed when I hit enter on a text field, and the other one to be pressed when I press the escape key. I have read on the manual page of Wx::Dialog that I can use wxOK, or wxID_OK, wxCANCEL, or wxID_CANCEL (I didn't

Wx::Locale

2008-08-19 Thread Octavian Rasnita
Hi, I've seen that WxPerl uses gettext as the base for Wx::Locale, just like Catalyst framework uses gettext in Catalyst::Plugin::I18N. In Catalyst I can do: t(The name of the city is [_1], $city); or t(The cities are [_1], [_2] and [_3], [$city1, $city2, $city3]); This is very convenient,

Re: getting the values from Wx::Dialog

2008-08-21 Thread Octavian Rasnita
Message - From: Brian Donorfio [EMAIL PROTECTED] To: Octavian Rasnita [EMAIL PROTECTED] Cc: wxperl-users@perl.org Sent: Thursday, August 21, 2008 4:16 PM Subject: Re: getting the values from Wx::Dialog On Sun, Aug 17, 2008 at 10:03 AM, Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, I need

Re: Wx::CheckListBox under Windows

2008-08-22 Thread Octavian Rasnita
From: Mattia Barbon [EMAIL PROTECTED] Octavian Rasnita wrote: I also asked on another mailing list, and a list member told me: When you were compiling wxWidgets, did you enable the accessibility flag? You can do this in one of two ways. 1. remove the comment that says enable accessibility

Re: Closing the app from system tray

2008-08-26 Thread Octavian Rasnita
Hi Huub, From: Huub Peters [EMAIL PROTECTED] Octavian Rasnita wrote: Hi, I try to close the aplication using the system tray but anything I do, it doesn't seem to work. I put the sample app I've made in this message below. The problem is that when I click on the tray icon, instead

creating dialogs in a secondary thread

2008-08-28 Thread Octavian Rasnita
Hi, My program uses an internal web server which is ran in a separate thread and when a certain address is accessed, I want it to display a certain Wx::Dialog. I've seen that I can display with no problems a Wx::MessageBox, but I can't display well a Wx::Dialog because it freezes the

Re: Ctrl-TAB does not seem to work in menu

2008-08-28 Thread Octavian Rasnita
Ctrl+TAB and Ctrl-TAB work, but maybe you have a control in your app that stills this hotkey (like a Wx::Notebook for example). Octavian - Original Message - From: Gabor Szabo [EMAIL PROTECTED] To: wxperlusers wxperl-users@perl.org Sent: Thursday, August 28, 2008 12:08 PM Subject:

Isn't Wx::SingleInstanceChecker working?

2008-08-29 Thread Octavian Rasnita
Hi, I have tried to use the following method for disallowing more than one instance of the application to run: sub OnInit { #... $self-{instance_checker} = Wx::SingleInstanceChecker-new(); if ($self-{instance_checker}-IsAnotherRunning) { return 0; } } But it doesn't work and I can open more

Blocking the app from a secondary thread?

2008-08-29 Thread Octavian Rasnita
Hi, I've seen that if I try to create a Wx::Dialog from a secondary thread, it breaks the app, but if I create a Wx::MessageBox it works fine. So I tried to use a Wx::GetMultipleChoices. It displays well the dialog and it returns well the results, but if another thread tries to update the main

Re: strange error

2008-08-29 Thread Octavian Rasnita
. Octavian - Original Message - From: bungsuputra linan [EMAIL PROTECTED] To: wxperl-users wxperl-users@perl.org Sent: Friday, August 29, 2008 9:38 AM Subject: Re: strange error Hi Octavian Rasnita, I usually use MessageDialog instead of MessageBox for similar case. So, my

Re: Binding events to methods

2008-08-31 Thread Octavian Rasnita
Hi Mattia, What would be the advantage after this change? I often need to use EVT_BUTTON( $self, $button, sub { $_[0]-do_foo( $_[1] ) } ); ...just because I need to pass some more parameters to the do_foo subroutine/method. Would it be easier to pass parameters from now on somehow? If

Wx::Thread

2008-08-31 Thread Octavian Rasnita
Hi, I've found the following in Wx::Thread: use threads; use threads::shared; use Wx; my $DONE_EVENT : shared = Wx::NewEventType; my $worker = threads-create( \work ); # create frames, etc my $frame = Wx::Frame-new( ... ); EVT_COMMAND( $frame, -1,

Re: Accessible GUI Applications in Perl

2008-11-08 Thread Octavian Rasnita
From: Gabor Szabo [EMAIL PROTECTED] There was a recent thread on PerlMonks with the above title where I suggested the use of wxPerl. http://www.perlmonks.org/?node_id=722367 I wonder what is really the issue? How can one make sure that the application s/he is writing has the accessibility

Re: Accessible GUI Applications in Perl

2008-11-09 Thread Octavian Rasnita
From: bungsuputra linan [EMAIL PROTECTED] Yes, I think threads really tend to use more and more memory. I have an application, when it runs, it takes 60 MB of memory, and a simple thread to check update increases the memory usage to 90 MB. If the user checks update once again, it increases to

Re: Accessible GUI Applications in Perl

2008-11-10 Thread Octavian Rasnita
From: Mike Schroeder [EMAIL PROTECTED] I wonder what is the most complex app out there (free or commercial) written in wxPerl? I'm not sure if we are the largest/most complicated wxPerl app out there or not, but we must be up there... Is the source code of your app public? I think we are

Re: open a page in a real web browser

2008-11-21 Thread Octavian Rasnita
From: Gabor Szabo [EMAIL PROTECTED] Padre has a plug-in that can open a page in a web browser: http://search.cpan.org/dist/Padre-Plugin-ViewInBrowser/ I wonder if there is better way to do it especially from wx? Try: Wx::LaunchDefaultBrowser($url); Octavian

Re: Kephra 0.4 release

2008-11-29 Thread Octavian Rasnita
From: herbert breunung [EMAIL PROTECTED] Dear List Member, I'm very pleased to announce Kephra 0.4 Congratulations for the program! If it helps you, I have a few things to report after a very short test. I've seen that I can't change the active document using the keyboard only because

Padre

2008-12-23 Thread Octavian Rasnita
Hi, I've just installed the editor Padre using cpan, and I have tried to run the following script: use utf8; binmode STDOUT, :utf8; print ţâţă de mâţă; #But when running the program with F5 it prints: ţâţă de mâţă ...instead of those UTF-8 chars. Can I do something to make it

Padre

2008-12-27 Thread Octavian Rasnita
Hi, I have tried to run the following test program with Padre in order to see if the lines are printed on the screen immediately: $|++; while (1) { print ok\n; sleep 1; } The lines are printed immediately on the screen as they should, but the problem is that after I have stopped the

Re: Documentation?

2009-07-31 Thread Octavian Rasnita
From: Roode, Eric ero...@barrack.com People always rave about wxPython. What's lacking in Perl's wx implementation? Yes, why is it considered normal to write a GUI app in python, but people look at you weird when you suggest doing a GUI app in Perl? Perl is great for database access and

Re: Documentation?

2009-07-31 Thread Octavian Rasnita
From: Steffen Mueller nj88ud...@sneakemail.com Anyhow. When I wrote a lengthy post on use.perl.org about Perl threads, it was brought to my attention that very capable people are working on making Coros work preemptively. That would -- as far as I can tell -- effectively give use Python-like

Padre can't be installed from WxPerl repository?

2010-04-26 Thread Octavian Rasnita
Hi, I've seen that Padre can't be installed under ActivePerl 5.10.1 using cpan, so I've tried to install it from WxPerl repository using: C:\Documents and Settings\Octavianppm s Padre ... 3: Padre Perl Application Development and Refactoring Environment Version: 0.56 Repo: wxperl C:\Documents

Re: Padre can't be installed from WxPerl repository?

2010-04-26 Thread Octavian Rasnita
Hi Mark, From: Mark Dootson mark.doot...@znix.com Hi, I tested ActivePerl 1007 Padre install and it seemed to work OK. Perhaps the repository needs re-sync ppm repo sync --force wxperl ppm s Padre Regards Mark Thank you. I was able to install Padre. Unfortunately when I try

Re: Padre can't be installed from WxPerl repository?

2010-04-27 Thread Octavian Rasnita
. Octavian - Original Message - From: Mark Dootson mark.doot...@znix.com To: Octavian Rasnita orasn...@gmail.com Cc: wxperl-users@perl.org Sent: Tuesday, April 27, 2010 3:16 PM Subject: Re: Padre can't be installed from WxPerl repository? Octavian, I just tried cpan Padre

perl.exe - Unable To Locate Component

2010-07-24 Thread Octavian Rasnita
Hi, I've just installed the latest version of Wx under Windows XP Pro: ppm s Wx ... 3: Wx Interface to the wxWidgets cross-platform GUI toolkit Version: 0.9702 Repo: wxperl C:\Documents and Settings\Octavianppm inst 3 Downloading Wx-0.9702...done Unpacking Wx-0.9702...done Generating HTML for

Dependency on latest alien::wxWIDGETS

2010-07-26 Thread Octavian Rasnita
Hi, I found that Wx gives some errors after I installed it with ppm from WxPerl repository. I've seen that it required the latest version of alien::wxWIDGETS. After I installed this module with ppm, Wx started to work fine. It could be helpful to put a dependency on the latest version of

Re: AW: Distributing wxPerl applications

2010-08-02 Thread Octavian Rasnita
Hi, On Cava's web site I read: Cava Packager provides a packaging solution for applications developed in Perl on the Windows, Linux and MacOSX platforms.. So it seems that it should work for Mac and Linux also... I have also read: ...At your option you can 'encrypt' the source code of

Re: AW: Distributing wxPerl applications - Perlapp

2010-08-03 Thread Octavian Rasnita
Limited success. Ended up building an '.App' package with shell script - worked fine OSX comes with wxperl installed, by the way. On 8/3/2010 4:08 AM, Octavian Rasnita wrote: Thank you for clarifications. I haven't even tried to use perlapp with Strawberry because I thought

Re: Subclassing an empty class?

2010-08-08 Thread Octavian Rasnita
From: Mattia Barbon mattia.bar...@libero.it Octavian Rasnita wrote: Hi, Thank you for this solution. It works. However, I just found a bug in another program I made that was caused by re-blessing an object and I am afraid that this re-blessing might cause problems in the future and I

WxPerl and Moose

2010-09-12 Thread Octavian Rasnita
Hi, Can WxPerl be used with Moose? I have tried the following test program: package WxTrial; use Moose; use Wx; extends 'Wx::SimpleApp'; 1; package main; #my $t = WxTrial-new; my $t = WxTrial-new(foo = bar); The program gives the following error if I use it with the parameter foo = bar:

Re: Screensaver on touch screen

2010-09-23 Thread Octavian Rasnita
In that case it might be impossible. It may be like when you turn off the computer display and start clicking with the mouse. The computer doesn't know if the display is on or off so it reacts to the clicks. But if that touch pad works that way and doesn't know when the display is turned

Wx and PDK

2010-11-08 Thread Octavian Rasnita
Hi, The programs created with Wx don't need to use Wx::Perl::Packager and the script wxpdk for creating PDK executables for Windows anymore? I have a problem with a program that uses Pod::Constants but I can't add it to the executable even though I've tried with --add Pod::Constants parameter.

Can't subclass Wx::Frame using parent.pm?

2010-11-13 Thread Octavian Rasnita
Hi, I have tried: package Package::Name; use strict; use warnings; use Wx ':everything'; use parent 'Wx::Frame'; It gives the following error: Can't locate Wx/Frame.pm in @INC (@INC contains: E:/usr/site/lib E:/usr/lib .) at E:/usr/lib/parent.pm line 20. BEGIN failed--compilation aborted at

Re: Can't subclass Wx::Frame using parent.pm?

2010-11-13 Thread Octavian Rasnita
From: Johan Vromans jvrom...@squirrel.nl Octavian Rasnita orasn...@gmail.com writes: use parent 'Wx::Frame'; It gives the following error: Can't locate Wx/Frame.pm in @INC (@INC contains: E:/usr/site/lib E:/usr/lib .) at E:/usr/lib/parent.pm line 20. BEGIN failed--compilation aborted

Detecting the key combinations

2010-11-26 Thread Octavian Rasnita
Hi, In an event handler of a text field I try to get and print (for testing) the key code and the modifiers using something like: sub OnKeyCombinations { my ($key_combination, $event) = @_; my $key = $event-GetKeyCode; my $modifiers = $event-GetModifiers; $key_combination-SetValue(key:

Modal frame?

2010-11-30 Thread Octavian Rasnita
Hi, I have created a frame with WxPerl and I want to open it as a modal window. Is it possible with WxPerl? Can I open it somehow as a dialog window that can be opened in modal mode? Thanks. Octavian

Strange error locale dependent

2010-12-03 Thread Octavian Rasnita
Hi, I have made a program that translates the text using Google's translation services and it also uses Wx::Locale. If the interface of the program is in English, the program works fine. If I change the language_id of the current language of the interface in the config file to 155 (Romanian),

Error when LWP, WxPerl and version.pm are used together

2010-12-05 Thread Octavian Rasnita
Hi, Here below I added a sample program that gives an error if WxPerl, LWP and version.pm are used together. The program works fine if either - With Wx::Locale I use the language id 56 (for English) instead of 155 (for Romanian) or - instead of use version; I use use version();. The first

Re: Error when LWP, WxPerl and version.pm are used together

2010-12-06 Thread Octavian Rasnita
To: Octavian Rasnita orasn...@gmail.com Cc: wxperl-users@perl.org; jpeac...@cpan.org Sent: Sunday, December 05, 2010 5:19 PM Subject: Re: Error when LWP, WxPerl and version.pm are used together Hi Octavian, I think you can 'fix' this by an explicit 'use' for IO::Socket. e.g. use IO::Socket

Key combination detection in WxPerl

2011-01-02 Thread Octavian Rasnita
Hi and I wish you a happy new year, Regarding the detection of hotkeys in a WxPerl application, please tell me which keys can be detected. I have seen that I can't detect when the Alt key is pressed. I am interested which of the following keys can be detected when they are pressed together

Wx::Gauge in status bar

2011-02-20 Thread Octavian Rasnita
Hi, I have a status bar with 2 fields and I want to add a Wx::Gauge progress bar in the second field after pressing a button (in the click event of that button). I have read that It is possible to create controls and other windows on the status bar. Position these windows from an OnSize event

Wx::AcceleratorTable doesn't work

2011-03-16 Thread Octavian Rasnita
Hi, I have tried to define an accelerator for a button, then I've seen that the accelerator for menu items work on more platforms so I've tried to define an accelerator for a menu item, but it still doesn't work. I've defined the menu item: $self-{FileStop} = $self-{FileMenu}-Append(-1,

Re: Wx::AcceleratorTable doesn't work

2011-03-17 Thread Octavian Rasnita
From: Johan Vromans jvrom...@squirrel.nl Octavian Rasnita orasn...@gmail.com writes: Hi, I have tried to define an accelerator for a button, then I've seen that the accelerator for menu items work on more platforms so I've tried to define an accelerator for a menu item, but it still doesn't

EVT_CHAR needs to be defined for every control?

2011-03-17 Thread Octavian Rasnita
Hi, I thought that if I define an EVT_CHAR event handler for a form is enough, and that event will appear each time a key is pressed, no matter which control on that form has the focus: EVT_CHAR($self, \OnChar); sub OnChar { my ( $self, $event ) = @_; die OnChar; } But if there are

Re: EVT_CHAR needs to be defined for every control?

2011-03-17 Thread Octavian Rasnita
From: Mattia Barbon mattia.bar...@libero.it On 17/03/11 20.34, Octavian Rasnita wrote: Hi, I thought that if I define an EVT_CHAR event handler for a form is enough, and that event will appear each time a key is pressed, no matter which control on that form has the focus

Wx::AcceleratorTable can't handle Escape and EVT_CHAR is not handled by all form objects

2011-03-18 Thread Octavian Rasnita
Hi, Wx::AcceleratorTable doesn't handle the Escape key under Windows, so an EVT_CHAR event must be defined for every form field. But I've seen that the event EVT_CHAR is not handled by all form objects, for example the buttons doesn't handle it. Is there another way to define the Escape key

Re: Forcing a Look 'n' Feel

2011-04-11 Thread Octavian Rasnita
From: Jon Aykroyd three1...@gmail.com Hal, I know this is a wxperl group, but hasn't you given any thought to a web basted application? That way the customer doesn't have to download a client for their computer, and you only have to maintain one code base, not to mention the inherent

Re: Forcing a Look 'n' Feel - Cava :-)

2011-04-11 Thread Octavian Rasnita
From: jeff j...@roqc.no Cava Citrusperl are the way to go. Mark has taken care all of the Perl builds on all platforms, the packaging on all platforms and now even the installer. All you do is write code and feed it in. :-) Jeff Can it create packages for all platforms under a certain

Re: What good is a Wx::Panel?

2011-06-06 Thread Octavian Rasnita
Hi Mark, Why is wxTAB_TRAVERSAL needed in a panel? Tabbing from a field to the previous/next by using the shift+tab/tab keys were possible in non-dialog windows when using a panel. Should the wxTAB_TRAVERSAL style be used for beeing able to do this, and the previous way was just a helpful

Re: What good is a Wx::Panel?

2011-06-07 Thread Octavian Rasnita
OK, but does this mean that if we use some styles for a certain control, we should also specify explicitly the default styles because otherwise they won't be used as a default? --Octavian - Original Message - From: Mark Dootson mark.doot...@znix.com To: Octavian Rasnita orasn

Creating a package with perlapp

2011-12-21 Thread Octavian Rasnita
Hi, I have a strange problem with a WxPerl-based program I made a few years ago. No matter if I run it with Perl directly or from a perlapp package, all the controls and menus it uses show and work fine, but 2 multiline fields don't work nor show well. Actually I don't know how they show, but

Citrus Perl

2011-12-26 Thread Octavian Rasnita
Hi, I read that Citrus Perl is targetted for creating desktop apps for Win and Mac. Does anyone know if it is also possible to use Citrus Perl for creating ActiveX COM servers with it? (like with ActiveState's perlctrl?) Thanks. Octavian

installing an older version of WxPerl?

2012-04-03 Thread Octavian Rasnita
Hi, Is it possible to install WxPerl 0.9701 under Windows using ppm? The latest versions of WxPerl (0.9901) installed from WxPerl repository doesn't work well with ActivePerl 5.10 because the multiline text fields appear as password text fields, and I need to use ActivePerl 5.10. The latest

Re: installing an older version of WxPerl?

2012-04-03 Thread Octavian Rasnita
Hi Mark, From: Mark Dootson mark.doot...@znix.com Subject: Re: installing an older version of WxPerl? Hi, On 03/04/2012 19:38, Octavian Rasnita wrote: Hi, Is it possible to install WxPerl 0.9701 under Windows using ppm? The latest versions of WxPerl (0.9901) installed from WxPerl

Re: wxPerl past, wxPerl present and wxPerl future.

2013-01-03 Thread Octavian Rasnita
From: Waldemar Biernacki w...@sao.pl My opinion is very similar to that of Sergei's. I trace the list for few years but use Prima library: 1. Prima is very easy installable in Windows and Linux 2. Prima has very good examples, 3. Prima has quite good pdf documantation, 4. and has very perlish

Re: wxperlbook

2013-01-05 Thread Octavian Rasnita
Hi Herbert, Talking about modern Perl, I think it could be useful to see examples of using WxPerl with Moose/Moo. Also, maybe even more useful could be some examples of using WxPerl to create multi threading applications (because this is often needed for desktop apps). Another helpful

Re: wxperl screenshots

2013-01-20 Thread Octavian Rasnita
Hi Waldemar, Unfortunately it is not possible because Win32::GUI and WxPerl have totally different interfaces. So you should need to totally replace the part of the program that draws the GUI. --Octavian - Original Message - From: Waldemar Biernacki w...@sao.pl To:

Display UTF-8 chars in rich text fields

2013-04-21 Thread Octavian Rasnita
Hi, I am trying to display UTF-8 text in a richtext field using the following code: my $font = Wx::Font-new( $font_size, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, 0, Verdana, wxFONTENCODING_UTF8 ); But when I run the program, it appears a nice window with the

Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-22 Thread Octavian Rasnita
Hi, I have a text field defined as: $self-{defs} = Wx::TextCtrl-new( $self-{panel}, -1, , wxDefaultPosition, [ 500, 400 ], wxTE_MULTILINE | wxTE_READONLY | wxVSCROLL | wxTE_PROCESS_ENTER | wxTE_RICH2 ); And I am trying to set a font for

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-29 Thread Octavian Rasnita
Hi Mark, Thank you for this great explanation. Much clearer than other documentations. --Octavian - Original Message - From: Mark Dootson mark.doot...@znix.com To: steveco.1...@gmail.com; wxperl-users@perl.org Sent: Monday, April 29, 2013 4:32 PM Subject: Re: Can we print UTF-8

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-30 Thread Octavian Rasnita
Hi Mark, I tried your suggestion and I removed the constant wxVSCROLL from the attributes of Wx::TextCtrl constructor, but the UTF-8 encoded chars still appear as squares. I use Windows XP Pro and ActivePerl 5.14.2. (I need to use ActivePerl and not another distribution because I need to

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-30 Thread Octavian Rasnita
To: Octavian Rasnita orasn...@gmail.com Cc: steveco.1...@gmail.com; wxperl-users@perl.org Sent: Tuesday, April 30, 2013 10:43 PM Subject: Re: Can we print UTF-8 chars in Wx::TextCtrl fields? Hi, Comment out the line $text = decode('utf8', $text ); you do not need it. Change the font name requested

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-05-01 Thread Octavian Rasnita
range of glyphs available so this isn't an issue. Unless, strangely, you force 'Verdana' which seems to be the font Microsoft forgot. Regards Mark On 01/05/2013 17:35, Mark Dootson wrote: Hi, On 01/05/2013 15:21, Octavian Rasnita wrote: Thank you Mark! Now the chars are displayed fine. Too

Re: wxString and UTF-8, utf8 etc etc etc again

2013-05-01 Thread Octavian Rasnita
From: Mark Dootson mark.doot...@znix.com Hi, On 02/05/2013 00:17, Steve Cookson wrote: Or just sub libDecode ($$){ return decode(@_); } At least all the things that might go wrong will all be here. You're unduly worried ( probably my fault ). my $string = decode($encoding,

Is Cava Packager open source?

2013-10-12 Thread Octavian Rasnita
Hi, I read something about the free license of using Cava, but I didn't understand if it is open source also and I didn't find its source code. I am interested in its source because I am trying to find if I can do something to make it accessible for Orca screen reader under Linux. Seems that

  1   2   >