Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

VB color value

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-18-2008, 04:30 PM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default VB color value

I have searched the forums but cannot seem to find an answer.
Is it possible to convert the long color values from vb into rgb??

e.g. txtTestBox.BackColor = 16777215

I found a solution on google but it was using the Hex keyword and I don't think that is supported yet.

thanks
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 04:48 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Ioannina, Greece
Posts: 356
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Leginus View Post
...I found a solution on google but it was using the Hex keyword and I don't think that is supported yet.
It is supported. See Bitwise library
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 04:51 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

See this thread http://www.basic4ppc.com/forum/showt...ighlight=color if you don't want to use a separate library.


specci48
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 05:02 PM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default

Thanks that is just what i was looking for. Obviously i didnt read the forum well enough
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 06:08 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You could use the GetRGB method.
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 10:10 AM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 1,057
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Erel View Post
You could use the GetRGB method.
Oh yes, haven't remembered this new feature ...
Reply With Quote
  #7 (permalink)  
Old 01-19-2008, 10:58 AM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default

Thanks all, I have also noticed that I don't actually need to convert it either. I can use the same value and it works, although RGB is preferable personally.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change color in a progress bar 2220 Questions (Windows Mobile) 8 09-28-2008 09:58 AM
Color Dialog Box ceaser Basic4ppc Wishlist 12 07-29-2008 08:37 PM
Background Color im4retro Basic4ppc Wishlist 1 05-27-2008 05:11 PM
Background Color im4retro Questions (Windows Mobile) 2 05-27-2008 03:55 PM
Image1.color cosmo15900 Questions (Windows Mobile) 3 02-02-2008 09:47 PM


All times are GMT. The time now is 06:39 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0