Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Dec 14, 2019 2:18 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: OSX to Windows massive transition problems 1
PostPosted: Thu Oct 04, 2012 8:58 am 
Offline

Joined: Wed Jun 15, 2011 2:32 pm
Posts: 29
Hi,

I'm trying to get my app working in windows
Works great on mac,
all kinds of problems in windows

program is a music library
reads a selected disk directory for aiff, flac, mp3s, and wav files
stores filenames in a database with user added photo and notes,
and displays them in a listbox with added clipart and liner notes
modeled from the database example which I cannot get to run in debug mode on windows side??

Heres a few of the problems

1. The GroupBox Captions are truncated. (inside TabPanel)
adding spaces ie: "Group Caption "
produces strange looking grayed out spaces

2. Resizing the main window causes toolbar glitches, also cant use spaces to align the toolbar
buttons dont auto size (just resized them no biggie)
3. Scrolling thru Listbox causes buttons to flash, notes and photos dont update until dn or up arrow key is released

any help on any of these issues would be greatly appreciated

_________________
Running snow leopard 10.6.8, and windows 7 via vmware
solutions need to work on both platforms and without purchasing 3rd party plug-ins


Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Thu Oct 04, 2012 9:21 am 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
I have not done a lot using RS and WIN
but one thing I keep seeing mentioned in Double Buffering, which is done automatically by OSX
There is a checkbox in the properties panel for this. try checking it (it won't harm OSX) but might fix at least some of your issues

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Thu Oct 04, 2012 6:27 pm 
Offline

Joined: Mon Aug 14, 2006 9:33 pm
Posts: 1774
Quote:
3. Scrolling thru Listbox causes buttons to flash, notes and photos dont update until dn or up arrow key is released


Are you using a canvas to draw your notes and photos? Are you drawing only in the .paint event as suggested?

_________________
Roger Clary
Class One Software
Educational Software for Lifelong Learning
http://www.classonesoftware.com


Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Fri Oct 05, 2012 12:36 am 
Offline

Joined: Wed Jun 15, 2011 2:32 pm
Posts: 29
DaveS wrote:
I have not done a lot using RS and WIN
but one thing I keep seeing mentioned in Double Buffering, which is done automatically by OSX
There is a checkbox in the properties panel for this. try checking it (it won't harm OSX) but might fix at least some of your issues

Hey Dave,

My first windows endeavor...
well was my first osx endeavor as well
btw Thanks Again for all your help!!!!

searched double buffering but can found only abstract
example involves using canvas
Im not using canvas just comboboxes, imagewell listbox groupbox tabpanels as controls, texfields, labels and buttons
found in the database example

not sure how to make that work
can you provide example

_________________
Running snow leopard 10.6.8, and windows 7 via vmware
solutions need to work on both platforms and without purchasing 3rd party plug-ins


Last edited by 64OSXuser on Fri Oct 05, 2012 12:38 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Fri Oct 05, 2012 12:37 am 
Offline

Joined: Wed Jun 15, 2011 2:32 pm
Posts: 29
classone wrote:
Quote:
3. Scrolling thru Listbox causes buttons to flash, notes and photos dont update until dn or up arrow key is released


Are you using a canvas to draw your notes and photos? Are you drawing only in the .paint event as suggested?


no Im not, using imagewell and textarea for liner notes like the database example

Note: seem to have this one sorted by comparing the database example logic
I had button statements in the wrong place

_________________
Running snow leopard 10.6.8, and windows 7 via vmware
solutions need to work on both platforms and without purchasing 3rd party plug-ins


Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Fri Oct 05, 2012 9:38 am 
Offline

Joined: Mon Aug 14, 2006 9:33 pm
Posts: 1774
Use canvases. Images are really just GUI candy. Canvases are much more powerful.

_________________
Roger Clary
Class One Software
Educational Software for Lifelong Learning
http://www.classonesoftware.com


Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Sat Oct 06, 2012 12:00 pm 
Offline

Joined: Wed Jun 15, 2011 2:32 pm
Posts: 29
classone wrote:
Use canvases. Images are really just GUI candy. Canvases are much more powerful.


I gave that a try when dave suggested it
tho my images display properly I thought it may work as a backdrop for my main doc window
but was unable make that work.. well I saw no change..I'm new to real.studio
I tried putting my toolbar inside a canvas with double buffering enabled
hoping to prevent the black artifac that shows up when the window is resized
but that didnt work, just made the buttons harder to click
also tried putting my tab panel inside a canvas it changed nothing
but I dont discount that this may just be above my ability with real,studio at this point.

real.studio for widows seems to challenge every thing I thought I have learned about real.studio
basic statements dont work as expected
example
I have a modal dialog that I use as a splashscreen with a background
here a part of the code I use in the app open event
// Opens splash screen
SplashScreen1 = new SplashScreen
SplashScreen1.show
SplashScreen1.visible = true
SplashScreen1.ProgST.visible = true // textfield
SplashScreen1.ProgST.textcolor =&cFFFFFF
SplashScreen1.ProgST.text = "Initializing..."
//
The textcolor statement does not work text color remains black
Can anyone explain why this does not work in windows?

_________________
Running snow leopard 10.6.8, and windows 7 via vmware
solutions need to work on both platforms and without purchasing 3rd party plug-ins


Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Sat Oct 06, 2012 12:31 pm 
Offline

Joined: Mon Aug 14, 2006 9:33 pm
Posts: 1774
You are needlessly making your life difficult.
Just make your Splash Screen the default window (select App in the project tab and notice the default window property in the properties pane.)

YOu can set all of the features you want in your Splash Screen at design time. TextBoxes, colors in those boxes, etc
When the Splash screen is dismissed, then show your first screen.

As to your use of Canvases: The sort of layering you are trying is possible but a bit trickier. Why do you need a background for your toolbar?
When I suggested to use a canvas, I meant for the display of "notes and photos" as you mentioned. Just draw your graphic using the passed object (g) in the paint event.

_________________
Roger Clary
Class One Software
Educational Software for Lifelong Learning
http://www.classonesoftware.com


Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Sat Oct 06, 2012 12:35 pm 
Offline

Joined: Sat Aug 22, 2009 9:44 am
Posts: 315
This RS blog post might help with flickering - it solved most of my issues:
http://www.realsoftwareblog.com/2012/09/dealing-with-flickering-on-windows.html

As for the text color not changing, perhaps you need to invalidate the control to get it to redraw? (by the way, switching from refresh to invalidate was the best thing I did for flickering)

Good luck,
Bill


Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Sat Oct 06, 2012 1:00 pm 
Offline

Joined: Mon Aug 14, 2006 9:33 pm
Posts: 1774
Quote:
perhaps you need to invalidate the control to get it to redraw

That should absolutely not be necessary.

_________________
Roger Clary
Class One Software
Educational Software for Lifelong Learning
http://www.classonesoftware.com


Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Sat Oct 06, 2012 2:06 pm 
Offline

Joined: Sat Aug 22, 2009 9:44 am
Posts: 315
classone wrote:
Quote:
perhaps you need to invalidate the control to get it to redraw

That should absolutely not be necessary.


I didn't say it SHOULD be necessary, but sometimes in RB, well, you know. LOL


Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Sat Oct 06, 2012 7:11 pm 
Offline

Joined: Wed Jun 15, 2011 2:32 pm
Posts: 29
classone wrote:
You are needlessly making your life difficult.
Just make your Splash Screen the default window (select App in the project tab and notice the default window property in the properties pane.)
YOu can set all of the features you want in your Splash Screen at design time. TextBoxes, colors in those boxes, etc
When the Splash screen is dismissed, then show your first screen.


I tried that, used less code but no change Text color still does change and all problems are still there

Quote:
As to your use of Canvases: The sort of layering you are trying is possible but a bit trickier. Why do you need a background for your toolbar?

I don't need a background for my toolbar, only trying to stop the jitter when the window is resized
also my original app does not use canvases at all, I did that at the forums suggestion.

Quote:
When I suggested to use a canvas, I meant for the display of "notes and photos" as you mentioned. Just draw your graphic using the passed object (g) in the paint event.



my notes and images display correctly thats not the problem but if that will fix the toolbar jitter
[EDIT] not my notes and images fliker on resize.. just didn't notice it because the toolbar is worse
I'll try it. Can you provide and example? or point me to an example the use a canvas to display noes and images?

real.studio is supposed to be a cross platform application right?

I appreciate your help, but so far none of it is working
I need solutions beyond the theoretical

_________________
Running snow leopard 10.6.8, and windows 7 via vmware
solutions need to work on both platforms and without purchasing 3rd party plug-ins


Last edited by 64OSXuser on Sat Oct 06, 2012 7:33 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Sat Oct 06, 2012 7:13 pm 
Offline

Joined: Wed Jun 15, 2011 2:32 pm
Posts: 29
wbgookin wrote:
This RS blog post might help with flickering - it solved most of my issues:
http://www.realsoftwareblog.com/2012/09/dealing-with-flickering-on-windows.html

As for the text color not changing, perhaps you need to invalidate the control to get it to redraw? (by the way, switching from refresh to invalidate was the best thing I did for flickering)

Good luck,
Bill


Thanks
Checking your link, also how do you invalidate a control, and switch from refresh to validate, I don't understand
nevrmind reading blog explains it

Thanks

_________________
Running snow leopard 10.6.8, and windows 7 via vmware
solutions need to work on both platforms and without purchasing 3rd party plug-ins


Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Sat Oct 06, 2012 8:57 pm 
Offline

Joined: Wed Jun 15, 2011 2:32 pm
Posts: 29
I found a few examples in real.studio that I can use
I'll post back my result

Thanks Again....

_________________
Running snow leopard 10.6.8, and windows 7 via vmware
solutions need to work on both platforms and without purchasing 3rd party plug-ins


Top
 Profile  
Reply with quote  
 Post subject: Re: OSX to Windows massive transition problems 1
PostPosted: Sun Oct 07, 2012 8:05 am 
Offline

Joined: Mon Aug 14, 2006 9:33 pm
Posts: 1774
Quote:
real.studio is supposed to be a cross platform application right

Many of us have been writing cross platform applications using RB for years. The fact that you are still learning and have not yet mastered it is not RB's fault.
If you correctly set the text color of the textField in your splash screen, it will show correctly. Something is set wrong. Post your procedure and we'll try to help.
In the paint event of your canvas do:
g.drawpicture myNote, 0, 0


Where myNote is the graphic of your note to draw. If that's not what you are doing, then post some code. We can't guess what you may or may not be doing.

_________________
Roger Clary
Class One Software
Educational Software for Lifelong Learning
http://www.classonesoftware.com


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group