Re: [wxhaskell-users] Problem with getting string from textcontrol

2007-06-12 Thread Malcolm Wallace
Atif Iqbal <[EMAIL PROTECTED]> wrote: > I am new to Haskell and wxhaskell. > I want to get a string from one text box,process it on button click > and show the result in another test box on the same window. In that case, you only need to modify your code a little, to move the point at which you

Re: [wxhaskell-users] Problem with getting string from textcontrol

2007-06-12 Thread Atif Iqbal
thanks Malcolm! I am new to Haskell and wxhaskell. I want to get a string from one text box,process it on button click and show the result in another test box on the same window. stxt<- textEntry p [enabled := True] textlog <- textCtrl p [enabled := False, wrap := WrapNone] -- us

Re: [wxhaskell-users] Problem with getting string from textcontrol

2007-06-11 Thread Malcolm Wallace
Atif Iqbal <[EMAIL PROTECTED]> wrote: > I want to get string from text control, i tried like this > > stxt<- textEntry p [enabled := True] > mytext <- textCtrlGetValue stxt > > but its not working 'mytext' remains empty always. You are retrieving the text from the box immediately after _cr