Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Dec 15, 2019 7:22 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: no round buttons in Windows / hidden rectangles
PostPosted: Fri Jul 29, 2011 10:21 am 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
on my Windows build, my round buttons are square with rounded corners. Is this a bug in RS2011rel2 or should I not expect to get round buttons on the Windows version?


Top
 Profile  
Reply with quote  
 Post subject: Re: no round buttons in Windows / hidden rectangles
PostPosted: Fri Jul 29, 2011 10:23 am 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
ignore the "hidden rectangles" in my title. i'll work on that a bit more before posting separately if i need to.


Top
 Profile  
Reply with quote  
 Post subject: Re: no round buttons in Windows / hidden rectangles
PostPosted: Fri Jul 29, 2011 10:31 am 
Offline

Joined: Wed May 20, 2009 11:02 am
Posts: 423
Hi,

I remember seeing a thread in the past with a similar topic. If I recall correctly, if the buttons are smaller than a certain size they get squared. Could this be the reason for what you get?

PIxe

_________________
Using RS2011r4.3 on Windows7.


Top
 Profile  
Reply with quote  
 Post subject: Re: no round buttons in Windows / hidden rectangles
PostPosted: Fri Jul 29, 2011 10:46 am 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
Enlarging the button didn't help. The only thing that gets larger is its bounding box. The button itself stays the same size in RS2011 and when I do a windows build i just get a larger square button.


Top
 Profile  
Reply with quote  
 Post subject: Re: no round buttons in Windows / hidden rectangles
PostPosted: Fri Jul 29, 2011 10:49 am 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
pixe656 wrote:
Hi,

I remember seeing a thread in the past with a similar topic. If I recall correctly, if the buttons are smaller than a certain size they get squared. Could this be the reason for what you get?

PIxe



I think you got this backwards..... making them BIGGER squared them off....... a size of 22 to 24 pixels high should be optimum (at least on the Mac that is how it works)

_________________
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: no round buttons in Windows / hidden rectangles
PostPosted: Fri Jul 29, 2011 10:56 am 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
round buttons are set to 22x22 and they still come up squared on windows.


Top
 Profile  
Reply with quote  
 Post subject: Re: no round buttons in Windows / hidden rectangles
PostPosted: Fri Jul 29, 2011 11:57 am 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
I get the same results when using either Round or Large Round buttons.


Top
 Profile  
Reply with quote  
 Post subject: Re: no round buttons in Windows / hidden rectangles
PostPosted: Fri Jul 29, 2011 2:19 pm 
Offline

Joined: Wed May 20, 2009 11:02 am
Posts: 423
DaveS wrote:
pixe656 wrote:
Hi,

I remember seeing a thread in the past with a similar topic. If I recall correctly, if the buttons are smaller than a certain size they get squared. Could this be the reason for what you get?

PIxe



I think you got this backwards..... making them BIGGER squared them off.......

:lol:

_________________
Using RS2011r4.3 on Windows7.


Top
 Profile  
Reply with quote  
 Post subject: Re: no round buttons in Windows / hidden rectangles
PostPosted: Fri Jul 29, 2011 2:21 pm 
Offline

Joined: Wed May 20, 2009 11:02 am
Posts: 423
DaveS wrote:
pixe656 wrote:
Hi,

I remember seeing a thread in the past with a similar topic. If I recall correctly, if the buttons are smaller than a certain size they get squared. Could this be the reason for what you get?

PIxe



I think you got this backwards..... making them BIGGER squared them off.......

Well, it was close :wink:

_________________
Using RS2011r4.3 on Windows7.


Top
 Profile  
Reply with quote  
 Post subject: Re: no round buttons in Windows / hidden rectangles
PostPosted: Fri Jul 29, 2011 2:23 pm 
Offline

Joined: Wed May 20, 2009 11:02 am
Posts: 423
Thank you for the correction, Dave.

Are we still missing the EDIT button in some sections of the forum?

_________________
Using RS2011r4.3 on Windows7.


Top
 Profile  
Reply with quote  
 Post subject: Re: no round buttons in Windows / hidden rectangles
PostPosted: Fri Jul 29, 2011 3:07 pm 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
I tried building a Windows app with nothing but buttons, trying each type from small bevel through disclosure and none will create round buttons in Windows. I may just try to create my own custom buttons for Windows.


Top
 Profile  
Reply with quote  
 Post subject: Re: no round buttons in Windows / hidden rectangles
PostPosted: Fri Jul 29, 2011 3:24 pm 
Offline

Joined: Mon May 30, 2011 12:56 am
Posts: 702
What do you mean by round buttons?
The big glassy 'aqua' ones you only get on the Mac?


Top
 Profile  
Reply with quote  
 Post subject: Re: no round buttons in Windows / hidden rectangles
PostPosted: Fri Jul 29, 2011 3:42 pm 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
I guess so, but I didn't know that Windows was incapable of supporting round buttons.


Top
 Profile  
Reply with quote  
 Post subject: Re: no round buttons in Windows / hidden rectangles
PostPosted: Sat Jul 30, 2011 7:22 am 
Offline

Joined: Mon May 30, 2011 12:56 am
Posts: 702
Well, its a Mac look.
You can do it on Windows by using a canvas based control, but it will jar as a user experience unless you are drawing the whole window.
Do you want to do it anyway?


For windows with OK and cancel buttons, I have some code that handles the difference between Windows and Mac.
The trick as I see it is to make the buttons the right size between OS, so that they show up as round buttons on the Mac, and normal buttons on the PC.
Since OK and Cancel are reversed between the OS, the buttons need to swap around too.


dim c as Control
dim x as Integer
dim OKleft as integer =0
dim cancelleft as integer =0
dim okbut as PushButton
dim canbut as pushbutton
#if TargetMacOS then
for x = 0 to w.ControlCount -1
c=w.control(x)
if c isa Pushbutton then
Pushbutton(c).height = 21 //make sure the button is rounded on Mac
end if
next
#else
//reverse the OK and cancel buttons
for x = 0 to w.ControlCount -1
c=w.control(x)
if c isa Pushbutton then
if pushbutton(c).caption = "OK" then
OKleft = pushbutton(c).left
okbut =pushbutton(c)
end if
if pushbutton(c).caption = bopen then
OKleft = pushbutton(c).left
okbut =pushbutton(c)
end if
if pushbutton(c).caption = bcancel then
cancelleft = pushbutton(c).left
canbut = pushbutton(c)
end if
end if
next
if OKleft > 0 and cancelleft > 0 then
//found both, so swap
canbut.left = okleft
okbut.left = cancelleft
end if
#endif


Top
 Profile  
Reply with quote  
 Post subject: Re: no round buttons in Windows / hidden rectangles
PostPosted: Sat Jul 30, 2011 8:03 am 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
Thanks, kermit. I will give that a try. i actually made some custom buttons using graphics in a canvas that do their thing on the mousedown event, but for some reason they don't quite function the same, so I'll give your way a shot. thanks for the detailed code.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 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